@@ -3,12 +3,12 @@ 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('delete_document')) { |
| 6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | $id = isset($_REQUEST['id'])? (int)$_REQUEST['id'] : 0; |
| 10 | 10 | if($id==0) { |
| 11 | - $modx->webAlertAndQuit($_lang["error_no_id"]); |
|
| 11 | + $modx->webAlertAndQuit($_lang["error_no_id"]); |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | /************ webber ********/ |
@@ -31,14 +31,14 @@ discard block |
||
| 31 | 31 | $udperms->role = $_SESSION['mgrRole']; |
| 32 | 32 | |
| 33 | 33 | if(!$udperms->checkPermissions()) { |
| 34 | - $modx->webAlertAndQuit($_lang["access_permission_denied"]); |
|
| 34 | + $modx->webAlertAndQuit($_lang["access_permission_denied"]); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | // get the timestamp on which the document was deleted. |
| 38 | 38 | $rs = $modx->getDatabase()->select('deletedon', $modx->getFullTableName('site_content'), "id='{$id}' AND deleted=1"); |
| 39 | 39 | $deltime = $modx->getDatabase()->getValue($rs); |
| 40 | 40 | if(!$deltime) { |
| 41 | - $modx->webAlertAndQuit("Couldn't find document to determine it's date of deletion!"); |
|
| 41 | + $modx->webAlertAndQuit("Couldn't find document to determine it's date of deletion!"); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $children = array(); |
@@ -46,20 +46,20 @@ discard block |
||
| 46 | 46 | getChildrenForUnDelete($id); |
| 47 | 47 | |
| 48 | 48 | if(count($children)>0) { |
| 49 | - $modx->getDatabase()->update( |
|
| 50 | - array( |
|
| 51 | - 'deleted' => 0, |
|
| 52 | - 'deletedby' => 0, |
|
| 53 | - 'deletedon' => 0, |
|
| 54 | - ), $modx->getFullTableName('site_content'), "id IN(".implode(", ", $children).")"); |
|
| 49 | + $modx->getDatabase()->update( |
|
| 50 | + array( |
|
| 51 | + 'deleted' => 0, |
|
| 52 | + 'deletedby' => 0, |
|
| 53 | + 'deletedon' => 0, |
|
| 54 | + ), $modx->getFullTableName('site_content'), "id IN(".implode(", ", $children).")"); |
|
| 55 | 55 | } |
| 56 | 56 | //'undelete' the document. |
| 57 | 57 | $modx->getDatabase()->update( |
| 58 | - array( |
|
| 59 | - 'deleted' => 0, |
|
| 60 | - 'deletedby' => 0, |
|
| 61 | - 'deletedon' => 0, |
|
| 62 | - ), $modx->getFullTableName('site_content'), "id='{$id}'"); |
|
| 58 | + array( |
|
| 59 | + 'deleted' => 0, |
|
| 60 | + 'deletedby' => 0, |
|
| 61 | + 'deletedon' => 0, |
|
| 62 | + ), $modx->getFullTableName('site_content'), "id='{$id}'"); |
|
| 63 | 63 | |
| 64 | 64 | $modx->invokeEvent("OnDocFormUnDelete", |
| 65 | 65 | array( |
@@ -3,12 +3,12 @@ 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('edit_template')) { |
| 6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | $id = isset($_GET['id'])? (int)$_GET['id'] : 0; |
| 10 | 10 | if($id==0) { |
| 11 | - $modx->webAlertAndQuit($_lang["error_no_id"]); |
|
| 11 | + $modx->webAlertAndQuit($_lang["error_no_id"]); |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | // count duplicates |
@@ -19,37 +19,37 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | // duplicate TV |
| 21 | 21 | $newid = $modx->getDatabase()->insert( |
| 22 | - array( |
|
| 23 | - 'type'=>'', |
|
| 24 | - 'name'=>'', |
|
| 25 | - 'caption'=>'', |
|
| 26 | - 'description'=>'', |
|
| 27 | - 'default_text'=>'', |
|
| 28 | - 'elements'=>'', |
|
| 29 | - 'rank'=>'', |
|
| 30 | - 'display'=>'', |
|
| 31 | - 'display_params'=>'', |
|
| 32 | - 'category'=>'', |
|
| 33 | - ), $modx->getFullTableName('site_tmplvars'), // Insert into |
|
| 34 | - "type, CONCAT(name, ' {$_lang['duplicated_el_suffix']}{$count}') AS name, CONCAT(caption, ' Duplicate{$count}') AS caption, description, default_text, elements, rank, display, display_params, category", $modx->getFullTableName('site_tmplvars'), "id='{$id}'"); // Copy from |
|
| 22 | + array( |
|
| 23 | + 'type'=>'', |
|
| 24 | + 'name'=>'', |
|
| 25 | + 'caption'=>'', |
|
| 26 | + 'description'=>'', |
|
| 27 | + 'default_text'=>'', |
|
| 28 | + 'elements'=>'', |
|
| 29 | + 'rank'=>'', |
|
| 30 | + 'display'=>'', |
|
| 31 | + 'display_params'=>'', |
|
| 32 | + 'category'=>'', |
|
| 33 | + ), $modx->getFullTableName('site_tmplvars'), // Insert into |
|
| 34 | + "type, CONCAT(name, ' {$_lang['duplicated_el_suffix']}{$count}') AS name, CONCAT(caption, ' Duplicate{$count}') AS caption, description, default_text, elements, rank, display, display_params, category", $modx->getFullTableName('site_tmplvars'), "id='{$id}'"); // Copy from |
|
| 35 | 35 | |
| 36 | 36 | |
| 37 | 37 | // duplicate TV Template Access Permissions |
| 38 | 38 | $modx->getDatabase()->insert( |
| 39 | - array( |
|
| 40 | - 'tmplvarid'=>'', |
|
| 41 | - 'templateid'=>'', |
|
| 42 | - 'rank'=>'', |
|
| 43 | - ), $modx->getFullTableName('site_tmplvar_templates'), // Insert into |
|
| 44 | - "'{$newid}', templateid, rank", $modx->getFullTableName('site_tmplvar_templates'), "tmplvarid='{$id}'"); // Copy from |
|
| 39 | + array( |
|
| 40 | + 'tmplvarid'=>'', |
|
| 41 | + 'templateid'=>'', |
|
| 42 | + 'rank'=>'', |
|
| 43 | + ), $modx->getFullTableName('site_tmplvar_templates'), // Insert into |
|
| 44 | + "'{$newid}', templateid, rank", $modx->getFullTableName('site_tmplvar_templates'), "tmplvarid='{$id}'"); // Copy from |
|
| 45 | 45 | |
| 46 | 46 | // duplicate TV Access Permissions |
| 47 | 47 | $modx->getDatabase()->insert( |
| 48 | - array( |
|
| 49 | - 'tmplvarid'=>'', |
|
| 50 | - 'documentgroup'=>'', |
|
| 51 | - ), $modx->getFullTableName('site_tmplvar_access'), // Insert into |
|
| 52 | - "'{$newid}', documentgroup", $modx->getFullTableName('site_tmplvar_access'), "tmplvarid='{$id}'"); // Copy from |
|
| 48 | + array( |
|
| 49 | + 'tmplvarid'=>'', |
|
| 50 | + 'documentgroup'=>'', |
|
| 51 | + ), $modx->getFullTableName('site_tmplvar_access'), // Insert into |
|
| 52 | + "'{$newid}', documentgroup", $modx->getFullTableName('site_tmplvar_access'), "tmplvarid='{$id}'"); // Copy from |
|
| 53 | 53 | |
| 54 | 54 | // Set the item name for logger |
| 55 | 55 | $name = $modx->getDatabase()->getValue($modx->getDatabase()->select('name', $modx->getFullTableName('site_tmplvars'), "id='{$newid}'")); |
@@ -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 |
@@ -134,11 +134,11 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | // initiate the content manager class |
| 136 | 136 | if (isset($coreClass) && class_exists($coreClass)) { |
| 137 | - $modx = new $coreClass; |
|
| 137 | + $modx = new $coreClass; |
|
| 138 | 138 | } |
| 139 | 139 | if (!isset($modx) || !($modx instanceof DocumentParser)) { |
| 140 | - include_once(MODX_MANAGER_PATH.'includes/document.parser.class.inc.php'); |
|
| 141 | - $modx = evolutionCMS(); |
|
| 140 | + include_once(MODX_MANAGER_PATH.'includes/document.parser.class.inc.php'); |
|
| 141 | + $modx = evolutionCMS(); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | $modx->loadExtension("ManagerAPI"); |
@@ -161,25 +161,25 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | // now include_once different language file as english |
| 163 | 163 | if(!isset($manager_language) || !file_exists(MODX_MANAGER_PATH."includes/lang/".$manager_language.".inc.php")) { |
| 164 | - $manager_language = "english"; // if not set, get the english language file. |
|
| 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 | 169 | if($manager_language!="english" && file_exists(MODX_MANAGER_PATH."includes/lang/".$manager_language.".inc.php")) { |
| 170 | - include_once "lang/".$manager_language.".inc.php"; |
|
| 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 | 174 | if(file_exists(MODX_MANAGER_PATH."includes/lang/override/".$manager_language.".inc.php")) { |
| 175 | - include_once "lang/override/".$manager_language.".inc.php"; |
|
| 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 | 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 |
@@ -194,19 +194,19 @@ discard block |
||
| 194 | 194 | |
| 195 | 195 | // double check the session |
| 196 | 196 | if(!isset($_SESSION['mgrValidated'])){ |
| 197 | - echo "Not Logged In!"; |
|
| 198 | - exit; |
|
| 197 | + echo "Not Logged In!"; |
|
| 198 | + exit; |
|
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | // include_once the style variables file |
| 202 | 202 | if(isset($manager_theme) && !isset($_style)) { |
| 203 | - $_style = array(); |
|
| 204 | - include_once "media/style/".$manager_theme."/style.php"; |
|
| 203 | + $_style = array(); |
|
| 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 | 208 | if(isset($allow_manager_access) && $allow_manager_access==0) { |
| 209 | - include_once "manager.lockout.inc.php"; |
|
| 209 | + include_once "manager.lockout.inc.php"; |
|
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | // Initialize System Alert Message Queque |
@@ -215,13 +215,13 @@ discard block |
||
| 215 | 215 | |
| 216 | 216 | // first we check to see if this is a frameset request |
| 217 | 217 | if(!isset($_POST['a']) && !isset($_GET['a']) && !isset($_POST['updateMsgCount'])) { |
| 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")) { |
|
| 220 | - include_once "media/style/".$manager_theme."/frames/1.php"; |
|
| 221 | - }else{ |
|
| 222 | - include_once "frames/1.php"; |
|
| 223 | - } |
|
| 224 | - exit; |
|
| 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")) { |
|
| 220 | + include_once "media/style/".$manager_theme."/frames/1.php"; |
|
| 221 | + }else{ |
|
| 222 | + include_once "frames/1.php"; |
|
| 223 | + } |
|
| 224 | + exit; |
|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | // OK, let's retrieve the action directive from the request |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | else $action = null; |
| 233 | 233 | |
| 234 | 234 | if (isset($_POST['updateMsgCount']) && $modx->hasPermission('messages')) { |
| 235 | - include_once 'messageCount.inc.php'; |
|
| 235 | + include_once 'messageCount.inc.php'; |
|
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | // save page to manager object |
@@ -240,19 +240,19 @@ discard block |
||
| 240 | 240 | |
| 241 | 241 | // attempt to foil some simple types of CSRF attacks |
| 242 | 242 | if (isset($modx->config['validate_referer']) && (int)$modx->config['validate_referer']) { |
| 243 | - if (isset($_SERVER['HTTP_REFERER'])) { |
|
| 244 | - $referer = $_SERVER['HTTP_REFERER']; |
|
| 245 | - |
|
| 246 | - if (!empty($referer)) { |
|
| 247 | - if (!preg_match('/^'.preg_quote(MODX_SITE_URL, '/').'/i', $referer)) { |
|
| 248 | - $modx->webAlertAndQuit("A possible CSRF attempt was detected from referer: {$referer}.", "index.php"); |
|
| 249 | - } |
|
| 250 | - } else { |
|
| 251 | - $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the client.", "index.php"); |
|
| 252 | - } |
|
| 253 | - } else { |
|
| 254 | - $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the server.", "index.php"); |
|
| 255 | - } |
|
| 243 | + if (isset($_SERVER['HTTP_REFERER'])) { |
|
| 244 | + $referer = $_SERVER['HTTP_REFERER']; |
|
| 245 | + |
|
| 246 | + if (!empty($referer)) { |
|
| 247 | + if (!preg_match('/^'.preg_quote(MODX_SITE_URL, '/').'/i', $referer)) { |
|
| 248 | + $modx->webAlertAndQuit("A possible CSRF attempt was detected from referer: {$referer}.", "index.php"); |
|
| 249 | + } |
|
| 250 | + } else { |
|
| 251 | + $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the client.", "index.php"); |
|
| 252 | + } |
|
| 253 | + } else { |
|
| 254 | + $modx->webAlertAndQuit("A possible CSRF attempt was detected. No referer was provided by the server.", "index.php"); |
|
| 255 | + } |
|
| 256 | 256 | } |
| 257 | 257 | |
| 258 | 258 | // invoke OnManagerPageInit event |
@@ -260,13 +260,13 @@ discard block |
||
| 260 | 260 | |
| 261 | 261 | // return element filepath |
| 262 | 262 | function includeFileProcessor ($filepath,$manager_theme) { |
| 263 | - $element = ""; |
|
| 264 | - if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath)) { |
|
| 265 | - $element = MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath; |
|
| 266 | - }else{ |
|
| 267 | - $element = $filepath; |
|
| 268 | - } |
|
| 269 | - return $element; |
|
| 263 | + $element = ""; |
|
| 264 | + if(is_file(MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath)) { |
|
| 265 | + $element = MODX_MANAGER_PATH."media/style/".$manager_theme."/".$filepath; |
|
| 266 | + }else{ |
|
| 267 | + $element = $filepath; |
|
| 268 | + } |
|
| 269 | + return $element; |
|
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | $managerTheme = new EvolutionCMS\ManagerTheme($modx, $manager_theme); |
@@ -276,713 +276,713 @@ discard block |
||
| 276 | 276 | /********************************************************************/ |
| 277 | 277 | /* frame management - show the requested frame */ |
| 278 | 278 | /********************************************************************/ |
| 279 | - case 1 : |
|
| 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 |
|
| 284 | - } |
|
| 285 | - include_once(includeFileProcessor("frames/".$frame.".php",$manager_theme)); |
|
| 286 | - break; |
|
| 279 | + case 1 : |
|
| 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 |
|
| 284 | + } |
|
| 285 | + include_once(includeFileProcessor("frames/".$frame.".php",$manager_theme)); |
|
| 286 | + break; |
|
| 287 | 287 | /********************************************************************/ |
| 288 | 288 | /* show the homepage */ |
| 289 | 289 | /********************************************************************/ |
| 290 | - case 2: |
|
| 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)); |
|
| 295 | - break; |
|
| 290 | + case 2: |
|
| 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)); |
|
| 295 | + break; |
|
| 296 | 296 | /********************************************************************/ |
| 297 | 297 | /* document data */ |
| 298 | 298 | /********************************************************************/ |
| 299 | - case 3: |
|
| 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)); |
|
| 304 | - break; |
|
| 299 | + case 3: |
|
| 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)); |
|
| 304 | + break; |
|
| 305 | 305 | /********************************************************************/ |
| 306 | 306 | /* content management */ |
| 307 | 307 | /********************************************************************/ |
| 308 | - case 85: |
|
| 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)); |
|
| 313 | - break; |
|
| 314 | - case 27: |
|
| 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)); |
|
| 319 | - break; |
|
| 320 | - case 4: |
|
| 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)); |
|
| 325 | - break; |
|
| 326 | - case 5: |
|
| 327 | - // get the save processor |
|
| 328 | - include_once(includeFileProcessor("processors/save_content.processor.php",$manager_theme)); |
|
| 329 | - break; |
|
| 330 | - case 6: |
|
| 331 | - // get the delete processor |
|
| 332 | - include_once(includeFileProcessor("processors/delete_content.processor.php",$manager_theme)); |
|
| 333 | - break; |
|
| 334 | - case 63: |
|
| 335 | - // get the undelete processor |
|
| 336 | - include_once(includeFileProcessor("processors/undelete_content.processor.php",$manager_theme)); |
|
| 337 | - break; |
|
| 338 | - case 51: |
|
| 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)); |
|
| 343 | - break; |
|
| 344 | - case 52: |
|
| 345 | - // get the move document processor |
|
| 346 | - include_once(includeFileProcessor("processors/move_document.processor.php",$manager_theme)); |
|
| 347 | - break; |
|
| 348 | - case 61: |
|
| 349 | - // get the processor for publishing content |
|
| 350 | - include_once(includeFileProcessor("processors/publish_content.processor.php",$manager_theme)); |
|
| 351 | - break; |
|
| 352 | - case 62: |
|
| 353 | - // get the processor for publishing content |
|
| 354 | - include_once(includeFileProcessor("processors/unpublish_content.processor.php",$manager_theme)); |
|
| 355 | - break; |
|
| 356 | - case 56: |
|
| 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)); |
|
| 361 | - break; |
|
| 308 | + case 85: |
|
| 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)); |
|
| 313 | + break; |
|
| 314 | + case 27: |
|
| 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)); |
|
| 319 | + break; |
|
| 320 | + case 4: |
|
| 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)); |
|
| 325 | + break; |
|
| 326 | + case 5: |
|
| 327 | + // get the save processor |
|
| 328 | + include_once(includeFileProcessor("processors/save_content.processor.php",$manager_theme)); |
|
| 329 | + break; |
|
| 330 | + case 6: |
|
| 331 | + // get the delete processor |
|
| 332 | + include_once(includeFileProcessor("processors/delete_content.processor.php",$manager_theme)); |
|
| 333 | + break; |
|
| 334 | + case 63: |
|
| 335 | + // get the undelete processor |
|
| 336 | + include_once(includeFileProcessor("processors/undelete_content.processor.php",$manager_theme)); |
|
| 337 | + break; |
|
| 338 | + case 51: |
|
| 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)); |
|
| 343 | + break; |
|
| 344 | + case 52: |
|
| 345 | + // get the move document processor |
|
| 346 | + include_once(includeFileProcessor("processors/move_document.processor.php",$manager_theme)); |
|
| 347 | + break; |
|
| 348 | + case 61: |
|
| 349 | + // get the processor for publishing content |
|
| 350 | + include_once(includeFileProcessor("processors/publish_content.processor.php",$manager_theme)); |
|
| 351 | + break; |
|
| 352 | + case 62: |
|
| 353 | + // get the processor for publishing content |
|
| 354 | + include_once(includeFileProcessor("processors/unpublish_content.processor.php",$manager_theme)); |
|
| 355 | + break; |
|
| 356 | + case 56: |
|
| 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)); |
|
| 361 | + break; |
|
| 362 | 362 | /********************************************************************/ |
| 363 | 363 | /* show the wait page - gives the tree time to refresh (hopefully) */ |
| 364 | 364 | /********************************************************************/ |
| 365 | - case 7: |
|
| 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)); |
|
| 370 | - break; |
|
| 365 | + case 7: |
|
| 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)); |
|
| 370 | + break; |
|
| 371 | 371 | /********************************************************************/ |
| 372 | 372 | /* let the user log out */ |
| 373 | 373 | /********************************************************************/ |
| 374 | - case 8: |
|
| 375 | - // get the logout processor |
|
| 376 | - include_once(includeFileProcessor("processors/logout.processor.php",$manager_theme)); |
|
| 377 | - break; |
|
| 374 | + case 8: |
|
| 375 | + // get the logout processor |
|
| 376 | + include_once(includeFileProcessor("processors/logout.processor.php",$manager_theme)); |
|
| 377 | + break; |
|
| 378 | 378 | /********************************************************************/ |
| 379 | 379 | /* user management */ |
| 380 | 380 | /********************************************************************/ |
| 381 | - case 87: |
|
| 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)); |
|
| 386 | - break; |
|
| 387 | - case 88: |
|
| 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)); |
|
| 392 | - break; |
|
| 393 | - case 89: |
|
| 394 | - // get the save web user processor |
|
| 395 | - include_once(includeFileProcessor("processors/save_web_user.processor.php",$manager_theme)); |
|
| 396 | - break; |
|
| 397 | - case 90: |
|
| 398 | - // get the delete web user page |
|
| 399 | - include_once(includeFileProcessor("processors/delete_web_user.processor.php",$manager_theme)); |
|
| 400 | - break; |
|
| 401 | - case 11: |
|
| 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)); |
|
| 406 | - break; |
|
| 407 | - case 12: |
|
| 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)); |
|
| 412 | - break; |
|
| 413 | - case 32: |
|
| 414 | - // get the save user processor |
|
| 415 | - include_once(includeFileProcessor("processors/save_user.processor.php",$manager_theme)); |
|
| 416 | - break; |
|
| 417 | - case 28: |
|
| 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)); |
|
| 422 | - break; |
|
| 423 | - case 34: |
|
| 424 | - // get the save new password page |
|
| 425 | - include_once(includeFileProcessor("processors/save_password.processor.php",$manager_theme)); |
|
| 426 | - break; |
|
| 427 | - case 33: |
|
| 428 | - // get the delete user page |
|
| 429 | - include_once(includeFileProcessor("processors/delete_user.processor.php",$manager_theme)); |
|
| 430 | - break; |
|
| 381 | + case 87: |
|
| 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)); |
|
| 386 | + break; |
|
| 387 | + case 88: |
|
| 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)); |
|
| 392 | + break; |
|
| 393 | + case 89: |
|
| 394 | + // get the save web user processor |
|
| 395 | + include_once(includeFileProcessor("processors/save_web_user.processor.php",$manager_theme)); |
|
| 396 | + break; |
|
| 397 | + case 90: |
|
| 398 | + // get the delete web user page |
|
| 399 | + include_once(includeFileProcessor("processors/delete_web_user.processor.php",$manager_theme)); |
|
| 400 | + break; |
|
| 401 | + case 11: |
|
| 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)); |
|
| 406 | + break; |
|
| 407 | + case 12: |
|
| 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)); |
|
| 412 | + break; |
|
| 413 | + case 32: |
|
| 414 | + // get the save user processor |
|
| 415 | + include_once(includeFileProcessor("processors/save_user.processor.php",$manager_theme)); |
|
| 416 | + break; |
|
| 417 | + case 28: |
|
| 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)); |
|
| 422 | + break; |
|
| 423 | + case 34: |
|
| 424 | + // get the save new password page |
|
| 425 | + include_once(includeFileProcessor("processors/save_password.processor.php",$manager_theme)); |
|
| 426 | + break; |
|
| 427 | + case 33: |
|
| 428 | + // get the delete user page |
|
| 429 | + include_once(includeFileProcessor("processors/delete_user.processor.php",$manager_theme)); |
|
| 430 | + break; |
|
| 431 | 431 | /********************************************************************/ |
| 432 | 432 | /* role management */ |
| 433 | 433 | /********************************************************************/ |
| 434 | - case 38: |
|
| 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)); |
|
| 439 | - break; |
|
| 440 | - case 35: |
|
| 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)); |
|
| 445 | - break; |
|
| 446 | - case 36: |
|
| 447 | - // get the save role page |
|
| 448 | - include_once(includeFileProcessor("processors/save_role.processor.php",$manager_theme)); |
|
| 449 | - break; |
|
| 450 | - case 37: |
|
| 451 | - // get the delete role page |
|
| 452 | - include_once(includeFileProcessor("processors/delete_role.processor.php",$manager_theme)); |
|
| 453 | - break; |
|
| 434 | + case 38: |
|
| 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)); |
|
| 439 | + break; |
|
| 440 | + case 35: |
|
| 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)); |
|
| 445 | + break; |
|
| 446 | + case 36: |
|
| 447 | + // get the save role page |
|
| 448 | + include_once(includeFileProcessor("processors/save_role.processor.php",$manager_theme)); |
|
| 449 | + break; |
|
| 450 | + case 37: |
|
| 451 | + // get the delete role page |
|
| 452 | + include_once(includeFileProcessor("processors/delete_role.processor.php",$manager_theme)); |
|
| 453 | + break; |
|
| 454 | 454 | /********************************************************************/ |
| 455 | 455 | /* category management */ |
| 456 | 456 | /********************************************************************/ |
| 457 | - case 120: |
|
| 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)); |
|
| 462 | - break; |
|
| 463 | - case 121: |
|
| 464 | - // for ajax-requests |
|
| 465 | - include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 466 | - break; |
|
| 457 | + case 120: |
|
| 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)); |
|
| 462 | + break; |
|
| 463 | + case 121: |
|
| 464 | + // for ajax-requests |
|
| 465 | + include_once(includeFileProcessor("actions/mutate_categories.dynamic.php",$manager_theme)); |
|
| 466 | + break; |
|
| 467 | 467 | /********************************************************************/ |
| 468 | 468 | /* template management */ |
| 469 | 469 | /********************************************************************/ |
| 470 | - case 16: |
|
| 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)); |
|
| 475 | - break; |
|
| 476 | - case 19: |
|
| 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)); |
|
| 481 | - break; |
|
| 482 | - case 20: |
|
| 483 | - // get the save processor |
|
| 484 | - include_once(includeFileProcessor("processors/save_template.processor.php",$manager_theme)); |
|
| 485 | - break; |
|
| 486 | - case 21: |
|
| 487 | - // get the delete processor |
|
| 488 | - include_once(includeFileProcessor("processors/delete_template.processor.php",$manager_theme)); |
|
| 489 | - break; |
|
| 490 | - case 96: |
|
| 491 | - // get the duplicate template processor |
|
| 492 | - include_once(includeFileProcessor("processors/duplicate_template.processor.php",$manager_theme)); |
|
| 493 | - break; |
|
| 494 | - case 117: |
|
| 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)); |
|
| 499 | - break; |
|
| 470 | + case 16: |
|
| 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)); |
|
| 475 | + break; |
|
| 476 | + case 19: |
|
| 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)); |
|
| 481 | + break; |
|
| 482 | + case 20: |
|
| 483 | + // get the save processor |
|
| 484 | + include_once(includeFileProcessor("processors/save_template.processor.php",$manager_theme)); |
|
| 485 | + break; |
|
| 486 | + case 21: |
|
| 487 | + // get the delete processor |
|
| 488 | + include_once(includeFileProcessor("processors/delete_template.processor.php",$manager_theme)); |
|
| 489 | + break; |
|
| 490 | + case 96: |
|
| 491 | + // get the duplicate template processor |
|
| 492 | + include_once(includeFileProcessor("processors/duplicate_template.processor.php",$manager_theme)); |
|
| 493 | + break; |
|
| 494 | + case 117: |
|
| 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)); |
|
| 499 | + break; |
|
| 500 | 500 | /********************************************************************/ |
| 501 | 501 | /* snippet management */ |
| 502 | 502 | /********************************************************************/ |
| 503 | - case 22: |
|
| 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)); |
|
| 508 | - break; |
|
| 509 | - case 23: |
|
| 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)); |
|
| 514 | - break; |
|
| 515 | - case 24: |
|
| 516 | - // get the save processor |
|
| 517 | - include_once(includeFileProcessor("processors/save_snippet.processor.php",$manager_theme)); |
|
| 518 | - break; |
|
| 519 | - case 25: |
|
| 520 | - // get the delete processor |
|
| 521 | - include_once(includeFileProcessor("processors/delete_snippet.processor.php",$manager_theme)); |
|
| 522 | - break; |
|
| 523 | - case 98: |
|
| 524 | - // get the duplicate processor |
|
| 525 | - include_once(includeFileProcessor("processors/duplicate_snippet.processor.php",$manager_theme)); |
|
| 526 | - break; |
|
| 503 | + case 22: |
|
| 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)); |
|
| 508 | + break; |
|
| 509 | + case 23: |
|
| 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)); |
|
| 514 | + break; |
|
| 515 | + case 24: |
|
| 516 | + // get the save processor |
|
| 517 | + include_once(includeFileProcessor("processors/save_snippet.processor.php",$manager_theme)); |
|
| 518 | + break; |
|
| 519 | + case 25: |
|
| 520 | + // get the delete processor |
|
| 521 | + include_once(includeFileProcessor("processors/delete_snippet.processor.php",$manager_theme)); |
|
| 522 | + break; |
|
| 523 | + case 98: |
|
| 524 | + // get the duplicate processor |
|
| 525 | + include_once(includeFileProcessor("processors/duplicate_snippet.processor.php",$manager_theme)); |
|
| 526 | + break; |
|
| 527 | 527 | /********************************************************************/ |
| 528 | 528 | /* htmlsnippet management */ |
| 529 | 529 | /********************************************************************/ |
| 530 | - case 78: |
|
| 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)); |
|
| 535 | - break; |
|
| 536 | - case 77: |
|
| 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)); |
|
| 541 | - break; |
|
| 542 | - case 79: |
|
| 543 | - // get the save processor |
|
| 544 | - include_once(includeFileProcessor("processors/save_htmlsnippet.processor.php",$manager_theme)); |
|
| 545 | - break; |
|
| 546 | - case 80: |
|
| 547 | - // get the delete processor |
|
| 548 | - include_once(includeFileProcessor("processors/delete_htmlsnippet.processor.php",$manager_theme)); |
|
| 549 | - break; |
|
| 550 | - case 97: |
|
| 551 | - // get the duplicate processor |
|
| 552 | - include_once(includeFileProcessor("processors/duplicate_htmlsnippet.processor.php",$manager_theme)); |
|
| 553 | - break; |
|
| 530 | + case 78: |
|
| 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)); |
|
| 535 | + break; |
|
| 536 | + case 77: |
|
| 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)); |
|
| 541 | + break; |
|
| 542 | + case 79: |
|
| 543 | + // get the save processor |
|
| 544 | + include_once(includeFileProcessor("processors/save_htmlsnippet.processor.php",$manager_theme)); |
|
| 545 | + break; |
|
| 546 | + case 80: |
|
| 547 | + // get the delete processor |
|
| 548 | + include_once(includeFileProcessor("processors/delete_htmlsnippet.processor.php",$manager_theme)); |
|
| 549 | + break; |
|
| 550 | + case 97: |
|
| 551 | + // get the duplicate processor |
|
| 552 | + include_once(includeFileProcessor("processors/duplicate_htmlsnippet.processor.php",$manager_theme)); |
|
| 553 | + break; |
|
| 554 | 554 | /********************************************************************/ |
| 555 | 555 | /* show the credits page */ |
| 556 | 556 | /********************************************************************/ |
| 557 | - case 18: |
|
| 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)); |
|
| 562 | - break; |
|
| 557 | + case 18: |
|
| 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)); |
|
| 562 | + break; |
|
| 563 | 563 | /********************************************************************/ |
| 564 | 564 | /* empty cache & synchronisation */ |
| 565 | 565 | /********************************************************************/ |
| 566 | - case 26: |
|
| 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)); |
|
| 571 | - break; |
|
| 566 | + case 26: |
|
| 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)); |
|
| 571 | + break; |
|
| 572 | 572 | /********************************************************************/ |
| 573 | 573 | /* Module management */ |
| 574 | 574 | /********************************************************************/ |
| 575 | - case 106: |
|
| 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)); |
|
| 580 | - break; |
|
| 581 | - case 107: |
|
| 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)); |
|
| 586 | - break; |
|
| 587 | - case 108: |
|
| 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)); |
|
| 592 | - break; |
|
| 593 | - case 109: |
|
| 594 | - // get the save processor |
|
| 595 | - include_once(includeFileProcessor("processors/save_module.processor.php",$manager_theme)); |
|
| 596 | - break; |
|
| 597 | - case 110: |
|
| 598 | - // get the delete processor |
|
| 599 | - include_once(includeFileProcessor("processors/delete_module.processor.php",$manager_theme)); |
|
| 600 | - break; |
|
| 601 | - case 111: |
|
| 602 | - // get the duplicate processor |
|
| 603 | - include_once(includeFileProcessor("processors/duplicate_module.processor.php",$manager_theme)); |
|
| 604 | - break; |
|
| 605 | - case 112: |
|
| 606 | - // execute/run the module |
|
| 607 | - //include_once "header.inc.php"; |
|
| 608 | - include_once(includeFileProcessor("processors/execute_module.processor.php",$manager_theme)); |
|
| 609 | - //include_once "footer.inc.php"; |
|
| 610 | - break; |
|
| 611 | - case 113: |
|
| 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)); |
|
| 616 | - break; |
|
| 575 | + case 106: |
|
| 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)); |
|
| 580 | + break; |
|
| 581 | + case 107: |
|
| 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)); |
|
| 586 | + break; |
|
| 587 | + case 108: |
|
| 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)); |
|
| 592 | + break; |
|
| 593 | + case 109: |
|
| 594 | + // get the save processor |
|
| 595 | + include_once(includeFileProcessor("processors/save_module.processor.php",$manager_theme)); |
|
| 596 | + break; |
|
| 597 | + case 110: |
|
| 598 | + // get the delete processor |
|
| 599 | + include_once(includeFileProcessor("processors/delete_module.processor.php",$manager_theme)); |
|
| 600 | + break; |
|
| 601 | + case 111: |
|
| 602 | + // get the duplicate processor |
|
| 603 | + include_once(includeFileProcessor("processors/duplicate_module.processor.php",$manager_theme)); |
|
| 604 | + break; |
|
| 605 | + case 112: |
|
| 606 | + // execute/run the module |
|
| 607 | + //include_once "header.inc.php"; |
|
| 608 | + include_once(includeFileProcessor("processors/execute_module.processor.php",$manager_theme)); |
|
| 609 | + //include_once "footer.inc.php"; |
|
| 610 | + break; |
|
| 611 | + case 113: |
|
| 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)); |
|
| 616 | + break; |
|
| 617 | 617 | /********************************************************************/ |
| 618 | 618 | /* plugin management */ |
| 619 | 619 | /********************************************************************/ |
| 620 | - case 100: |
|
| 621 | - // change the plugin priority |
|
| 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)); |
|
| 625 | - break; |
|
| 626 | - case 101: |
|
| 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)); |
|
| 631 | - break; |
|
| 632 | - case 102: |
|
| 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)); |
|
| 637 | - break; |
|
| 638 | - case 103: |
|
| 639 | - // get the save processor |
|
| 640 | - include_once(includeFileProcessor("processors/save_plugin.processor.php",$manager_theme)); |
|
| 641 | - break; |
|
| 642 | - case 104: |
|
| 643 | - // get the delete processor |
|
| 644 | - include_once(includeFileProcessor("processors/delete_plugin.processor.php",$manager_theme)); |
|
| 645 | - break; |
|
| 646 | - case 105: |
|
| 647 | - // get the duplicate processor |
|
| 648 | - include_once(includeFileProcessor("processors/duplicate_plugin.processor.php",$manager_theme)); |
|
| 649 | - break; |
|
| 650 | - case 119: |
|
| 651 | - // get the purge processor |
|
| 652 | - include_once(includeFileProcessor("processors/purge_plugin.processor.php",$manager_theme)); |
|
| 653 | - break; |
|
| 620 | + case 100: |
|
| 621 | + // change the plugin priority |
|
| 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)); |
|
| 625 | + break; |
|
| 626 | + case 101: |
|
| 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)); |
|
| 631 | + break; |
|
| 632 | + case 102: |
|
| 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)); |
|
| 637 | + break; |
|
| 638 | + case 103: |
|
| 639 | + // get the save processor |
|
| 640 | + include_once(includeFileProcessor("processors/save_plugin.processor.php",$manager_theme)); |
|
| 641 | + break; |
|
| 642 | + case 104: |
|
| 643 | + // get the delete processor |
|
| 644 | + include_once(includeFileProcessor("processors/delete_plugin.processor.php",$manager_theme)); |
|
| 645 | + break; |
|
| 646 | + case 105: |
|
| 647 | + // get the duplicate processor |
|
| 648 | + include_once(includeFileProcessor("processors/duplicate_plugin.processor.php",$manager_theme)); |
|
| 649 | + break; |
|
| 650 | + case 119: |
|
| 651 | + // get the purge processor |
|
| 652 | + include_once(includeFileProcessor("processors/purge_plugin.processor.php",$manager_theme)); |
|
| 653 | + break; |
|
| 654 | 654 | /********************************************************************/ |
| 655 | 655 | /* view phpinfo */ |
| 656 | 656 | /********************************************************************/ |
| 657 | - case 200: |
|
| 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)); |
|
| 663 | - } |
|
| 664 | - break; |
|
| 657 | + case 200: |
|
| 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)); |
|
| 663 | + } |
|
| 664 | + break; |
|
| 665 | 665 | /********************************************************************/ |
| 666 | 666 | /* errorpage */ |
| 667 | 667 | /********************************************************************/ |
| 668 | - case 29: |
|
| 669 | - // get the error page |
|
| 670 | - include_once(includeFileProcessor("actions/error_dialog.static.php",$manager_theme)); |
|
| 671 | - break; |
|
| 668 | + case 29: |
|
| 669 | + // get the error page |
|
| 670 | + include_once(includeFileProcessor("actions/error_dialog.static.php",$manager_theme)); |
|
| 671 | + break; |
|
| 672 | 672 | /********************************************************************/ |
| 673 | 673 | /* file manager */ |
| 674 | 674 | /********************************************************************/ |
| 675 | - case 31: |
|
| 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)); |
|
| 680 | - break; |
|
| 675 | + case 31: |
|
| 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)); |
|
| 680 | + break; |
|
| 681 | 681 | /********************************************************************/ |
| 682 | 682 | /* access permissions */ |
| 683 | 683 | /********************************************************************/ |
| 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)); |
|
| 688 | - break; |
|
| 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)); |
|
| 693 | - break; |
|
| 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)); |
|
| 688 | + break; |
|
| 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)); |
|
| 693 | + break; |
|
| 694 | 694 | /********************************************************************/ |
| 695 | 695 | /* access groups processor */ |
| 696 | 696 | /********************************************************************/ |
| 697 | - case 41: |
|
| 698 | - include_once(includeFileProcessor("processors/access_groups.processor.php",$manager_theme)); |
|
| 699 | - break; |
|
| 700 | - case 92: |
|
| 701 | - include_once(includeFileProcessor("processors/web_access_groups.processor.php",$manager_theme)); |
|
| 702 | - break; |
|
| 697 | + case 41: |
|
| 698 | + include_once(includeFileProcessor("processors/access_groups.processor.php",$manager_theme)); |
|
| 699 | + break; |
|
| 700 | + case 92: |
|
| 701 | + include_once(includeFileProcessor("processors/web_access_groups.processor.php",$manager_theme)); |
|
| 702 | + break; |
|
| 703 | 703 | /********************************************************************/ |
| 704 | 704 | /* settings editor */ |
| 705 | 705 | /********************************************************************/ |
| 706 | - case 17: |
|
| 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)); |
|
| 711 | - break; |
|
| 712 | - case 118: |
|
| 713 | - // call settings ajax include |
|
| 714 | - ob_clean(); |
|
| 715 | - include_once(includeFileProcessor("includes/mutate_settings.ajax.php",$manager_theme)); |
|
| 716 | - break; |
|
| 706 | + case 17: |
|
| 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)); |
|
| 711 | + break; |
|
| 712 | + case 118: |
|
| 713 | + // call settings ajax include |
|
| 714 | + ob_clean(); |
|
| 715 | + include_once(includeFileProcessor("includes/mutate_settings.ajax.php",$manager_theme)); |
|
| 716 | + break; |
|
| 717 | 717 | /********************************************************************/ |
| 718 | 718 | /* save settings */ |
| 719 | 719 | /********************************************************************/ |
| 720 | - case 30: |
|
| 721 | - // get the save settings processor |
|
| 722 | - include_once(includeFileProcessor("processors/save_settings.processor.php",$manager_theme)); |
|
| 723 | - break; |
|
| 720 | + case 30: |
|
| 721 | + // get the save settings processor |
|
| 722 | + include_once(includeFileProcessor("processors/save_settings.processor.php",$manager_theme)); |
|
| 723 | + break; |
|
| 724 | 724 | /********************************************************************/ |
| 725 | 725 | /* system information */ |
| 726 | 726 | /********************************************************************/ |
| 727 | - case 53: |
|
| 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)); |
|
| 732 | - break; |
|
| 727 | + case 53: |
|
| 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)); |
|
| 732 | + break; |
|
| 733 | 733 | /********************************************************************/ |
| 734 | 734 | /* optimise table */ |
| 735 | 735 | /********************************************************************/ |
| 736 | - case 54: |
|
| 737 | - // get the table optimizer/truncate processor |
|
| 738 | - include_once(includeFileProcessor("processors/optimize_table.processor.php",$manager_theme)); |
|
| 739 | - break; |
|
| 736 | + case 54: |
|
| 737 | + // get the table optimizer/truncate processor |
|
| 738 | + include_once(includeFileProcessor("processors/optimize_table.processor.php",$manager_theme)); |
|
| 739 | + break; |
|
| 740 | 740 | /********************************************************************/ |
| 741 | 741 | /* view logging */ |
| 742 | 742 | /********************************************************************/ |
| 743 | - case 13: |
|
| 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)); |
|
| 748 | - break; |
|
| 743 | + case 13: |
|
| 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)); |
|
| 748 | + break; |
|
| 749 | 749 | /********************************************************************/ |
| 750 | 750 | /* empty logs */ |
| 751 | 751 | /********************************************************************/ |
| 752 | - case 55: |
|
| 753 | - // get the settings editor |
|
| 754 | - include_once(includeFileProcessor("processors/empty_table.processor.php",$manager_theme)); |
|
| 755 | - break; |
|
| 752 | + case 55: |
|
| 753 | + // get the settings editor |
|
| 754 | + include_once(includeFileProcessor("processors/empty_table.processor.php",$manager_theme)); |
|
| 755 | + break; |
|
| 756 | 756 | /********************************************************************/ |
| 757 | 757 | /* calls test page */ |
| 758 | 758 | /********************************************************************/ |
| 759 | - case 999: |
|
| 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)); |
|
| 764 | - break; |
|
| 759 | + case 999: |
|
| 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)); |
|
| 764 | + break; |
|
| 765 | 765 | /********************************************************************/ |
| 766 | 766 | /* Empty recycle bin */ |
| 767 | 767 | /********************************************************************/ |
| 768 | - case 64: |
|
| 769 | - // get the Recycle bin emptier |
|
| 770 | - include_once(includeFileProcessor("processors/remove_content.processor.php",$manager_theme)); |
|
| 771 | - break; |
|
| 768 | + case 64: |
|
| 769 | + // get the Recycle bin emptier |
|
| 770 | + include_once(includeFileProcessor("processors/remove_content.processor.php",$manager_theme)); |
|
| 771 | + break; |
|
| 772 | 772 | /********************************************************************/ |
| 773 | 773 | /* Messages */ |
| 774 | 774 | /********************************************************************/ |
| 775 | - case 10: |
|
| 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)); |
|
| 780 | - break; |
|
| 775 | + case 10: |
|
| 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)); |
|
| 780 | + break; |
|
| 781 | 781 | /********************************************************************/ |
| 782 | 782 | /* Delete a message */ |
| 783 | 783 | /********************************************************************/ |
| 784 | - case 65: |
|
| 785 | - // get the message deleter |
|
| 786 | - include_once(includeFileProcessor("processors/delete_message.processor.php",$manager_theme)); |
|
| 787 | - break; |
|
| 784 | + case 65: |
|
| 785 | + // get the message deleter |
|
| 786 | + include_once(includeFileProcessor("processors/delete_message.processor.php",$manager_theme)); |
|
| 787 | + break; |
|
| 788 | 788 | /********************************************************************/ |
| 789 | 789 | /* Send a message */ |
| 790 | 790 | /********************************************************************/ |
| 791 | - case 66: |
|
| 792 | - // get the message deleter |
|
| 793 | - include_once(includeFileProcessor("processors/send_message.processor.php",$manager_theme)); |
|
| 794 | - break; |
|
| 791 | + case 66: |
|
| 792 | + // get the message deleter |
|
| 793 | + include_once(includeFileProcessor("processors/send_message.processor.php",$manager_theme)); |
|
| 794 | + break; |
|
| 795 | 795 | /********************************************************************/ |
| 796 | 796 | /* Remove locks */ |
| 797 | 797 | /********************************************************************/ |
| 798 | - case 67: |
|
| 799 | - // get the lock remover |
|
| 800 | - include_once(includeFileProcessor("processors/remove_locks.processor.php",$manager_theme)); |
|
| 801 | - break; |
|
| 798 | + case 67: |
|
| 799 | + // get the lock remover |
|
| 800 | + include_once(includeFileProcessor("processors/remove_locks.processor.php",$manager_theme)); |
|
| 801 | + break; |
|
| 802 | 802 | /********************************************************************/ |
| 803 | 803 | /* Site schedule */ |
| 804 | 804 | /********************************************************************/ |
| 805 | - case 70: |
|
| 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)); |
|
| 810 | - break; |
|
| 805 | + case 70: |
|
| 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)); |
|
| 810 | + break; |
|
| 811 | 811 | /********************************************************************/ |
| 812 | 812 | /* Search */ |
| 813 | 813 | /********************************************************************/ |
| 814 | - case 71: |
|
| 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)); |
|
| 819 | - break; |
|
| 814 | + case 71: |
|
| 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)); |
|
| 819 | + break; |
|
| 820 | 820 | /********************************************************************/ |
| 821 | 821 | /* About */ |
| 822 | 822 | /********************************************************************/ |
| 823 | - case 59: |
|
| 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)); |
|
| 828 | - break; |
|
| 823 | + case 59: |
|
| 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)); |
|
| 828 | + break; |
|
| 829 | 829 | /********************************************************************/ |
| 830 | 830 | /* Add weblink */ |
| 831 | 831 | /********************************************************************/ |
| 832 | - case 72: |
|
| 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)); |
|
| 837 | - break; |
|
| 832 | + case 72: |
|
| 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)); |
|
| 837 | + break; |
|
| 838 | 838 | /********************************************************************/ |
| 839 | 839 | /* User management */ |
| 840 | 840 | /********************************************************************/ |
| 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)); |
|
| 845 | - break; |
|
| 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)); |
|
| 850 | - break; |
|
| 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)); |
|
| 855 | - break; |
|
| 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)); |
|
| 845 | + break; |
|
| 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)); |
|
| 850 | + break; |
|
| 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)); |
|
| 855 | + break; |
|
| 856 | 856 | /********************************************************************/ |
| 857 | 857 | /* template/ snippet management */ |
| 858 | 858 | /********************************************************************/ |
| 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)); |
|
| 863 | - break; |
|
| 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)); |
|
| 863 | + break; |
|
| 864 | 864 | /********************************************************************/ |
| 865 | 865 | /* Export to file */ |
| 866 | 866 | /********************************************************************/ |
| 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)); |
|
| 871 | - break; |
|
| 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)); |
|
| 871 | + break; |
|
| 872 | 872 | /********************************************************************/ |
| 873 | 873 | /* Resource Selector */ |
| 874 | 874 | /********************************************************************/ |
| 875 | - case 84: |
|
| 876 | - include_once(includeFileProcessor("actions/resource_selector.static.php",$manager_theme)); |
|
| 877 | - break; |
|
| 875 | + case 84: |
|
| 876 | + include_once(includeFileProcessor("actions/resource_selector.static.php",$manager_theme)); |
|
| 877 | + break; |
|
| 878 | 878 | /********************************************************************/ |
| 879 | 879 | /* Backup Manager */ |
| 880 | 880 | /********************************************************************/ |
| 881 | - case 93: |
|
| 882 | - # header and footer will be handled interally |
|
| 883 | - include_once(includeFileProcessor("actions/bkmanager.static.php",$manager_theme)); |
|
| 884 | - break; |
|
| 881 | + case 93: |
|
| 882 | + # header and footer will be handled interally |
|
| 883 | + include_once(includeFileProcessor("actions/bkmanager.static.php",$manager_theme)); |
|
| 884 | + break; |
|
| 885 | 885 | /********************************************************************/ |
| 886 | 886 | /* Duplicate Document */ |
| 887 | 887 | /********************************************************************/ |
| 888 | - case 94: |
|
| 889 | - // get the duplicate processor |
|
| 890 | - include_once(includeFileProcessor("processors/duplicate_content.processor.php",$manager_theme)); |
|
| 891 | - break; |
|
| 888 | + case 94: |
|
| 889 | + // get the duplicate processor |
|
| 890 | + include_once(includeFileProcessor("processors/duplicate_content.processor.php",$manager_theme)); |
|
| 891 | + break; |
|
| 892 | 892 | /********************************************************************/ |
| 893 | 893 | /* Import Document from file */ |
| 894 | 894 | /********************************************************************/ |
| 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)); |
|
| 899 | - break; |
|
| 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)); |
|
| 899 | + break; |
|
| 900 | 900 | /********************************************************************/ |
| 901 | 901 | /* Help */ |
| 902 | 902 | /********************************************************************/ |
| 903 | - case 9: |
|
| 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)); |
|
| 908 | - break; |
|
| 903 | + case 9: |
|
| 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)); |
|
| 908 | + break; |
|
| 909 | 909 | /********************************************************************/ |
| 910 | 910 | /* Template Variables - Based on Apodigm's Docvars */ |
| 911 | 911 | /********************************************************************/ |
| 912 | - case 300: |
|
| 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)); |
|
| 917 | - break; |
|
| 918 | - case 301: |
|
| 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)); |
|
| 923 | - break; |
|
| 924 | - case 302: |
|
| 925 | - // get the save processor |
|
| 926 | - include_once(includeFileProcessor("processors/save_tmplvars.processor.php",$manager_theme)); |
|
| 927 | - break; |
|
| 928 | - case 303: |
|
| 929 | - // get the delete processor |
|
| 930 | - include_once(includeFileProcessor("processors/delete_tmplvars.processor.php",$manager_theme)); |
|
| 931 | - break; |
|
| 932 | - case 304: |
|
| 933 | - // get the duplicate processor |
|
| 934 | - include_once(includeFileProcessor("processors/duplicate_tmplvars.processor.php",$manager_theme)); |
|
| 935 | - break; |
|
| 936 | - case 305: |
|
| 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)); |
|
| 941 | - break; |
|
| 912 | + case 300: |
|
| 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)); |
|
| 917 | + break; |
|
| 918 | + case 301: |
|
| 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)); |
|
| 923 | + break; |
|
| 924 | + case 302: |
|
| 925 | + // get the save processor |
|
| 926 | + include_once(includeFileProcessor("processors/save_tmplvars.processor.php",$manager_theme)); |
|
| 927 | + break; |
|
| 928 | + case 303: |
|
| 929 | + // get the delete processor |
|
| 930 | + include_once(includeFileProcessor("processors/delete_tmplvars.processor.php",$manager_theme)); |
|
| 931 | + break; |
|
| 932 | + case 304: |
|
| 933 | + // get the duplicate processor |
|
| 934 | + include_once(includeFileProcessor("processors/duplicate_tmplvars.processor.php",$manager_theme)); |
|
| 935 | + break; |
|
| 936 | + case 305: |
|
| 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)); |
|
| 941 | + break; |
|
| 942 | 942 | /********************************************************************/ |
| 943 | 943 | /* Event viewer: show event message log */ |
| 944 | 944 | /********************************************************************/ |
| 945 | - case 114: |
|
| 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)); |
|
| 950 | - break; |
|
| 951 | - case 115: |
|
| 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)); |
|
| 956 | - break; |
|
| 957 | - case 116: |
|
| 958 | - // get the event log delete processor |
|
| 959 | - include_once(includeFileProcessor("processors/delete_eventlog.processor.php",$manager_theme)); |
|
| 960 | - break; |
|
| 961 | - |
|
| 962 | - case 501: |
|
| 963 | - //delete category |
|
| 964 | - include_once(includeFileProcessor("processors/delete_category.processor.php",$manager_theme)); |
|
| 965 | - break; |
|
| 945 | + case 114: |
|
| 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)); |
|
| 950 | + break; |
|
| 951 | + case 115: |
|
| 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)); |
|
| 956 | + break; |
|
| 957 | + case 116: |
|
| 958 | + // get the event log delete processor |
|
| 959 | + include_once(includeFileProcessor("processors/delete_eventlog.processor.php",$manager_theme)); |
|
| 960 | + break; |
|
| 961 | + |
|
| 962 | + case 501: |
|
| 963 | + //delete category |
|
| 964 | + include_once(includeFileProcessor("processors/delete_category.processor.php",$manager_theme)); |
|
| 965 | + break; |
|
| 966 | 966 | /********************************************************************/ |
| 967 | 967 | /* default action: show not implemented message */ |
| 968 | 968 | /********************************************************************/ |
| 969 | - default : |
|
| 970 | - // say that what was requested doesn't do anything yet |
|
| 971 | - include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 972 | - echo " |
|
| 969 | + default : |
|
| 970 | + // say that what was requested doesn't do anything yet |
|
| 971 | + include_once(includeFileProcessor("includes/header.inc.php",$manager_theme)); |
|
| 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 | 983 | if($action!=1 && $action!=7 && $action!=2) { |
| 984 | - $log = new EvolutionCMS\Legacy\LogHandler; |
|
| 985 | - $log->initAndWriteLog(); |
|
| 984 | + $log = new EvolutionCMS\Legacy\LogHandler; |
|
| 985 | + $log->initAndWriteLog(); |
|
| 986 | 986 | } |
| 987 | 987 | /********************************************************************/ |
| 988 | 988 | // show debug |
@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | if(is_file($base_path . 'assets/cache/siteManager.php')) |
| 51 | 51 | include_once($base_path . 'assets/cache/siteManager.php'); |
| 52 | 52 | if(!defined('MGR_DIR') && is_dir("{$base_path}manager")) |
| 53 | - define('MGR_DIR', 'manager'); |
|
| 53 | + define('MGR_DIR', 'manager'); |
|
| 54 | 54 | if(is_file($base_path . 'assets/cache/siteHostnames.php')) |
| 55 | 55 | include_once($base_path . 'assets/cache/siteHostnames.php'); |
| 56 | 56 | if(!defined('MODX_SITE_HOSTNAMES')) |
| 57 | - define('MODX_SITE_HOSTNAMES', ''); |
|
| 57 | + define('MODX_SITE_HOSTNAMES', ''); |
|
| 58 | 58 | |
| 59 | 59 | // get start time |
| 60 | 60 | $mstart = memory_get_usage(); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | define('IN_PARSER_MODE', true); |
| 80 | 80 | if ( ! defined('IN_MANAGER_MODE')) { |
| 81 | - define('IN_MANAGER_MODE', false); |
|
| 81 | + define('IN_MANAGER_MODE', false); |
|
| 82 | 82 | } |
| 83 | 83 | if (!defined('MODX_API_MODE')) { |
| 84 | 84 | define('MODX_API_MODE', false); |
@@ -102,11 +102,11 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | // initiate a new document parser |
| 104 | 104 | if (isset($coreClass) && class_exists($coreClass)) { |
| 105 | - $modx = new $coreClass; |
|
| 105 | + $modx = new $coreClass; |
|
| 106 | 106 | } |
| 107 | 107 | if (!isset($modx) || !($modx instanceof \DocumentParser)) { |
| 108 | - include_once(MODX_MANAGER_PATH.'includes/document.parser.class.inc.php'); |
|
| 109 | - $modx = DocumentParser::getInstance(); |
|
| 108 | + include_once(MODX_MANAGER_PATH.'includes/document.parser.class.inc.php'); |
|
| 109 | + $modx = DocumentParser::getInstance(); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | // set some parser options |