|
@@ 6466-6481 (lines=16) @@
|
| 6463 |
|
$tbl_lp_item = Database :: get_course_table(TABLE_LP_ITEM); |
| 6464 |
|
$tbl_quiz = Database :: get_course_table(TABLE_QUIZ_TEST); |
| 6465 |
|
|
| 6466 |
|
if ($id != 0 && is_array($extra_info)) { |
| 6467 |
|
$item_title = $extra_info['title']; |
| 6468 |
|
$item_description = $extra_info['description']; |
| 6469 |
|
} elseif (is_numeric($extra_info)) { |
| 6470 |
|
$sql = "SELECT title, description |
| 6471 |
|
FROM " . $tbl_quiz . " |
| 6472 |
|
WHERE c_id = ".$course_id." AND id = " . $extra_info; |
| 6473 |
|
|
| 6474 |
|
$result = Database::query($sql); |
| 6475 |
|
$row = Database::fetch_array($result); |
| 6476 |
|
$item_title = $row['title']; |
| 6477 |
|
$item_description = $row['description']; |
| 6478 |
|
} else { |
| 6479 |
|
$item_title = ''; |
| 6480 |
|
$item_description = ''; |
| 6481 |
|
} |
| 6482 |
|
$item_title = Security::remove_XSS($item_title); |
| 6483 |
|
$item_description = Security::remove_XSS($item_description); |
| 6484 |
|
|
|
@@ 6887-6902 (lines=16) @@
|
| 6884 |
|
$tbl_lp_item = Database :: get_course_table(TABLE_LP_ITEM); |
| 6885 |
|
$tbl_forum = Database :: get_course_table(TABLE_FORUM); |
| 6886 |
|
|
| 6887 |
|
if ($id != 0 && is_array($extra_info)) { |
| 6888 |
|
$item_title = stripslashes($extra_info['title']); |
| 6889 |
|
} elseif (is_numeric($extra_info)) { |
| 6890 |
|
$sql = "SELECT forum_title as title, forum_comment as comment |
| 6891 |
|
FROM " . $tbl_forum . " |
| 6892 |
|
WHERE c_id = ".$course_id." AND forum_id = " . $extra_info; |
| 6893 |
|
|
| 6894 |
|
$result = Database::query($sql); |
| 6895 |
|
$row = Database :: fetch_array($result); |
| 6896 |
|
|
| 6897 |
|
$item_title = $row['title']; |
| 6898 |
|
$item_description = $row['comment']; |
| 6899 |
|
} else { |
| 6900 |
|
$item_title = ''; |
| 6901 |
|
$item_description = ''; |
| 6902 |
|
} |
| 6903 |
|
|
| 6904 |
|
if ($id != 0 && is_array($extra_info)) { |
| 6905 |
|
$parent = $extra_info['parent_item_id']; |