| @@ 6910-6913 (lines=4) @@ | ||
| 6907 | $item_title = Security::remove_XSS($item_title); |
|
| 6908 | $item_description = Security::remove_XSS($item_description); |
|
| 6909 | ||
| 6910 | if ($id != 0 && is_array($extra_info)) { |
|
| 6911 | $parent = $extra_info['parent_item_id']; |
|
| 6912 | } else { |
|
| 6913 | $parent = 0; |
|
| 6914 | } |
|
| 6915 | ||
| 6916 | $sql = "SELECT * FROM $tbl_lp_item |
|
| @@ 7124-7128 (lines=5) @@ | ||
| 7121 | $item_description = ''; |
|
| 7122 | } |
|
| 7123 | ||
| 7124 | if ($id != 0 && is_array($extra_info)) { |
|
| 7125 | $parent = $extra_info['parent_item_id']; |
|
| 7126 | } else { |
|
| 7127 | $parent = 0; |
|
| 7128 | } |
|
| 7129 | ||
| 7130 | $sql = "SELECT * FROM $tbl_lp_item |
|
| 7131 | WHERE c_id = ".$course_id." AND lp_id = ".$this->lp_id; |
|
| @@ 7299-7303 (lines=5) @@ | ||
| 7296 | $item_description = ''; |
|
| 7297 | } |
|
| 7298 | ||
| 7299 | if ($id != 0 && is_array($extra_info)) { |
|
| 7300 | $parent = $extra_info['parent_item_id']; |
|
| 7301 | } else { |
|
| 7302 | $parent = 0; |
|
| 7303 | } |
|
| 7304 | ||
| 7305 | $sql = "SELECT * FROM ".$tbl_lp_item." |
|
| 7306 | WHERE |
|
| @@ 7507-7511 (lines=5) @@ | ||
| 7504 | $item_description = ''; |
|
| 7505 | } |
|
| 7506 | ||
| 7507 | if ($id != 0 && is_array($extra_info)) { |
|
| 7508 | $parent = $extra_info['parent_item_id']; |
|
| 7509 | } else { |
|
| 7510 | $parent = 0; |
|
| 7511 | } |
|
| 7512 | ||
| 7513 | $sql = "SELECT * FROM ".$tbl_lp_item." |
|
| 7514 | WHERE c_id = ".$course_id." AND lp_id = ".$this->lp_id; |
|
| @@ 7720-7724 (lines=5) @@ | ||
| 7717 | $item_path_fck = ''; |
|
| 7718 | } |
|
| 7719 | ||
| 7720 | if ($id != 0 && is_array($extra_info)) { |
|
| 7721 | $parent = $extra_info['parent_item_id']; |
|
| 7722 | } else { |
|
| 7723 | $parent = 0; |
|
| 7724 | } |
|
| 7725 | ||
| 7726 | $id = intval($id); |
|
| 7727 | $sql = "SELECT * FROM ".$tbl_lp_item." |
|
| @@ 7993-7997 (lines=5) @@ | ||
| 7990 | } |
|
| 7991 | $return = '<legend>'; |
|
| 7992 | ||
| 7993 | if ($id != 0 && is_array($extra_info)) { |
|
| 7994 | $parent = $extra_info['parent_item_id']; |
|
| 7995 | } else { |
|
| 7996 | $parent = 0; |
|
| 7997 | } |
|
| 7998 | ||
| 7999 | $sql = "SELECT * FROM $tbl_lp_item |
|
| 8000 | WHERE c_id = $course_id AND lp_id = ".$this->lp_id; |
|
| @@ 8360-8364 (lines=5) @@ | ||
| 8357 | $this->getCurrentBuildingModeURL() |
|
| 8358 | ); |
|
| 8359 | $defaults = []; |
|
| 8360 | if ($id != 0 && is_array($extra_info)) { |
|
| 8361 | $parent = $extra_info['parent_item_id']; |
|
| 8362 | } else { |
|
| 8363 | $parent = 0; |
|
| 8364 | } |
|
| 8365 | ||
| 8366 | $sql = "SELECT * FROM ".$tbl_lp_item." |
|
| 8367 | WHERE c_id = ".$course_id." AND lp_id = ".$this->lp_id; |
|
| @@ 8565-8569 (lines=5) @@ | ||
| 8562 | $item_title = get_lang('Student_publication'); |
|
| 8563 | } |
|
| 8564 | ||
| 8565 | if ($id != 0 && is_array($extra_info)) { |
|
| 8566 | $parent = $extra_info['parent_item_id']; |
|
| 8567 | } else { |
|
| 8568 | $parent = 0; |
|
| 8569 | } |
|
| 8570 | ||
| 8571 | $sql = "SELECT * FROM $tbl_lp_item |
|
| 8572 | WHERE c_id = $course_id AND lp_id = ".$this->lp_id; |
|