@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | if( ! defined('IN_MANAGER_MODE') || 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."); |
|
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 | |
6 | 6 | // (un)publishing of documents, version 2! |
@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | <?php if($num_rows_pub) printf('<p>' . $_lang["refresh_published"] . '</p>', $num_rows_pub) ?> |
33 | 33 | <?php if($num_rows_unpub) printf('<p>' . $_lang["refresh_unpublished"] . '</p>', $num_rows_unpub) ?> |
34 | 34 | <?php |
35 | - $modx->clearCache('full', true); |
|
36 | - // invoke OnSiteRefresh event |
|
37 | - $modx->invokeEvent("OnSiteRefresh"); |
|
38 | - ?> |
|
35 | + $modx->clearCache('full', true); |
|
36 | + // invoke OnSiteRefresh event |
|
37 | + $modx->invokeEvent("OnSiteRefresh"); |
|
38 | + ?> |
|
39 | 39 | </div> |
40 | 40 | </div> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | if( ! defined('IN_MANAGER_MODE') || 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."); |
|
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 | $helpBasePath = "actions/help/"; |
6 | 6 | ?> |
@@ -16,36 +16,36 @@ discard block |
||
16 | 16 | </script> |
17 | 17 | |
18 | 18 | <?php |
19 | - if($handle = opendir('actions/help')) { |
|
20 | - while(false !== ($file = readdir($handle))) { |
|
21 | - if($file != "." && $file != ".." && $file != ".svn" && $file != 'index.html' && !is_dir($helpBasePath . $file)) { |
|
22 | - $help[] = $file; |
|
23 | - } |
|
24 | - } |
|
25 | - closedir($handle); |
|
26 | - } |
|
27 | - |
|
28 | - natcasesort($help); |
|
29 | - |
|
30 | - foreach($help as $k => $v) { |
|
31 | - |
|
32 | - $helpname = substr($v, 0, strrpos($v, '.')); |
|
33 | - |
|
34 | - $prefix = substr($helpname, 0, 2); |
|
35 | - if(is_numeric($prefix)) { |
|
36 | - $helpname = substr($helpname, 2, strlen($helpname) - 1); |
|
37 | - } |
|
38 | - |
|
39 | - $hnLower = strtolower($helpname); |
|
40 | - $helpname = isset($_lang[$hnLower]) ? $_lang[$hnLower] : str_replace('_', ' ', $helpname); |
|
41 | - |
|
42 | - echo '<div class="tab-page" id="tab' . $k . 'Help">'; |
|
43 | - echo '<h2 class="tab">' . $helpname . '</h2>'; |
|
44 | - echo '<script type="text/javascript">tp.addTabPage( document.getElementById( "tab' . $k . 'Help" ) );</script>'; |
|
45 | - include_once($helpBasePath . "{$v}"); |
|
46 | - echo '</div>'; |
|
47 | - } |
|
48 | - ?> |
|
19 | + if($handle = opendir('actions/help')) { |
|
20 | + while(false !== ($file = readdir($handle))) { |
|
21 | + if($file != "." && $file != ".." && $file != ".svn" && $file != 'index.html' && !is_dir($helpBasePath . $file)) { |
|
22 | + $help[] = $file; |
|
23 | + } |
|
24 | + } |
|
25 | + closedir($handle); |
|
26 | + } |
|
27 | + |
|
28 | + natcasesort($help); |
|
29 | + |
|
30 | + foreach($help as $k => $v) { |
|
31 | + |
|
32 | + $helpname = substr($v, 0, strrpos($v, '.')); |
|
33 | + |
|
34 | + $prefix = substr($helpname, 0, 2); |
|
35 | + if(is_numeric($prefix)) { |
|
36 | + $helpname = substr($helpname, 2, strlen($helpname) - 1); |
|
37 | + } |
|
38 | + |
|
39 | + $hnLower = strtolower($helpname); |
|
40 | + $helpname = isset($_lang[$hnLower]) ? $_lang[$hnLower] : str_replace('_', ' ', $helpname); |
|
41 | + |
|
42 | + echo '<div class="tab-page" id="tab' . $k . 'Help">'; |
|
43 | + echo '<h2 class="tab">' . $helpname . '</h2>'; |
|
44 | + echo '<script type="text/javascript">tp.addTabPage( document.getElementById( "tab' . $k . 'Help" ) );</script>'; |
|
45 | + include_once($helpBasePath . "{$v}"); |
|
46 | + echo '</div>'; |
|
47 | + } |
|
48 | + ?> |
|
49 | 49 | </div> |
50 | 50 | </div> |
51 | 51 | <script> |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | if( ! defined('IN_MANAGER_MODE') || 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."); |
|
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('export_static')) { |
6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
7 | 7 | } |
8 | 8 | |
9 | 9 | // figure out the base of the server, so we know where to get the documents in order to export them |
@@ -35,11 +35,11 @@ discard block |
||
35 | 35 | |
36 | 36 | <div class="container container-body"> |
37 | 37 | <?php |
38 | - if(isset($_POST['export'])) { |
|
39 | - $rs = include_once(MODX_MANAGER_PATH . 'processors/export_site.processor.php'); |
|
40 | - echo $rs; |
|
41 | - } else { |
|
42 | - ?> |
|
38 | + if(isset($_POST['export'])) { |
|
39 | + $rs = include_once(MODX_MANAGER_PATH . 'processors/export_site.processor.php'); |
|
40 | + echo $rs; |
|
41 | + } else { |
|
42 | + ?> |
|
43 | 43 | <form action="index.php" method="post" name="exportFrm"> |
44 | 44 | <input type="hidden" name="export" value="export" /> |
45 | 45 | <input type="hidden" name="a" value="83" /> |
@@ -81,8 +81,8 @@ discard block |
||
81 | 81 | </script> |
82 | 82 | </form> |
83 | 83 | <?php |
84 | - } |
|
85 | - ?> |
|
84 | + } |
|
85 | + ?> |
|
86 | 86 | </div> |
87 | 87 | </div> |
88 | 88 |
@@ -7,8 +7,8 @@ |
||
7 | 7 | <div class="sectionHeader">Changelog</div> |
8 | 8 | <div class="sectionBody"> |
9 | 9 | <?php |
10 | - $changeLog = MODX_BASE_PATH . 'assets/docs/changelog.txt'; |
|
11 | - if(is_readable($changeLog)) |
|
12 | - echo str_replace("\n",'<br>',file_get_contents($changeLog)); |
|
10 | + $changeLog = MODX_BASE_PATH . 'assets/docs/changelog.txt'; |
|
11 | + if(is_readable($changeLog)) |
|
12 | + echo str_replace("\n",'<br>',file_get_contents($changeLog)); |
|
13 | 13 | ?> |
14 | 14 | </div> |
@@ -1,48 +1,48 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | if( ! defined('IN_MANAGER_MODE') || 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."); |
|
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 | |
6 | 6 | if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/functions.inc.php')) { |
7 | - include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/functions.inc.php'); |
|
7 | + include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/functions.inc.php'); |
|
8 | 8 | } else { |
9 | - include_once(MODX_MANAGER_PATH . 'actions/resources/functions.inc.php'); |
|
9 | + include_once(MODX_MANAGER_PATH . 'actions/resources/functions.inc.php'); |
|
10 | 10 | } |
11 | 11 | if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/mgrResources.class.php')) { |
12 | - include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/mgrResources.class.php'); |
|
12 | + include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/mgrResources.class.php'); |
|
13 | 13 | } else { |
14 | - include_once(MODX_MANAGER_PATH . 'actions/resources/mgrResources.class.php'); |
|
14 | + include_once(MODX_MANAGER_PATH . 'actions/resources/mgrResources.class.php'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | $resources = new mgrResources(); |
18 | 18 | |
19 | 19 | // Prepare lang-strings for "Lock Elements" |
20 | 20 | $unlockTranslations = array( |
21 | - 'msg' => $_lang["unlock_element_id_warning"], |
|
22 | - 'type1' => $_lang["lock_element_type_1"], |
|
23 | - 'type2' => $_lang["lock_element_type_2"], |
|
24 | - 'type3' => $_lang["lock_element_type_3"], |
|
25 | - 'type4' => $_lang["lock_element_type_4"], |
|
26 | - 'type5' => $_lang["lock_element_type_5"], |
|
27 | - 'type6' => $_lang["lock_element_type_6"], |
|
28 | - 'type7' => $_lang["lock_element_type_7"], |
|
29 | - 'type8' => $_lang["lock_element_type_8"] |
|
21 | + 'msg' => $_lang["unlock_element_id_warning"], |
|
22 | + 'type1' => $_lang["lock_element_type_1"], |
|
23 | + 'type2' => $_lang["lock_element_type_2"], |
|
24 | + 'type3' => $_lang["lock_element_type_3"], |
|
25 | + 'type4' => $_lang["lock_element_type_4"], |
|
26 | + 'type5' => $_lang["lock_element_type_5"], |
|
27 | + 'type6' => $_lang["lock_element_type_6"], |
|
28 | + 'type7' => $_lang["lock_element_type_7"], |
|
29 | + 'type8' => $_lang["lock_element_type_8"] |
|
30 | 30 | ); |
31 | 31 | foreach($unlockTranslations as $key => $value) $unlockTranslations[$key] = iconv($modx->config["modx_charset"], "utf-8", $value); |
32 | 32 | |
33 | 33 | // Prepare lang-strings for mgrResAction() |
34 | 34 | $mraTranslations = array( |
35 | - 'create_new' => $_lang["create_new"], |
|
36 | - 'edit' => $_lang["edit"], |
|
37 | - 'duplicate' => $_lang["duplicate"], |
|
38 | - 'remove' => $_lang["remove"], |
|
39 | - 'confirm_duplicate_record' => $_lang["confirm_duplicate_record"], |
|
40 | - 'confirm_delete_template' => $_lang["confirm_delete_template"], |
|
41 | - 'confirm_delete_tmplvars' => $_lang["confirm_delete_tmplvars"], |
|
42 | - 'confirm_delete_htmlsnippet' => $_lang["confirm_delete_htmlsnippet"], |
|
43 | - 'confirm_delete_snippet' => $_lang["confirm_delete_htmlsnippet"], |
|
44 | - 'confirm_delete_plugin' => $_lang["confirm_delete_plugin"], |
|
45 | - 'confirm_delete_module' => $_lang["confirm_delete_module"], |
|
35 | + 'create_new' => $_lang["create_new"], |
|
36 | + 'edit' => $_lang["edit"], |
|
37 | + 'duplicate' => $_lang["duplicate"], |
|
38 | + 'remove' => $_lang["remove"], |
|
39 | + 'confirm_duplicate_record' => $_lang["confirm_duplicate_record"], |
|
40 | + 'confirm_delete_template' => $_lang["confirm_delete_template"], |
|
41 | + 'confirm_delete_tmplvars' => $_lang["confirm_delete_tmplvars"], |
|
42 | + 'confirm_delete_htmlsnippet' => $_lang["confirm_delete_htmlsnippet"], |
|
43 | + 'confirm_delete_snippet' => $_lang["confirm_delete_htmlsnippet"], |
|
44 | + 'confirm_delete_plugin' => $_lang["confirm_delete_plugin"], |
|
45 | + 'confirm_delete_module' => $_lang["confirm_delete_module"], |
|
46 | 46 | ); |
47 | 47 | foreach($mraTranslations as $key => $value) $mraTranslations[$key] = iconv($modx->config["modx_charset"], "utf-8", $value); |
48 | 48 | ?> |
@@ -65,46 +65,46 @@ discard block |
||
65 | 65 | </script> |
66 | 66 | |
67 | 67 | <?php |
68 | - if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab1_templates.inc.php')) { |
|
69 | - include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab1_templates.inc.php'); |
|
70 | - } else { |
|
71 | - include_once(MODX_MANAGER_PATH . '/actions/resources/tab1_templates.inc.php'); |
|
72 | - } |
|
68 | + if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab1_templates.inc.php')) { |
|
69 | + include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab1_templates.inc.php'); |
|
70 | + } else { |
|
71 | + include_once(MODX_MANAGER_PATH . '/actions/resources/tab1_templates.inc.php'); |
|
72 | + } |
|
73 | 73 | |
74 | - if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab2_templatevars.inc.php')) { |
|
75 | - include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab2_templatevars.inc.php'); |
|
76 | - } else { |
|
77 | - include_once(MODX_MANAGER_PATH . '/actions/resources/tab2_templatevars.inc.php'); |
|
78 | - } |
|
74 | + if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab2_templatevars.inc.php')) { |
|
75 | + include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab2_templatevars.inc.php'); |
|
76 | + } else { |
|
77 | + include_once(MODX_MANAGER_PATH . '/actions/resources/tab2_templatevars.inc.php'); |
|
78 | + } |
|
79 | 79 | |
80 | - if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab3_chunks.inc.php')) { |
|
81 | - include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab3_chunks.inc.php'); |
|
82 | - } else { |
|
83 | - include_once(MODX_MANAGER_PATH . '/actions/resources/tab3_chunks.inc.php'); |
|
84 | - } |
|
80 | + if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab3_chunks.inc.php')) { |
|
81 | + include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab3_chunks.inc.php'); |
|
82 | + } else { |
|
83 | + include_once(MODX_MANAGER_PATH . '/actions/resources/tab3_chunks.inc.php'); |
|
84 | + } |
|
85 | 85 | |
86 | - if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab4_snippets.inc.php')) { |
|
87 | - include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab4_snippets.inc.php'); |
|
88 | - } else { |
|
89 | - include_once(MODX_MANAGER_PATH . '/actions/resources/tab4_snippets.inc.php'); |
|
90 | - } |
|
86 | + if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab4_snippets.inc.php')) { |
|
87 | + include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab4_snippets.inc.php'); |
|
88 | + } else { |
|
89 | + include_once(MODX_MANAGER_PATH . '/actions/resources/tab4_snippets.inc.php'); |
|
90 | + } |
|
91 | 91 | |
92 | - if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab5_plugins.inc.php')) { |
|
93 | - include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab5_plugins.inc.php'); |
|
94 | - } else { |
|
95 | - include_once(MODX_MANAGER_PATH . '/actions/resources/tab5_plugins.inc.php'); |
|
96 | - } |
|
92 | + if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab5_plugins.inc.php')) { |
|
93 | + include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab5_plugins.inc.php'); |
|
94 | + } else { |
|
95 | + include_once(MODX_MANAGER_PATH . '/actions/resources/tab5_plugins.inc.php'); |
|
96 | + } |
|
97 | 97 | |
98 | - if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab6_categoryview.inc.php')) { |
|
99 | - include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab6_categoryview.inc.php'); |
|
100 | - } else { |
|
101 | - include_once(MODX_MANAGER_PATH . '/actions/resources/tab6_categoryview.inc.php'); |
|
102 | - } |
|
98 | + if(file_exists(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab6_categoryview.inc.php')) { |
|
99 | + include_once(MODX_MANAGER_PATH . '/media/style/' . $modx->config['manager_theme'] . '/actions/resources/tab6_categoryview.inc.php'); |
|
100 | + } else { |
|
101 | + include_once(MODX_MANAGER_PATH . '/actions/resources/tab6_categoryview.inc.php'); |
|
102 | + } |
|
103 | 103 | |
104 | 104 | |
105 | - if(is_numeric($_GET['tab'])) { |
|
106 | - echo '<script type="text/javascript"> tpResources.setSelectedIndex( ' . $_GET['tab'] . ' );</script>'; |
|
107 | - } |
|
108 | - ?> |
|
105 | + if(is_numeric($_GET['tab'])) { |
|
106 | + echo '<script type="text/javascript"> tpResources.setSelectedIndex( ' . $_GET['tab'] . ' );</script>'; |
|
107 | + } |
|
108 | + ?> |
|
109 | 109 | </div> |
110 | 110 | </div> |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | if( ! defined('IN_MANAGER_MODE') || 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."); |
|
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('change_password')) { |
6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
7 | 7 | } |
8 | 8 | ?> |
9 | 9 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | if( $uncategorized_elements = $cm->getAssignedElements( 0, $_data['elements'] ) ) |
23 | 23 | { |
24 | - $output .= $cm->renderView('chunks/categorize/uncategorized_elements', $uncategorized_elements); |
|
24 | + $output .= $cm->renderView('chunks/categorize/uncategorized_elements', $uncategorized_elements); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | foreach( $cm->getCategories() as $category ) |
@@ -106,14 +106,14 @@ discard block |
||
106 | 106 | |
107 | 107 | if( empty( $category ) ) |
108 | 108 | { |
109 | - $cm->addMessage( $cm->txt('cm_enter_name_for_category'), 'add' ); |
|
110 | - return; |
|
109 | + $cm->addMessage( $cm->txt('cm_enter_name_for_category'), 'add' ); |
|
110 | + return; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | if( $cm->isCategoryExists( $category ) ) |
114 | 114 | { |
115 | - $cm->addMessage( sprintf( $cm->txt('cm_category_x_exists'), $category ), 'add' ); |
|
116 | - return; |
|
115 | + $cm->addMessage( sprintf( $cm->txt('cm_category_x_exists'), $category ), 'add' ); |
|
116 | + return; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | if( $cm->addCategory( $category, $rank ) !== 0 ) |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | if( ! defined('IN_MANAGER_MODE') || 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."); |
|
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('view_eventlog')) { |
6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
7 | 7 | } |
8 | 8 | |
9 | 9 | // get id |
@@ -41,18 +41,18 @@ discard block |
||
41 | 41 | <div class="tab-page"> |
42 | 42 | <div class="container container-body"> |
43 | 43 | <?php |
44 | - $date = $modx->toDateFormat($content["createdon"]); |
|
45 | - if($content["type"] == 1) { |
|
46 | - $icon = $_style['actions_info'] . ' text-info'; |
|
47 | - $msgtype = $_lang["information"]; |
|
48 | - } else if($content["type"] == 2) { |
|
49 | - $icon = $_style['actions_triangle'] . ' text-warning'; |
|
50 | - $msgtype = $_lang["warning"]; |
|
51 | - } else if($content["type"] == 3) { |
|
52 | - $icon = $_style['actions_error'] . ' text-danger'; |
|
53 | - $msgtype = $_lang["error"]; |
|
54 | - } |
|
55 | - ?> |
|
44 | + $date = $modx->toDateFormat($content["createdon"]); |
|
45 | + if($content["type"] == 1) { |
|
46 | + $icon = $_style['actions_info'] . ' text-info'; |
|
47 | + $msgtype = $_lang["information"]; |
|
48 | + } else if($content["type"] == 2) { |
|
49 | + $icon = $_style['actions_triangle'] . ' text-warning'; |
|
50 | + $msgtype = $_lang["warning"]; |
|
51 | + } else if($content["type"] == 3) { |
|
52 | + $icon = $_style['actions_error'] . ' text-danger'; |
|
53 | + $msgtype = $_lang["error"]; |
|
54 | + } |
|
55 | + ?> |
|
56 | 56 | <p><b><?= $content['source'] . " - " . $_lang['eventlog_viewer'] ?></b></p> |
57 | 57 | <p> |
58 | 58 | <i class="<?= $icon ?>"></i> <?= $msgtype ?> |
@@ -3,17 +3,17 @@ |
||
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_eventlog')) { |
6 | - $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
6 | + $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
|
7 | 7 | } |
8 | 8 | |
9 | 9 | if (isset($_GET['cls']) && $_GET['cls']==1) { |
10 | - $where = ''; |
|
10 | + $where = ''; |
|
11 | 11 | } else { |
12 | - $id = isset($_GET['id'])? (int)$_GET['id'] : 0; |
|
13 | - if($id==0) { |
|
14 | - $modx->webAlertAndQuit($_lang["error_no_id"]); |
|
15 | - } |
|
16 | - $where = "id='{$id}'"; |
|
12 | + $id = isset($_GET['id'])? (int)$_GET['id'] : 0; |
|
13 | + if($id==0) { |
|
14 | + $modx->webAlertAndQuit($_lang["error_no_id"]); |
|
15 | + } |
|
16 | + $where = "id='{$id}'"; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | // delete event log |