@@ -119,7 +119,7 @@ |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | // secure manager documents - flag as private |
| 122 | -if($updategroupaccess==true){ |
|
| 122 | +if($updategroupaccess==true) { |
|
| 123 | 123 | include MODX_MANAGER_PATH."includes/secure_mgr_documents.inc.php"; |
| 124 | 124 | secureMgrDocument(); |
| 125 | 125 | |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | if(!$modx->hasPermission('access_permissions')) { |
| 6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | // access group processor. |
@@ -20,113 +20,113 @@ discard block |
||
| 20 | 20 | $operation = $_REQUEST['operation']; |
| 21 | 21 | |
| 22 | 22 | switch ($operation) { |
| 23 | - case "add_user_group" : |
|
| 24 | - $newgroup = $_REQUEST['newusergroup']; |
|
| 25 | - if(empty($newgroup)) { |
|
| 26 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 27 | - } else { |
|
| 28 | - $id = $modx->getDatabase()->insert(array('name' => $modx->getDatabase()->escape($newgroup)), $tbl_membergroup_names); |
|
| 23 | + case "add_user_group" : |
|
| 24 | + $newgroup = $_REQUEST['newusergroup']; |
|
| 25 | + if(empty($newgroup)) { |
|
| 26 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 27 | + } else { |
|
| 28 | + $id = $modx->getDatabase()->insert(array('name' => $modx->getDatabase()->escape($newgroup)), $tbl_membergroup_names); |
|
| 29 | 29 | |
| 30 | - // invoke OnManagerCreateGroup event |
|
| 31 | - $modx->invokeEvent('OnManagerCreateGroup', array( |
|
| 32 | - 'groupid' => $id, |
|
| 33 | - 'groupname' => $newgroup, |
|
| 34 | - )); |
|
| 35 | - } |
|
| 36 | - break; |
|
| 37 | - case "add_document_group" : |
|
| 38 | - $newgroup = $_REQUEST['newdocgroup']; |
|
| 39 | - if(empty($newgroup)) { |
|
| 40 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 41 | - } else { |
|
| 42 | - $id = $modx->getDatabase()->insert(array('name' => $modx->getDatabase()->escape($newgroup)), $tbl_documentgroup_names); |
|
| 30 | + // invoke OnManagerCreateGroup event |
|
| 31 | + $modx->invokeEvent('OnManagerCreateGroup', array( |
|
| 32 | + 'groupid' => $id, |
|
| 33 | + 'groupname' => $newgroup, |
|
| 34 | + )); |
|
| 35 | + } |
|
| 36 | + break; |
|
| 37 | + case "add_document_group" : |
|
| 38 | + $newgroup = $_REQUEST['newdocgroup']; |
|
| 39 | + if(empty($newgroup)) { |
|
| 40 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 41 | + } else { |
|
| 42 | + $id = $modx->getDatabase()->insert(array('name' => $modx->getDatabase()->escape($newgroup)), $tbl_documentgroup_names); |
|
| 43 | 43 | |
| 44 | - // invoke OnCreateDocGroup event |
|
| 45 | - $modx->invokeEvent('OnCreateDocGroup', array( |
|
| 46 | - 'groupid' => $id, |
|
| 47 | - 'groupname' => $newgroup, |
|
| 48 | - )); |
|
| 49 | - } |
|
| 50 | - break; |
|
| 51 | - case "delete_user_group" : |
|
| 52 | - $updategroupaccess = true; |
|
| 53 | - $usergroup = (int)$_REQUEST['usergroup']; |
|
| 54 | - if(empty($usergroup)) { |
|
| 55 | - $modx->webAlertAndQuit("No user group id specified for deletion."); |
|
| 56 | - } else { |
|
| 57 | - $modx->getDatabase()->delete($tbl_membergroup_names, "id='{$usergroup}'"); |
|
| 44 | + // invoke OnCreateDocGroup event |
|
| 45 | + $modx->invokeEvent('OnCreateDocGroup', array( |
|
| 46 | + 'groupid' => $id, |
|
| 47 | + 'groupname' => $newgroup, |
|
| 48 | + )); |
|
| 49 | + } |
|
| 50 | + break; |
|
| 51 | + case "delete_user_group" : |
|
| 52 | + $updategroupaccess = true; |
|
| 53 | + $usergroup = (int)$_REQUEST['usergroup']; |
|
| 54 | + if(empty($usergroup)) { |
|
| 55 | + $modx->webAlertAndQuit("No user group id specified for deletion."); |
|
| 56 | + } else { |
|
| 57 | + $modx->getDatabase()->delete($tbl_membergroup_names, "id='{$usergroup}'"); |
|
| 58 | 58 | |
| 59 | - $modx->getDatabase()->delete($tbl_membergroup_access, "membergroup='{$usergroup}'"); |
|
| 59 | + $modx->getDatabase()->delete($tbl_membergroup_access, "membergroup='{$usergroup}'"); |
|
| 60 | 60 | |
| 61 | - $modx->getDatabase()->delete($tbl_member_groups, "user_group='{$usergroup}'"); |
|
| 62 | - } |
|
| 63 | - break; |
|
| 64 | - case "delete_document_group" : |
|
| 65 | - $group = (int)$_REQUEST['documentgroup']; |
|
| 66 | - if(empty($group)) { |
|
| 67 | - $modx->webAlertAndQuit("No document group id specified for deletion."); |
|
| 68 | - } else { |
|
| 69 | - $modx->getDatabase()->delete($tbl_documentgroup_names, "id='{$group}'"); |
|
| 61 | + $modx->getDatabase()->delete($tbl_member_groups, "user_group='{$usergroup}'"); |
|
| 62 | + } |
|
| 63 | + break; |
|
| 64 | + case "delete_document_group" : |
|
| 65 | + $group = (int)$_REQUEST['documentgroup']; |
|
| 66 | + if(empty($group)) { |
|
| 67 | + $modx->webAlertAndQuit("No document group id specified for deletion."); |
|
| 68 | + } else { |
|
| 69 | + $modx->getDatabase()->delete($tbl_documentgroup_names, "id='{$group}'"); |
|
| 70 | 70 | |
| 71 | - $modx->getDatabase()->delete($tbl_membergroup_access, "documentgroup='{$group}'"); |
|
| 71 | + $modx->getDatabase()->delete($tbl_membergroup_access, "documentgroup='{$group}'"); |
|
| 72 | 72 | |
| 73 | - $modx->getDatabase()->delete($tbl_document_groups, "document_group='{$group}'"); |
|
| 74 | - } |
|
| 75 | - break; |
|
| 76 | - case "rename_user_group" : |
|
| 77 | - $newgroupname = $_REQUEST['newgroupname']; |
|
| 78 | - if(empty($newgroupname)) { |
|
| 79 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 80 | - } |
|
| 81 | - $groupid = (int)$_REQUEST['groupid']; |
|
| 82 | - if(empty($groupid)) { |
|
| 83 | - $modx->webAlertAndQuit("No group id specified for rename."); |
|
| 84 | - } |
|
| 73 | + $modx->getDatabase()->delete($tbl_document_groups, "document_group='{$group}'"); |
|
| 74 | + } |
|
| 75 | + break; |
|
| 76 | + case "rename_user_group" : |
|
| 77 | + $newgroupname = $_REQUEST['newgroupname']; |
|
| 78 | + if(empty($newgroupname)) { |
|
| 79 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 80 | + } |
|
| 81 | + $groupid = (int)$_REQUEST['groupid']; |
|
| 82 | + if(empty($groupid)) { |
|
| 83 | + $modx->webAlertAndQuit("No group id specified for rename."); |
|
| 84 | + } |
|
| 85 | 85 | |
| 86 | - $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_membergroup_names, "id='{$groupid}'"); |
|
| 87 | - break; |
|
| 88 | - case "rename_document_group" : |
|
| 89 | - $newgroupname = $_REQUEST['newgroupname']; |
|
| 90 | - if(empty($newgroupname)) { |
|
| 91 | - $modx->webAlertAndQuit("No group name specified."); |
|
| 92 | - } |
|
| 93 | - $groupid = (int)$_REQUEST['groupid']; |
|
| 94 | - if(empty($groupid)) { |
|
| 95 | - $modx->webAlertAndQuit("No group id specified for rename."); |
|
| 96 | - } |
|
| 86 | + $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_membergroup_names, "id='{$groupid}'"); |
|
| 87 | + break; |
|
| 88 | + case "rename_document_group" : |
|
| 89 | + $newgroupname = $_REQUEST['newgroupname']; |
|
| 90 | + if(empty($newgroupname)) { |
|
| 91 | + $modx->webAlertAndQuit("No group name specified."); |
|
| 92 | + } |
|
| 93 | + $groupid = (int)$_REQUEST['groupid']; |
|
| 94 | + if(empty($groupid)) { |
|
| 95 | + $modx->webAlertAndQuit("No group id specified for rename."); |
|
| 96 | + } |
|
| 97 | 97 | |
| 98 | - $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_documentgroup_names, "id='{$groupid}'"); |
|
| 99 | - break; |
|
| 100 | - case "add_document_group_to_user_group" : |
|
| 101 | - $updategroupaccess = true; |
|
| 102 | - $usergroup = (int)$_REQUEST['usergroup']; |
|
| 103 | - $docgroup = (int)$_REQUEST['docgroup']; |
|
| 104 | - $rs = $modx->getDatabase()->select('COUNT(*)', $tbl_membergroup_access, "membergroup='{$usergroup}' AND documentgroup='{$docgroup}'"); |
|
| 105 | - $limit = $modx->getDatabase()->getValue($rs); |
|
| 106 | - if($limit<=0) { |
|
| 107 | - $modx->getDatabase()->insert(array('membergroup' => $usergroup, 'documentgroup' => $docgroup), $tbl_membergroup_access); |
|
| 108 | - } else { |
|
| 109 | - //alert user that coupling already exists? |
|
| 110 | - } |
|
| 111 | - break; |
|
| 112 | - case "remove_document_group_from_user_group" : |
|
| 113 | - $updategroupaccess = true; |
|
| 114 | - $coupling = (int)$_REQUEST['coupling']; |
|
| 115 | - $modx->getDatabase()->delete($tbl_membergroup_access, "id='{$coupling}'"); |
|
| 116 | - break; |
|
| 117 | - default : |
|
| 118 | - $modx->webAlertAndQuit("No operation set in request."); |
|
| 98 | + $modx->getDatabase()->update(array('name' => $modx->getDatabase()->escape($newgroupname)), $tbl_documentgroup_names, "id='{$groupid}'"); |
|
| 99 | + break; |
|
| 100 | + case "add_document_group_to_user_group" : |
|
| 101 | + $updategroupaccess = true; |
|
| 102 | + $usergroup = (int)$_REQUEST['usergroup']; |
|
| 103 | + $docgroup = (int)$_REQUEST['docgroup']; |
|
| 104 | + $rs = $modx->getDatabase()->select('COUNT(*)', $tbl_membergroup_access, "membergroup='{$usergroup}' AND documentgroup='{$docgroup}'"); |
|
| 105 | + $limit = $modx->getDatabase()->getValue($rs); |
|
| 106 | + if($limit<=0) { |
|
| 107 | + $modx->getDatabase()->insert(array('membergroup' => $usergroup, 'documentgroup' => $docgroup), $tbl_membergroup_access); |
|
| 108 | + } else { |
|
| 109 | + //alert user that coupling already exists? |
|
| 110 | + } |
|
| 111 | + break; |
|
| 112 | + case "remove_document_group_from_user_group" : |
|
| 113 | + $updategroupaccess = true; |
|
| 114 | + $coupling = (int)$_REQUEST['coupling']; |
|
| 115 | + $modx->getDatabase()->delete($tbl_membergroup_access, "id='{$coupling}'"); |
|
| 116 | + break; |
|
| 117 | + default : |
|
| 118 | + $modx->webAlertAndQuit("No operation set in request."); |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | // secure manager documents - flag as private |
| 122 | 122 | if($updategroupaccess==true){ |
| 123 | - include MODX_MANAGER_PATH."includes/secure_mgr_documents.inc.php"; |
|
| 124 | - secureMgrDocument(); |
|
| 123 | + include MODX_MANAGER_PATH."includes/secure_mgr_documents.inc.php"; |
|
| 124 | + secureMgrDocument(); |
|
| 125 | 125 | |
| 126 | - // Update the private group column |
|
| 127 | - $modx->getDatabase()->update( |
|
| 128 | - 'dgn.private_memgroup = (mga.membergroup IS NOT NULL)', |
|
| 129 | - "{$tbl_documentgroup_names} AS dgn LEFT JOIN {$tbl_membergroup_access} AS mga ON mga.documentgroup = dgn.id"); |
|
| 126 | + // Update the private group column |
|
| 127 | + $modx->getDatabase()->update( |
|
| 128 | + 'dgn.private_memgroup = (mga.membergroup IS NOT NULL)', |
|
| 129 | + "{$tbl_documentgroup_names} AS dgn LEFT JOIN {$tbl_membergroup_access} AS mga ON mga.documentgroup = dgn.id"); |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | $header = "Location: index.php?a=40"; |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | -if(!$modx->hasPermission('access_permissions')) { |
|
| 5 | +if (!$modx->hasPermission('access_permissions')) { |
|
| 6 | 6 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
| 7 | 7 | } |
| 8 | 8 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | switch ($operation) { |
| 23 | 23 | case "add_user_group" : |
| 24 | 24 | $newgroup = $_REQUEST['newusergroup']; |
| 25 | - if(empty($newgroup)) { |
|
| 25 | + if (empty($newgroup)) { |
|
| 26 | 26 | $modx->webAlertAndQuit("No group name specified."); |
| 27 | 27 | } else { |
| 28 | 28 | $id = $modx->getDatabase()->insert(array('name' => $modx->getDatabase()->escape($newgroup)), $tbl_membergroup_names); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | break; |
| 37 | 37 | case "add_document_group" : |
| 38 | 38 | $newgroup = $_REQUEST['newdocgroup']; |
| 39 | - if(empty($newgroup)) { |
|
| 39 | + if (empty($newgroup)) { |
|
| 40 | 40 | $modx->webAlertAndQuit("No group name specified."); |
| 41 | 41 | } else { |
| 42 | 42 | $id = $modx->getDatabase()->insert(array('name' => $modx->getDatabase()->escape($newgroup)), $tbl_documentgroup_names); |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | break; |
| 51 | 51 | case "delete_user_group" : |
| 52 | 52 | $updategroupaccess = true; |
| 53 | - $usergroup = (int)$_REQUEST['usergroup']; |
|
| 54 | - if(empty($usergroup)) { |
|
| 53 | + $usergroup = (int) $_REQUEST['usergroup']; |
|
| 54 | + if (empty($usergroup)) { |
|
| 55 | 55 | $modx->webAlertAndQuit("No user group id specified for deletion."); |
| 56 | 56 | } else { |
| 57 | 57 | $modx->getDatabase()->delete($tbl_membergroup_names, "id='{$usergroup}'"); |
@@ -62,8 +62,8 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | break; |
| 64 | 64 | case "delete_document_group" : |
| 65 | - $group = (int)$_REQUEST['documentgroup']; |
|
| 66 | - if(empty($group)) { |
|
| 65 | + $group = (int) $_REQUEST['documentgroup']; |
|
| 66 | + if (empty($group)) { |
|
| 67 | 67 | $modx->webAlertAndQuit("No document group id specified for deletion."); |
| 68 | 68 | } else { |
| 69 | 69 | $modx->getDatabase()->delete($tbl_documentgroup_names, "id='{$group}'"); |
@@ -75,11 +75,11 @@ discard block |
||
| 75 | 75 | break; |
| 76 | 76 | case "rename_user_group" : |
| 77 | 77 | $newgroupname = $_REQUEST['newgroupname']; |
| 78 | - if(empty($newgroupname)) { |
|
| 78 | + if (empty($newgroupname)) { |
|
| 79 | 79 | $modx->webAlertAndQuit("No group name specified."); |
| 80 | 80 | } |
| 81 | - $groupid = (int)$_REQUEST['groupid']; |
|
| 82 | - if(empty($groupid)) { |
|
| 81 | + $groupid = (int) $_REQUEST['groupid']; |
|
| 82 | + if (empty($groupid)) { |
|
| 83 | 83 | $modx->webAlertAndQuit("No group id specified for rename."); |
| 84 | 84 | } |
| 85 | 85 | |
@@ -87,11 +87,11 @@ discard block |
||
| 87 | 87 | break; |
| 88 | 88 | case "rename_document_group" : |
| 89 | 89 | $newgroupname = $_REQUEST['newgroupname']; |
| 90 | - if(empty($newgroupname)) { |
|
| 90 | + if (empty($newgroupname)) { |
|
| 91 | 91 | $modx->webAlertAndQuit("No group name specified."); |
| 92 | 92 | } |
| 93 | - $groupid = (int)$_REQUEST['groupid']; |
|
| 94 | - if(empty($groupid)) { |
|
| 93 | + $groupid = (int) $_REQUEST['groupid']; |
|
| 94 | + if (empty($groupid)) { |
|
| 95 | 95 | $modx->webAlertAndQuit("No group id specified for rename."); |
| 96 | 96 | } |
| 97 | 97 | |
@@ -99,11 +99,11 @@ discard block |
||
| 99 | 99 | break; |
| 100 | 100 | case "add_document_group_to_user_group" : |
| 101 | 101 | $updategroupaccess = true; |
| 102 | - $usergroup = (int)$_REQUEST['usergroup']; |
|
| 103 | - $docgroup = (int)$_REQUEST['docgroup']; |
|
| 102 | + $usergroup = (int) $_REQUEST['usergroup']; |
|
| 103 | + $docgroup = (int) $_REQUEST['docgroup']; |
|
| 104 | 104 | $rs = $modx->getDatabase()->select('COUNT(*)', $tbl_membergroup_access, "membergroup='{$usergroup}' AND documentgroup='{$docgroup}'"); |
| 105 | 105 | $limit = $modx->getDatabase()->getValue($rs); |
| 106 | - if($limit<=0) { |
|
| 106 | + if ($limit <= 0) { |
|
| 107 | 107 | $modx->getDatabase()->insert(array('membergroup' => $usergroup, 'documentgroup' => $docgroup), $tbl_membergroup_access); |
| 108 | 108 | } else { |
| 109 | 109 | //alert user that coupling already exists? |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | break; |
| 112 | 112 | case "remove_document_group_from_user_group" : |
| 113 | 113 | $updategroupaccess = true; |
| 114 | - $coupling = (int)$_REQUEST['coupling']; |
|
| 114 | + $coupling = (int) $_REQUEST['coupling']; |
|
| 115 | 115 | $modx->getDatabase()->delete($tbl_membergroup_access, "id='{$coupling}'"); |
| 116 | 116 | break; |
| 117 | 117 | default : |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | // secure manager documents - flag as private |
| 122 | -if($updategroupaccess==true){ |
|
| 122 | +if ($updategroupaccess == true) { |
|
| 123 | 123 | include MODX_MANAGER_PATH."includes/secure_mgr_documents.inc.php"; |
| 124 | 124 | secureMgrDocument(); |
| 125 | 125 | |
@@ -61,9 +61,13 @@ discard block |
||
| 61 | 61 | $mgr_dir = substr($self_dir,strrpos($self_dir,'/')+1); |
| 62 | 62 | $base_path = str_replace($mgr_dir . '/index.php','',$self); |
| 63 | 63 | $site_mgr_path = $base_path . 'assets/cache/siteManager.php'; |
| 64 | -if(is_file($site_mgr_path)) include_once($site_mgr_path); |
|
| 64 | +if(is_file($site_mgr_path)) { |
|
| 65 | + include_once($site_mgr_path); |
|
| 66 | +} |
|
| 65 | 67 | $site_hostnames_path = $base_path . 'assets/cache/siteHostnames.php'; |
| 66 | -if(is_file($site_hostnames_path)) include_once($site_hostnames_path); |
|
| 68 | +if(is_file($site_hostnames_path)) { |
|
| 69 | + include_once($site_hostnames_path); |
|
| 70 | +} |
|
| 67 | 71 | if(!defined('MGR_DIR') || MGR_DIR!==$mgr_dir) { |
| 68 | 72 | $src = "<?php\n"; |
| 69 | 73 | $src .= "define('MGR_DIR', '{$mgr_dir}');\n"; |
@@ -117,9 +121,15 @@ discard block |
||
| 117 | 121 | $incPath = str_replace("\\","/",dirname(__FILE__)."/includes/"); // Mod by Raymond |
| 118 | 122 | set_include_path(get_include_path() . PATH_SEPARATOR . $incPath); |
| 119 | 123 | |
| 120 | -if (!defined('ENT_COMPAT')) define('ENT_COMPAT', 2); |
|
| 121 | -if (!defined('ENT_NOQUOTES')) define('ENT_NOQUOTES', 0); |
|
| 122 | -if (!defined('ENT_QUOTES')) define('ENT_QUOTES', 3); |
|
| 124 | +if (!defined('ENT_COMPAT')) { |
|
| 125 | + define('ENT_COMPAT', 2); |
|
| 126 | +} |
|
| 127 | +if (!defined('ENT_NOQUOTES')) { |
|
| 128 | + define('ENT_NOQUOTES', 0); |
|
| 129 | +} |
|
| 130 | +if (!defined('ENT_QUOTES')) { |
|
| 131 | + define('ENT_QUOTES', 3); |
|
| 132 | +} |
|
| 123 | 133 | |
| 124 | 134 | // set the document_root :| |
| 125 | 135 | if(!isset($_SERVER['DOCUMENT_ROOT']) || empty($_SERVER['DOCUMENT_ROOT'])) { |
@@ -182,10 +192,11 @@ discard block |
||
| 182 | 192 | |
| 183 | 193 | $s = array('[+MGR_DIR+]'); |
| 184 | 194 | $r = array(MGR_DIR); |
| 185 | -foreach($_lang as $k=>$v) |
|
| 186 | -{ |
|
| 187 | - if(strpos($v,'[+')!==false) $_lang[$k] = str_replace($s, $r, $v); |
|
| 188 | -} |
|
| 195 | +foreach($_lang as $k=>$v) { |
|
| 196 | + if(strpos($v,'[+')!==false) { |
|
| 197 | + $_lang[$k] = str_replace($s, $r, $v); |
|
| 198 | + } |
|
| 199 | + } |
|
| 189 | 200 | |
| 190 | 201 | // send the charset header |
| 191 | 202 | header('Content-Type: text/html; charset='.$modx_manager_charset); |
@@ -198,7 +209,7 @@ discard block |
||
| 198 | 209 | include_once "accesscontrol.inc.php"; |
| 199 | 210 | |
| 200 | 211 | // double check the session |
| 201 | -if(!isset($_SESSION['mgrValidated'])){ |
|
| 212 | +if(!isset($_SESSION['mgrValidated'])) { |
|
| 202 | 213 | echo "Not Logged In!"; |
| 203 | 214 | exit; |
| 204 | 215 | } |
@@ -215,7 +226,9 @@ discard block |
||
| 215 | 226 | } |
| 216 | 227 | |
| 217 | 228 | // Initialize System Alert Message Queque |
| 218 | -if (!isset($_SESSION['SystemAlertMsgQueque'])) $_SESSION['SystemAlertMsgQueque'] = array(); |
|
| 229 | +if (!isset($_SESSION['SystemAlertMsgQueque'])) { |
|
| 230 | + $_SESSION['SystemAlertMsgQueque'] = array(); |
|
| 231 | +} |
|
| 219 | 232 | $SystemAlertMsgQueque = &$_SESSION['SystemAlertMsgQueque']; |
| 220 | 233 | |
| 221 | 234 | // first we check to see if this is a frameset request |
@@ -223,7 +236,7 @@ discard block |
||
| 223 | 236 | // this looks to be a top-level frameset request, so let's serve up a frameset |
| 224 | 237 | if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/frames/1.php")) { |
| 225 | 238 | include_once "media/style/".$manager_theme."/frames/1.php"; |
| 226 | - }else{ |
|
| 239 | + } else { |
|
| 227 | 240 | include_once "frames/1.php"; |
| 228 | 241 | } |
| 229 | 242 | exit; |
@@ -231,10 +244,15 @@ discard block |
||
| 231 | 244 | |
| 232 | 245 | // OK, let's retrieve the action directive from the request |
| 233 | 246 | $option = array('min_range'=>1,'max_range'=>2000); |
| 234 | -if(isset($_GET['a']) && isset($_POST['a'])) $modx->webAlertAndQuit($_lang['error_double_action']); |
|
| 235 | -elseif(isset($_GET['a'])) $action = filter_input(INPUT_GET, 'a',FILTER_VALIDATE_INT,$option); |
|
| 236 | -elseif(isset($_POST['a'])) $action = filter_input(INPUT_POST,'a',FILTER_VALIDATE_INT,$option); |
|
| 237 | -else $action = null; |
|
| 247 | +if(isset($_GET['a']) && isset($_POST['a'])) { |
|
| 248 | + $modx->webAlertAndQuit($_lang['error_double_action']); |
|
| 249 | +} elseif(isset($_GET['a'])) { |
|
| 250 | + $action = filter_input(INPUT_GET, 'a',FILTER_VALIDATE_INT,$option); |
|
| 251 | +} elseif(isset($_POST['a'])) { |
|
| 252 | + $action = filter_input(INPUT_POST,'a',FILTER_VALIDATE_INT,$option); |
|
| 253 | +} else { |
|
| 254 | + $action = null; |
|
| 255 | +} |
|
| 238 | 256 | |
| 239 | 257 | if (isset($_POST['updateMsgCount']) && $modx->hasPermission('messages')) { |
| 240 | 258 | include_once 'messageCount.inc.php'; |
@@ -264,11 +282,12 @@ discard block |
||
| 264 | 282 | $modx->invokeEvent("OnManagerPageInit", array("action" => $action)); |
| 265 | 283 | |
| 266 | 284 | // return element filepath |
| 267 | -function includeFileProcessor ($filepath,$manager_theme) { |
|
| 285 | +function includeFileProcessor ($filepath,$manager_theme) |
|
| 286 | +{ |
|
| 268 | 287 | $element = ""; |
| 269 | 288 | if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath)) { |
| 270 | 289 | $element = MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath; |
| 271 | - }else{ |
|
| 290 | + } else { |
|
| 272 | 291 | $element = $filepath; |
| 273 | 292 | } |
| 274 | 293 | return $element; |
@@ -49,32 +49,32 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | |
| 51 | 51 | // get start time |
| 52 | -$mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $tstart = $mtime; |
|
| 52 | +$mtime = microtime(); $mtime = explode(" ", $mtime); $mtime = $mtime[1] + $mtime[0]; $tstart = $mtime; |
|
| 53 | 53 | $mstart = memory_get_usage(); |
| 54 | -$self = str_replace('\\','/',__FILE__); |
|
| 55 | -$self_dir = str_replace('/index.php','',$self); |
|
| 56 | -$mgr_dir = substr($self_dir,strrpos($self_dir,'/')+1); |
|
| 57 | -$base_path = str_replace($mgr_dir . '/index.php','',$self); |
|
| 58 | -$site_mgr_path = $base_path . 'assets/cache/siteManager.php'; |
|
| 59 | -if(is_file($site_mgr_path)) include_once($site_mgr_path); |
|
| 60 | -$site_hostnames_path = $base_path . 'assets/cache/siteHostnames.php'; |
|
| 61 | -if(is_file($site_hostnames_path)) include_once($site_hostnames_path); |
|
| 62 | -if(!defined('MGR_DIR') || MGR_DIR!==$mgr_dir) { |
|
| 54 | +$self = str_replace('\\', '/', __FILE__); |
|
| 55 | +$self_dir = str_replace('/index.php', '', $self); |
|
| 56 | +$mgr_dir = substr($self_dir, strrpos($self_dir, '/') + 1); |
|
| 57 | +$base_path = str_replace($mgr_dir.'/index.php', '', $self); |
|
| 58 | +$site_mgr_path = $base_path.'assets/cache/siteManager.php'; |
|
| 59 | +if (is_file($site_mgr_path)) include_once($site_mgr_path); |
|
| 60 | +$site_hostnames_path = $base_path.'assets/cache/siteHostnames.php'; |
|
| 61 | +if (is_file($site_hostnames_path)) include_once($site_hostnames_path); |
|
| 62 | +if (!defined('MGR_DIR') || MGR_DIR !== $mgr_dir) { |
|
| 63 | 63 | $src = "<?php\n"; |
| 64 | 64 | $src .= "define('MGR_DIR', '{$mgr_dir}');\n"; |
| 65 | - $rs = file_put_contents($site_mgr_path,$src); |
|
| 66 | - if(!$rs) { |
|
| 65 | + $rs = file_put_contents($site_mgr_path, $src); |
|
| 66 | + if (!$rs) { |
|
| 67 | 67 | echo 'siteManager.php write error'; |
| 68 | 68 | exit; |
| 69 | 69 | } |
| 70 | 70 | sleep(1); |
| 71 | - header('Location:' . $_SERVER['REQUEST_URI']); |
|
| 71 | + header('Location:'.$_SERVER['REQUEST_URI']); |
|
| 72 | 72 | exit; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | // we use this to make sure files are accessed through |
| 76 | 76 | // the manager instead of seperately. |
| 77 | -if ( ! defined('IN_MANAGER_MODE')) { |
|
| 77 | +if (!defined('IN_MANAGER_MODE')) { |
|
| 78 | 78 | define('IN_MANAGER_MODE', true); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | // send anti caching headers |
| 85 | 85 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); |
| 86 | -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
|
| 86 | +header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); |
|
| 87 | 87 | header("Cache-Control: no-store, no-cache, must-revalidate"); |
| 88 | 88 | header("Cache-Control: post-check=0, pre-check=0", false); |
| 89 | 89 | header("Pragma: no-cache"); |
@@ -95,29 +95,29 @@ discard block |
||
| 95 | 95 | include_once "includes/lang/english.inc.php"; |
| 96 | 96 | |
| 97 | 97 | // check PHP version. EVO is compatible with php 5 (5.0.0+) |
| 98 | -$php_ver_comp = version_compare(phpversion(), "5.0.0"); |
|
| 98 | +$php_ver_comp = version_compare(phpversion(), "5.0.0"); |
|
| 99 | 99 | // -1 if left is less, 0 if equal, +1 if left is higher |
| 100 | -if($php_ver_comp < 0) { |
|
| 100 | +if ($php_ver_comp < 0) { |
|
| 101 | 101 | echo sprintf($_lang['php_version_check'], phpversion()); |
| 102 | 102 | exit; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | // check if iconv is installed |
| 106 | -if(!function_exists('iconv')) { |
|
| 106 | +if (!function_exists('iconv')) { |
|
| 107 | 107 | echo $_lang['iconv_not_available']; |
| 108 | 108 | exit; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | // set some runtime options |
| 112 | -$incPath = str_replace("\\","/",dirname(__FILE__)."/includes/"); // Mod by Raymond |
|
| 113 | -set_include_path(get_include_path() . PATH_SEPARATOR . $incPath); |
|
| 112 | +$incPath = str_replace("\\", "/", dirname(__FILE__)."/includes/"); // Mod by Raymond |
|
| 113 | +set_include_path(get_include_path().PATH_SEPARATOR.$incPath); |
|
| 114 | 114 | |
| 115 | 115 | if (!defined('ENT_COMPAT')) define('ENT_COMPAT', 2); |
| 116 | 116 | if (!defined('ENT_NOQUOTES')) define('ENT_NOQUOTES', 0); |
| 117 | 117 | if (!defined('ENT_QUOTES')) define('ENT_QUOTES', 3); |
| 118 | 118 | |
| 119 | 119 | // set the document_root :| |
| 120 | -if(!isset($_SERVER['DOCUMENT_ROOT']) || empty($_SERVER['DOCUMENT_ROOT'])) { |
|
| 120 | +if (!isset($_SERVER['DOCUMENT_ROOT']) || empty($_SERVER['DOCUMENT_ROOT'])) { |
|
| 121 | 121 | $_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['PATH_INFO'], "", preg_replace("/\\\\/", "/", $_SERVER['PATH_TRANSLATED']))."/"; |
| 122 | 122 | } |
| 123 | 123 | |
@@ -156,30 +156,30 @@ discard block |
||
| 156 | 156 | // Now that session is given get user settings and merge into $modx->config |
| 157 | 157 | $usersettings = $modx->getUserSettings(); |
| 158 | 158 | |
| 159 | -$settings =& $modx->config; |
|
| 159 | +$settings = & $modx->config; |
|
| 160 | 160 | extract($modx->config, EXTR_OVERWRITE); |
| 161 | 161 | |
| 162 | 162 | // now include_once different language file as english |
| 163 | -if(!isset($manager_language) || !file_exists(MODX_MANAGER_PATH."includes/lang/".$manager_language.".inc.php")) { |
|
| 163 | +if (!isset($manager_language) || !file_exists(MODX_MANAGER_PATH."includes/lang/".$manager_language.".inc.php")) { |
|
| 164 | 164 | $manager_language = "english"; // if not set, get the english language file. |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | // $length_eng_lang = count($_lang); // Not used for now, required for difference-check with other languages than english (i.e. inside installer) |
| 168 | 168 | |
| 169 | -if($manager_language!="english" && file_exists(MODX_MANAGER_PATH."includes/lang/".$manager_language.".inc.php")) { |
|
| 169 | +if ($manager_language != "english" && file_exists(MODX_MANAGER_PATH."includes/lang/".$manager_language.".inc.php")) { |
|
| 170 | 170 | include_once "lang/".$manager_language.".inc.php"; |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | // allow custom language overrides not altered by future EVO-updates |
| 174 | -if(file_exists(MODX_MANAGER_PATH."includes/lang/override/".$manager_language.".inc.php")) { |
|
| 174 | +if (file_exists(MODX_MANAGER_PATH."includes/lang/override/".$manager_language.".inc.php")) { |
|
| 175 | 175 | include_once "lang/override/".$manager_language.".inc.php"; |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | $s = array('[+MGR_DIR+]'); |
| 179 | 179 | $r = array(MGR_DIR); |
| 180 | -foreach($_lang as $k=>$v) |
|
| 180 | +foreach ($_lang as $k=>$v) |
|
| 181 | 181 | { |
| 182 | - if(strpos($v,'[+')!==false) $_lang[$k] = str_replace($s, $r, $v); |
|
| 182 | + if (strpos($v, '[+') !== false) $_lang[$k] = str_replace($s, $r, $v); |
|
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | // send the charset header |
@@ -193,19 +193,19 @@ discard block |
||
| 193 | 193 | include_once "accesscontrol.inc.php"; |
| 194 | 194 | |
| 195 | 195 | // double check the session |
| 196 | -if(!isset($_SESSION['mgrValidated'])){ |
|
| 196 | +if (!isset($_SESSION['mgrValidated'])) { |
|
| 197 | 197 | echo "Not Logged In!"; |
| 198 | 198 | exit; |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | // include_once the style variables file |
| 202 | -if(isset($manager_theme) && !isset($_style)) { |
|
| 202 | +if (isset($manager_theme) && !isset($_style)) { |
|
| 203 | 203 | $_style = array(); |
| 204 | 204 | include_once "media/style/".$manager_theme."/style.php"; |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | // check if user is allowed to access manager interface |
| 208 | -if(isset($allow_manager_access) && $allow_manager_access==0) { |
|
| 208 | +if (isset($allow_manager_access) && $allow_manager_access == 0) { |
|
| 209 | 209 | include_once "manager.lockout.inc.php"; |
| 210 | 210 | } |
| 211 | 211 | |
@@ -214,21 +214,21 @@ discard block |
||
| 214 | 214 | $SystemAlertMsgQueque = &$_SESSION['SystemAlertMsgQueque']; |
| 215 | 215 | |
| 216 | 216 | // first we check to see if this is a frameset request |
| 217 | -if(!isset($_POST['a']) && !isset($_GET['a']) && !isset($_POST['updateMsgCount'])) { |
|
| 217 | +if (!isset($_POST['a']) && !isset($_GET['a']) && !isset($_POST['updateMsgCount'])) { |
|
| 218 | 218 | // this looks to be a top-level frameset request, so let's serve up a frameset |
| 219 | - if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/frames/1.php")) { |
|
| 219 | + if (is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/frames/1.php")) { |
|
| 220 | 220 | include_once "media/style/".$manager_theme."/frames/1.php"; |
| 221 | - }else{ |
|
| 221 | + } else { |
|
| 222 | 222 | include_once "frames/1.php"; |
| 223 | 223 | } |
| 224 | 224 | exit; |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | // OK, let's retrieve the action directive from the request |
| 228 | -$option = array('min_range'=>1,'max_range'=>2000); |
|
| 229 | -if(isset($_GET['a']) && isset($_POST['a'])) $modx->webAlertAndQuit($_lang['error_double_action']); |
|
| 230 | -elseif(isset($_GET['a'])) $action = filter_input(INPUT_GET, 'a',FILTER_VALIDATE_INT,$option); |
|
| 231 | -elseif(isset($_POST['a'])) $action = filter_input(INPUT_POST,'a',FILTER_VALIDATE_INT,$option); |
|
| 228 | +$option = array('min_range'=>1, 'max_range'=>2000); |
|
| 229 | +if (isset($_GET['a']) && isset($_POST['a'])) $modx->webAlertAndQuit($_lang['error_double_action']); |
|
| 230 | +elseif (isset($_GET['a'])) $action = filter_input(INPUT_GET, 'a', FILTER_VALIDATE_INT, $option); |
|
| 231 | +elseif (isset($_POST['a'])) $action = filter_input(INPUT_POST, 'a', FILTER_VALIDATE_INT, $option); |
|
| 232 | 232 | else $action = null; |
| 233 | 233 | |
| 234 | 234 | if (isset($_POST['updateMsgCount']) && $modx->hasPermission('messages')) { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | $modx->getManagerApi()->action = $action; |
| 240 | 240 | |
| 241 | 241 | // attempt to foil some simple types of CSRF attacks |
| 242 | -if (isset($modx->config['validate_referer']) && (int)$modx->config['validate_referer']) { |
|
| 242 | +if (isset($modx->config['validate_referer']) && (int) $modx->config['validate_referer']) { |
|
| 243 | 243 | if (isset($_SERVER['HTTP_REFERER'])) { |
| 244 | 244 | $referer = $_SERVER['HTTP_REFERER']; |
| 245 | 245 | |
@@ -259,11 +259,11 @@ discard block |
||
| 259 | 259 | $modx->invokeEvent("OnManagerPageInit", array("action" => $action)); |
| 260 | 260 | |
| 261 | 261 | // return element filepath |
| 262 | -function includeFileProcessor ($filepath,$manager_theme) { |
|
| 262 | +function includeFileProcessor($filepath, $manager_theme){ |
|
| 263 | 263 | $element = ""; |
| 264 | - if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath)) { |
|
| 264 | + if (is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath)) { |
|
| 265 | 265 | $element = MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath; |
| 266 | - }else{ |
|
| 266 | + } else { |
|
| 267 | 267 | $element = $filepath; |
| 268 | 268 | } |
| 269 | 269 | return $element; |
@@ -278,341 +278,341 @@ discard block |
||
| 278 | 278 | /********************************************************************/ |
| 279 | 279 | case 1 : |
| 280 | 280 | // get the requested frame |
| 281 | - $frame = preg_replace('/[^a-z0-9]/i','',$_REQUEST['f']); |
|
| 282 | - if($frame>9) { |
|
| 283 | - $enable_debug=false; // this is to stop the debug thingy being attached to the framesets |
|
| 281 | + $frame = preg_replace('/[^a-z0-9]/i', '', $_REQUEST['f']); |
|
| 282 | + if ($frame > 9) { |
|
| 283 | + $enable_debug = false; // this is to stop the debug thingy being attached to the framesets |
|
| 284 | 284 | } |
| 285 | - include_once(includeFileProcessor("frames/".$frame.".php",$manager_theme)); |
|
| 285 | + include_once(includeFileProcessor("frames/".$frame.".php", $manager_theme)); |
|
| 286 | 286 | break; |
| 287 | 287 | /********************************************************************/ |
| 288 | 288 | /* show the homepage */ |
| 289 | 289 | /********************************************************************/ |
| 290 | 290 | case 2: |
| 291 | 291 | // get the home page |
| 292 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 293 | - include_once(includeFileProcessor("actions/welcome.static.php",$manager_theme)); |
|
| 294 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 292 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 293 | + include_once(includeFileProcessor("actions/welcome.static.php", $manager_theme)); |
|
| 294 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 295 | 295 | break; |
| 296 | 296 | /********************************************************************/ |
| 297 | 297 | /* document data */ |
| 298 | 298 | /********************************************************************/ |
| 299 | 299 | case 3: |
| 300 | 300 | // get the page to show document's data |
| 301 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 302 | - include_once(includeFileProcessor("actions/document_data.static.php",$manager_theme)); |
|
| 303 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 301 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 302 | + include_once(includeFileProcessor("actions/document_data.static.php", $manager_theme)); |
|
| 303 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 304 | 304 | break; |
| 305 | 305 | /********************************************************************/ |
| 306 | 306 | /* content management */ |
| 307 | 307 | /********************************************************************/ |
| 308 | 308 | case 85: |
| 309 | 309 | // get the mutate page for adding a folder |
| 310 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 311 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 312 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 310 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 311 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php", $manager_theme)); |
|
| 312 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 313 | 313 | break; |
| 314 | 314 | case 27: |
| 315 | 315 | // get the mutate page for changing content |
| 316 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 317 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 318 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 316 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 317 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php", $manager_theme)); |
|
| 318 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 319 | 319 | break; |
| 320 | 320 | case 4: |
| 321 | 321 | // get the mutate page for adding content |
| 322 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 323 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 324 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 322 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 323 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php", $manager_theme)); |
|
| 324 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 325 | 325 | break; |
| 326 | 326 | case 5: |
| 327 | 327 | // get the save processor |
| 328 | - include_once(includeFileProcessor("processors/save_content.processor.php",$manager_theme)); |
|
| 328 | + include_once(includeFileProcessor("processors/save_content.processor.php", $manager_theme)); |
|
| 329 | 329 | break; |
| 330 | 330 | case 6: |
| 331 | 331 | // get the delete processor |
| 332 | - include_once(includeFileProcessor("processors/delete_content.processor.php",$manager_theme)); |
|
| 332 | + include_once(includeFileProcessor("processors/delete_content.processor.php", $manager_theme)); |
|
| 333 | 333 | break; |
| 334 | 334 | case 63: |
| 335 | 335 | // get the undelete processor |
| 336 | - include_once(includeFileProcessor("processors/undelete_content.processor.php",$manager_theme)); |
|
| 336 | + include_once(includeFileProcessor("processors/undelete_content.processor.php", $manager_theme)); |
|
| 337 | 337 | break; |
| 338 | 338 | case 51: |
| 339 | 339 | // get the move action |
| 340 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 341 | - include_once(includeFileProcessor("actions/move_document.dynamic.php",$manager_theme)); |
|
| 342 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 340 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 341 | + include_once(includeFileProcessor("actions/move_document.dynamic.php", $manager_theme)); |
|
| 342 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 343 | 343 | break; |
| 344 | 344 | case 52: |
| 345 | 345 | // get the move document processor |
| 346 | - include_once(includeFileProcessor("processors/move_document.processor.php",$manager_theme)); |
|
| 346 | + include_once(includeFileProcessor("processors/move_document.processor.php", $manager_theme)); |
|
| 347 | 347 | break; |
| 348 | 348 | case 61: |
| 349 | 349 | // get the processor for publishing content |
| 350 | - include_once(includeFileProcessor("processors/publish_content.processor.php",$manager_theme)); |
|
| 350 | + include_once(includeFileProcessor("processors/publish_content.processor.php", $manager_theme)); |
|
| 351 | 351 | break; |
| 352 | 352 | case 62: |
| 353 | 353 | // get the processor for publishing content |
| 354 | - include_once(includeFileProcessor("processors/unpublish_content.processor.php",$manager_theme)); |
|
| 354 | + include_once(includeFileProcessor("processors/unpublish_content.processor.php", $manager_theme)); |
|
| 355 | 355 | break; |
| 356 | 356 | case 56: |
| 357 | 357 | // get the sort menuindex action |
| 358 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 359 | - include_once(includeFileProcessor("actions/mutate_menuindex_sort.dynamic.php",$manager_theme)); |
|
| 360 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 358 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 359 | + include_once(includeFileProcessor("actions/mutate_menuindex_sort.dynamic.php", $manager_theme)); |
|
| 360 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 361 | 361 | break; |
| 362 | 362 | /********************************************************************/ |
| 363 | 363 | /* show the wait page - gives the tree time to refresh (hopefully) */ |
| 364 | 364 | /********************************************************************/ |
| 365 | 365 | case 7: |
| 366 | 366 | // get the wait page (so the tree can reload) |
| 367 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 368 | - include_once(includeFileProcessor("actions/wait.static.php",$manager_theme)); |
|
| 369 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 367 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 368 | + include_once(includeFileProcessor("actions/wait.static.php", $manager_theme)); |
|
| 369 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 370 | 370 | break; |
| 371 | 371 | /********************************************************************/ |
| 372 | 372 | /* let the user log out */ |
| 373 | 373 | /********************************************************************/ |
| 374 | 374 | case 8: |
| 375 | 375 | // get the logout processor |
| 376 | - include_once(includeFileProcessor("processors/logout.processor.php",$manager_theme)); |
|
| 376 | + include_once(includeFileProcessor("processors/logout.processor.php", $manager_theme)); |
|
| 377 | 377 | break; |
| 378 | 378 | /********************************************************************/ |
| 379 | 379 | /* user management */ |
| 380 | 380 | /********************************************************************/ |
| 381 | 381 | case 87: |
| 382 | 382 | // get the new web user page |
| 383 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 384 | - include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php",$manager_theme)); |
|
| 385 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 383 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 384 | + include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php", $manager_theme)); |
|
| 385 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 386 | 386 | break; |
| 387 | 387 | case 88: |
| 388 | 388 | // get the edit web user page |
| 389 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 390 | - include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php",$manager_theme)); |
|
| 391 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 389 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 390 | + include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php", $manager_theme)); |
|
| 391 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 392 | 392 | break; |
| 393 | 393 | case 89: |
| 394 | 394 | // get the save web user processor |
| 395 | - include_once(includeFileProcessor("processors/save_web_user.processor.php",$manager_theme)); |
|
| 395 | + include_once(includeFileProcessor("processors/save_web_user.processor.php", $manager_theme)); |
|
| 396 | 396 | break; |
| 397 | 397 | case 90: |
| 398 | 398 | // get the delete web user page |
| 399 | - include_once(includeFileProcessor("processors/delete_web_user.processor.php",$manager_theme)); |
|
| 399 | + include_once(includeFileProcessor("processors/delete_web_user.processor.php", $manager_theme)); |
|
| 400 | 400 | break; |
| 401 | 401 | case 11: |
| 402 | 402 | // get the new user page |
| 403 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 404 | - include_once(includeFileProcessor("actions/mutate_user.dynamic.php",$manager_theme)); |
|
| 405 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 403 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 404 | + include_once(includeFileProcessor("actions/mutate_user.dynamic.php", $manager_theme)); |
|
| 405 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 406 | 406 | break; |
| 407 | 407 | case 12: |
| 408 | 408 | // get the edit user page |
| 409 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 410 | - include_once(includeFileProcessor("actions/mutate_user.dynamic.php",$manager_theme)); |
|
| 411 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 409 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 410 | + include_once(includeFileProcessor("actions/mutate_user.dynamic.php", $manager_theme)); |
|
| 411 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 412 | 412 | break; |
| 413 | 413 | case 32: |
| 414 | 414 | // get the save user processor |
| 415 | - include_once(includeFileProcessor("processors/save_user.processor.php",$manager_theme)); |
|
| 415 | + include_once(includeFileProcessor("processors/save_user.processor.php", $manager_theme)); |
|
| 416 | 416 | break; |
| 417 | 417 | case 28: |
| 418 | 418 | // get the change password page |
| 419 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 420 | - include_once(includeFileProcessor("actions/mutate_password.dynamic.php",$manager_theme)); |
|
| 421 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 419 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 420 | + include_once(includeFileProcessor("actions/mutate_password.dynamic.php", $manager_theme)); |
|
| 421 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 422 | 422 | break; |
| 423 | 423 | case 34: |
| 424 | 424 | // get the save new password page |
| 425 | - include_once(includeFileProcessor("processors/save_password.processor.php",$manager_theme)); |
|
| 425 | + include_once(includeFileProcessor("processors/save_password.processor.php", $manager_theme)); |
|
| 426 | 426 | break; |
| 427 | 427 | case 33: |
| 428 | 428 | // get the delete user page |
| 429 | - include_once(includeFileProcessor("processors/delete_user.processor.php",$manager_theme)); |
|
| 429 | + include_once(includeFileProcessor("processors/delete_user.processor.php", $manager_theme)); |
|
| 430 | 430 | break; |
| 431 | 431 | /********************************************************************/ |
| 432 | 432 | /* role management */ |
| 433 | 433 | /********************************************************************/ |
| 434 | 434 | case 38: |
| 435 | 435 | // get the new role page |
| 436 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 437 | - include_once(includeFileProcessor("actions/mutate_role.dynamic.php",$manager_theme)); |
|
| 438 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 436 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 437 | + include_once(includeFileProcessor("actions/mutate_role.dynamic.php", $manager_theme)); |
|
| 438 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 439 | 439 | break; |
| 440 | 440 | case 35: |
| 441 | 441 | // get the edit role page |
| 442 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 443 | - include_once(includeFileProcessor("actions/mutate_role.dynamic.php",$manager_theme)); |
|
| 444 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 442 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 443 | + include_once(includeFileProcessor("actions/mutate_role.dynamic.php", $manager_theme)); |
|
| 444 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 445 | 445 | break; |
| 446 | 446 | case 36: |
| 447 | 447 | // get the save role page |
| 448 | - include_once(includeFileProcessor("processors/save_role.processor.php",$manager_theme)); |
|
| 448 | + include_once(includeFileProcessor("processors/save_role.processor.php", $manager_theme)); |
|
| 449 | 449 | break; |
| 450 | 450 | case 37: |
| 451 | 451 | // get the delete role page |
| 452 | - include_once(includeFileProcessor("processors/delete_role.processor.php",$manager_theme)); |
|
| 452 | + include_once(includeFileProcessor("processors/delete_role.processor.php", $manager_theme)); |
|
| 453 | 453 | break; |
| 454 | 454 | /********************************************************************/ |
| 455 | 455 | /* category management */ |
| 456 | 456 | /********************************************************************/ |
| 457 | 457 | case 120: |
| 458 | 458 | // get the edit category page |
| 459 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 460 | - include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 461 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 459 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 460 | + include_once(includeFileProcessor("actions/mutate_categories.dynamic.php", $manager_theme)); |
|
| 461 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 462 | 462 | break; |
| 463 | 463 | case 121: |
| 464 | 464 | // for ajax-requests |
| 465 | - include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 465 | + include_once(includeFileProcessor("actions/mutate_categories.dynamic.php", $manager_theme)); |
|
| 466 | 466 | break; |
| 467 | 467 | /********************************************************************/ |
| 468 | 468 | /* template management */ |
| 469 | 469 | /********************************************************************/ |
| 470 | 470 | case 16: |
| 471 | 471 | // get the edit template action |
| 472 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 473 | - include_once(includeFileProcessor("actions/mutate_templates.dynamic.php",$manager_theme)); |
|
| 474 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 472 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 473 | + include_once(includeFileProcessor("actions/mutate_templates.dynamic.php", $manager_theme)); |
|
| 474 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 475 | 475 | break; |
| 476 | 476 | case 19: |
| 477 | 477 | // get the new template action |
| 478 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 479 | - include_once(includeFileProcessor("actions/mutate_templates.dynamic.php",$manager_theme)); |
|
| 480 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 478 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 479 | + include_once(includeFileProcessor("actions/mutate_templates.dynamic.php", $manager_theme)); |
|
| 480 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 481 | 481 | break; |
| 482 | 482 | case 20: |
| 483 | 483 | // get the save processor |
| 484 | - include_once(includeFileProcessor("processors/save_template.processor.php",$manager_theme)); |
|
| 484 | + include_once(includeFileProcessor("processors/save_template.processor.php", $manager_theme)); |
|
| 485 | 485 | break; |
| 486 | 486 | case 21: |
| 487 | 487 | // get the delete processor |
| 488 | - include_once(includeFileProcessor("processors/delete_template.processor.php",$manager_theme)); |
|
| 488 | + include_once(includeFileProcessor("processors/delete_template.processor.php", $manager_theme)); |
|
| 489 | 489 | break; |
| 490 | 490 | case 96: |
| 491 | 491 | // get the duplicate template processor |
| 492 | - include_once(includeFileProcessor("processors/duplicate_template.processor.php",$manager_theme)); |
|
| 492 | + include_once(includeFileProcessor("processors/duplicate_template.processor.php", $manager_theme)); |
|
| 493 | 493 | break; |
| 494 | 494 | case 117: |
| 495 | 495 | // change the tv rank for selected template |
| 496 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 497 | - include_once(includeFileProcessor("actions/mutate_template_tv_rank.dynamic.php",$manager_theme)); |
|
| 498 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 496 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 497 | + include_once(includeFileProcessor("actions/mutate_template_tv_rank.dynamic.php", $manager_theme)); |
|
| 498 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 499 | 499 | break; |
| 500 | 500 | /********************************************************************/ |
| 501 | 501 | /* snippet management */ |
| 502 | 502 | /********************************************************************/ |
| 503 | 503 | case 22: |
| 504 | 504 | // get the edit snippet action |
| 505 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 506 | - include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php",$manager_theme)); |
|
| 507 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 505 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 506 | + include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php", $manager_theme)); |
|
| 507 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 508 | 508 | break; |
| 509 | 509 | case 23: |
| 510 | 510 | // get the new snippet action |
| 511 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 512 | - include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php",$manager_theme)); |
|
| 513 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 511 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 512 | + include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php", $manager_theme)); |
|
| 513 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 514 | 514 | break; |
| 515 | 515 | case 24: |
| 516 | 516 | // get the save processor |
| 517 | - include_once(includeFileProcessor("processors/save_snippet.processor.php",$manager_theme)); |
|
| 517 | + include_once(includeFileProcessor("processors/save_snippet.processor.php", $manager_theme)); |
|
| 518 | 518 | break; |
| 519 | 519 | case 25: |
| 520 | 520 | // get the delete processor |
| 521 | - include_once(includeFileProcessor("processors/delete_snippet.processor.php",$manager_theme)); |
|
| 521 | + include_once(includeFileProcessor("processors/delete_snippet.processor.php", $manager_theme)); |
|
| 522 | 522 | break; |
| 523 | 523 | case 98: |
| 524 | 524 | // get the duplicate processor |
| 525 | - include_once(includeFileProcessor("processors/duplicate_snippet.processor.php",$manager_theme)); |
|
| 525 | + include_once(includeFileProcessor("processors/duplicate_snippet.processor.php", $manager_theme)); |
|
| 526 | 526 | break; |
| 527 | 527 | /********************************************************************/ |
| 528 | 528 | /* htmlsnippet management */ |
| 529 | 529 | /********************************************************************/ |
| 530 | 530 | case 78: |
| 531 | 531 | // get the edit snippet action |
| 532 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 533 | - include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php",$manager_theme)); |
|
| 534 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 532 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 533 | + include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php", $manager_theme)); |
|
| 534 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 535 | 535 | break; |
| 536 | 536 | case 77: |
| 537 | 537 | // get the new snippet action |
| 538 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 539 | - include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php",$manager_theme)); |
|
| 540 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 538 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 539 | + include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php", $manager_theme)); |
|
| 540 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 541 | 541 | break; |
| 542 | 542 | case 79: |
| 543 | 543 | // get the save processor |
| 544 | - include_once(includeFileProcessor("processors/save_htmlsnippet.processor.php",$manager_theme)); |
|
| 544 | + include_once(includeFileProcessor("processors/save_htmlsnippet.processor.php", $manager_theme)); |
|
| 545 | 545 | break; |
| 546 | 546 | case 80: |
| 547 | 547 | // get the delete processor |
| 548 | - include_once(includeFileProcessor("processors/delete_htmlsnippet.processor.php",$manager_theme)); |
|
| 548 | + include_once(includeFileProcessor("processors/delete_htmlsnippet.processor.php", $manager_theme)); |
|
| 549 | 549 | break; |
| 550 | 550 | case 97: |
| 551 | 551 | // get the duplicate processor |
| 552 | - include_once(includeFileProcessor("processors/duplicate_htmlsnippet.processor.php",$manager_theme)); |
|
| 552 | + include_once(includeFileProcessor("processors/duplicate_htmlsnippet.processor.php", $manager_theme)); |
|
| 553 | 553 | break; |
| 554 | 554 | /********************************************************************/ |
| 555 | 555 | /* show the credits page */ |
| 556 | 556 | /********************************************************************/ |
| 557 | 557 | case 18: |
| 558 | 558 | // get the credits page |
| 559 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 560 | - include_once(includeFileProcessor("actions/credits.static.php",$manager_theme)); |
|
| 561 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 559 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 560 | + include_once(includeFileProcessor("actions/credits.static.php", $manager_theme)); |
|
| 561 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 562 | 562 | break; |
| 563 | 563 | /********************************************************************/ |
| 564 | 564 | /* empty cache & synchronisation */ |
| 565 | 565 | /********************************************************************/ |
| 566 | 566 | case 26: |
| 567 | 567 | // get the cache emptying processor |
| 568 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 569 | - include_once(includeFileProcessor("actions/refresh_site.dynamic.php",$manager_theme)); |
|
| 570 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 568 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 569 | + include_once(includeFileProcessor("actions/refresh_site.dynamic.php", $manager_theme)); |
|
| 570 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 571 | 571 | break; |
| 572 | 572 | /********************************************************************/ |
| 573 | 573 | /* Module management */ |
| 574 | 574 | /********************************************************************/ |
| 575 | 575 | case 106: |
| 576 | 576 | // get module management |
| 577 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 578 | - include_once(includeFileProcessor("actions/modules.static.php",$manager_theme)); |
|
| 579 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 577 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 578 | + include_once(includeFileProcessor("actions/modules.static.php", $manager_theme)); |
|
| 579 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 580 | 580 | break; |
| 581 | 581 | case 107: |
| 582 | 582 | // get the new module action |
| 583 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 584 | - include_once(includeFileProcessor("actions/mutate_module.dynamic.php",$manager_theme)); |
|
| 585 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 583 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 584 | + include_once(includeFileProcessor("actions/mutate_module.dynamic.php", $manager_theme)); |
|
| 585 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 586 | 586 | break; |
| 587 | 587 | case 108: |
| 588 | 588 | // get the edit module action |
| 589 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 590 | - include_once(includeFileProcessor("actions/mutate_module.dynamic.php",$manager_theme)); |
|
| 591 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 589 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 590 | + include_once(includeFileProcessor("actions/mutate_module.dynamic.php", $manager_theme)); |
|
| 591 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 592 | 592 | break; |
| 593 | 593 | case 109: |
| 594 | 594 | // get the save processor |
| 595 | - include_once(includeFileProcessor("processors/save_module.processor.php",$manager_theme)); |
|
| 595 | + include_once(includeFileProcessor("processors/save_module.processor.php", $manager_theme)); |
|
| 596 | 596 | break; |
| 597 | 597 | case 110: |
| 598 | 598 | // get the delete processor |
| 599 | - include_once(includeFileProcessor("processors/delete_module.processor.php",$manager_theme)); |
|
| 599 | + include_once(includeFileProcessor("processors/delete_module.processor.php", $manager_theme)); |
|
| 600 | 600 | break; |
| 601 | 601 | case 111: |
| 602 | 602 | // get the duplicate processor |
| 603 | - include_once(includeFileProcessor("processors/duplicate_module.processor.php",$manager_theme)); |
|
| 603 | + include_once(includeFileProcessor("processors/duplicate_module.processor.php", $manager_theme)); |
|
| 604 | 604 | break; |
| 605 | 605 | case 112: |
| 606 | 606 | // execute/run the module |
| 607 | 607 | //include_once "header.inc.php"; |
| 608 | - include_once(includeFileProcessor("processors/execute_module.processor.php",$manager_theme)); |
|
| 608 | + include_once(includeFileProcessor("processors/execute_module.processor.php", $manager_theme)); |
|
| 609 | 609 | //include_once "footer.inc.php"; |
| 610 | 610 | break; |
| 611 | 611 | case 113: |
| 612 | 612 | // get the module resources (dependencies) action |
| 613 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 614 | - include_once(includeFileProcessor("actions/mutate_module_resources.dynamic.php",$manager_theme)); |
|
| 615 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 613 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 614 | + include_once(includeFileProcessor("actions/mutate_module_resources.dynamic.php", $manager_theme)); |
|
| 615 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 616 | 616 | break; |
| 617 | 617 | /********************************************************************/ |
| 618 | 618 | /* plugin management */ |
@@ -620,46 +620,46 @@ discard block |
||
| 620 | 620 | case 100: |
| 621 | 621 | // change the plugin priority |
| 622 | 622 | //include_once "header.inc.php"; - in action file |
| 623 | - include_once(includeFileProcessor("actions/mutate_plugin_priority.dynamic.php",$manager_theme)); |
|
| 624 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 623 | + include_once(includeFileProcessor("actions/mutate_plugin_priority.dynamic.php", $manager_theme)); |
|
| 624 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 625 | 625 | break; |
| 626 | 626 | case 101: |
| 627 | 627 | // get the new plugin action |
| 628 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 629 | - include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php",$manager_theme)); |
|
| 630 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 628 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 629 | + include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php", $manager_theme)); |
|
| 630 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 631 | 631 | break; |
| 632 | 632 | case 102: |
| 633 | 633 | // get the edit plugin action |
| 634 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 635 | - include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php",$manager_theme)); |
|
| 636 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 634 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 635 | + include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php", $manager_theme)); |
|
| 636 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 637 | 637 | break; |
| 638 | 638 | case 103: |
| 639 | 639 | // get the save processor |
| 640 | - include_once(includeFileProcessor("processors/save_plugin.processor.php",$manager_theme)); |
|
| 640 | + include_once(includeFileProcessor("processors/save_plugin.processor.php", $manager_theme)); |
|
| 641 | 641 | break; |
| 642 | 642 | case 104: |
| 643 | 643 | // get the delete processor |
| 644 | - include_once(includeFileProcessor("processors/delete_plugin.processor.php",$manager_theme)); |
|
| 644 | + include_once(includeFileProcessor("processors/delete_plugin.processor.php", $manager_theme)); |
|
| 645 | 645 | break; |
| 646 | 646 | case 105: |
| 647 | 647 | // get the duplicate processor |
| 648 | - include_once(includeFileProcessor("processors/duplicate_plugin.processor.php",$manager_theme)); |
|
| 648 | + include_once(includeFileProcessor("processors/duplicate_plugin.processor.php", $manager_theme)); |
|
| 649 | 649 | break; |
| 650 | 650 | case 119: |
| 651 | 651 | // get the purge processor |
| 652 | - include_once(includeFileProcessor("processors/purge_plugin.processor.php",$manager_theme)); |
|
| 652 | + include_once(includeFileProcessor("processors/purge_plugin.processor.php", $manager_theme)); |
|
| 653 | 653 | break; |
| 654 | 654 | /********************************************************************/ |
| 655 | 655 | /* view phpinfo */ |
| 656 | 656 | /********************************************************************/ |
| 657 | 657 | case 200: |
| 658 | 658 | // show phpInfo |
| 659 | - if($modx->hasPermission('logs')) { |
|
| 660 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 661 | - include_once(includeFileProcessor("actions/phpinfo.static.php",$manager_theme)); |
|
| 662 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 659 | + if ($modx->hasPermission('logs')) { |
|
| 660 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 661 | + include_once(includeFileProcessor("actions/phpinfo.static.php", $manager_theme)); |
|
| 662 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 663 | 663 | } |
| 664 | 664 | break; |
| 665 | 665 | /********************************************************************/ |
@@ -667,320 +667,320 @@ discard block |
||
| 667 | 667 | /********************************************************************/ |
| 668 | 668 | case 29: |
| 669 | 669 | // get the error page |
| 670 | - include_once(includeFileProcessor("actions/error_dialog.static.php",$manager_theme)); |
|
| 670 | + include_once(includeFileProcessor("actions/error_dialog.static.php", $manager_theme)); |
|
| 671 | 671 | break; |
| 672 | 672 | /********************************************************************/ |
| 673 | 673 | /* file manager */ |
| 674 | 674 | /********************************************************************/ |
| 675 | 675 | case 31: |
| 676 | 676 | // get the page to manage files |
| 677 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 678 | - include_once(includeFileProcessor("actions/files.dynamic.php",$manager_theme)); |
|
| 679 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 677 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 678 | + include_once(includeFileProcessor("actions/files.dynamic.php", $manager_theme)); |
|
| 679 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 680 | 680 | break; |
| 681 | 681 | /********************************************************************/ |
| 682 | 682 | /* access permissions */ |
| 683 | 683 | /********************************************************************/ |
| 684 | 684 | case 40: |
| 685 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 686 | - include_once(includeFileProcessor("actions/access_permissions.dynamic.php",$manager_theme)); |
|
| 687 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 685 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 686 | + include_once(includeFileProcessor("actions/access_permissions.dynamic.php", $manager_theme)); |
|
| 687 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 688 | 688 | break; |
| 689 | 689 | case 91: |
| 690 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 691 | - include_once(includeFileProcessor("actions/web_access_permissions.dynamic.php",$manager_theme)); |
|
| 692 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 690 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 691 | + include_once(includeFileProcessor("actions/web_access_permissions.dynamic.php", $manager_theme)); |
|
| 692 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 693 | 693 | break; |
| 694 | 694 | /********************************************************************/ |
| 695 | 695 | /* access groups processor */ |
| 696 | 696 | /********************************************************************/ |
| 697 | 697 | case 41: |
| 698 | - include_once(includeFileProcessor("processors/access_groups.processor.php",$manager_theme)); |
|
| 698 | + include_once(includeFileProcessor("processors/access_groups.processor.php", $manager_theme)); |
|
| 699 | 699 | break; |
| 700 | 700 | case 92: |
| 701 | - include_once(includeFileProcessor("processors/web_access_groups.processor.php",$manager_theme)); |
|
| 701 | + include_once(includeFileProcessor("processors/web_access_groups.processor.php", $manager_theme)); |
|
| 702 | 702 | break; |
| 703 | 703 | /********************************************************************/ |
| 704 | 704 | /* settings editor */ |
| 705 | 705 | /********************************************************************/ |
| 706 | 706 | case 17: |
| 707 | 707 | // get the settings editor |
| 708 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 709 | - include_once(includeFileProcessor("actions/mutate_settings.dynamic.php",$manager_theme)); |
|
| 710 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 708 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 709 | + include_once(includeFileProcessor("actions/mutate_settings.dynamic.php", $manager_theme)); |
|
| 710 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 711 | 711 | break; |
| 712 | 712 | case 118: |
| 713 | 713 | // call settings ajax include |
| 714 | 714 | ob_clean(); |
| 715 | - include_once(includeFileProcessor("includes/mutate_settings.ajax.php",$manager_theme)); |
|
| 715 | + include_once(includeFileProcessor("includes/mutate_settings.ajax.php", $manager_theme)); |
|
| 716 | 716 | break; |
| 717 | 717 | /********************************************************************/ |
| 718 | 718 | /* save settings */ |
| 719 | 719 | /********************************************************************/ |
| 720 | 720 | case 30: |
| 721 | 721 | // get the save settings processor |
| 722 | - include_once(includeFileProcessor("processors/save_settings.processor.php",$manager_theme)); |
|
| 722 | + include_once(includeFileProcessor("processors/save_settings.processor.php", $manager_theme)); |
|
| 723 | 723 | break; |
| 724 | 724 | /********************************************************************/ |
| 725 | 725 | /* system information */ |
| 726 | 726 | /********************************************************************/ |
| 727 | 727 | case 53: |
| 728 | 728 | // get the settings editor |
| 729 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 730 | - include_once(includeFileProcessor("actions/sysinfo.static.php",$manager_theme)); |
|
| 731 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 729 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 730 | + include_once(includeFileProcessor("actions/sysinfo.static.php", $manager_theme)); |
|
| 731 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 732 | 732 | break; |
| 733 | 733 | /********************************************************************/ |
| 734 | 734 | /* optimise table */ |
| 735 | 735 | /********************************************************************/ |
| 736 | 736 | case 54: |
| 737 | 737 | // get the table optimizer/truncate processor |
| 738 | - include_once(includeFileProcessor("processors/optimize_table.processor.php",$manager_theme)); |
|
| 738 | + include_once(includeFileProcessor("processors/optimize_table.processor.php", $manager_theme)); |
|
| 739 | 739 | break; |
| 740 | 740 | /********************************************************************/ |
| 741 | 741 | /* view logging */ |
| 742 | 742 | /********************************************************************/ |
| 743 | 743 | case 13: |
| 744 | 744 | // view logging |
| 745 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 746 | - include_once(includeFileProcessor("actions/logging.static.php",$manager_theme)); |
|
| 747 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 745 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 746 | + include_once(includeFileProcessor("actions/logging.static.php", $manager_theme)); |
|
| 747 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 748 | 748 | break; |
| 749 | 749 | /********************************************************************/ |
| 750 | 750 | /* empty logs */ |
| 751 | 751 | /********************************************************************/ |
| 752 | 752 | case 55: |
| 753 | 753 | // get the settings editor |
| 754 | - include_once(includeFileProcessor("processors/empty_table.processor.php",$manager_theme)); |
|
| 754 | + include_once(includeFileProcessor("processors/empty_table.processor.php", $manager_theme)); |
|
| 755 | 755 | break; |
| 756 | 756 | /********************************************************************/ |
| 757 | 757 | /* calls test page */ |
| 758 | 758 | /********************************************************************/ |
| 759 | 759 | case 999: |
| 760 | 760 | // get the test page |
| 761 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 762 | - include_once(includeFileProcessor("test_page.php",$manager_theme)); |
|
| 763 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 761 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 762 | + include_once(includeFileProcessor("test_page.php", $manager_theme)); |
|
| 763 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 764 | 764 | break; |
| 765 | 765 | /********************************************************************/ |
| 766 | 766 | /* Empty recycle bin */ |
| 767 | 767 | /********************************************************************/ |
| 768 | 768 | case 64: |
| 769 | 769 | // get the Recycle bin emptier |
| 770 | - include_once(includeFileProcessor("processors/remove_content.processor.php",$manager_theme)); |
|
| 770 | + include_once(includeFileProcessor("processors/remove_content.processor.php", $manager_theme)); |
|
| 771 | 771 | break; |
| 772 | 772 | /********************************************************************/ |
| 773 | 773 | /* Messages */ |
| 774 | 774 | /********************************************************************/ |
| 775 | 775 | case 10: |
| 776 | 776 | // get the messages page |
| 777 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 778 | - include_once(includeFileProcessor("actions/messages.static.php",$manager_theme)); |
|
| 779 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 777 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 778 | + include_once(includeFileProcessor("actions/messages.static.php", $manager_theme)); |
|
| 779 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 780 | 780 | break; |
| 781 | 781 | /********************************************************************/ |
| 782 | 782 | /* Delete a message */ |
| 783 | 783 | /********************************************************************/ |
| 784 | 784 | case 65: |
| 785 | 785 | // get the message deleter |
| 786 | - include_once(includeFileProcessor("processors/delete_message.processor.php",$manager_theme)); |
|
| 786 | + include_once(includeFileProcessor("processors/delete_message.processor.php", $manager_theme)); |
|
| 787 | 787 | break; |
| 788 | 788 | /********************************************************************/ |
| 789 | 789 | /* Send a message */ |
| 790 | 790 | /********************************************************************/ |
| 791 | 791 | case 66: |
| 792 | 792 | // get the message deleter |
| 793 | - include_once(includeFileProcessor("processors/send_message.processor.php",$manager_theme)); |
|
| 793 | + include_once(includeFileProcessor("processors/send_message.processor.php", $manager_theme)); |
|
| 794 | 794 | break; |
| 795 | 795 | /********************************************************************/ |
| 796 | 796 | /* Remove locks */ |
| 797 | 797 | /********************************************************************/ |
| 798 | 798 | case 67: |
| 799 | 799 | // get the lock remover |
| 800 | - include_once(includeFileProcessor("processors/remove_locks.processor.php",$manager_theme)); |
|
| 800 | + include_once(includeFileProcessor("processors/remove_locks.processor.php", $manager_theme)); |
|
| 801 | 801 | break; |
| 802 | 802 | /********************************************************************/ |
| 803 | 803 | /* Site schedule */ |
| 804 | 804 | /********************************************************************/ |
| 805 | 805 | case 70: |
| 806 | 806 | // get the schedule page |
| 807 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 808 | - include_once(includeFileProcessor("actions/site_schedule.static.php",$manager_theme)); |
|
| 809 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 807 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 808 | + include_once(includeFileProcessor("actions/site_schedule.static.php", $manager_theme)); |
|
| 809 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 810 | 810 | break; |
| 811 | 811 | /********************************************************************/ |
| 812 | 812 | /* Search */ |
| 813 | 813 | /********************************************************************/ |
| 814 | 814 | case 71: |
| 815 | 815 | // get the search page |
| 816 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 817 | - include_once(includeFileProcessor("actions/search.static.php",$manager_theme)); |
|
| 818 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 816 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 817 | + include_once(includeFileProcessor("actions/search.static.php", $manager_theme)); |
|
| 818 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 819 | 819 | break; |
| 820 | 820 | /********************************************************************/ |
| 821 | 821 | /* About */ |
| 822 | 822 | /********************************************************************/ |
| 823 | 823 | case 59: |
| 824 | 824 | // get the about page |
| 825 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 826 | - include_once(includeFileProcessor("actions/about.static.php",$manager_theme)); |
|
| 827 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 825 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 826 | + include_once(includeFileProcessor("actions/about.static.php", $manager_theme)); |
|
| 827 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 828 | 828 | break; |
| 829 | 829 | /********************************************************************/ |
| 830 | 830 | /* Add weblink */ |
| 831 | 831 | /********************************************************************/ |
| 832 | 832 | case 72: |
| 833 | 833 | // get the weblink page |
| 834 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 835 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 836 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 834 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 835 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php", $manager_theme)); |
|
| 836 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 837 | 837 | break; |
| 838 | 838 | /********************************************************************/ |
| 839 | 839 | /* User management */ |
| 840 | 840 | /********************************************************************/ |
| 841 | 841 | case 75: |
| 842 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 843 | - include_once(includeFileProcessor("actions/user_management.static.php",$manager_theme)); |
|
| 844 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 842 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 843 | + include_once(includeFileProcessor("actions/user_management.static.php", $manager_theme)); |
|
| 844 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 845 | 845 | break; |
| 846 | 846 | case 99: |
| 847 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 848 | - include_once(includeFileProcessor("actions/web_user_management.static.php",$manager_theme)); |
|
| 849 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 847 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 848 | + include_once(includeFileProcessor("actions/web_user_management.static.php", $manager_theme)); |
|
| 849 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 850 | 850 | break; |
| 851 | 851 | case 86: |
| 852 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 853 | - include_once(includeFileProcessor("actions/role_management.static.php",$manager_theme)); |
|
| 854 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 852 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 853 | + include_once(includeFileProcessor("actions/role_management.static.php", $manager_theme)); |
|
| 854 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 855 | 855 | break; |
| 856 | 856 | /********************************************************************/ |
| 857 | 857 | /* template/ snippet management */ |
| 858 | 858 | /********************************************************************/ |
| 859 | 859 | case 76: |
| 860 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 861 | - include_once(includeFileProcessor("actions/resources.static.php",$manager_theme)); |
|
| 862 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 860 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 861 | + include_once(includeFileProcessor("actions/resources.static.php", $manager_theme)); |
|
| 862 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 863 | 863 | break; |
| 864 | 864 | /********************************************************************/ |
| 865 | 865 | /* Export to file */ |
| 866 | 866 | /********************************************************************/ |
| 867 | 867 | case 83: |
| 868 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 869 | - include_once(includeFileProcessor("actions/export_site.static.php",$manager_theme)); |
|
| 870 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 868 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 869 | + include_once(includeFileProcessor("actions/export_site.static.php", $manager_theme)); |
|
| 870 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 871 | 871 | break; |
| 872 | 872 | /********************************************************************/ |
| 873 | 873 | /* Resource Selector */ |
| 874 | 874 | /********************************************************************/ |
| 875 | 875 | case 84: |
| 876 | - include_once(includeFileProcessor("actions/resource_selector.static.php",$manager_theme)); |
|
| 876 | + include_once(includeFileProcessor("actions/resource_selector.static.php", $manager_theme)); |
|
| 877 | 877 | break; |
| 878 | 878 | /********************************************************************/ |
| 879 | 879 | /* Backup Manager */ |
| 880 | 880 | /********************************************************************/ |
| 881 | 881 | case 93: |
| 882 | 882 | # header and footer will be handled interally |
| 883 | - include_once(includeFileProcessor("actions/bkmanager.static.php",$manager_theme)); |
|
| 883 | + include_once(includeFileProcessor("actions/bkmanager.static.php", $manager_theme)); |
|
| 884 | 884 | break; |
| 885 | 885 | /********************************************************************/ |
| 886 | 886 | /* Duplicate Document */ |
| 887 | 887 | /********************************************************************/ |
| 888 | 888 | case 94: |
| 889 | 889 | // get the duplicate processor |
| 890 | - include_once(includeFileProcessor("processors/duplicate_content.processor.php",$manager_theme)); |
|
| 890 | + include_once(includeFileProcessor("processors/duplicate_content.processor.php", $manager_theme)); |
|
| 891 | 891 | break; |
| 892 | 892 | /********************************************************************/ |
| 893 | 893 | /* Import Document from file */ |
| 894 | 894 | /********************************************************************/ |
| 895 | 895 | case 95: |
| 896 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 897 | - include_once(includeFileProcessor("actions/import_site.static.php",$manager_theme)); |
|
| 898 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 896 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 897 | + include_once(includeFileProcessor("actions/import_site.static.php", $manager_theme)); |
|
| 898 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 899 | 899 | break; |
| 900 | 900 | /********************************************************************/ |
| 901 | 901 | /* Help */ |
| 902 | 902 | /********************************************************************/ |
| 903 | 903 | case 9: |
| 904 | 904 | // get the help page |
| 905 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 906 | - include_once(includeFileProcessor("actions/help.static.php",$manager_theme)); |
|
| 907 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 905 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 906 | + include_once(includeFileProcessor("actions/help.static.php", $manager_theme)); |
|
| 907 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 908 | 908 | break; |
| 909 | 909 | /********************************************************************/ |
| 910 | 910 | /* Template Variables - Based on Apodigm's Docvars */ |
| 911 | 911 | /********************************************************************/ |
| 912 | 912 | case 300: |
| 913 | 913 | // get the new document variable action |
| 914 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 915 | - include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php",$manager_theme)); |
|
| 916 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 914 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 915 | + include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php", $manager_theme)); |
|
| 916 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 917 | 917 | break; |
| 918 | 918 | case 301: |
| 919 | 919 | // get the edit document variable action |
| 920 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 921 | - include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php",$manager_theme)); |
|
| 922 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 920 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 921 | + include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php", $manager_theme)); |
|
| 922 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 923 | 923 | break; |
| 924 | 924 | case 302: |
| 925 | 925 | // get the save processor |
| 926 | - include_once(includeFileProcessor("processors/save_tmplvars.processor.php",$manager_theme)); |
|
| 926 | + include_once(includeFileProcessor("processors/save_tmplvars.processor.php", $manager_theme)); |
|
| 927 | 927 | break; |
| 928 | 928 | case 303: |
| 929 | 929 | // get the delete processor |
| 930 | - include_once(includeFileProcessor("processors/delete_tmplvars.processor.php",$manager_theme)); |
|
| 930 | + include_once(includeFileProcessor("processors/delete_tmplvars.processor.php", $manager_theme)); |
|
| 931 | 931 | break; |
| 932 | 932 | case 304: |
| 933 | 933 | // get the duplicate processor |
| 934 | - include_once(includeFileProcessor("processors/duplicate_tmplvars.processor.php",$manager_theme)); |
|
| 934 | + include_once(includeFileProcessor("processors/duplicate_tmplvars.processor.php", $manager_theme)); |
|
| 935 | 935 | break; |
| 936 | 936 | case 305: |
| 937 | 937 | // get the tv-rank action |
| 938 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 939 | - include_once(includeFileProcessor("actions/mutate_tv_rank.dynamic.php",$manager_theme)); |
|
| 940 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 938 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 939 | + include_once(includeFileProcessor("actions/mutate_tv_rank.dynamic.php", $manager_theme)); |
|
| 940 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 941 | 941 | break; |
| 942 | 942 | /********************************************************************/ |
| 943 | 943 | /* Event viewer: show event message log */ |
| 944 | 944 | /********************************************************************/ |
| 945 | 945 | case 114: |
| 946 | 946 | // get event logs |
| 947 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 948 | - include_once(includeFileProcessor("actions/eventlog.dynamic.php",$manager_theme)); |
|
| 949 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 947 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 948 | + include_once(includeFileProcessor("actions/eventlog.dynamic.php", $manager_theme)); |
|
| 949 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 950 | 950 | break; |
| 951 | 951 | case 115: |
| 952 | 952 | // get event log details viewer |
| 953 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 954 | - include_once(includeFileProcessor("actions/eventlog_details.dynamic.php",$manager_theme)); |
|
| 955 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 953 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 954 | + include_once(includeFileProcessor("actions/eventlog_details.dynamic.php", $manager_theme)); |
|
| 955 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 956 | 956 | break; |
| 957 | 957 | case 116: |
| 958 | 958 | // get the event log delete processor |
| 959 | - include_once(includeFileProcessor("processors/delete_eventlog.processor.php",$manager_theme)); |
|
| 959 | + include_once(includeFileProcessor("processors/delete_eventlog.processor.php", $manager_theme)); |
|
| 960 | 960 | break; |
| 961 | 961 | |
| 962 | 962 | case 501: |
| 963 | 963 | //delete category |
| 964 | - include_once(includeFileProcessor("processors/delete_category.processor.php",$manager_theme)); |
|
| 964 | + include_once(includeFileProcessor("processors/delete_category.processor.php", $manager_theme)); |
|
| 965 | 965 | break; |
| 966 | 966 | /********************************************************************/ |
| 967 | 967 | /* default action: show not implemented message */ |
| 968 | 968 | /********************************************************************/ |
| 969 | 969 | default : |
| 970 | 970 | // say that what was requested doesn't do anything yet |
| 971 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 971 | + include_once(includeFileProcessor("includes/header.inc.php", $manager_theme)); |
|
| 972 | 972 | echo " |
| 973 | 973 | <div class='sectionHeader'>".$_lang['functionnotimpl']."</div> |
| 974 | 974 | <div class='sectionBody'> |
| 975 | 975 | <p>".$_lang['functionnotimpl_message']."</p> |
| 976 | 976 | </div> |
| 977 | 977 | "; |
| 978 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 978 | + include_once(includeFileProcessor("includes/footer.inc.php", $manager_theme)); |
|
| 979 | 979 | } |
| 980 | 980 | |
| 981 | 981 | /********************************************************************/ |
| 982 | 982 | // log action, unless it's a frame request |
| 983 | -if($action!=1 && $action!=7 && $action!=2) { |
|
| 983 | +if ($action != 1 && $action != 7 && $action != 2) { |
|
| 984 | 984 | $log = new EvolutionCMS\Legacy\LogHandler; |
| 985 | 985 | $log->initAndWriteLog(); |
| 986 | 986 | } |
@@ -60,22 +60,22 @@ discard block |
||
| 60 | 60 | $site_hostnames_path = $base_path . 'assets/cache/siteHostnames.php'; |
| 61 | 61 | if(is_file($site_hostnames_path)) include_once($site_hostnames_path); |
| 62 | 62 | if(!defined('MGR_DIR') || MGR_DIR!==$mgr_dir) { |
| 63 | - $src = "<?php\n"; |
|
| 64 | - $src .= "define('MGR_DIR', '{$mgr_dir}');\n"; |
|
| 65 | - $rs = file_put_contents($site_mgr_path,$src); |
|
| 66 | - if(!$rs) { |
|
| 67 | - echo 'siteManager.php write error'; |
|
| 68 | - exit; |
|
| 69 | - } |
|
| 70 | - sleep(1); |
|
| 71 | - header('Location:' . $_SERVER['REQUEST_URI']); |
|
| 72 | - exit; |
|
| 63 | + $src = "<?php\n"; |
|
| 64 | + $src .= "define('MGR_DIR', '{$mgr_dir}');\n"; |
|
| 65 | + $rs = file_put_contents($site_mgr_path,$src); |
|
| 66 | + if(!$rs) { |
|
| 67 | + echo 'siteManager.php write error'; |
|
| 68 | + exit; |
|
| 69 | + } |
|
| 70 | + sleep(1); |
|
| 71 | + header('Location:' . $_SERVER['REQUEST_URI']); |
|
| 72 | + exit; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | // we use this to make sure files are accessed through |
| 76 | 76 | // the manager instead of seperately. |
| 77 | 77 | if ( ! defined('IN_MANAGER_MODE')) { |
| 78 | - define('IN_MANAGER_MODE', true); |
|
| 78 | + define('IN_MANAGER_MODE', true); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | // harden it |
@@ -96,16 +96,16 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | // check PHP version. EVO is compatible with php 5 (5.0.0+) |
| 98 | 98 | $php_ver_comp = version_compare(phpversion(), "5.0.0"); |
| 99 | - // -1 if left is less, 0 if equal, +1 if left is higher |
|
| 99 | + // -1 if left is less, 0 if equal, +1 if left is higher |
|
| 100 | 100 | if($php_ver_comp < 0) { |
| 101 | - echo sprintf($_lang['php_version_check'], phpversion()); |
|
| 102 | - exit; |
|
| 101 | + echo sprintf($_lang['php_version_check'], phpversion()); |
|
| 102 | + exit; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | // check if iconv is installed |
| 106 | 106 | if(!function_exists('iconv')) { |
| 107 | - echo $_lang['iconv_not_available']; |
|
| 108 | - exit; |
|
| 107 | + echo $_lang['iconv_not_available']; |
|
| 108 | + exit; |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | // set some runtime options |
@@ -118,15 +118,15 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | // set the document_root :| |
| 120 | 120 | if(!isset($_SERVER['DOCUMENT_ROOT']) || empty($_SERVER['DOCUMENT_ROOT'])) { |
| 121 | - $_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['PATH_INFO'], "", preg_replace("/\\\\/", "/", $_SERVER['PATH_TRANSLATED']))."/"; |
|
| 121 | + $_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['PATH_INFO'], "", preg_replace("/\\\\/", "/", $_SERVER['PATH_TRANSLATED']))."/"; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | // include_once config file |
| 125 | 125 | $config_filename = "./includes/config.inc.php"; |
| 126 | 126 | if (!file_exists($config_filename)) { |
| 127 | - echo "<h3>Unable to load configuration settings</h3>"; |
|
| 128 | - echo "Please run the EVO <a href='../install'>install utility</a>"; |
|
| 129 | - exit; |
|
| 127 | + echo "<h3>Unable to load configuration settings</h3>"; |
|
| 128 | + echo "Please run the EVO <a href='../install'>install utility</a>"; |
|
| 129 | + exit; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | // include the database configuration file |
@@ -154,25 +154,25 @@ discard block |
||
| 154 | 154 | |
| 155 | 155 | // now include_once different language file as english |
| 156 | 156 | if(!isset($manager_language) || !file_exists(MODX_MANAGER_PATH."includes/lang/".$manager_language.".inc.php")) { |
| 157 | - $manager_language = "english"; // if not set, get the english language file. |
|
| 157 | + $manager_language = "english"; // if not set, get the english language file. |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | // $length_eng_lang = count($_lang); // Not used for now, required for difference-check with other languages than english (i.e. inside installer) |
| 161 | 161 | |
| 162 | 162 | if($manager_language!="english" && file_exists(MODX_MANAGER_PATH."includes/lang/".$manager_language.".inc.php")) { |
| 163 | - include_once "lang/".$manager_language.".inc.php"; |
|
| 163 | + include_once "lang/".$manager_language.".inc.php"; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | // allow custom language overrides not altered by future EVO-updates |
| 167 | 167 | if(file_exists(MODX_MANAGER_PATH."includes/lang/override/".$manager_language.".inc.php")) { |
| 168 | - include_once "lang/override/".$manager_language.".inc.php"; |
|
| 168 | + include_once "lang/override/".$manager_language.".inc.php"; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | $s = array('[+MGR_DIR+]'); |
| 172 | 172 | $r = array(MGR_DIR); |
| 173 | 173 | foreach($_lang as $k=>$v) |
| 174 | 174 | { |
| 175 | - if(strpos($v,'[+')!==false) $_lang[$k] = str_replace($s, $r, $v); |
|
| 175 | + if(strpos($v,'[+')!==false) $_lang[$k] = str_replace($s, $r, $v); |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | // send the charset header |
@@ -187,19 +187,19 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | // double check the session |
| 189 | 189 | if(!isset($_SESSION['mgrValidated'])){ |
| 190 | - echo "Not Logged In!"; |
|
| 191 | - exit; |
|
| 190 | + echo "Not Logged In!"; |
|
| 191 | + exit; |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | // include_once the style variables file |
| 195 | 195 | if(isset($manager_theme) && !isset($_style)) { |
| 196 | - $_style = array(); |
|
| 197 | - include_once "media/style/".$manager_theme."/style.php"; |
|
| 196 | + $_style = array(); |
|
| 197 | + include_once "media/style/".$manager_theme."/style.php"; |
|
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | // check if user is allowed to access manager interface |
| 201 | 201 | if(isset($allow_manager_access) && $allow_manager_access==0) { |
| 202 | - include_once "manager.lockout.inc.php"; |
|
| 202 | + include_once "manager.lockout.inc.php"; |
|
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | // Initialize System Alert Message Queque |
@@ -208,13 +208,13 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | // first we check to see if this is a frameset request |
| 210 | 210 | if(!isset($_POST['a']) && !isset($_GET['a']) && !isset($_POST['updateMsgCount'])) { |
| 211 | - // this looks to be a top-level frameset request, so let's serve up a frameset |
|
| 212 | - if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/frames/1.php")) { |
|
| 213 | - include_once "media/style/".$manager_theme."/frames/1.php"; |
|
| 214 | - }else{ |
|
| 215 | - include_once "frames/1.php"; |
|
| 216 | - } |
|
| 217 | - exit; |
|
| 211 | + // this looks to be a top-level frameset request, so let's serve up a frameset |
|
| 212 | + if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/frames/1.php")) { |
|
| 213 | + include_once "media/style/".$manager_theme."/frames/1.php"; |
|
| 214 | + }else{ |
|
| 215 | + include_once "frames/1.php"; |
|
| 216 | + } |
|
| 217 | + exit; |
|
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | // OK, let's retrieve the action directive from the request |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | else $action = null; |
| 226 | 226 | |
| 227 | 227 | if (isset($_POST['updateMsgCount']) && $modx->hasPermission('messages')) { |
| 228 | - include_once 'messageCount.inc.php'; |
|
| 228 | + include_once 'messageCount.inc.php'; |
|
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | // save page to manager object |
@@ -233,19 +233,19 @@ discard block |
||
| 233 | 233 | |
| 234 | 234 | // attempt to foil some simple types of CSRF attacks |
| 235 | 235 | if (isset($modx->config['validate_referer']) && (int)$modx->config['validate_referer']) { |
| 236 | - if (isset($_SERVER['HTTP_REFERER'])) { |
|
| 237 | - $referer = $_SERVER['HTTP_REFERER']; |
|
| 238 | - |
|
| 239 | - if (!empty($referer)) { |
|
| 240 | - if (!preg_match('/^'.preg_quote(MODX_SITE_URL, '/').'/i', $referer)) { |
|
| 241 | - $modx->webAlertAndQuit("A possible CSRF attempt was detected from referer: {$referer}.", "index.php"); |
|
| 242 | - } |
|
| 243 | - } else { |
|
| 244 | - $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the client.", "index.php"); |
|
| 245 | - } |
|
| 246 | - } else { |
|
| 247 | - $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the server.", "index.php"); |
|
| 248 | - } |
|
| 236 | + if (isset($_SERVER['HTTP_REFERER'])) { |
|
| 237 | + $referer = $_SERVER['HTTP_REFERER']; |
|
| 238 | + |
|
| 239 | + if (!empty($referer)) { |
|
| 240 | + if (!preg_match('/^'.preg_quote(MODX_SITE_URL, '/').'/i', $referer)) { |
|
| 241 | + $modx->webAlertAndQuit("A possible CSRF attempt was detected from referer: {$referer}.", "index.php"); |
|
| 242 | + } |
|
| 243 | + } else { |
|
| 244 | + $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the client.", "index.php"); |
|
| 245 | + } |
|
| 246 | + } else { |
|
| 247 | + $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the server.", "index.php"); |
|
| 248 | + } |
|
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | // invoke OnManagerPageInit event |
@@ -253,13 +253,13 @@ discard block |
||
| 253 | 253 | |
| 254 | 254 | // return element filepath |
| 255 | 255 | function includeFileProcessor ($filepath,$manager_theme) { |
| 256 | - $element = ""; |
|
| 257 | - if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath)) { |
|
| 258 | - $element = MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath; |
|
| 259 | - }else{ |
|
| 260 | - $element = $filepath; |
|
| 261 | - } |
|
| 262 | - return $element; |
|
| 256 | + $element = ""; |
|
| 257 | + if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath)) { |
|
| 258 | + $element = MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath; |
|
| 259 | + }else{ |
|
| 260 | + $element = $filepath; |
|
| 261 | + } |
|
| 262 | + return $element; |
|
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | $managerTheme = new EvolutionCMS\ManagerTheme($modx, $manager_theme); |
@@ -269,713 +269,713 @@ discard block |
||
| 269 | 269 | /********************************************************************/ |
| 270 | 270 | /* frame management - show the requested frame */ |
| 271 | 271 | /********************************************************************/ |
| 272 | - case 1 : |
|
| 273 | - // get the requested frame |
|
| 274 | - $frame = preg_replace('/[^a-z0-9]/i','',$_REQUEST['f']); |
|
| 275 | - if($frame>9) { |
|
| 276 | - $enable_debug=false; // this is to stop the debug thingy being attached to the framesets |
|
| 277 | - } |
|
| 278 | - include_once(includeFileProcessor("frames/".$frame.".php",$manager_theme)); |
|
| 279 | - break; |
|
| 272 | + case 1 : |
|
| 273 | + // get the requested frame |
|
| 274 | + $frame = preg_replace('/[^a-z0-9]/i','',$_REQUEST['f']); |
|
| 275 | + if($frame>9) { |
|
| 276 | + $enable_debug=false; // this is to stop the debug thingy being attached to the framesets |
|
| 277 | + } |
|
| 278 | + include_once(includeFileProcessor("frames/".$frame.".php",$manager_theme)); |
|
| 279 | + break; |
|
| 280 | 280 | /********************************************************************/ |
| 281 | 281 | /* show the homepage */ |
| 282 | 282 | /********************************************************************/ |
| 283 | - case 2: |
|
| 284 | - // get the home page |
|
| 285 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 286 | - include_once(includeFileProcessor("actions/welcome.static.php",$manager_theme)); |
|
| 287 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 288 | - break; |
|
| 283 | + case 2: |
|
| 284 | + // get the home page |
|
| 285 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 286 | + include_once(includeFileProcessor("actions/welcome.static.php",$manager_theme)); |
|
| 287 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 288 | + break; |
|
| 289 | 289 | /********************************************************************/ |
| 290 | 290 | /* document data */ |
| 291 | 291 | /********************************************************************/ |
| 292 | - case 3: |
|
| 293 | - // get the page to show document's data |
|
| 294 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 295 | - include_once(includeFileProcessor("actions/document_data.static.php",$manager_theme)); |
|
| 296 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 297 | - break; |
|
| 292 | + case 3: |
|
| 293 | + // get the page to show document's data |
|
| 294 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 295 | + include_once(includeFileProcessor("actions/document_data.static.php",$manager_theme)); |
|
| 296 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 297 | + break; |
|
| 298 | 298 | /********************************************************************/ |
| 299 | 299 | /* content management */ |
| 300 | 300 | /********************************************************************/ |
| 301 | - case 85: |
|
| 302 | - // get the mutate page for adding a folder |
|
| 303 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 304 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 305 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 306 | - break; |
|
| 307 | - case 27: |
|
| 308 | - // get the mutate page for changing content |
|
| 309 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 310 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 311 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 312 | - break; |
|
| 313 | - case 4: |
|
| 314 | - // get the mutate page for adding content |
|
| 315 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 316 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 317 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 318 | - break; |
|
| 319 | - case 5: |
|
| 320 | - // get the save processor |
|
| 321 | - include_once(includeFileProcessor("processors/save_content.processor.php",$manager_theme)); |
|
| 322 | - break; |
|
| 323 | - case 6: |
|
| 324 | - // get the delete processor |
|
| 325 | - include_once(includeFileProcessor("processors/delete_content.processor.php",$manager_theme)); |
|
| 326 | - break; |
|
| 327 | - case 63: |
|
| 328 | - // get the undelete processor |
|
| 329 | - include_once(includeFileProcessor("processors/undelete_content.processor.php",$manager_theme)); |
|
| 330 | - break; |
|
| 331 | - case 51: |
|
| 332 | - // get the move action |
|
| 333 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 334 | - include_once(includeFileProcessor("actions/move_document.dynamic.php",$manager_theme)); |
|
| 335 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 336 | - break; |
|
| 337 | - case 52: |
|
| 338 | - // get the move document processor |
|
| 339 | - include_once(includeFileProcessor("processors/move_document.processor.php",$manager_theme)); |
|
| 340 | - break; |
|
| 341 | - case 61: |
|
| 342 | - // get the processor for publishing content |
|
| 343 | - include_once(includeFileProcessor("processors/publish_content.processor.php",$manager_theme)); |
|
| 344 | - break; |
|
| 345 | - case 62: |
|
| 346 | - // get the processor for publishing content |
|
| 347 | - include_once(includeFileProcessor("processors/unpublish_content.processor.php",$manager_theme)); |
|
| 348 | - break; |
|
| 349 | - case 56: |
|
| 350 | - // get the sort menuindex action |
|
| 351 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 352 | - include_once(includeFileProcessor("actions/mutate_menuindex_sort.dynamic.php",$manager_theme)); |
|
| 353 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 354 | - break; |
|
| 301 | + case 85: |
|
| 302 | + // get the mutate page for adding a folder |
|
| 303 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 304 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 305 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 306 | + break; |
|
| 307 | + case 27: |
|
| 308 | + // get the mutate page for changing content |
|
| 309 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 310 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 311 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 312 | + break; |
|
| 313 | + case 4: |
|
| 314 | + // get the mutate page for adding content |
|
| 315 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 316 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 317 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 318 | + break; |
|
| 319 | + case 5: |
|
| 320 | + // get the save processor |
|
| 321 | + include_once(includeFileProcessor("processors/save_content.processor.php",$manager_theme)); |
|
| 322 | + break; |
|
| 323 | + case 6: |
|
| 324 | + // get the delete processor |
|
| 325 | + include_once(includeFileProcessor("processors/delete_content.processor.php",$manager_theme)); |
|
| 326 | + break; |
|
| 327 | + case 63: |
|
| 328 | + // get the undelete processor |
|
| 329 | + include_once(includeFileProcessor("processors/undelete_content.processor.php",$manager_theme)); |
|
| 330 | + break; |
|
| 331 | + case 51: |
|
| 332 | + // get the move action |
|
| 333 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 334 | + include_once(includeFileProcessor("actions/move_document.dynamic.php",$manager_theme)); |
|
| 335 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 336 | + break; |
|
| 337 | + case 52: |
|
| 338 | + // get the move document processor |
|
| 339 | + include_once(includeFileProcessor("processors/move_document.processor.php",$manager_theme)); |
|
| 340 | + break; |
|
| 341 | + case 61: |
|
| 342 | + // get the processor for publishing content |
|
| 343 | + include_once(includeFileProcessor("processors/publish_content.processor.php",$manager_theme)); |
|
| 344 | + break; |
|
| 345 | + case 62: |
|
| 346 | + // get the processor for publishing content |
|
| 347 | + include_once(includeFileProcessor("processors/unpublish_content.processor.php",$manager_theme)); |
|
| 348 | + break; |
|
| 349 | + case 56: |
|
| 350 | + // get the sort menuindex action |
|
| 351 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 352 | + include_once(includeFileProcessor("actions/mutate_menuindex_sort.dynamic.php",$manager_theme)); |
|
| 353 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 354 | + break; |
|
| 355 | 355 | /********************************************************************/ |
| 356 | 356 | /* show the wait page - gives the tree time to refresh (hopefully) */ |
| 357 | 357 | /********************************************************************/ |
| 358 | - case 7: |
|
| 359 | - // get the wait page (so the tree can reload) |
|
| 360 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 361 | - include_once(includeFileProcessor("actions/wait.static.php",$manager_theme)); |
|
| 362 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 363 | - break; |
|
| 358 | + case 7: |
|
| 359 | + // get the wait page (so the tree can reload) |
|
| 360 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 361 | + include_once(includeFileProcessor("actions/wait.static.php",$manager_theme)); |
|
| 362 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 363 | + break; |
|
| 364 | 364 | /********************************************************************/ |
| 365 | 365 | /* let the user log out */ |
| 366 | 366 | /********************************************************************/ |
| 367 | - case 8: |
|
| 368 | - // get the logout processor |
|
| 369 | - include_once(includeFileProcessor("processors/logout.processor.php",$manager_theme)); |
|
| 370 | - break; |
|
| 367 | + case 8: |
|
| 368 | + // get the logout processor |
|
| 369 | + include_once(includeFileProcessor("processors/logout.processor.php",$manager_theme)); |
|
| 370 | + break; |
|
| 371 | 371 | /********************************************************************/ |
| 372 | 372 | /* user management */ |
| 373 | 373 | /********************************************************************/ |
| 374 | - case 87: |
|
| 375 | - // get the new web user page |
|
| 376 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 377 | - include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php",$manager_theme)); |
|
| 378 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 379 | - break; |
|
| 380 | - case 88: |
|
| 381 | - // get the edit web user page |
|
| 382 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 383 | - include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php",$manager_theme)); |
|
| 384 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 385 | - break; |
|
| 386 | - case 89: |
|
| 387 | - // get the save web user processor |
|
| 388 | - include_once(includeFileProcessor("processors/save_web_user.processor.php",$manager_theme)); |
|
| 389 | - break; |
|
| 390 | - case 90: |
|
| 391 | - // get the delete web user page |
|
| 392 | - include_once(includeFileProcessor("processors/delete_web_user.processor.php",$manager_theme)); |
|
| 393 | - break; |
|
| 394 | - case 11: |
|
| 395 | - // get the new user page |
|
| 396 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 397 | - include_once(includeFileProcessor("actions/mutate_user.dynamic.php",$manager_theme)); |
|
| 398 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 399 | - break; |
|
| 400 | - case 12: |
|
| 401 | - // get the edit user page |
|
| 402 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 403 | - include_once(includeFileProcessor("actions/mutate_user.dynamic.php",$manager_theme)); |
|
| 404 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 405 | - break; |
|
| 406 | - case 32: |
|
| 407 | - // get the save user processor |
|
| 408 | - include_once(includeFileProcessor("processors/save_user.processor.php",$manager_theme)); |
|
| 409 | - break; |
|
| 410 | - case 28: |
|
| 411 | - // get the change password page |
|
| 412 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 413 | - include_once(includeFileProcessor("actions/mutate_password.dynamic.php",$manager_theme)); |
|
| 414 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 415 | - break; |
|
| 416 | - case 34: |
|
| 417 | - // get the save new password page |
|
| 418 | - include_once(includeFileProcessor("processors/save_password.processor.php",$manager_theme)); |
|
| 419 | - break; |
|
| 420 | - case 33: |
|
| 421 | - // get the delete user page |
|
| 422 | - include_once(includeFileProcessor("processors/delete_user.processor.php",$manager_theme)); |
|
| 423 | - break; |
|
| 374 | + case 87: |
|
| 375 | + // get the new web user page |
|
| 376 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 377 | + include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php",$manager_theme)); |
|
| 378 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 379 | + break; |
|
| 380 | + case 88: |
|
| 381 | + // get the edit web user page |
|
| 382 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 383 | + include_once(includeFileProcessor("actions/mutate_web_user.dynamic.php",$manager_theme)); |
|
| 384 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 385 | + break; |
|
| 386 | + case 89: |
|
| 387 | + // get the save web user processor |
|
| 388 | + include_once(includeFileProcessor("processors/save_web_user.processor.php",$manager_theme)); |
|
| 389 | + break; |
|
| 390 | + case 90: |
|
| 391 | + // get the delete web user page |
|
| 392 | + include_once(includeFileProcessor("processors/delete_web_user.processor.php",$manager_theme)); |
|
| 393 | + break; |
|
| 394 | + case 11: |
|
| 395 | + // get the new user page |
|
| 396 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 397 | + include_once(includeFileProcessor("actions/mutate_user.dynamic.php",$manager_theme)); |
|
| 398 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 399 | + break; |
|
| 400 | + case 12: |
|
| 401 | + // get the edit user page |
|
| 402 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 403 | + include_once(includeFileProcessor("actions/mutate_user.dynamic.php",$manager_theme)); |
|
| 404 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 405 | + break; |
|
| 406 | + case 32: |
|
| 407 | + // get the save user processor |
|
| 408 | + include_once(includeFileProcessor("processors/save_user.processor.php",$manager_theme)); |
|
| 409 | + break; |
|
| 410 | + case 28: |
|
| 411 | + // get the change password page |
|
| 412 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 413 | + include_once(includeFileProcessor("actions/mutate_password.dynamic.php",$manager_theme)); |
|
| 414 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 415 | + break; |
|
| 416 | + case 34: |
|
| 417 | + // get the save new password page |
|
| 418 | + include_once(includeFileProcessor("processors/save_password.processor.php",$manager_theme)); |
|
| 419 | + break; |
|
| 420 | + case 33: |
|
| 421 | + // get the delete user page |
|
| 422 | + include_once(includeFileProcessor("processors/delete_user.processor.php",$manager_theme)); |
|
| 423 | + break; |
|
| 424 | 424 | /********************************************************************/ |
| 425 | 425 | /* role management */ |
| 426 | 426 | /********************************************************************/ |
| 427 | - case 38: |
|
| 428 | - // get the new role page |
|
| 429 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 430 | - include_once(includeFileProcessor("actions/mutate_role.dynamic.php",$manager_theme)); |
|
| 431 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 432 | - break; |
|
| 433 | - case 35: |
|
| 434 | - // get the edit role page |
|
| 435 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 436 | - include_once(includeFileProcessor("actions/mutate_role.dynamic.php",$manager_theme)); |
|
| 437 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 438 | - break; |
|
| 439 | - case 36: |
|
| 440 | - // get the save role page |
|
| 441 | - include_once(includeFileProcessor("processors/save_role.processor.php",$manager_theme)); |
|
| 442 | - break; |
|
| 443 | - case 37: |
|
| 444 | - // get the delete role page |
|
| 445 | - include_once(includeFileProcessor("processors/delete_role.processor.php",$manager_theme)); |
|
| 446 | - break; |
|
| 427 | + case 38: |
|
| 428 | + // get the new role page |
|
| 429 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 430 | + include_once(includeFileProcessor("actions/mutate_role.dynamic.php",$manager_theme)); |
|
| 431 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 432 | + break; |
|
| 433 | + case 35: |
|
| 434 | + // get the edit role page |
|
| 435 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 436 | + include_once(includeFileProcessor("actions/mutate_role.dynamic.php",$manager_theme)); |
|
| 437 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 438 | + break; |
|
| 439 | + case 36: |
|
| 440 | + // get the save role page |
|
| 441 | + include_once(includeFileProcessor("processors/save_role.processor.php",$manager_theme)); |
|
| 442 | + break; |
|
| 443 | + case 37: |
|
| 444 | + // get the delete role page |
|
| 445 | + include_once(includeFileProcessor("processors/delete_role.processor.php",$manager_theme)); |
|
| 446 | + break; |
|
| 447 | 447 | /********************************************************************/ |
| 448 | 448 | /* category management */ |
| 449 | 449 | /********************************************************************/ |
| 450 | - case 120: |
|
| 451 | - // get the edit category page |
|
| 452 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 453 | - include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 454 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 455 | - break; |
|
| 456 | - case 121: |
|
| 457 | - // for ajax-requests |
|
| 458 | - include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 459 | - break; |
|
| 450 | + case 120: |
|
| 451 | + // get the edit category page |
|
| 452 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 453 | + include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 454 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 455 | + break; |
|
| 456 | + case 121: |
|
| 457 | + // for ajax-requests |
|
| 458 | + include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 459 | + break; |
|
| 460 | 460 | /********************************************************************/ |
| 461 | 461 | /* template management */ |
| 462 | 462 | /********************************************************************/ |
| 463 | - case 16: |
|
| 464 | - // get the edit template action |
|
| 465 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 466 | - include_once(includeFileProcessor("actions/mutate_templates.dynamic.php",$manager_theme)); |
|
| 467 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 468 | - break; |
|
| 469 | - case 19: |
|
| 470 | - // get the new template action |
|
| 471 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 472 | - include_once(includeFileProcessor("actions/mutate_templates.dynamic.php",$manager_theme)); |
|
| 473 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 474 | - break; |
|
| 475 | - case 20: |
|
| 476 | - // get the save processor |
|
| 477 | - include_once(includeFileProcessor("processors/save_template.processor.php",$manager_theme)); |
|
| 478 | - break; |
|
| 479 | - case 21: |
|
| 480 | - // get the delete processor |
|
| 481 | - include_once(includeFileProcessor("processors/delete_template.processor.php",$manager_theme)); |
|
| 482 | - break; |
|
| 483 | - case 96: |
|
| 484 | - // get the duplicate template processor |
|
| 485 | - include_once(includeFileProcessor("processors/duplicate_template.processor.php",$manager_theme)); |
|
| 486 | - break; |
|
| 487 | - case 117: |
|
| 488 | - // change the tv rank for selected template |
|
| 489 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 490 | - include_once(includeFileProcessor("actions/mutate_template_tv_rank.dynamic.php",$manager_theme)); |
|
| 491 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 492 | - break; |
|
| 463 | + case 16: |
|
| 464 | + // get the edit template action |
|
| 465 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 466 | + include_once(includeFileProcessor("actions/mutate_templates.dynamic.php",$manager_theme)); |
|
| 467 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 468 | + break; |
|
| 469 | + case 19: |
|
| 470 | + // get the new template action |
|
| 471 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 472 | + include_once(includeFileProcessor("actions/mutate_templates.dynamic.php",$manager_theme)); |
|
| 473 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 474 | + break; |
|
| 475 | + case 20: |
|
| 476 | + // get the save processor |
|
| 477 | + include_once(includeFileProcessor("processors/save_template.processor.php",$manager_theme)); |
|
| 478 | + break; |
|
| 479 | + case 21: |
|
| 480 | + // get the delete processor |
|
| 481 | + include_once(includeFileProcessor("processors/delete_template.processor.php",$manager_theme)); |
|
| 482 | + break; |
|
| 483 | + case 96: |
|
| 484 | + // get the duplicate template processor |
|
| 485 | + include_once(includeFileProcessor("processors/duplicate_template.processor.php",$manager_theme)); |
|
| 486 | + break; |
|
| 487 | + case 117: |
|
| 488 | + // change the tv rank for selected template |
|
| 489 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 490 | + include_once(includeFileProcessor("actions/mutate_template_tv_rank.dynamic.php",$manager_theme)); |
|
| 491 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 492 | + break; |
|
| 493 | 493 | /********************************************************************/ |
| 494 | 494 | /* snippet management */ |
| 495 | 495 | /********************************************************************/ |
| 496 | - case 22: |
|
| 497 | - // get the edit snippet action |
|
| 498 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 499 | - include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php",$manager_theme)); |
|
| 500 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 501 | - break; |
|
| 502 | - case 23: |
|
| 503 | - // get the new snippet action |
|
| 504 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 505 | - include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php",$manager_theme)); |
|
| 506 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 507 | - break; |
|
| 508 | - case 24: |
|
| 509 | - // get the save processor |
|
| 510 | - include_once(includeFileProcessor("processors/save_snippet.processor.php",$manager_theme)); |
|
| 511 | - break; |
|
| 512 | - case 25: |
|
| 513 | - // get the delete processor |
|
| 514 | - include_once(includeFileProcessor("processors/delete_snippet.processor.php",$manager_theme)); |
|
| 515 | - break; |
|
| 516 | - case 98: |
|
| 517 | - // get the duplicate processor |
|
| 518 | - include_once(includeFileProcessor("processors/duplicate_snippet.processor.php",$manager_theme)); |
|
| 519 | - break; |
|
| 496 | + case 22: |
|
| 497 | + // get the edit snippet action |
|
| 498 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 499 | + include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php",$manager_theme)); |
|
| 500 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 501 | + break; |
|
| 502 | + case 23: |
|
| 503 | + // get the new snippet action |
|
| 504 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 505 | + include_once(includeFileProcessor("actions/mutate_snippet.dynamic.php",$manager_theme)); |
|
| 506 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 507 | + break; |
|
| 508 | + case 24: |
|
| 509 | + // get the save processor |
|
| 510 | + include_once(includeFileProcessor("processors/save_snippet.processor.php",$manager_theme)); |
|
| 511 | + break; |
|
| 512 | + case 25: |
|
| 513 | + // get the delete processor |
|
| 514 | + include_once(includeFileProcessor("processors/delete_snippet.processor.php",$manager_theme)); |
|
| 515 | + break; |
|
| 516 | + case 98: |
|
| 517 | + // get the duplicate processor |
|
| 518 | + include_once(includeFileProcessor("processors/duplicate_snippet.processor.php",$manager_theme)); |
|
| 519 | + break; |
|
| 520 | 520 | /********************************************************************/ |
| 521 | 521 | /* htmlsnippet management */ |
| 522 | 522 | /********************************************************************/ |
| 523 | - case 78: |
|
| 524 | - // get the edit snippet action |
|
| 525 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 526 | - include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php",$manager_theme)); |
|
| 527 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 528 | - break; |
|
| 529 | - case 77: |
|
| 530 | - // get the new snippet action |
|
| 531 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 532 | - include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php",$manager_theme)); |
|
| 533 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 534 | - break; |
|
| 535 | - case 79: |
|
| 536 | - // get the save processor |
|
| 537 | - include_once(includeFileProcessor("processors/save_htmlsnippet.processor.php",$manager_theme)); |
|
| 538 | - break; |
|
| 539 | - case 80: |
|
| 540 | - // get the delete processor |
|
| 541 | - include_once(includeFileProcessor("processors/delete_htmlsnippet.processor.php",$manager_theme)); |
|
| 542 | - break; |
|
| 543 | - case 97: |
|
| 544 | - // get the duplicate processor |
|
| 545 | - include_once(includeFileProcessor("processors/duplicate_htmlsnippet.processor.php",$manager_theme)); |
|
| 546 | - break; |
|
| 523 | + case 78: |
|
| 524 | + // get the edit snippet action |
|
| 525 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 526 | + include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php",$manager_theme)); |
|
| 527 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 528 | + break; |
|
| 529 | + case 77: |
|
| 530 | + // get the new snippet action |
|
| 531 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 532 | + include_once(includeFileProcessor("actions/mutate_htmlsnippet.dynamic.php",$manager_theme)); |
|
| 533 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 534 | + break; |
|
| 535 | + case 79: |
|
| 536 | + // get the save processor |
|
| 537 | + include_once(includeFileProcessor("processors/save_htmlsnippet.processor.php",$manager_theme)); |
|
| 538 | + break; |
|
| 539 | + case 80: |
|
| 540 | + // get the delete processor |
|
| 541 | + include_once(includeFileProcessor("processors/delete_htmlsnippet.processor.php",$manager_theme)); |
|
| 542 | + break; |
|
| 543 | + case 97: |
|
| 544 | + // get the duplicate processor |
|
| 545 | + include_once(includeFileProcessor("processors/duplicate_htmlsnippet.processor.php",$manager_theme)); |
|
| 546 | + break; |
|
| 547 | 547 | /********************************************************************/ |
| 548 | 548 | /* show the credits page */ |
| 549 | 549 | /********************************************************************/ |
| 550 | - case 18: |
|
| 551 | - // get the credits page |
|
| 552 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 553 | - include_once(includeFileProcessor("actions/credits.static.php",$manager_theme)); |
|
| 554 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 555 | - break; |
|
| 550 | + case 18: |
|
| 551 | + // get the credits page |
|
| 552 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 553 | + include_once(includeFileProcessor("actions/credits.static.php",$manager_theme)); |
|
| 554 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 555 | + break; |
|
| 556 | 556 | /********************************************************************/ |
| 557 | 557 | /* empty cache & synchronisation */ |
| 558 | 558 | /********************************************************************/ |
| 559 | - case 26: |
|
| 560 | - // get the cache emptying processor |
|
| 561 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 562 | - include_once(includeFileProcessor("actions/refresh_site.dynamic.php",$manager_theme)); |
|
| 563 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 564 | - break; |
|
| 559 | + case 26: |
|
| 560 | + // get the cache emptying processor |
|
| 561 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 562 | + include_once(includeFileProcessor("actions/refresh_site.dynamic.php",$manager_theme)); |
|
| 563 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 564 | + break; |
|
| 565 | 565 | /********************************************************************/ |
| 566 | 566 | /* Module management */ |
| 567 | 567 | /********************************************************************/ |
| 568 | - case 106: |
|
| 569 | - // get module management |
|
| 570 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 571 | - include_once(includeFileProcessor("actions/modules.static.php",$manager_theme)); |
|
| 572 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 573 | - break; |
|
| 574 | - case 107: |
|
| 575 | - // get the new module action |
|
| 576 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 577 | - include_once(includeFileProcessor("actions/mutate_module.dynamic.php",$manager_theme)); |
|
| 578 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 579 | - break; |
|
| 580 | - case 108: |
|
| 581 | - // get the edit module action |
|
| 582 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 583 | - include_once(includeFileProcessor("actions/mutate_module.dynamic.php",$manager_theme)); |
|
| 584 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 585 | - break; |
|
| 586 | - case 109: |
|
| 587 | - // get the save processor |
|
| 588 | - include_once(includeFileProcessor("processors/save_module.processor.php",$manager_theme)); |
|
| 589 | - break; |
|
| 590 | - case 110: |
|
| 591 | - // get the delete processor |
|
| 592 | - include_once(includeFileProcessor("processors/delete_module.processor.php",$manager_theme)); |
|
| 593 | - break; |
|
| 594 | - case 111: |
|
| 595 | - // get the duplicate processor |
|
| 596 | - include_once(includeFileProcessor("processors/duplicate_module.processor.php",$manager_theme)); |
|
| 597 | - break; |
|
| 598 | - case 112: |
|
| 599 | - // execute/run the module |
|
| 600 | - //include_once "header.inc.php"; |
|
| 601 | - include_once(includeFileProcessor("processors/execute_module.processor.php",$manager_theme)); |
|
| 602 | - //include_once "footer.inc.php"; |
|
| 603 | - break; |
|
| 604 | - case 113: |
|
| 605 | - // get the module resources (dependencies) action |
|
| 606 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 607 | - include_once(includeFileProcessor("actions/mutate_module_resources.dynamic.php",$manager_theme)); |
|
| 608 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 609 | - break; |
|
| 568 | + case 106: |
|
| 569 | + // get module management |
|
| 570 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 571 | + include_once(includeFileProcessor("actions/modules.static.php",$manager_theme)); |
|
| 572 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 573 | + break; |
|
| 574 | + case 107: |
|
| 575 | + // get the new module action |
|
| 576 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 577 | + include_once(includeFileProcessor("actions/mutate_module.dynamic.php",$manager_theme)); |
|
| 578 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 579 | + break; |
|
| 580 | + case 108: |
|
| 581 | + // get the edit module action |
|
| 582 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 583 | + include_once(includeFileProcessor("actions/mutate_module.dynamic.php",$manager_theme)); |
|
| 584 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 585 | + break; |
|
| 586 | + case 109: |
|
| 587 | + // get the save processor |
|
| 588 | + include_once(includeFileProcessor("processors/save_module.processor.php",$manager_theme)); |
|
| 589 | + break; |
|
| 590 | + case 110: |
|
| 591 | + // get the delete processor |
|
| 592 | + include_once(includeFileProcessor("processors/delete_module.processor.php",$manager_theme)); |
|
| 593 | + break; |
|
| 594 | + case 111: |
|
| 595 | + // get the duplicate processor |
|
| 596 | + include_once(includeFileProcessor("processors/duplicate_module.processor.php",$manager_theme)); |
|
| 597 | + break; |
|
| 598 | + case 112: |
|
| 599 | + // execute/run the module |
|
| 600 | + //include_once "header.inc.php"; |
|
| 601 | + include_once(includeFileProcessor("processors/execute_module.processor.php",$manager_theme)); |
|
| 602 | + //include_once "footer.inc.php"; |
|
| 603 | + break; |
|
| 604 | + case 113: |
|
| 605 | + // get the module resources (dependencies) action |
|
| 606 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 607 | + include_once(includeFileProcessor("actions/mutate_module_resources.dynamic.php",$manager_theme)); |
|
| 608 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 609 | + break; |
|
| 610 | 610 | /********************************************************************/ |
| 611 | 611 | /* plugin management */ |
| 612 | 612 | /********************************************************************/ |
| 613 | - case 100: |
|
| 614 | - // change the plugin priority |
|
| 615 | - //include_once "header.inc.php"; - in action file |
|
| 616 | - include_once(includeFileProcessor("actions/mutate_plugin_priority.dynamic.php",$manager_theme)); |
|
| 617 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 618 | - break; |
|
| 619 | - case 101: |
|
| 620 | - // get the new plugin action |
|
| 621 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 622 | - include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php",$manager_theme)); |
|
| 623 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 624 | - break; |
|
| 625 | - case 102: |
|
| 626 | - // get the edit plugin action |
|
| 627 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 628 | - include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php",$manager_theme)); |
|
| 629 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 630 | - break; |
|
| 631 | - case 103: |
|
| 632 | - // get the save processor |
|
| 633 | - include_once(includeFileProcessor("processors/save_plugin.processor.php",$manager_theme)); |
|
| 634 | - break; |
|
| 635 | - case 104: |
|
| 636 | - // get the delete processor |
|
| 637 | - include_once(includeFileProcessor("processors/delete_plugin.processor.php",$manager_theme)); |
|
| 638 | - break; |
|
| 639 | - case 105: |
|
| 640 | - // get the duplicate processor |
|
| 641 | - include_once(includeFileProcessor("processors/duplicate_plugin.processor.php",$manager_theme)); |
|
| 642 | - break; |
|
| 643 | - case 119: |
|
| 644 | - // get the purge processor |
|
| 645 | - include_once(includeFileProcessor("processors/purge_plugin.processor.php",$manager_theme)); |
|
| 646 | - break; |
|
| 613 | + case 100: |
|
| 614 | + // change the plugin priority |
|
| 615 | + //include_once "header.inc.php"; - in action file |
|
| 616 | + include_once(includeFileProcessor("actions/mutate_plugin_priority.dynamic.php",$manager_theme)); |
|
| 617 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 618 | + break; |
|
| 619 | + case 101: |
|
| 620 | + // get the new plugin action |
|
| 621 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 622 | + include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php",$manager_theme)); |
|
| 623 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 624 | + break; |
|
| 625 | + case 102: |
|
| 626 | + // get the edit plugin action |
|
| 627 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 628 | + include_once(includeFileProcessor("actions/mutate_plugin.dynamic.php",$manager_theme)); |
|
| 629 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 630 | + break; |
|
| 631 | + case 103: |
|
| 632 | + // get the save processor |
|
| 633 | + include_once(includeFileProcessor("processors/save_plugin.processor.php",$manager_theme)); |
|
| 634 | + break; |
|
| 635 | + case 104: |
|
| 636 | + // get the delete processor |
|
| 637 | + include_once(includeFileProcessor("processors/delete_plugin.processor.php",$manager_theme)); |
|
| 638 | + break; |
|
| 639 | + case 105: |
|
| 640 | + // get the duplicate processor |
|
| 641 | + include_once(includeFileProcessor("processors/duplicate_plugin.processor.php",$manager_theme)); |
|
| 642 | + break; |
|
| 643 | + case 119: |
|
| 644 | + // get the purge processor |
|
| 645 | + include_once(includeFileProcessor("processors/purge_plugin.processor.php",$manager_theme)); |
|
| 646 | + break; |
|
| 647 | 647 | /********************************************************************/ |
| 648 | 648 | /* view phpinfo */ |
| 649 | 649 | /********************************************************************/ |
| 650 | - case 200: |
|
| 651 | - // show phpInfo |
|
| 652 | - if($modx->hasPermission('logs')) { |
|
| 653 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 654 | - include_once(includeFileProcessor("actions/phpinfo.static.php",$manager_theme)); |
|
| 655 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 656 | - } |
|
| 657 | - break; |
|
| 650 | + case 200: |
|
| 651 | + // show phpInfo |
|
| 652 | + if($modx->hasPermission('logs')) { |
|
| 653 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 654 | + include_once(includeFileProcessor("actions/phpinfo.static.php",$manager_theme)); |
|
| 655 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 656 | + } |
|
| 657 | + break; |
|
| 658 | 658 | /********************************************************************/ |
| 659 | 659 | /* errorpage */ |
| 660 | 660 | /********************************************************************/ |
| 661 | - case 29: |
|
| 662 | - // get the error page |
|
| 663 | - include_once(includeFileProcessor("actions/error_dialog.static.php",$manager_theme)); |
|
| 664 | - break; |
|
| 661 | + case 29: |
|
| 662 | + // get the error page |
|
| 663 | + include_once(includeFileProcessor("actions/error_dialog.static.php",$manager_theme)); |
|
| 664 | + break; |
|
| 665 | 665 | /********************************************************************/ |
| 666 | 666 | /* file manager */ |
| 667 | 667 | /********************************************************************/ |
| 668 | - case 31: |
|
| 669 | - // get the page to manage files |
|
| 670 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 671 | - include_once(includeFileProcessor("actions/files.dynamic.php",$manager_theme)); |
|
| 672 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 673 | - break; |
|
| 668 | + case 31: |
|
| 669 | + // get the page to manage files |
|
| 670 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 671 | + include_once(includeFileProcessor("actions/files.dynamic.php",$manager_theme)); |
|
| 672 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 673 | + break; |
|
| 674 | 674 | /********************************************************************/ |
| 675 | 675 | /* access permissions */ |
| 676 | 676 | /********************************************************************/ |
| 677 | - case 40: |
|
| 678 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 679 | - include_once(includeFileProcessor("actions/access_permissions.dynamic.php",$manager_theme)); |
|
| 680 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 681 | - break; |
|
| 682 | - case 91: |
|
| 683 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 684 | - include_once(includeFileProcessor("actions/web_access_permissions.dynamic.php",$manager_theme)); |
|
| 685 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 686 | - break; |
|
| 677 | + case 40: |
|
| 678 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 679 | + include_once(includeFileProcessor("actions/access_permissions.dynamic.php",$manager_theme)); |
|
| 680 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 681 | + break; |
|
| 682 | + case 91: |
|
| 683 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 684 | + include_once(includeFileProcessor("actions/web_access_permissions.dynamic.php",$manager_theme)); |
|
| 685 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 686 | + break; |
|
| 687 | 687 | /********************************************************************/ |
| 688 | 688 | /* access groups processor */ |
| 689 | 689 | /********************************************************************/ |
| 690 | - case 41: |
|
| 691 | - include_once(includeFileProcessor("processors/access_groups.processor.php",$manager_theme)); |
|
| 692 | - break; |
|
| 693 | - case 92: |
|
| 694 | - include_once(includeFileProcessor("processors/web_access_groups.processor.php",$manager_theme)); |
|
| 695 | - break; |
|
| 690 | + case 41: |
|
| 691 | + include_once(includeFileProcessor("processors/access_groups.processor.php",$manager_theme)); |
|
| 692 | + break; |
|
| 693 | + case 92: |
|
| 694 | + include_once(includeFileProcessor("processors/web_access_groups.processor.php",$manager_theme)); |
|
| 695 | + break; |
|
| 696 | 696 | /********************************************************************/ |
| 697 | 697 | /* settings editor */ |
| 698 | 698 | /********************************************************************/ |
| 699 | - case 17: |
|
| 700 | - // get the settings editor |
|
| 701 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 702 | - include_once(includeFileProcessor("actions/mutate_settings.dynamic.php",$manager_theme)); |
|
| 703 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 704 | - break; |
|
| 705 | - case 118: |
|
| 706 | - // call settings ajax include |
|
| 707 | - ob_clean(); |
|
| 708 | - include_once(includeFileProcessor("includes/mutate_settings.ajax.php",$manager_theme)); |
|
| 709 | - break; |
|
| 699 | + case 17: |
|
| 700 | + // get the settings editor |
|
| 701 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 702 | + include_once(includeFileProcessor("actions/mutate_settings.dynamic.php",$manager_theme)); |
|
| 703 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 704 | + break; |
|
| 705 | + case 118: |
|
| 706 | + // call settings ajax include |
|
| 707 | + ob_clean(); |
|
| 708 | + include_once(includeFileProcessor("includes/mutate_settings.ajax.php",$manager_theme)); |
|
| 709 | + break; |
|
| 710 | 710 | /********************************************************************/ |
| 711 | 711 | /* save settings */ |
| 712 | 712 | /********************************************************************/ |
| 713 | - case 30: |
|
| 714 | - // get the save settings processor |
|
| 715 | - include_once(includeFileProcessor("processors/save_settings.processor.php",$manager_theme)); |
|
| 716 | - break; |
|
| 713 | + case 30: |
|
| 714 | + // get the save settings processor |
|
| 715 | + include_once(includeFileProcessor("processors/save_settings.processor.php",$manager_theme)); |
|
| 716 | + break; |
|
| 717 | 717 | /********************************************************************/ |
| 718 | 718 | /* system information */ |
| 719 | 719 | /********************************************************************/ |
| 720 | - case 53: |
|
| 721 | - // get the settings editor |
|
| 722 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 723 | - include_once(includeFileProcessor("actions/sysinfo.static.php",$manager_theme)); |
|
| 724 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 725 | - break; |
|
| 720 | + case 53: |
|
| 721 | + // get the settings editor |
|
| 722 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 723 | + include_once(includeFileProcessor("actions/sysinfo.static.php",$manager_theme)); |
|
| 724 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 725 | + break; |
|
| 726 | 726 | /********************************************************************/ |
| 727 | 727 | /* optimise table */ |
| 728 | 728 | /********************************************************************/ |
| 729 | - case 54: |
|
| 730 | - // get the table optimizer/truncate processor |
|
| 731 | - include_once(includeFileProcessor("processors/optimize_table.processor.php",$manager_theme)); |
|
| 732 | - break; |
|
| 729 | + case 54: |
|
| 730 | + // get the table optimizer/truncate processor |
|
| 731 | + include_once(includeFileProcessor("processors/optimize_table.processor.php",$manager_theme)); |
|
| 732 | + break; |
|
| 733 | 733 | /********************************************************************/ |
| 734 | 734 | /* view logging */ |
| 735 | 735 | /********************************************************************/ |
| 736 | - case 13: |
|
| 737 | - // view logging |
|
| 738 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 739 | - include_once(includeFileProcessor("actions/logging.static.php",$manager_theme)); |
|
| 740 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 741 | - break; |
|
| 736 | + case 13: |
|
| 737 | + // view logging |
|
| 738 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 739 | + include_once(includeFileProcessor("actions/logging.static.php",$manager_theme)); |
|
| 740 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 741 | + break; |
|
| 742 | 742 | /********************************************************************/ |
| 743 | 743 | /* empty logs */ |
| 744 | 744 | /********************************************************************/ |
| 745 | - case 55: |
|
| 746 | - // get the settings editor |
|
| 747 | - include_once(includeFileProcessor("processors/empty_table.processor.php",$manager_theme)); |
|
| 748 | - break; |
|
| 745 | + case 55: |
|
| 746 | + // get the settings editor |
|
| 747 | + include_once(includeFileProcessor("processors/empty_table.processor.php",$manager_theme)); |
|
| 748 | + break; |
|
| 749 | 749 | /********************************************************************/ |
| 750 | 750 | /* calls test page */ |
| 751 | 751 | /********************************************************************/ |
| 752 | - case 999: |
|
| 753 | - // get the test page |
|
| 754 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 755 | - include_once(includeFileProcessor("test_page.php",$manager_theme)); |
|
| 756 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 757 | - break; |
|
| 752 | + case 999: |
|
| 753 | + // get the test page |
|
| 754 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 755 | + include_once(includeFileProcessor("test_page.php",$manager_theme)); |
|
| 756 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 757 | + break; |
|
| 758 | 758 | /********************************************************************/ |
| 759 | 759 | /* Empty recycle bin */ |
| 760 | 760 | /********************************************************************/ |
| 761 | - case 64: |
|
| 762 | - // get the Recycle bin emptier |
|
| 763 | - include_once(includeFileProcessor("processors/remove_content.processor.php",$manager_theme)); |
|
| 764 | - break; |
|
| 761 | + case 64: |
|
| 762 | + // get the Recycle bin emptier |
|
| 763 | + include_once(includeFileProcessor("processors/remove_content.processor.php",$manager_theme)); |
|
| 764 | + break; |
|
| 765 | 765 | /********************************************************************/ |
| 766 | 766 | /* Messages */ |
| 767 | 767 | /********************************************************************/ |
| 768 | - case 10: |
|
| 769 | - // get the messages page |
|
| 770 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 771 | - include_once(includeFileProcessor("actions/messages.static.php",$manager_theme)); |
|
| 772 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 773 | - break; |
|
| 768 | + case 10: |
|
| 769 | + // get the messages page |
|
| 770 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 771 | + include_once(includeFileProcessor("actions/messages.static.php",$manager_theme)); |
|
| 772 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 773 | + break; |
|
| 774 | 774 | /********************************************************************/ |
| 775 | 775 | /* Delete a message */ |
| 776 | 776 | /********************************************************************/ |
| 777 | - case 65: |
|
| 778 | - // get the message deleter |
|
| 779 | - include_once(includeFileProcessor("processors/delete_message.processor.php",$manager_theme)); |
|
| 780 | - break; |
|
| 777 | + case 65: |
|
| 778 | + // get the message deleter |
|
| 779 | + include_once(includeFileProcessor("processors/delete_message.processor.php",$manager_theme)); |
|
| 780 | + break; |
|
| 781 | 781 | /********************************************************************/ |
| 782 | 782 | /* Send a message */ |
| 783 | 783 | /********************************************************************/ |
| 784 | - case 66: |
|
| 785 | - // get the message deleter |
|
| 786 | - include_once(includeFileProcessor("processors/send_message.processor.php",$manager_theme)); |
|
| 787 | - break; |
|
| 784 | + case 66: |
|
| 785 | + // get the message deleter |
|
| 786 | + include_once(includeFileProcessor("processors/send_message.processor.php",$manager_theme)); |
|
| 787 | + break; |
|
| 788 | 788 | /********************************************************************/ |
| 789 | 789 | /* Remove locks */ |
| 790 | 790 | /********************************************************************/ |
| 791 | - case 67: |
|
| 792 | - // get the lock remover |
|
| 793 | - include_once(includeFileProcessor("processors/remove_locks.processor.php",$manager_theme)); |
|
| 794 | - break; |
|
| 791 | + case 67: |
|
| 792 | + // get the lock remover |
|
| 793 | + include_once(includeFileProcessor("processors/remove_locks.processor.php",$manager_theme)); |
|
| 794 | + break; |
|
| 795 | 795 | /********************************************************************/ |
| 796 | 796 | /* Site schedule */ |
| 797 | 797 | /********************************************************************/ |
| 798 | - case 70: |
|
| 799 | - // get the schedule page |
|
| 800 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 801 | - include_once(includeFileProcessor("actions/site_schedule.static.php",$manager_theme)); |
|
| 802 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 803 | - break; |
|
| 798 | + case 70: |
|
| 799 | + // get the schedule page |
|
| 800 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 801 | + include_once(includeFileProcessor("actions/site_schedule.static.php",$manager_theme)); |
|
| 802 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 803 | + break; |
|
| 804 | 804 | /********************************************************************/ |
| 805 | 805 | /* Search */ |
| 806 | 806 | /********************************************************************/ |
| 807 | - case 71: |
|
| 808 | - // get the search page |
|
| 809 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 810 | - include_once(includeFileProcessor("actions/search.static.php",$manager_theme)); |
|
| 811 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 812 | - break; |
|
| 807 | + case 71: |
|
| 808 | + // get the search page |
|
| 809 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 810 | + include_once(includeFileProcessor("actions/search.static.php",$manager_theme)); |
|
| 811 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 812 | + break; |
|
| 813 | 813 | /********************************************************************/ |
| 814 | 814 | /* About */ |
| 815 | 815 | /********************************************************************/ |
| 816 | - case 59: |
|
| 817 | - // get the about page |
|
| 818 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 819 | - include_once(includeFileProcessor("actions/about.static.php",$manager_theme)); |
|
| 820 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 821 | - break; |
|
| 816 | + case 59: |
|
| 817 | + // get the about page |
|
| 818 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 819 | + include_once(includeFileProcessor("actions/about.static.php",$manager_theme)); |
|
| 820 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 821 | + break; |
|
| 822 | 822 | /********************************************************************/ |
| 823 | 823 | /* Add weblink */ |
| 824 | 824 | /********************************************************************/ |
| 825 | - case 72: |
|
| 826 | - // get the weblink page |
|
| 827 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 828 | - include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 829 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 830 | - break; |
|
| 825 | + case 72: |
|
| 826 | + // get the weblink page |
|
| 827 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 828 | + include_once(includeFileProcessor("actions/mutate_content.dynamic.php",$manager_theme)); |
|
| 829 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 830 | + break; |
|
| 831 | 831 | /********************************************************************/ |
| 832 | 832 | /* User management */ |
| 833 | 833 | /********************************************************************/ |
| 834 | - case 75: |
|
| 835 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 836 | - include_once(includeFileProcessor("actions/user_management.static.php",$manager_theme)); |
|
| 837 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 838 | - break; |
|
| 839 | - case 99: |
|
| 840 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 841 | - include_once(includeFileProcessor("actions/web_user_management.static.php",$manager_theme)); |
|
| 842 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 843 | - break; |
|
| 844 | - case 86: |
|
| 845 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 846 | - include_once(includeFileProcessor("actions/role_management.static.php",$manager_theme)); |
|
| 847 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 848 | - break; |
|
| 834 | + case 75: |
|
| 835 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 836 | + include_once(includeFileProcessor("actions/user_management.static.php",$manager_theme)); |
|
| 837 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 838 | + break; |
|
| 839 | + case 99: |
|
| 840 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 841 | + include_once(includeFileProcessor("actions/web_user_management.static.php",$manager_theme)); |
|
| 842 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 843 | + break; |
|
| 844 | + case 86: |
|
| 845 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 846 | + include_once(includeFileProcessor("actions/role_management.static.php",$manager_theme)); |
|
| 847 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 848 | + break; |
|
| 849 | 849 | /********************************************************************/ |
| 850 | 850 | /* template/ snippet management */ |
| 851 | 851 | /********************************************************************/ |
| 852 | - case 76: |
|
| 853 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 854 | - include_once(includeFileProcessor("actions/resources.static.php",$manager_theme)); |
|
| 855 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 856 | - break; |
|
| 852 | + case 76: |
|
| 853 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 854 | + include_once(includeFileProcessor("actions/resources.static.php",$manager_theme)); |
|
| 855 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 856 | + break; |
|
| 857 | 857 | /********************************************************************/ |
| 858 | 858 | /* Export to file */ |
| 859 | 859 | /********************************************************************/ |
| 860 | - case 83: |
|
| 861 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 862 | - include_once(includeFileProcessor("actions/export_site.static.php",$manager_theme)); |
|
| 863 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 864 | - break; |
|
| 860 | + case 83: |
|
| 861 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 862 | + include_once(includeFileProcessor("actions/export_site.static.php",$manager_theme)); |
|
| 863 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 864 | + break; |
|
| 865 | 865 | /********************************************************************/ |
| 866 | 866 | /* Resource Selector */ |
| 867 | 867 | /********************************************************************/ |
| 868 | - case 84: |
|
| 869 | - include_once(includeFileProcessor("actions/resource_selector.static.php",$manager_theme)); |
|
| 870 | - break; |
|
| 868 | + case 84: |
|
| 869 | + include_once(includeFileProcessor("actions/resource_selector.static.php",$manager_theme)); |
|
| 870 | + break; |
|
| 871 | 871 | /********************************************************************/ |
| 872 | 872 | /* Backup Manager */ |
| 873 | 873 | /********************************************************************/ |
| 874 | - case 93: |
|
| 875 | - # header and footer will be handled interally |
|
| 876 | - include_once(includeFileProcessor("actions/bkmanager.static.php",$manager_theme)); |
|
| 877 | - break; |
|
| 874 | + case 93: |
|
| 875 | + # header and footer will be handled interally |
|
| 876 | + include_once(includeFileProcessor("actions/bkmanager.static.php",$manager_theme)); |
|
| 877 | + break; |
|
| 878 | 878 | /********************************************************************/ |
| 879 | 879 | /* Duplicate Document */ |
| 880 | 880 | /********************************************************************/ |
| 881 | - case 94: |
|
| 882 | - // get the duplicate processor |
|
| 883 | - include_once(includeFileProcessor("processors/duplicate_content.processor.php",$manager_theme)); |
|
| 884 | - break; |
|
| 881 | + case 94: |
|
| 882 | + // get the duplicate processor |
|
| 883 | + include_once(includeFileProcessor("processors/duplicate_content.processor.php",$manager_theme)); |
|
| 884 | + break; |
|
| 885 | 885 | /********************************************************************/ |
| 886 | 886 | /* Import Document from file */ |
| 887 | 887 | /********************************************************************/ |
| 888 | - case 95: |
|
| 889 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 890 | - include_once(includeFileProcessor("actions/import_site.static.php",$manager_theme)); |
|
| 891 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 892 | - break; |
|
| 888 | + case 95: |
|
| 889 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 890 | + include_once(includeFileProcessor("actions/import_site.static.php",$manager_theme)); |
|
| 891 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 892 | + break; |
|
| 893 | 893 | /********************************************************************/ |
| 894 | 894 | /* Help */ |
| 895 | 895 | /********************************************************************/ |
| 896 | - case 9: |
|
| 897 | - // get the help page |
|
| 898 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 899 | - include_once(includeFileProcessor("actions/help.static.php",$manager_theme)); |
|
| 900 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 901 | - break; |
|
| 896 | + case 9: |
|
| 897 | + // get the help page |
|
| 898 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 899 | + include_once(includeFileProcessor("actions/help.static.php",$manager_theme)); |
|
| 900 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 901 | + break; |
|
| 902 | 902 | /********************************************************************/ |
| 903 | 903 | /* Template Variables - Based on Apodigm's Docvars */ |
| 904 | 904 | /********************************************************************/ |
| 905 | - case 300: |
|
| 906 | - // get the new document variable action |
|
| 907 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 908 | - include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php",$manager_theme)); |
|
| 909 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 910 | - break; |
|
| 911 | - case 301: |
|
| 912 | - // get the edit document variable action |
|
| 913 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 914 | - include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php",$manager_theme)); |
|
| 915 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 916 | - break; |
|
| 917 | - case 302: |
|
| 918 | - // get the save processor |
|
| 919 | - include_once(includeFileProcessor("processors/save_tmplvars.processor.php",$manager_theme)); |
|
| 920 | - break; |
|
| 921 | - case 303: |
|
| 922 | - // get the delete processor |
|
| 923 | - include_once(includeFileProcessor("processors/delete_tmplvars.processor.php",$manager_theme)); |
|
| 924 | - break; |
|
| 925 | - case 304: |
|
| 926 | - // get the duplicate processor |
|
| 927 | - include_once(includeFileProcessor("processors/duplicate_tmplvars.processor.php",$manager_theme)); |
|
| 928 | - break; |
|
| 929 | - case 305: |
|
| 930 | - // get the tv-rank action |
|
| 931 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 932 | - include_once(includeFileProcessor("actions/mutate_tv_rank.dynamic.php",$manager_theme)); |
|
| 933 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 934 | - break; |
|
| 905 | + case 300: |
|
| 906 | + // get the new document variable action |
|
| 907 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 908 | + include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php",$manager_theme)); |
|
| 909 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 910 | + break; |
|
| 911 | + case 301: |
|
| 912 | + // get the edit document variable action |
|
| 913 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 914 | + include_once(includeFileProcessor("actions/mutate_tmplvars.dynamic.php",$manager_theme)); |
|
| 915 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 916 | + break; |
|
| 917 | + case 302: |
|
| 918 | + // get the save processor |
|
| 919 | + include_once(includeFileProcessor("processors/save_tmplvars.processor.php",$manager_theme)); |
|
| 920 | + break; |
|
| 921 | + case 303: |
|
| 922 | + // get the delete processor |
|
| 923 | + include_once(includeFileProcessor("processors/delete_tmplvars.processor.php",$manager_theme)); |
|
| 924 | + break; |
|
| 925 | + case 304: |
|
| 926 | + // get the duplicate processor |
|
| 927 | + include_once(includeFileProcessor("processors/duplicate_tmplvars.processor.php",$manager_theme)); |
|
| 928 | + break; |
|
| 929 | + case 305: |
|
| 930 | + // get the tv-rank action |
|
| 931 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 932 | + include_once(includeFileProcessor("actions/mutate_tv_rank.dynamic.php",$manager_theme)); |
|
| 933 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 934 | + break; |
|
| 935 | 935 | /********************************************************************/ |
| 936 | 936 | /* Event viewer: show event message log */ |
| 937 | 937 | /********************************************************************/ |
| 938 | - case 114: |
|
| 939 | - // get event logs |
|
| 940 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 941 | - include_once(includeFileProcessor("actions/eventlog.dynamic.php",$manager_theme)); |
|
| 942 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 943 | - break; |
|
| 944 | - case 115: |
|
| 945 | - // get event log details viewer |
|
| 946 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 947 | - include_once(includeFileProcessor("actions/eventlog_details.dynamic.php",$manager_theme)); |
|
| 948 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 949 | - break; |
|
| 950 | - case 116: |
|
| 951 | - // get the event log delete processor |
|
| 952 | - include_once(includeFileProcessor("processors/delete_eventlog.processor.php",$manager_theme)); |
|
| 953 | - break; |
|
| 954 | - |
|
| 955 | - case 501: |
|
| 956 | - //delete category |
|
| 957 | - include_once(includeFileProcessor("processors/delete_category.processor.php",$manager_theme)); |
|
| 958 | - break; |
|
| 938 | + case 114: |
|
| 939 | + // get event logs |
|
| 940 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 941 | + include_once(includeFileProcessor("actions/eventlog.dynamic.php",$manager_theme)); |
|
| 942 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 943 | + break; |
|
| 944 | + case 115: |
|
| 945 | + // get event log details viewer |
|
| 946 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 947 | + include_once(includeFileProcessor("actions/eventlog_details.dynamic.php",$manager_theme)); |
|
| 948 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 949 | + break; |
|
| 950 | + case 116: |
|
| 951 | + // get the event log delete processor |
|
| 952 | + include_once(includeFileProcessor("processors/delete_eventlog.processor.php",$manager_theme)); |
|
| 953 | + break; |
|
| 954 | + |
|
| 955 | + case 501: |
|
| 956 | + //delete category |
|
| 957 | + include_once(includeFileProcessor("processors/delete_category.processor.php",$manager_theme)); |
|
| 958 | + break; |
|
| 959 | 959 | /********************************************************************/ |
| 960 | 960 | /* default action: show not implemented message */ |
| 961 | 961 | /********************************************************************/ |
| 962 | - default : |
|
| 963 | - // say that what was requested doesn't do anything yet |
|
| 964 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 965 | - echo " |
|
| 962 | + default : |
|
| 963 | + // say that what was requested doesn't do anything yet |
|
| 964 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 965 | + echo " |
|
| 966 | 966 | <div class='sectionHeader'>".$_lang['functionnotimpl']."</div> |
| 967 | 967 | <div class='sectionBody'> |
| 968 | 968 | <p>".$_lang['functionnotimpl_message']."</p> |
| 969 | 969 | </div> |
| 970 | 970 | "; |
| 971 | - include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 971 | + include_once(includeFileProcessor("includes/footer.inc.php",$manager_theme)); |
|
| 972 | 972 | } |
| 973 | 973 | |
| 974 | 974 | /********************************************************************/ |
| 975 | 975 | // log action, unless it's a frame request |
| 976 | 976 | if($action!=1 && $action!=7 && $action!=2) { |
| 977 | - $log = new EvolutionCMS\Legacy\LogHandler; |
|
| 978 | - $log->initAndWriteLog(); |
|
| 977 | + $log = new EvolutionCMS\Legacy\LogHandler; |
|
| 978 | + $log->initAndWriteLog(); |
|
| 979 | 979 | } |
| 980 | 980 | /********************************************************************/ |
| 981 | 981 | // show debug |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
| 3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
| 4 | 4 | } |
| 5 | 5 | ?> |