@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | //include("../../config/admin_rights.php"); /*--> We can not use it like this because of the ajax. |
| 24 | 24 | // redirecting does not work correctly with the inheritance of Ajax. |
| 25 | 25 | |
| 26 | -require_once __DIR__."/../../lib/Db.php" ; |
|
| 26 | +require_once __DIR__."/../../lib/Db.php"; |
|
| 27 | 27 | |
| 28 | 28 | if (isset($action) and $action == "stop") { |
| 29 | 29 | echo "test"; |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | //If we are uploading new screenshots |
| 38 | 38 | if (isset($action2) and $action2 == 'add_screens') { |
| 39 | - if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') { |
|
| 39 | + if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') { |
|
| 40 | 40 | //Here we'll be looping on each of the inputs on the page that are filled in with an image! |
| 41 | 41 | $image = $_FILES['image']; |
| 42 | 42 | |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | $smarty->assign('interview_id', $interview_id); |
| 148 | 148 | |
| 149 | 149 | //Send to smarty for return value |
| 150 | - $smarty->display("file:" . $cpanel_template_folder . "interviews/ajax_interview_add_screenshots.html"); |
|
| 150 | + $smarty->display("file:".$cpanel_template_folder."interviews/ajax_interview_add_screenshots.html"); |
|
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | //************************************************************************* |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | |
| 204 | 204 | //If the delete comment has been triggered |
| 205 | 205 | if (isset($action) and $action == 'delete_screenshot_comment') { |
| 206 | - if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') { |
|
| 206 | + if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') { |
|
| 207 | 207 | $sql_interviewshot = $mysqli->query("SELECT * FROM screenshot_interview |
| 208 | 208 | WHERE interview_id = $interview_id |
| 209 | 209 | AND screenshot_id = $screenshot_id") or die("Database error - selecting screenshots interview"); |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | $smarty->assign('interview_id', $interview_id); |
| 284 | 284 | |
| 285 | 285 | //Send to smarty for return value |
| 286 | - $smarty->display("file:" . $cpanel_template_folder . "interviews/ajax_interview_add_screenshots.html"); |
|
| 286 | + $smarty->display("file:".$cpanel_template_folder."interviews/ajax_interview_add_screenshots.html"); |
|
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | //************************************************************************* |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | 'interview_chapters' => $interview['interview_chapters'], |
| 67 | 67 | 'interview_text' => $interview['interview_text'], |
| 68 | 68 | 'interview_ind_name' => $interview['ind_name'], |
| 69 | - 'interview_author' => $author_id , |
|
| 69 | + 'interview_author' => $author_id, |
|
| 70 | 70 | 'interview_author_name' => $interview['userid'], |
| 71 | 71 | 'interview_ind_id' => $interview['ind_id'], |
| 72 | 72 | 'interview_draft' => $interview['draft'], |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $smarty->assign("user_id", $_SESSION['user_id']); |
| 111 | 111 | |
| 112 | 112 | //Send all smarty variables to the templates |
| 113 | -$smarty->display("file:" . $cpanel_template_folder . "interviews/interviews_edit.html"); |
|
| 113 | +$smarty->display("file:".$cpanel_template_folder."interviews/interviews_edit.html"); |
|
| 114 | 114 | |
| 115 | 115 | //close the connection |
| 116 | 116 | mysqli_close($mysqli); |