Completed
Push — develop ( d568f8...c061fc )
by Agel_Nash
06:25
created
manager/actions/mutate_settings/tab3_user_settings.inc.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
         <?php
158 158
             // invoke OnUserSettingsRender event
159 159
             $evtOut = $modx->invokeEvent('OnUserSettingsRender');
160
-            if (is_array($evtOut)) {
160
+            if (is_array($evtOut)) {
161 161
                 echo implode("", $evtOut);
162 162
             }
163 163
         ?>
Please login to merge, or discard this patch.
manager/actions/mutate_settings/tab7_filebrowser_settings.inc.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     <td>
24 24
         <select name="which_browser" size="1" class="inputBox" onchange="documentDirty=true;">
25 25
             <?php
26
-            foreach (glob("media/browser/*", GLOB_ONLYDIR) as $dir) {
26
+            foreach (glob("media/browser/*", GLOB_ONLYDIR) as $dir) {
27 27
                 $dir = str_replace('\\', '/', $dir);
28 28
                 $browser_name = substr($dir, strrpos($dir, '/') + 1);
29 29
                 $selected = $browser_name == $which_browser ? ' selected="selected"' : '';
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         <?php
236 236
             // invoke OnMiscSettingsRender event
237 237
             $evtOut = $modx->invokeEvent('OnMiscSettingsRender');
238
-            if (is_array($evtOut)) {
238
+            if (is_array($evtOut)) {
239 239
                 echo implode("", $evtOut);
240 240
             }
241 241
         ?>
Please login to merge, or discard this patch.
manager/actions/mutate_settings/snippet_smtp.inc.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
     <td >
16 16
      <select name="smtp_secure" size="1" class="inputBox">
17 17
   <option value="none" ><?php echo $_lang['no'] ?></option>
18
-   <option value="ssl" <?php if ($smtp_secure == 'ssl') {
18
+   <option value="ssl" <?php if ($smtp_secure == 'ssl') {
19 19
     echo "selected='selected'";
20 20
 } ?> >SSL</option>
21
-  <option value="tls" <?php if ($smtp_secure == 'tls') {
21
+  <option value="tls" <?php if ($smtp_secure == 'tls') {
22 22
     echo "selected='selected'";
23 23
 } ?> >TLS</option>
24 24
  </select>
Please login to merge, or discard this patch.
manager/actions/mutate_settings/tab2_furl_settings.inc.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
     <?php
160 160
         // invoke OnFriendlyURLSettingsRender event
161 161
         $evtOut = $modx->invokeEvent('OnFriendlyURLSettingsRender');
162
-        if (is_array($evtOut)) {
162
+        if (is_array($evtOut)) {
163 163
             echo implode("", $evtOut);
164 164
         }
165 165
     ?>
Please login to merge, or discard this patch.
manager/actions/mutate_settings/tab1_site_settings.inc.php 1 patch
Braces   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -82,23 +82,23 @@  discard block
 block discarded – undo
82 82
         <?php
83 83
 
84 84
         $currentCategory = '';
85
-                        while ($row = $modx->db->getRow($rs)) {
85
+                        while ($row = $modx->db->getRow($rs)) {
86 86
                             $thisCategory = $row['category'];
87
-                            if ($thisCategory == null) {
87
+                            if ($thisCategory == null) {
88 88
                                 $thisCategory = $_lang['no_category'];
89 89
                             }
90
-                            if ($thisCategory != $currentCategory) {
91
-                                if ($closeOptGroup) {
90
+                            if ($thisCategory != $currentCategory) {
91
+                                if ($closeOptGroup) {
92 92
                                     echo "\t\t\t\t\t</optgroup>\n";
93 93
                                 }
94 94
                                 echo "\t\t\t\t\t<optgroup label=\"$thisCategory\">\n";
95 95
                                 $closeOptGroup = true;
96
-                            } else {
96
+                            } else {
97 97
                                 $closeOptGroup = false;
98 98
                             }
99 99
             
100 100
                             $selectedtext = $row['id'] == $default_template ? ' selected="selected"' : '';
101
-                            if ($selectedtext) {
101
+                            if ($selectedtext) {
102 102
                                 $oldTmpId = $row['id'];
103 103
                                 $oldTmpName = $row['templatename'];
104 104
                             }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                             echo "\t\t\t\t\t" . '<option value="' . $row['id'] . '"' . $selectedtext . '>' . $row['templatename'] . "</option>\n";
107 107
                             $currentCategory = $thisCategory;
108 108
                         }
109
-        if ($thisCategory != '') {
109
+        if ($thisCategory != '') {
110 110
             echo "\t\t\t\t\t</optgroup>\n";
111 111
         }
112 112
 ?>
@@ -124,13 +124,13 @@  discard block
 block discarded – undo
124 124
         <th><?php echo $_lang['defaulttemplate_logic_title'];?><br><small>[(auto_template_logic)]</small></th>
125 125
         <td>
126 126
             <p><?php echo $_lang['defaulttemplate_logic_general_message'];?></p>
127
-            <label><input type="radio" name="auto_template_logic" value="system"<?php if ($auto_template_logic == 'system') {
127
+            <label><input type="radio" name="auto_template_logic" value="system"<?php if ($auto_template_logic == 'system') {
128 128
     echo " checked='checked'";
129 129
 }?>/> <?php echo $_lang['defaulttemplate_logic_system_message']; ?></label><br />
130
-            <label><input type="radio" name="auto_template_logic" value="parent"<?php if ($auto_template_logic == 'parent') {
130
+            <label><input type="radio" name="auto_template_logic" value="parent"<?php if ($auto_template_logic == 'parent') {
131 131
     echo " checked='checked'";
132 132
 }?>/> <?php echo $_lang['defaulttemplate_logic_parent_message']; ?></label><br />
133
-            <label><input type="radio" name="auto_template_logic" value="sibling"<?php if ($auto_template_logic == 'sibling') {
133
+            <label><input type="radio" name="auto_template_logic" value="sibling"<?php if ($auto_template_logic == 'sibling') {
134 134
     echo " checked='checked'";
135 135
 }?>/> <?php echo $_lang['defaulttemplate_logic_sibling_message']; ?></label><br />
136 136
         </td>
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
               $modx->db->select('id', '[+prefix+]site_plugins',
145 145
               "plugincode LIKE '%phx.parser.class.inc.php%OnParseDocument();%' AND disabled != 1")
146 146
             );
147
-            if ($count) {
147
+            if ($count) {
148 148
                 $disabledFilters = 1;
149 149
                 echo '<b>' . $_lang['enable_filter_phx_warning'] . '</b><br/>';
150
-            } else {
150
+            } else {
151 151
                 $disabledFilters = false;
152 152
             }
153 153
         ?>
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     <select name="lst_custom_contenttype" style="width:200px;height:100px;" size="5">
212 212
     <?php
213 213
         $ct = explode(",", $custom_contenttype);
214
-        for ($i=0;$i<count($ct);$i++) {
214
+        for ($i=0;$i<count($ct);$i++) {
215 215
             echo "<option value=\"" . $ct[$i] . "\">" . $ct[$i] . "</option>";
216 216
         }
217 217
     ?>
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
       <th><?php echo $_lang['serveroffset_title'] ?><br><small>[(server_offset_time)]</small></th>
267 267
       <td> <select name="server_offset_time" size="1" class="inputBox">
268 268
           <?php
269
-      for ($i=-24; $i<25; $i++) {
269
+      for ($i=-24; $i<25; $i++) {
270 270
           $seconds = $i*60*60;
271 271
           $selectedtext = $seconds==$server_offset_time ? "selected='selected'" : "" ; ?>
272 272
           <option value="<?php echo $seconds; ?>" <?php echo $selectedtext; ?>><?php echo $i; ?></option>
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
         <?php
308 308
             // invoke OnSiteSettingsRender event
309 309
             $evtOut = $modx->invokeEvent('OnSiteSettingsRender');
310
-            if (is_array($evtOut)) {
310
+            if (is_array($evtOut)) {
311 311
                 echo implode("", $evtOut);
312 312
             }
313 313
         ?>
Please login to merge, or discard this patch.
manager/actions/resources/mgrResources.class.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
 
172 172
         // Now sort by name
173 173
         foreach ($this->itemsPerCategory as $catid=>$items) {
174
-            usort($this->itemsPerCategory[$catid], function ($a, $b) {
174
+            usort($this->itemsPerCategory[$catid], function ($a, $b){
175 175
                 return strcasecmp($a['name'], $b['name']);
176 176
             });
177 177
         }
Please login to merge, or discard this patch.
manager/actions/resources/functions.inc.php 1 patch
Braces   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
2
+if (! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
3 3
     die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
4 4
 }
5 5
 
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
  * @param array $ph
17 17
  * @return string
18 18
  */
19
-function parsePh($tpl, $ph)
20
-{
19
+function parsePh($tpl, $ph)
20
+{
21 21
     $modx = evolutionCMS();
22 22
     global $_lang;
23 23
     $tpl = $modx->parseText($tpl, $_lang, '[%', '%]');
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
  * @param string|int $cssId
29 29
  * @return string
30 30
  */
31
-function renderViewSwitchButtons($cssId)
32
-{
31
+function renderViewSwitchButtons($cssId)
32
+{
33 33
     $modx = evolutionCMS();
34 34
     global $_lang, $tpl;
35 35
 
@@ -43,21 +43,21 @@  discard block
 block discarded – undo
43 43
  * @param mgrResources $resources
44 44
  * @return string
45 45
  */
46
-function createResourceList($resourceTable, $resources)
47
-{
46
+function createResourceList($resourceTable, $resources)
47
+{
48 48
     $modx = evolutionCMS();
49 49
     global $_lang, $_style, $modx_textdir, $tpl;
50 50
 
51 51
     $items = isset($resources->items[$resourceTable]) ? $resources->items[$resourceTable] : false;
52 52
 
53
-    if (! is_array($items) || empty($items)) {
53
+    if (! is_array($items) || empty($items)) {
54 54
         return $_lang['no_results'];
55 55
     }
56 56
 
57 57
     // Prepare elements- and categories-list
58 58
     $elements = array();
59 59
     $categories = array();
60
-    foreach ($items as $row) {
60
+    foreach ($items as $row) {
61 61
         $catid = $row['catid'] ? $row['catid'] : 0;
62 62
         $categories[$catid] = array('name' => stripslashes($row['category']));
63 63
         $elements[$catid][] = prepareElementRowPh($row, $resourceTable, $resources);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     // Now render categories / panel-collapse
67 67
     $panelGroup = '';
68
-    foreach ($elements as $catid => $elList) {
68
+    foreach ($elements as $catid => $elList) {
69 69
         // Add panel-heading / category-collapse to output
70 70
         $panelGroup .= parsePh($tpl['panelHeading'], array(
71 71
             'tab' => $resourceTable,
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
         // Prepare content for panel-collapse
78 78
         $panelCollapse = '';
79
-        foreach ($elList as $el) {
79
+        foreach ($elList as $el) {
80 80
             $panelCollapse .= parsePh($tpl['elementsRow'], $el);
81 81
         }
82 82
 
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
  * @param mgrResources $resources
99 99
  * @return string
100 100
  */
101
-function createCombinedView($resources)
102
-{
101
+function createCombinedView($resources)
102
+{
103 103
     $modx = evolutionCMS();
104 104
     global $_lang, $_style, $modx_textdir;
105 105
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     $types = isset($resources->types) ? $resources->types : false;
108 108
     $categories = isset($resources->categories) ? $resources->categories : false;
109 109
 
110
-    if (!$itemsPerCategory) {
110
+    if (!$itemsPerCategory) {
111 111
         return $_lang['no_results'];
112 112
     }
113 113
 
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
 
121 121
     // Easily loop through $itemsPerCategory-Array
122 122
     $panelGroup = '';
123
-    foreach ($categories as $catid => $category) {
123
+    foreach ($categories as $catid => $category) {
124 124
         // Prepare collapse content / elements-list
125 125
         $panelCollapse = '';
126
-        foreach ($itemsPerCategory[$catid] as $el) {
126
+        foreach ($itemsPerCategory[$catid] as $el) {
127 127
             $resourceTable = $el['type'];
128 128
             $ph = prepareElementRowPh($el, $resourceTable, $resources);
129 129
             $panelCollapse .= parsePh($tpl['elementsRow'], $ph);
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
  * @param mgrResources $resources
158 158
  * @return array
159 159
  */
160
-function prepareElementRowPh($row, $resourceTable, $resources)
161
-{
160
+function prepareElementRowPh($row, $resourceTable, $resources)
161
+{
162 162
     $modx = evolutionCMS();
163 163
     global $modx_textdir, $_style, $_lang;
164 164
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
     $_lang["confirm_delete"] = $_lang["delete"];
168 168
 
169
-    switch ($resourceTable) {
169
+    switch ($resourceTable) {
170 170
         case 'site_templates':
171 171
             $class = $row['selectable'] ? '' : 'disabledPlugin';
172 172
             $lockElementType = 1;
@@ -203,56 +203,56 @@  discard block
 block discarded – undo
203 203
     // Prepare displaying user-locks
204 204
     $lockedByUser = '';
205 205
     $rowLock = $modx->elementIsLocked($lockElementType, $row['id'], true);
206
-    if ($rowLock && $modx->hasPermission('display_locks')) {
207
-        if ($rowLock['sid'] == $modx->sid) {
206
+    if ($rowLock && $modx->hasPermission('display_locks')) {
207
+        if ($rowLock['sid'] == $modx->sid) {
208 208
             $title = $modx->parseText($_lang["lock_element_editing"], array(
209 209
                 'element_type' => $_lang["lock_element_type_" . $lockElementType],
210 210
                 'lasthit_df' => $rowLock['lasthit_df']
211 211
             ));
212 212
             $lockedByUser = '<span title="' . $title . '" class="editResource" style="cursor:context-menu;">' . $_style['tree_preview_resource'] . '</span>&nbsp;';
213
-        } else {
213
+        } else {
214 214
             $title = $modx->parseText($_lang["lock_element_locked_by"], array(
215 215
                 'element_type' => $_lang["lock_element_type_" . $lockElementType],
216 216
                 'username' => $rowLock['username'],
217 217
                 'lasthit_df' => $rowLock['lasthit_df']
218 218
             ));
219
-            if ($modx->hasPermission('remove_locks')) {
219
+            if ($modx->hasPermission('remove_locks')) {
220 220
                 $lockedByUser = '<a href="javascript:;" onclick="unlockElement(' . $lockElementType . ', ' . $row['id'] . ', this);return false;" title="' . $title . '" class="lockedResource"><i class="' . $_style['icons_secured'] . '"></i></a>';
221
-            } else {
221
+            } else {
222 222
                 $lockedByUser = '<span title="' . $title . '" class="lockedResource" style="cursor:context-menu;"><i class="' . $_style['icons_secured'] . '"></i></span>';
223 223
             }
224 224
         }
225 225
     }
226
-    if ($lockedByUser) {
226
+    if ($lockedByUser) {
227 227
         $lockedByUser = '<div class="lockCell">' . $lockedByUser . '</div>';
228 228
     }
229 229
 
230 230
     // Caption
231
-    if ($resourceTable == 'site_tmplvars') {
231
+    if ($resourceTable == 'site_tmplvars') {
232 232
         $caption = !empty($row['description']) ? ' ' . $row['caption'] . ' &nbsp; <small>(' . $row['description'] . ')</small>' : ' ' . $row['caption'];
233
-    } else {
233
+    } else {
234 234
         $caption = !empty($row['description']) ? ' ' . $row['description'] : '';
235 235
     }
236 236
 
237 237
     // Special marks
238 238
     $tplInfo = array();
239
-    if ($row['locked']) {
239
+    if ($row['locked']) {
240 240
         $tplInfo[] = $_lang['locked'];
241 241
     }
242
-    if ($row['id'] == $modx->config['default_template'] && $resourceTable == 'site_templates') {
242
+    if ($row['id'] == $modx->config['default_template'] && $resourceTable == 'site_templates') {
243 243
         $tplInfo[] = $_lang['defaulttemplate_title'];
244 244
     }
245 245
     $marks = !empty($tplInfo) ? ' <em>(' . implode(', ', $tplInfo) . ')</em>' : '';
246 246
 
247 247
     /* row buttons */
248 248
     $buttons = '';
249
-    if ($modx->hasPermission($types['actions']['edit'][1])) {
249
+    if ($modx->hasPermission($types['actions']['edit'][1])) {
250 250
         $buttons .= '<li><a title="' . $_lang["edit_resource"] . '" href="index.php?a=' . $types['actions']['edit'][0] . '&amp;id=' . $row['id'] . '"><i class="fa fa-edit fa-fw"></i></a></li>';
251 251
     }
252
-    if ($modx->hasPermission($types['actions']['duplicate'][1])) {
252
+    if ($modx->hasPermission($types['actions']['duplicate'][1])) {
253 253
         $buttons .= '<li><a onclick="return confirm(\'' . $_lang["confirm_duplicate_record"] . '\')" title="' . $_lang["resource_duplicate"] . '" href="index.php?a=' . $types['actions']['duplicate'][0] . '&amp;id=' . $row['id'] . '"><i class="fa fa-clone fa-fw"></i></a></li>';
254 254
     }
255
-    if ($modx->hasPermission($types['actions']['remove'][1])) {
255
+    if ($modx->hasPermission($types['actions']['remove'][1])) {
256 256
         $buttons .= '<li><a onclick="return confirm(\'' . $_lang["confirm_delete"] . '\')" title="' . $_lang["delete"] . '" href="index.php?a=' . $types['actions']['remove'][0] . '&amp;id=' . $row['id'] . '"><i class="fa fa-trash fa-fw"></i></a></li>';
257 257
     }
258 258
     $buttons = $buttons ? '<div class="btnCell"><ul class="elements_buttonbar">' . $buttons . '</ul></div>' : '';
Please login to merge, or discard this patch.
manager/actions/modules.static.php 1 patch
Braces   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
2
+if (! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
3 3
     die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
4 4
 }
5
-if (!($modx->hasPermission('new_module') || $modx->hasPermission('edit_module') || $modx->hasPermission('exec_module'))) {
5
+if (!($modx->hasPermission('new_module') || $modx->hasPermission('edit_module') || $modx->hasPermission('exec_module'))) {
6 6
     $modx->webAlertAndQuit($_lang["error_no_privileges"]);
7 7
 }
8 8
 
@@ -10,10 +10,10 @@  discard block
 block discarded – undo
10 10
 $modx->manager->initPageViewState();
11 11
 
12 12
 // get and save search string
13
-if ($_REQUEST['op'] == 'reset') {
13
+if ($_REQUEST['op'] == 'reset') {
14 14
     $query = '';
15 15
     $_PAGE['vs']['search'] = '';
16
-} else {
16
+} else {
17 17
     $query = isset($_REQUEST['search']) ? $_REQUEST['search'] : $_PAGE['vs']['search'];
18 18
     $sqlQuery = $modx->db->escape($query);
19 19
     $_PAGE['vs']['search'] = $query;
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 include_once MODX_MANAGER_PATH . "includes/controls/contextmenu.php";
29 29
 $cm = new ContextMenu("cntxm", 150);
30 30
 $cm->addItem($_lang["run_module"], "js:menuAction(1)", $_style['actions_run'], (!$modx->hasPermission('exec_module') ? 1 : 0));
31
-if ($modx->hasPermission('edit_module') || $modx->hasPermission('new_module') || $modx->hasPermission('delete_module')) {
31
+if ($modx->hasPermission('edit_module') || $modx->hasPermission('new_module') || $modx->hasPermission('delete_module')) {
32 32
     $cm->addSeparator();
33 33
 }
34 34
 $cm->addItem($_lang["edit"], "js:menuAction(2)", $_style['actions_edit'], (!$modx->hasPermission('edit_module') ? 1 : 0));
@@ -107,21 +107,21 @@  discard block
 block discarded – undo
107 107
 <div class="tab-page">
108 108
     <div class="table-responsive">
109 109
         <?php
110
-        if ($_SESSION['mgrRole'] != 1 && !empty($modx->config['use_udperms'])) {
110
+        if ($_SESSION['mgrRole'] != 1 && !empty($modx->config['use_udperms'])) {
111 111
             $rs = $modx->db->query('SELECT DISTINCT sm.id, sm.name, sm.description, mg.member, IF(disabled,"' . $_lang['yes'] . '","-") as disabled, IF(sm.icon<>"",sm.icon,"' . $_style['icons_modules'] . '") as icon
112 112
 				FROM ' . $modx->getFullTableName('site_modules') . ' AS sm
113 113
 				LEFT JOIN ' . $modx->getFullTableName('site_module_access') . ' AS sma ON sma.module = sm.id
114 114
 				LEFT JOIN ' . $modx->getFullTableName('member_groups') . ' AS mg ON sma.usergroup = mg.user_group
115 115
                 WHERE (mg.member IS NULL OR mg.member = ' . $modx->getLoginUserID() . ') AND sm.disabled != 1 AND sm.locked != 1
116 116
                 ORDER BY sm.name');
117
-            if ($modx->hasPermission('edit_module')) {
117
+            if ($modx->hasPermission('edit_module')) {
118 118
                 $title = "<a href='index.php?a=108&id=[+id+]' title='" . $_lang["module_edit_click_title"] . "'>[+value+]</a>";
119
-            } elseif ($modx->hasPermission('exec_module')) {
119
+            } elseif ($modx->hasPermission('exec_module')) {
120 120
                 $title = "<a href='index.php?a=112&id=[+id+]' title='" . $_lang["module_edit_click_title"] . "'>[+value+]</a>";
121
-            } else {
121
+            } else {
122 122
                 $title = '[+value+]';
123 123
             }
124
-        } else {
124
+        } else {
125 125
             $rs = $modx->db->select("id, name, description, IF(locked,'{$_lang['yes']}','-') as locked, IF(disabled,'{$_lang['yes']}','-') as disabled, IF(icon<>'',icon,'{$_style['icons_module']}') as icon", $modx->getFullTableName("site_modules"), (!empty($sqlQuery) ? "(name LIKE '%{$sqlQuery}%') OR (description LIKE '%{$sqlQuery}%')" : ""), "name");
126 126
             $title = "<a href='index.php?a=108&id=[+id+]' title='" . $_lang["module_edit_click_title"] . "'>[+value+]</a>";
127 127
         }
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
         $grd->colWidths = "34,,,60,60";
138 138
         $grd->colAligns = "center,,,center,center";
139 139
         $grd->colTypes = "template:<a class='tableRowIcon' href='javascript:;' onclick='return showContentMenu([+id+],event);' title='" . $_lang["click_to_context"] . "'><i class='[+value+]'></i></a>||template:" . $title;
140
-        if ($listmode == '1') {
140
+        if ($listmode == '1') {
141 141
             $grd->pageSize = 0;
142 142
         }
143
-        if ($_REQUEST['op'] == 'reset') {
143
+        if ($_REQUEST['op'] == 'reset') {
144 144
             $grd->pageNumber = 1;
145 145
         }
146 146
         // render grid
Please login to merge, or discard this patch.
manager/actions/sysinfo.static.php 1 patch
Braces   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
2
+if (! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
3 3
     die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
4 4
 }
5
-if (!$modx->hasPermission('logs')) {
5
+if (!$modx->hasPermission('logs')) {
6 6
     $modx->webAlertAndQuit($_lang["error_no_privileges"]);
7 7
 }
8 8
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                 <table class="table data table-sm nowrap">
56 56
                     <tbody>
57 57
                     <?php
58
-                    foreach ($serverArr as $key => $value) {
58
+                    foreach ($serverArr as $key => $value) {
59 59
                         ?>
60 60
                         <tr>
61 61
                             <td width="1%"><?= $key ?></td>
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     $sql = "SHOW TABLE STATUS FROM $dbase LIKE '" . $modx->db->escape($modx->db->config['table_prefix']) . "%';";
99 99
                     $rs = $modx->db->query($sql);
100 100
                     $i = 0;
101
-                    while ($log_status = $modx->db->getRow($rs)) {
101
+                    while ($log_status = $modx->db->getRow($rs)) {
102 102
                         ?>
103 103
                         <tr>
104 104
                             <td class="text-primary"><b><?= $log_status['Name'] ?></b></td>
@@ -110,17 +110,17 @@  discard block
 block discarded – undo
110 110
                                 $modx->db->config['table_prefix'] . 'event_log',
111 111
                                 $modx->db->config['table_prefix'] . 'manager_log',
112 112
                             );
113
-                        if ($modx->hasPermission('settings') && in_array($log_status['Name'], $truncateable)) {
113
+                        if ($modx->hasPermission('settings') && in_array($log_status['Name'], $truncateable)) {
114 114
                             echo "<td class=\"text-xs-right\">";
115 115
                             echo "<a class=\"text-danger\" href='index.php?a=54&mode=$action&u=" . $log_status['Name'] . "' title='" . $_lang['truncate_table'] . "'>" . $modx->nicesize($log_status['Data_length'] + $log_status['Data_free']) . "</a>";
116 116
                             echo "</td>";
117
-                        } else {
117
+                        } else {
118 118
                             echo "<td class=\"text-xs-right\">" . $modx->nicesize($log_status['Data_length'] + $log_status['Data_free']) . "</td>";
119 119
                         }
120 120
 
121
-                        if ($modx->hasPermission('settings')) {
121
+                        if ($modx->hasPermission('settings')) {
122 122
                             echo "<td class=\"text-xs-right\">" . ($log_status['Data_free'] > 0 ? "<a class=\"text-danger\" href='index.php?a=54&mode=$action&t=" . $log_status['Name'] . "' title='" . $_lang['optimize_table'] . "' ><span>" . $modx->nicesize($log_status['Data_free']) . "</span></a>" : "-") . "</td>";
123
-                        } else {
123
+                        } else {
124 124
                             echo "<td class=\"text-xs-right\">" . ($log_status['Data_free'] > 0 ? $modx->nicesize($log_status['Data_free']) : "-") . "</td>";
125 125
                         } ?>
126 126
                             <td class="text-xs-right"><?= $modx->nicesize($log_status['Data_length'] - $log_status['Data_free']) ?></td>
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                 </table>
144 144
             </div>
145 145
         </div>
146
-        <?php if ($totaloverhead > 0) {
146
+        <?php if ($totaloverhead > 0) {
147 147
                         ?>
148 148
             <br>
149 149
             <p class="alert alert-danger"><?= $_lang['database_overhead'] ?></p>
Please login to merge, or discard this patch.