@@ -25,6 +25,6 @@ |
||
| 25 | 25 | $trackerUsers=Tracker::getTrackerByRoleStudy("User", $linkpdo);
|
| 26 | 26 | require 'views/administrator/tracker_user_view.php'; |
| 27 | 27 | |
| 28 | -}else {
|
|
| 28 | +} else {
|
|
| 29 | 29 | require 'includes/no_access.php'; |
| 30 | 30 | } |
| 31 | 31 | \ No newline at end of file |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | echo(json_encode("Success")); |
| 56 | 56 | |
| 57 | 57 | //Display Form |
| 58 | - }else { |
|
| 58 | + } else { |
|
| 59 | 59 | |
| 60 | 60 | $studyAllanswers=Global_Data::getAllStudies($linkpdo); |
| 61 | 61 | $activatedStudiesDb=Global_Data::getAllStudies($linkpdo, true); |
@@ -64,6 +64,6 @@ discard block |
||
| 64 | 64 | require 'views/administrator/study_activation_view.php'; |
| 65 | 65 | |
| 66 | 66 | } |
| 67 | -}else { |
|
| 67 | +} else { |
|
| 68 | 68 | require 'includes/no_access.php'; |
| 69 | 69 | } |
| 70 | 70 | \ No newline at end of file |
@@ -54,12 +54,12 @@ |
||
| 54 | 54 | $actionDetails["reason"]=$reason; |
| 55 | 55 | Tracker::logActivity($username, $role, $study, $id_visit, "Delete Visit", $actionDetails); |
| 56 | 56 | $answer=true; |
| 57 | - }else {
|
|
| 57 | + } else {
|
|
| 58 | 58 | $answer=false; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | echo(json_encode($answer)); |
| 62 | 62 | |
| 63 | -}else {
|
|
| 63 | +} else {
|
|
| 64 | 64 | echo(json_encode(false)); |
| 65 | 65 | } |
@@ -33,7 +33,9 @@ |
||
| 33 | 33 | |
| 34 | 34 | } |
| 35 | 35 | //If not permitted or tree query empty, display None in the tree |
| 36 | -if (!$permissionCheck || empty($tree)) $tree=array('id'=>0, 'parent'=>"#", "text"=>"None"); |
|
| 36 | +if (!$permissionCheck || empty($tree)) { |
|
| 37 | + $tree=array('id'=>0, 'parent'=>"#", "text"=>"None"); |
|
| 38 | +} |
|
| 37 | 39 | |
| 38 | 40 | //Echo the tree structure for JSTree |
| 39 | 41 | echo(json_encode($tree)); |
| 40 | 42 | \ No newline at end of file |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | fclose($file); |
| 55 | 55 | |
| 56 | - }else { |
|
| 56 | + } else { |
|
| 57 | 57 | throw new Exception("Can't Find Documentation"); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -61,6 +61,6 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | |
| 63 | 63 | |
| 64 | -}else { |
|
| 64 | +} else { |
|
| 65 | 65 | require $_SERVER['DOCUMENT_ROOT'].'/includes/no_access.php'; |
| 66 | 66 | } |
| 67 | 67 | \ No newline at end of file |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $answer['status']="Success"; |
| 93 | 93 | echo(json_encode($answer)); |
| 94 | 94 | |
| 95 | -}else { |
|
| 95 | +} else { |
|
| 96 | 96 | $answer['status']="No Access"; |
| 97 | 97 | echo(json_encode($answer)); |
| 98 | 98 | } |
| 99 | 99 | \ No newline at end of file |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - }else { |
|
| 48 | + } else { |
|
| 49 | 49 | //Store the seriesOrthancID to Delete and it's ParentVisit ID |
| 50 | 50 | $seriesObject=new Series_Details($seriesOrthancID, $linkpdo); |
| 51 | 51 | $seriesOrthancIDToChange[]=$seriesObject->seriesOrthancID; |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | $changedArrayResult[]=$serieOrthancID; |
| 94 | 94 | |
| 95 | - }else if ($action == 'reactivate') { |
|
| 95 | + } else if ($action == 'reactivate') { |
|
| 96 | 96 | if ($role != User::SUPERVISOR) { |
| 97 | 97 | print("Reactivation not authorized"); |
| 98 | 98 | return; |
@@ -113,12 +113,12 @@ discard block |
||
| 113 | 113 | Tracker::logActivity($username, $role, $_SESSION['study'], $id_visit, "Change Serie", $actionDetails); |
| 114 | 114 | $answer=true; |
| 115 | 115 | |
| 116 | - }else { |
|
| 116 | + } else { |
|
| 117 | 117 | $answer=false; |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | echo(json_encode($answer)); |
| 121 | 121 | |
| 122 | -}else { |
|
| 122 | +} else { |
|
| 123 | 123 | echo(json_encode(false)); |
| 124 | 124 | } |
@@ -46,6 +46,6 @@ |
||
| 46 | 46 | |
| 47 | 47 | echo(json_encode(true)); |
| 48 | 48 | |
| 49 | -}else { |
|
| 49 | +} else { |
|
| 50 | 50 | echo(json_encode(false)); |
| 51 | 51 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | if ($_SESSION['admin'] && isset($_POST['Username'])) { |
| 34 | 34 | //Administrator updating data |
| 35 | 35 | |
| 36 | - }else { |
|
| 36 | + } else { |
|
| 37 | 37 | //User updates it's own data |
| 38 | 38 | $userObject->updateUser($_POST['LastName'], $_POST['FirstName'], $userObject->userEmail, $_POST['Phone'], $userObject->userJob, |
| 39 | 39 | $userObject->userStatus, $userObject->isAdministrator, $userObject->mainCenter, $userObject->orthancAddress, |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | echo(json_encode($answer)); |
| 57 | 57 | |
| 58 | 58 | |
| 59 | -}else { |
|
| 59 | +} else { |
|
| 60 | 60 | |
| 61 | 61 | header('HTTP/1.0 403 Forbidden'); |
| 62 | 62 | die('You are not allowed to access this file.'); |