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