@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
2 | +if(IN_MANAGER_MODE!="true") { |
|
3 | + die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
4 | +} |
|
3 | 5 | if(!$modx->hasPermission('access_permissions')) { |
4 | 6 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
5 | 7 | } |
@@ -117,7 +119,7 @@ discard block |
||
117 | 119 | } |
118 | 120 | |
119 | 121 | // secure manager documents - flag as private |
120 | -if($updategroupaccess==true){ |
|
122 | +if($updategroupaccess==true) { |
|
121 | 123 | include MODX_MANAGER_PATH."includes/secure_mgr_documents.inc.php"; |
122 | 124 | secureMgrDocument(); |
123 | 125 |
@@ -335,7 +335,8 @@ discard block |
||
335 | 335 | } |
336 | 336 | |
337 | 337 | // in case any plugins include a quoted_printable function |
338 | -function save_user_quoted_printable($string) { |
|
338 | +function save_user_quoted_printable($string) |
|
339 | +{ |
|
339 | 340 | $crlf = "\n"; |
340 | 341 | $string = preg_replace('!(\r\n|\r|\n)!', $crlf, $string) . $crlf; |
341 | 342 | $f[] = '/([\000-\010\013\014\016-\037\075\177-\377])/e'; |
@@ -347,7 +348,8 @@ discard block |
||
347 | 348 | } |
348 | 349 | |
349 | 350 | // Send an email to the user |
350 | -function sendMailMessage($email, $uid, $pwd, $ufn) { |
|
351 | +function sendMailMessage($email, $uid, $pwd, $ufn) |
|
352 | +{ |
|
351 | 353 | global $modx, $_lang, $websignupemail_message; |
352 | 354 | global $emailsubject, $emailsender; |
353 | 355 | global $site_name, $site_url; |
@@ -375,7 +377,8 @@ discard block |
||
375 | 377 | } |
376 | 378 | |
377 | 379 | // Save User Settings |
378 | -function saveUserSettings($id) { |
|
380 | +function saveUserSettings($id) |
|
381 | +{ |
|
379 | 382 | global $modx; |
380 | 383 | $tbl_web_user_settings = $modx->getFullTableName('web_user_settings'); |
381 | 384 | |
@@ -404,7 +407,8 @@ discard block |
||
404 | 407 | } |
405 | 408 | |
406 | 409 | // Web alert - sends an alert to web browser |
407 | -function webAlertAndQuit($msg) { |
|
410 | +function webAlertAndQuit($msg) |
|
411 | +{ |
|
408 | 412 | global $id, $modx; |
409 | 413 | $mode = $_POST['mode']; |
410 | 414 | $modx->manager->saveFormValues($mode); |
@@ -412,7 +416,8 @@ discard block |
||
412 | 416 | } |
413 | 417 | |
414 | 418 | // Generate password |
415 | -function generate_password($length = 10) { |
|
419 | +function generate_password($length = 10) |
|
420 | +{ |
|
416 | 421 | $allowable_characters = "abcdefghjkmnpqrstuvxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789"; |
417 | 422 | $ps_len = strlen($allowable_characters); |
418 | 423 | mt_srand((double) microtime() * 1000000); |
@@ -423,7 +428,8 @@ discard block |
||
423 | 428 | return $pass; |
424 | 429 | } |
425 | 430 | |
426 | -function sanitize($str = '', $safecount = 0) { |
|
431 | +function sanitize($str = '', $safecount = 0) |
|
432 | +{ |
|
427 | 433 | global $modx; |
428 | 434 | $safecount++; |
429 | 435 | if(1000 < $safecount) { |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
2 | +if(IN_MANAGER_MODE!="true") { |
|
3 | + die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
4 | +} |
|
3 | 5 | if(!$modx->hasPermission('edit_template')) { |
4 | 6 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
5 | 7 | } |
@@ -12,8 +14,11 @@ discard block |
||
12 | 14 | // count duplicates |
13 | 15 | $name = $modx->db->getValue($modx->db->select('name', $modx->getFullTableName('site_tmplvars'), "id='{$id}'")); |
14 | 16 | $count = $modx->db->getRecordCount($modx->db->select('name', $modx->getFullTableName('site_tmplvars'), "name LIKE '{$name} {$_lang['duplicated_el_suffix']}%'")); |
15 | -if($count>=1) $count = ' '.($count+1); |
|
16 | -else $count = ''; |
|
17 | +if($count>=1) { |
|
18 | + $count = ' '.($count+1); |
|
19 | +} else { |
|
20 | + $count = ''; |
|
21 | +} |
|
17 | 22 | |
18 | 23 | // duplicate TV |
19 | 24 | $newid = $modx->db->insert( |
@@ -1,5 +1,7 @@ |
||
1 | 1 | <?php |
2 | -if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
2 | +if(IN_MANAGER_MODE!="true") { |
|
3 | + die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
4 | +} |
|
3 | 5 | if(!$modx->hasPermission('delete_eventlog')) { |
4 | 6 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
5 | 7 | } |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
2 | +if(IN_MANAGER_MODE!="true") { |
|
3 | + die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
4 | +} |
|
3 | 5 | if(!$modx->hasPermission('export_static')) { |
4 | 6 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
5 | 7 | } |
@@ -10,16 +12,20 @@ discard block |
||
10 | 12 | $modx->loadExtension('EXPORT_SITE'); |
11 | 13 | |
12 | 14 | |
13 | -if(is_dir(MODX_BASE_PATH . 'temp')) $export_dir = MODX_BASE_PATH . 'temp/export'; |
|
14 | -elseif(is_dir(MODX_BASE_PATH . 'assets')) $export_dir = MODX_BASE_PATH . 'assets/export'; |
|
15 | +if(is_dir(MODX_BASE_PATH . 'temp')) { |
|
16 | + $export_dir = MODX_BASE_PATH . 'temp/export'; |
|
17 | +} elseif(is_dir(MODX_BASE_PATH . 'assets')) { |
|
18 | + $export_dir = MODX_BASE_PATH . 'assets/export'; |
|
19 | +} |
|
15 | 20 | $modx->export->targetDir = $export_dir; |
16 | 21 | |
17 | -if(strpos($modx->config['base_path'],"{$export_dir}/")===0 && 0 <= strlen(str_replace("{$export_dir}/",'',$modx->config['base_path']))) |
|
22 | +if(strpos($modx->config['base_path'],"{$export_dir}/")===0 && 0 <= strlen(str_replace("{$export_dir}/",'',$modx->config['base_path']))) { |
|
18 | 23 | return $_lang['export_site.static.php6']; |
19 | -elseif($modx->config['rb_base_dir'] === $export_dir . '/') |
|
24 | +} elseif($modx->config['rb_base_dir'] === $export_dir . '/') { |
|
20 | 25 | return $modx->parsePlaceholder($_lang['export_site.static.php7'],'rb_base_url=' . $modx->config['base_url'] . $modx->config['rb_base_url']); |
21 | -elseif(!is_writable($export_dir)) |
|
26 | +} elseif(!is_writable($export_dir)) { |
|
22 | 27 | return $_lang['export_site_target_unwritable']; |
28 | +} |
|
23 | 29 | |
24 | 30 | $modx->export->generate_mode = $_POST['generate_mode']; |
25 | 31 |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
2 | +if(IN_MANAGER_MODE!="true") { |
|
3 | + die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
|
4 | +} |
|
3 | 5 | if(!$modx->hasPermission('messages')) { |
4 | 6 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
5 | 7 | } |
@@ -8,9 +10,13 @@ discard block |
||
8 | 10 | $userid = $_REQUEST['user']; |
9 | 11 | $groupid = $_REQUEST['group']; |
10 | 12 | $subject = $modx->db->escape($_REQUEST['messagesubject']); |
11 | -if($subject=="") $subject="(no subject)"; |
|
13 | +if($subject=="") { |
|
14 | + $subject="(no subject)"; |
|
15 | +} |
|
12 | 16 | $message = $modx->db->escape($_REQUEST['messagebody']); |
13 | -if($message=="") $message="(no message)"; |
|
17 | +if($message=="") { |
|
18 | + $message="(no message)"; |
|
19 | +} |
|
14 | 20 | $postdate = time(); |
15 | 21 | |
16 | 22 | if($sendto=='u') { |
@@ -292,7 +292,8 @@ discard block |
||
292 | 292 | } |
293 | 293 | |
294 | 294 | // show javascript alert |
295 | -function jsAlert($msg) { |
|
295 | +function jsAlert($msg) |
|
296 | +{ |
|
296 | 297 | global $modx; |
297 | 298 | if($_POST['ajax'] != 1) { |
298 | 299 | echo "<script>window.setTimeout(\"alert('" . addslashes($modx->db->escape($msg)) . "')\",10);history.go(-1)</script>"; |
@@ -301,12 +302,14 @@ discard block |
||
301 | 302 | } |
302 | 303 | } |
303 | 304 | |
304 | -function login($username, $givenPassword, $dbasePassword) { |
|
305 | +function login($username, $givenPassword, $dbasePassword) |
|
306 | +{ |
|
305 | 307 | global $modx; |
306 | 308 | return $modx->phpass->CheckPassword($givenPassword, $dbasePassword); |
307 | 309 | } |
308 | 310 | |
309 | -function loginV1($internalKey, $givenPassword, $dbasePassword, $username) { |
|
311 | +function loginV1($internalKey, $givenPassword, $dbasePassword, $username) |
|
312 | +{ |
|
310 | 313 | global $modx; |
311 | 314 | |
312 | 315 | $user_algo = $modx->manager->getV1UserHashAlgorithm($internalKey); |
@@ -329,7 +332,8 @@ discard block |
||
329 | 332 | return true; |
330 | 333 | } |
331 | 334 | |
332 | -function loginMD5($internalKey, $givenPassword, $dbasePassword, $username) { |
|
335 | +function loginMD5($internalKey, $givenPassword, $dbasePassword, $username) |
|
336 | +{ |
|
333 | 337 | global $modx; |
334 | 338 | |
335 | 339 | if($dbasePassword != md5($givenPassword)) { |
@@ -339,7 +343,8 @@ discard block |
||
339 | 343 | return true; |
340 | 344 | } |
341 | 345 | |
342 | -function updateNewHash($username, $password) { |
|
346 | +function updateNewHash($username, $password) |
|
347 | +{ |
|
343 | 348 | global $modx; |
344 | 349 | |
345 | 350 | $field = array(); |
@@ -347,16 +352,19 @@ discard block |
||
347 | 352 | $modx->db->update($field, '[+prefix+]manager_users', "username='{$username}'"); |
348 | 353 | } |
349 | 354 | |
350 | -function incrementFailedLoginCount($internalKey, $failedlogins, $failed_allowed, $blocked_minutes) { |
|
355 | +function incrementFailedLoginCount($internalKey, $failedlogins, $failed_allowed, $blocked_minutes) |
|
356 | +{ |
|
351 | 357 | global $modx; |
352 | 358 | |
353 | 359 | $failedlogins += 1; |
354 | 360 | |
355 | 361 | $fields = array('failedlogincount' => $failedlogins); |
356 | - if($failedlogins >= $failed_allowed) //block user for too many fail attempts |
|
362 | + if($failedlogins >= $failed_allowed) { |
|
363 | + //block user for too many fail attempts |
|
357 | 364 | { |
358 | 365 | $fields['blockeduntil'] = time() + ($blocked_minutes * 60); |
359 | 366 | } |
367 | + } |
|
360 | 368 | |
361 | 369 | $modx->db->update($fields, '[+prefix+]user_attributes', "internalKey='{$internalKey}'"); |
362 | 370 |
@@ -10,7 +10,8 @@ discard block |
||
10 | 10 | * @param $theme |
11 | 11 | * @param string $hereid |
12 | 12 | */ |
13 | -function makeHTML($indent, $parent, $expandAll, $theme, $hereid = '') { |
|
13 | +function makeHTML($indent, $parent, $expandAll, $theme, $hereid = '') |
|
14 | +{ |
|
14 | 15 | global $modx; |
15 | 16 | global $icons, $iconsPrivate, $_style; |
16 | 17 | global $_lang, $opened, $opened2, $closed2; //added global vars |
@@ -450,7 +451,8 @@ discard block |
||
450 | 451 | return $output; |
451 | 452 | } |
452 | 453 | |
453 | -function getIconInfo($_style) { |
|
454 | +function getIconInfo($_style) |
|
455 | +{ |
|
454 | 456 | if(!isset($_style['tree_page_gif'])) { |
455 | 457 | $_style['tree_page_gif'] = $_style['tree_page']; |
456 | 458 | } |
@@ -477,7 +479,8 @@ discard block |
||
477 | 479 | return $icons; |
478 | 480 | } |
479 | 481 | |
480 | -function getPrivateIconInfo($_style) { |
|
482 | +function getPrivateIconInfo($_style) |
|
483 | +{ |
|
481 | 484 | if(!isset($_style['tree_page_gif_secure'])) { |
482 | 485 | $_style['tree_page_gif_secure'] = $_style['tree_page_secure']; |
483 | 486 | } |
@@ -504,7 +507,8 @@ discard block |
||
504 | 507 | return $iconsPrivate; |
505 | 508 | } |
506 | 509 | |
507 | -function getNodeTitle($nodeNameSource, $row) { |
|
510 | +function getNodeTitle($nodeNameSource, $row) |
|
511 | +{ |
|
508 | 512 | global $modx; |
509 | 513 | |
510 | 514 | switch($nodeNameSource) { |
@@ -550,7 +554,8 @@ discard block |
||
550 | 554 | return $nodetitle; |
551 | 555 | } |
552 | 556 | |
553 | -function isDateNode($nodeNameSource) { |
|
557 | +function isDateNode($nodeNameSource) |
|
558 | +{ |
|
554 | 559 | switch($nodeNameSource) { |
555 | 560 | case 'createdon': |
556 | 561 | case 'editedon': |
@@ -563,13 +568,15 @@ discard block |
||
563 | 568 | } |
564 | 569 | } |
565 | 570 | |
566 | -function checkIsFolder($parent = 0, $isfolder = 1) { |
|
571 | +function checkIsFolder($parent = 0, $isfolder = 1) |
|
572 | +{ |
|
567 | 573 | global $modx; |
568 | 574 | |
569 | 575 | return (int) $modx->db->getValue($modx->db->query('SELECT count(*) FROM ' . $modx->getFullTableName('site_content') . ' WHERE parent=' . $parent . ' AND isfolder=' . $isfolder . ' ')); |
570 | 576 | } |
571 | 577 | |
572 | -function _htmlentities($array) { |
|
578 | +function _htmlentities($array) |
|
579 | +{ |
|
573 | 580 | global $modx; |
574 | 581 | |
575 | 582 | $array = json_encode($array, JSON_UNESCAPED_UNICODE); |
@@ -578,7 +585,8 @@ discard block |
||
578 | 585 | return $array; |
579 | 586 | } |
580 | 587 | |
581 | -function getTplSingleNode() { |
|
588 | +function getTplSingleNode() |
|
589 | +{ |
|
582 | 590 | return '<div id="node[+id+]"><a class="[+treeNodeClass+]" |
583 | 591 | onclick="modx.tree.treeAction(event,[+id+]);" |
584 | 592 | oncontextmenu="modx.tree.showPopup(event,[+id+],\'[+nodetitle_esc+]\');" |
@@ -602,7 +610,8 @@ discard block |
||
602 | 610 | title="[+title+]">[+nodetitleDisplay+][+weblinkDisplay+]</span>[+pageIdDisplay+]</a></div>'; |
603 | 611 | } |
604 | 612 | |
605 | -function getTplFolderNode() { |
|
613 | +function getTplFolderNode() |
|
614 | +{ |
|
606 | 615 | return '<div id="node[+id+]"><a class="[+treeNodeClass+]" |
607 | 616 | onclick="modx.tree.treeAction(event,[+id+]);" |
608 | 617 | oncontextmenu="modx.tree.showPopup(event,[+id+],\'[+nodetitle_esc+]\');" |
@@ -638,7 +647,8 @@ discard block |
||
638 | 647 | title="[+title+]">[+nodetitleDisplay+][+weblinkDisplay+]</span>[+pageIdDisplay+]</a><div>'; |
639 | 648 | } |
640 | 649 | |
641 | -function getTplFolderNodeNotChildren() { |
|
650 | +function getTplFolderNodeNotChildren() |
|
651 | +{ |
|
642 | 652 | return '<div id="node[+id+]"><a class="[+treeNodeClass+]" |
643 | 653 | onclick="modx.tree.treeAction(event,[+id+]);" |
644 | 654 | oncontextmenu="modx.tree.showPopup(event,[+id+],\'[+nodetitle_esc+]\');" |
@@ -670,7 +680,8 @@ discard block |
||
670 | 680 | title="[+title+]">[+nodetitleDisplay+][+weblinkDisplay+]</span>[+pageIdDisplay+]</a><div>'; |
671 | 681 | } |
672 | 682 | |
673 | -function dbug($str, $flag = false) { |
|
683 | +function dbug($str, $flag = false) |
|
684 | +{ |
|
674 | 685 | print('<pre>'); |
675 | 686 | print_r($str); |
676 | 687 | print('</pre>'); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (IN_MANAGER_MODE != "true") { |
|
3 | +if (IN_MANAGER_MODE != "true") { |
|
4 | 4 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
5 | 5 | } |
6 | 6 | header("X-XSS-Protection: 0"); |
@@ -12,22 +12,22 @@ discard block |
||
12 | 12 | |
13 | 13 | $mxla = $modx_lang_attribute ? $modx_lang_attribute : 'en'; |
14 | 14 | |
15 | -if (!isset($modx->config['manager_menu_height'])) { |
|
15 | +if (!isset($modx->config['manager_menu_height'])) { |
|
16 | 16 | $modx->config['manager_menu_height'] = 2.2; // rem |
17 | 17 | } |
18 | 18 | |
19 | -if (!isset($modx->config['manager_tree_width'])) { |
|
19 | +if (!isset($modx->config['manager_tree_width'])) { |
|
20 | 20 | $modx->config['manager_tree_width'] = 20; // rem |
21 | 21 | } |
22 | 22 | |
23 | -if (isset($_SESSION['onLoginForwardToAction']) && is_int($_SESSION['onLoginForwardToAction'])) { |
|
23 | +if (isset($_SESSION['onLoginForwardToAction']) && is_int($_SESSION['onLoginForwardToAction'])) { |
|
24 | 24 | $initMainframeAction = $_SESSION['onLoginForwardToAction']; |
25 | 25 | unset($_SESSION['onLoginForwardToAction']); |
26 | -} else { |
|
26 | +} else { |
|
27 | 27 | $initMainframeAction = 2; // welcome.static |
28 | 28 | } |
29 | 29 | |
30 | -if (!isset($_SESSION['tree_show_only_folders'])) { |
|
30 | +if (!isset($_SESSION['tree_show_only_folders'])) { |
|
31 | 31 | $_SESSION['tree_show_only_folders'] = 0; |
32 | 32 | } |
33 | 33 | |
@@ -36,21 +36,21 @@ discard block |
||
36 | 36 | $tree_width = $modx->config['manager_tree_width']; |
37 | 37 | $tree_min_width = 0; |
38 | 38 | |
39 | -if (isset($_COOKIE['MODX_widthSideBar'])) { |
|
39 | +if (isset($_COOKIE['MODX_widthSideBar'])) { |
|
40 | 40 | $MODX_widthSideBar = $_COOKIE['MODX_widthSideBar']; |
41 | -} else { |
|
41 | +} else { |
|
42 | 42 | $MODX_widthSideBar = $tree_width; |
43 | 43 | } |
44 | 44 | |
45 | -if (!$MODX_widthSideBar) { |
|
45 | +if (!$MODX_widthSideBar) { |
|
46 | 46 | $body_class .= 'sidebar-closed'; |
47 | 47 | } |
48 | 48 | |
49 | -if (isset($_COOKIE['MODX_themeColor'])) { |
|
49 | +if (isset($_COOKIE['MODX_themeColor'])) { |
|
50 | 50 | $body_class .= ' ' . $_COOKIE['MODX_themeColor']; |
51 | 51 | } |
52 | 52 | |
53 | -if (isset($modx->pluginCache['ElementsInTree'])) { |
|
53 | +if (isset($modx->pluginCache['ElementsInTree'])) { |
|
54 | 54 | $body_class .= ' ElementsInTree'; |
55 | 55 | } |
56 | 56 | |
@@ -66,19 +66,19 @@ discard block |
||
66 | 66 | 'type8' => $_lang["lock_element_type_8"] |
67 | 67 | ); |
68 | 68 | |
69 | -foreach ($unlockTranslations as $key => $value) { |
|
69 | +foreach ($unlockTranslations as $key => $value) { |
|
70 | 70 | $unlockTranslations[$key] = iconv($modx->config["modx_charset"], "utf-8", $value); |
71 | 71 | } |
72 | 72 | |
73 | 73 | $user = $modx->getUserInfo($modx->getLoginUserID()); |
74 | -if ($user['which_browser'] == 'default') { |
|
74 | +if ($user['which_browser'] == 'default') { |
|
75 | 75 | $user['which_browser'] = $modx->config['which_browser']; |
76 | 76 | } |
77 | 77 | |
78 | 78 | $css = 'media/style/' . $modx->config['manager_theme'] . '/css/page.css?v=' . $lastInstallTime; |
79 | 79 | |
80 | -if ($modx->config['manager_theme'] == 'default') { |
|
81 | - if (!file_exists(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css') && is_writable(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css')) { |
|
80 | +if ($modx->config['manager_theme'] == 'default') { |
|
81 | + if (!file_exists(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css') && is_writable(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css')) { |
|
82 | 82 | require_once MODX_BASE_PATH . 'assets/lib/Formatter/CSSMinify.php'; |
83 | 83 | $minifier = new Formatter\CSSMinify(); |
84 | 84 | $minifier->addFile(MODX_MANAGER_PATH . 'media/style/common/bootstrap/css/bootstrap.min.css'); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $css = $minifier->minify(); |
96 | 96 | file_put_contents(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css', $css); |
97 | 97 | } |
98 | - if (file_exists(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css')) { |
|
98 | + if (file_exists(MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css')) { |
|
99 | 99 | $css = 'media/style/' . $modx->config['manager_theme'] . '/css/styles.min.css?v=' . $lastInstallTime; |
100 | 100 | } |
101 | 101 | } |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | <?php |
250 | 250 | // invoke OnManagerTopPrerender event |
251 | 251 | $evtOut = $modx->invokeEvent('OnManagerTopPrerender', $_REQUEST); |
252 | - if (is_array($evtOut)) { |
|
252 | + if (is_array($evtOut)) { |
|
253 | 253 | echo implode("\n", $evtOut); |
254 | 254 | } |
255 | 255 | ?> |
@@ -420,9 +420,12 @@ discard block |
||
420 | 420 | <div id="evo-tab-page-home" class="evo-tab-page show"> |
421 | 421 | <iframe id="mainframe" src="index.php?a=<?= $initMainframeAction ?>" scrolling="auto" frameborder="0" onload="modx.main.onload(event);"></iframe> |
422 | 422 | </div> |
423 | - <?php else: ?> |
|
423 | + <?php else { |
|
424 | + : ?> |
|
424 | 425 | <iframe id="mainframe" name="main" src="index.php?a=<?= $initMainframeAction ?>" scrolling="auto" frameborder="0" onload="modx.main.onload(event);"></iframe> |
425 | - <?php endif; ?> |
|
426 | + <?php endif; |
|
427 | +} |
|
428 | +?> |
|
426 | 429 | <div id="mainloader"></div> |
427 | 430 | </div> |
428 | 431 | <div id="resizer"></div> |
@@ -435,11 +438,11 @@ discard block |
||
435 | 438 | 'tree_sortdir', |
436 | 439 | 'tree_nodename' |
437 | 440 | ); |
438 | - foreach ($sortParams as $param) { |
|
439 | - if (isset($_REQUEST[$param])) { |
|
441 | + foreach ($sortParams as $param) { |
|
442 | + if (isset($_REQUEST[$param])) { |
|
440 | 443 | $modx->manager->saveLastUserSetting($param, $_REQUEST[$param]); |
441 | 444 | $_SESSION[$param] = $_REQUEST[$param]; |
442 | - } else if (!isset($_SESSION[$param])) { |
|
445 | + } else if (!isset($_SESSION[$param])) { |
|
443 | 446 | $_SESSION[$param] = $modx->manager->getLastUserSetting($param); |
444 | 447 | } |
445 | 448 | } |
@@ -519,9 +522,9 @@ discard block |
||
519 | 522 | </div> |
520 | 523 | |
521 | 524 | <?php |
522 | - function constructLink($action, $img, $text, $allowed) |
|
523 | - { |
|
524 | - if ($allowed == 1) { |
|
525 | + function constructLink($action, $img, $text, $allowed) |
|
526 | + { |
|
527 | + if ($allowed == 1) { |
|
525 | 528 | echo sprintf('<div class="menuLink" id="item%s" onclick="modx.tree.menuHandler(%s);">', $action, $action); |
526 | 529 | echo sprintf('<i class="%s"></i> %s</div>', $img, $text); |
527 | 530 | } |
@@ -626,7 +629,7 @@ discard block |
||
626 | 629 | ?> |
627 | 630 | |
628 | 631 | </div> |
629 | -<?php if ($modx->config['show_picker'] != "0") { |
|
632 | +<?php if ($modx->config['show_picker'] != "0") { |
|
630 | 633 | include('media/style/' . $modx->config['manager_theme'] . '/color.switcher.php'); |
631 | 634 | } ?> |
632 | 635 | </body> |