@@ -1,12 +1,12 @@ discard block |
||
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 | if (!$modx->hasPermission('save_chunk')) { |
6 | 6 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
7 | 7 | } |
8 | 8 | |
9 | -$id = (int)$_POST['id']; |
|
9 | +$id = (int) $_POST['id']; |
|
10 | 10 | $snippet = $modx->db->escape($_POST['post']); |
11 | 11 | $name = $modx->db->escape(trim($_POST['name'])); |
12 | 12 | $description = $modx->db->escape($_POST['description']); |
@@ -16,11 +16,11 @@ discard block |
||
16 | 16 | |
17 | 17 | //Kyle Jaebker - added category support |
18 | 18 | if (empty($_POST['newcategory']) && $_POST['categoryid'] > 0) { |
19 | - $categoryid = (int)$_POST['categoryid']; |
|
19 | + $categoryid = (int) $_POST['categoryid']; |
|
20 | 20 | } elseif (empty($_POST['newcategory']) && $_POST['categoryid'] <= 0) { |
21 | 21 | $categoryid = 0; |
22 | 22 | } else { |
23 | - include_once(MODX_MANAGER_PATH . 'includes/categories.inc.php'); |
|
23 | + include_once(MODX_MANAGER_PATH.'includes/categories.inc.php'); |
|
24 | 24 | $categoryid = checkCategory($_POST['newcategory']); |
25 | 25 | if (!$categoryid) { |
26 | 26 | $categoryid = newCategory($_POST['newcategory']); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | // finished emptying cache - redirect |
81 | 81 | if ($_POST['stay'] != '') { |
82 | 82 | $a = ($_POST['stay'] == '2') ? "78&id=$newid" : "77"; |
83 | - $header = "Location: index.php?a=" . $a . "&r=2&stay=" . $_POST['stay']; |
|
83 | + $header = "Location: index.php?a=".$a."&r=2&stay=".$_POST['stay']; |
|
84 | 84 | header($header); |
85 | 85 | } else { |
86 | 86 | $header = "Location: index.php?a=76&r=2"; |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | // finished emptying cache - redirect |
130 | 130 | if ($_POST['stay'] != '') { |
131 | 131 | $a = ($_POST['stay'] == '2') ? "78&id=$id" : "77"; |
132 | - $header = "Location: index.php?a=" . $a . "&r=2&stay=" . $_POST['stay']; |
|
132 | + $header = "Location: index.php?a=".$a."&r=2&stay=".$_POST['stay']; |
|
133 | 133 | header($header); |
134 | 134 | } else { |
135 | 135 | $modx->unlockElement(3, $id); |
@@ -1,5 +1,5 @@ discard block |
||
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 | if (!$modx->hasPermission('save_user')) { |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | $input = $_POST; |
16 | 16 | |
17 | -$id = (int)$input['id']; |
|
17 | +$id = (int) $input['id']; |
|
18 | 18 | $oldusername = $input['oldusername']; |
19 | 19 | $newusername = !empty($input['newusername']) ? trim($input['newusername']) : "New User"; |
20 | 20 | $fullname = $input['fullname']; |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | if (!empty($user_groups)) { |
145 | 145 | for ($i = 0; $i < count($user_groups); $i++) { |
146 | 146 | $f = array(); |
147 | - $f['user_group'] = (int)$user_groups[$i]; |
|
147 | + $f['user_group'] = (int) $user_groups[$i]; |
|
148 | 148 | $f['member'] = $internalKey; |
149 | 149 | $modx->db->insert($f, $tbl_member_groups); |
150 | 150 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | sendMailMessage($email, $newusername, $newpassword, $fullname); |
157 | 157 | if ($input['stay'] != '') { |
158 | 158 | $a = ($input['stay'] == '2') ? "12&id={$internalKey}" : "11"; |
159 | - $header = "Location: index.php?a={$a}&r=2&stay=" . $input['stay']; |
|
159 | + $header = "Location: index.php?a={$a}&r=2&stay=".$input['stay']; |
|
160 | 160 | header($header); |
161 | 161 | } else { |
162 | 162 | $header = "Location: index.php?a=75&r=2"; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | } else { |
166 | 166 | if ($input['stay'] != '') { |
167 | 167 | $a = ($input['stay'] == '2') ? "12&id={$internalKey}" : "11"; |
168 | - $stayUrl = "index.php?a={$a}&r=2&stay=" . $input['stay']; |
|
168 | + $stayUrl = "index.php?a={$a}&r=2&stay=".$input['stay']; |
|
169 | 169 | } else { |
170 | 170 | $stayUrl = "index.php?a=75&r=2"; |
171 | 171 | } |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | if (!empty($user_groups)) { |
291 | 291 | for ($i = 0; $i < count($user_groups); $i++) { |
292 | 292 | $field = array(); |
293 | - $field['user_group'] = (int)$user_groups[$i]; |
|
293 | + $field['user_group'] = (int) $user_groups[$i]; |
|
294 | 294 | $field['member'] = $id; |
295 | 295 | $modx->db->insert($field, $tbl_member_groups); |
296 | 296 | } |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | if ($genpassword == 1 && $passwordnotifymethod == 's') { |
305 | 305 | if ($input['stay'] != '') { |
306 | 306 | $a = ($input['stay'] == '2') ? "12&id={$id}" : "11"; |
307 | - $stayUrl = "index.php?a={$a}&r=2&stay=" . $input['stay']; |
|
307 | + $stayUrl = "index.php?a={$a}&r=2&stay=".$input['stay']; |
|
308 | 308 | } else { |
309 | 309 | $stayUrl = "index.php?a=75&r=2"; |
310 | 310 | } |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | <div class="sectionHeader"><?php echo $_lang['user_title']; ?></div> |
324 | 324 | <div class="sectionBody"> |
325 | 325 | <div id="disp"> |
326 | - <p><?php echo sprintf($_lang["password_msg"], $modx->htmlspecialchars($newusername), $modx->htmlspecialchars($newpassword)) . (($id == $modx->getLoginUserID()) ? ' ' . $_lang['user_changeddata'] : ''); ?></p> |
|
326 | + <p><?php echo sprintf($_lang["password_msg"], $modx->htmlspecialchars($newusername), $modx->htmlspecialchars($newpassword)).(($id == $modx->getLoginUserID()) ? ' '.$_lang['user_changeddata'] : ''); ?></p> |
|
327 | 327 | </div> |
328 | 328 | </div> |
329 | 329 | </div> |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | } else { |
334 | 334 | if ($input['stay'] != '') { |
335 | 335 | $a = ($input['stay'] == '2') ? "12&id={$id}" : "11"; |
336 | - $header = "Location: index.php?a={$a}&r=2&stay=" . $input['stay']; |
|
336 | + $header = "Location: index.php?a={$a}&r=2&stay=".$input['stay']; |
|
337 | 337 | header($header); |
338 | 338 | } else { |
339 | 339 | $header = "Location: index.php?a=75&r=2"; |
@@ -449,10 +449,10 @@ discard block |
||
449 | 449 | } |
450 | 450 | |
451 | 451 | foreach ($defaults as $k) { |
452 | - if (isset($settings['default_' . $k]) && $settings['default_' . $k] == '1') { |
|
452 | + if (isset($settings['default_'.$k]) && $settings['default_'.$k] == '1') { |
|
453 | 453 | unset($settings[$k]); |
454 | 454 | } |
455 | - unset($settings['default_' . $k]); |
|
455 | + unset($settings['default_'.$k]); |
|
456 | 456 | } |
457 | 457 | |
458 | 458 | $modx->db->delete($tbl_user_settings, "user='{$id}'"); |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | global $id, $modx; |
483 | 483 | $mode = $_POST['mode']; |
484 | 484 | $modx->manager->saveFormValues($mode); |
485 | - $modx->webAlertAndQuit($msg, "index.php?a={$mode}" . ($mode == '12' ? "&id={$id}" : '')); |
|
485 | + $modx->webAlertAndQuit($msg, "index.php?a={$mode}".($mode == '12' ? "&id={$id}" : '')); |
|
486 | 486 | } |
487 | 487 | |
488 | 488 | /** |
@@ -1,27 +1,27 @@ discard block |
||
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 | if (!$modx->hasPermission('save_template')) { |
6 | 6 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
7 | 7 | } |
8 | 8 | |
9 | -$id = (int)$_POST['id']; |
|
9 | +$id = (int) $_POST['id']; |
|
10 | 10 | $template = $modx->db->escape($_POST['post']); |
11 | 11 | $templatename = $modx->db->escape(trim($_POST['templatename'])); |
12 | 12 | $description = $modx->db->escape($_POST['description']); |
13 | 13 | $locked = $_POST['locked'] == 'on' ? 1 : 0; |
14 | -$selectable = $id == $modx->config['default_template'] ? 1 : // Force selectable |
|
14 | +$selectable = $id == $modx->config['default_template'] ? 1 : // Force selectable |
|
15 | 15 | $_POST['selectable'] == 'on' ? 1 : 0; |
16 | 16 | $currentdate = time() + $modx->config['server_offset_time']; |
17 | 17 | |
18 | 18 | //Kyle Jaebker - added category support |
19 | 19 | if (empty($_POST['newcategory']) && $_POST['categoryid'] > 0) { |
20 | - $categoryid = (int)$_POST['categoryid']; |
|
20 | + $categoryid = (int) $_POST['categoryid']; |
|
21 | 21 | } elseif (empty($_POST['newcategory']) && $_POST['categoryid'] <= 0) { |
22 | 22 | $categoryid = 0; |
23 | 23 | } else { |
24 | - include_once(MODX_MANAGER_PATH . 'includes/categories.inc.php'); |
|
24 | + include_once(MODX_MANAGER_PATH.'includes/categories.inc.php'); |
|
25 | 25 | $categoryid = checkCategory($_POST['newcategory']); |
26 | 26 | if (!$categoryid) { |
27 | 27 | $categoryid = newCategory($_POST['newcategory']); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | // finished emptying cache - redirect |
79 | 79 | if ($_POST['stay'] != '') { |
80 | 80 | $a = ($_POST['stay'] == '2') ? "16&id=$newid" : "19"; |
81 | - $header = "Location: index.php?a=" . $a . "&r=2&stay=" . $_POST['stay']; |
|
81 | + $header = "Location: index.php?a=".$a."&r=2&stay=".$_POST['stay']; |
|
82 | 82 | header($header); |
83 | 83 | } else { |
84 | 84 | $header = "Location: index.php?a=76&r=2"; |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | // finished emptying cache - redirect |
131 | 131 | if ($_POST['stay'] != '') { |
132 | 132 | $a = ($_POST['stay'] == '2') ? "16&id=$id" : "19"; |
133 | - $header = "Location: index.php?a=" . $a . "&r=2&stay=" . $_POST['stay']; |
|
133 | + $header = "Location: index.php?a=".$a."&r=2&stay=".$_POST['stay']; |
|
134 | 134 | header($header); |
135 | 135 | } else { |
136 | 136 | $modx->unlockElement(1, $id); |
@@ -1,5 +1,5 @@ discard block |
||
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 | if (!$modx->hasPermission('export_static')) { |
@@ -12,17 +12,17 @@ discard block |
||
12 | 12 | $modx->loadExtension('EXPORT_SITE'); |
13 | 13 | |
14 | 14 | |
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'; |
|
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 | 19 | } |
20 | 20 | $modx->export->targetDir = $export_dir; |
21 | 21 | |
22 | -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']))) { |
|
23 | 23 | return $_lang['export_site.static.php6']; |
24 | -} elseif ($modx->config['rb_base_dir'] === $export_dir . '/') { |
|
25 | - return $modx->parsePlaceholder($_lang['export_site.static.php7'], 'rb_base_url=' . $modx->config['base_url'] . $modx->config['rb_base_url']); |
|
24 | +} elseif ($modx->config['rb_base_dir'] === $export_dir.'/') { |
|
25 | + return $modx->parsePlaceholder($_lang['export_site.static.php7'], 'rb_base_url='.$modx->config['base_url'].$modx->config['rb_base_url']); |
|
26 | 26 | } elseif (!is_writable($export_dir)) { |
27 | 27 | return $_lang['export_site_target_unwritable']; |
28 | 28 | } |
@@ -37,10 +37,10 @@ discard block |
||
37 | 37 | $repl_after = $_POST['repl_after']; |
38 | 38 | $includenoncache = $_POST['includenoncache']; |
39 | 39 | |
40 | -if ($ignore_ids!==$_POST['ignore_ids'] |
|
41 | - ||$includenoncache!==$_POST['includenoncache'] |
|
42 | - ||$repl_before!==$_POST['repl_before'] |
|
43 | - ||$repl_after !==$_POST['repl_after']) { |
|
40 | +if ($ignore_ids !== $_POST['ignore_ids'] |
|
41 | + ||$includenoncache !== $_POST['includenoncache'] |
|
42 | + ||$repl_before !== $_POST['repl_before'] |
|
43 | + ||$repl_after !== $_POST['repl_after']) { |
|
44 | 44 | $modx->clearCache('full'); |
45 | 45 | } |
46 | 46 | |
@@ -56,5 +56,5 @@ discard block |
||
56 | 56 | |
57 | 57 | $exportend = $modx->export->get_mtime(); |
58 | 58 | $totaltime = ($exportend - $modx->export->exportstart); |
59 | -$output .= sprintf('<p>' . $_lang["export_site_time"] . '</p>', round($totaltime, 3)); |
|
59 | +$output .= sprintf('<p>'.$_lang["export_site_time"].'</p>', round($totaltime, 3)); |
|
60 | 60 | return $output; |
@@ -1,8 +1,8 @@ discard block |
||
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('settings') && ($modx->hasPermission('logs')||$modx->hasPermission('bk_manager')))) { |
|
5 | +if (!($modx->hasPermission('settings') && ($modx->hasPermission('logs') || $modx->hasPermission('bk_manager')))) { |
|
6 | 6 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
7 | 7 | } |
8 | 8 | |
@@ -28,6 +28,6 @@ discard block |
||
28 | 28 | $modx->webAlertAndQuit($_lang["error_no_optimise_tablename"]); |
29 | 29 | } |
30 | 30 | |
31 | -$mode = (int)$_REQUEST['mode']; |
|
32 | -$header="Location: index.php?a={$mode}&s=4"; |
|
31 | +$mode = (int) $_REQUEST['mode']; |
|
32 | +$header = "Location: index.php?a={$mode}&s=4"; |
|
33 | 33 | header($header); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | if (isset($this->aliases[$id])) { |
95 | 95 | if ($this->aliasVisible[$id] == 1) { |
96 | 96 | if ($path != '') { |
97 | - $path = $this->aliases[$id] . '/' . $path; |
|
97 | + $path = $this->aliases[$id].'/'.$path; |
|
98 | 98 | } else { |
99 | 99 | $path = $this->aliases[$id]; |
100 | 100 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $modx->messageQuit("Cache path not set."); |
119 | 119 | } |
120 | 120 | |
121 | - $files = glob(realpath($this->cachePath) . '/*.pageCache.php'); |
|
121 | + $files = glob(realpath($this->cachePath).'/*.pageCache.php'); |
|
122 | 122 | $filesincache = count($files); |
123 | 123 | $deletedfiles = array(); |
124 | 124 | while ($file = array_shift($files)) { |
@@ -153,9 +153,9 @@ discard block |
||
153 | 153 | if (isset($opcache)) { |
154 | 154 | echo '<p>Opcache empty.</p>'; |
155 | 155 | } |
156 | - echo '<p>' . $_lang['cache_files_deleted'] . '</p><ul>'; |
|
156 | + echo '<p>'.$_lang['cache_files_deleted'].'</p><ul>'; |
|
157 | 157 | foreach ($deletedfiles as $deletedfile) { |
158 | - echo '<li>' . $deletedfile . '</li>'; |
|
158 | + echo '<li>'.$deletedfile.'</li>'; |
|
159 | 159 | } |
160 | 160 | echo '</ul>'; |
161 | 161 | } |
@@ -174,11 +174,11 @@ discard block |
||
174 | 174 | |
175 | 175 | |
176 | 176 | // write the file |
177 | - $content = '<?php' . "\n"; |
|
178 | - $content .= '$recent_update=\'' . $this->request_time . '\';' . "\n"; |
|
179 | - $content .= '$cacheRefreshTime=\'' . $cacheRefreshTime . '\';' . "\n"; |
|
177 | + $content = '<?php'."\n"; |
|
178 | + $content .= '$recent_update=\''.$this->request_time.'\';'."\n"; |
|
179 | + $content .= '$cacheRefreshTime=\''.$cacheRefreshTime.'\';'."\n"; |
|
180 | 180 | |
181 | - $filename = $this->cachePath . '/sitePublishing.idx.php'; |
|
181 | + $filename = $this->cachePath.'/sitePublishing.idx.php'; |
|
182 | 182 | if (!$handle = fopen($filename, 'w')) { |
183 | 183 | exit("Cannot open file ({$filename}"); |
184 | 184 | } |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | $timesArr = array(); |
203 | 203 | |
204 | 204 | $result = $modx->db->select('MIN(pub_date) AS minpub', '[+prefix+]site_content', |
205 | - 'pub_date>' . $this->request_time); |
|
205 | + 'pub_date>'.$this->request_time); |
|
206 | 206 | if (!$result) { |
207 | 207 | echo "Couldn't determine next publish event!"; |
208 | 208 | } |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | } |
214 | 214 | |
215 | 215 | $result = $modx->db->select('MIN(unpub_date) AS minunpub', '[+prefix+]site_content', |
216 | - 'unpub_date>' . $this->request_time); |
|
216 | + 'unpub_date>'.$this->request_time); |
|
217 | 217 | if (!$result) { |
218 | 218 | echo "Couldn't determine next unpublish event!"; |
219 | 219 | } |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | $config = array(); |
253 | 253 | $content .= '$c=&$this->config;'; |
254 | 254 | while (list($key, $value) = $modx->db->getRow($rs, 'num')) { |
255 | - $content .= '$c[\'' . $key . '\']="' . $this->escapeDoubleQuotes($value) . '";'; |
|
255 | + $content .= '$c[\''.$key.'\']="'.$this->escapeDoubleQuotes($value).'";'; |
|
256 | 256 | $config[$key] = $value; |
257 | 257 | } |
258 | 258 | |
@@ -290,23 +290,23 @@ discard block |
||
290 | 290 | $docid = $doc['id']; |
291 | 291 | if ($use_alias_path) { |
292 | 292 | $tmpPath = $this->getParents($doc['parent']); |
293 | - $alias = (strlen($tmpPath) > 0 ? "$tmpPath/" : '') . $doc['alias']; |
|
293 | + $alias = (strlen($tmpPath) > 0 ? "$tmpPath/" : '').$doc['alias']; |
|
294 | 294 | $key = $alias; |
295 | 295 | } else { |
296 | 296 | $key = $doc['alias']; |
297 | 297 | } |
298 | 298 | |
299 | 299 | $doc['path'] = $tmpPath; |
300 | - $content .= '$a[' . $docid . ']=array(\'id\'=>' . $docid . ',\'alias\'=>\'' . $doc['alias'] . '\',\'path\'=>\'' . $doc['path'] . '\',\'parent\'=>' . $doc['parent'] . ',\'isfolder\'=>' . $doc['isfolder'] . ',\'alias_visible\'=>' . $doc['alias_visible'] . ');'; |
|
301 | - $content .= '$d[\'' . $key . '\']=' . $docid . ';'; |
|
302 | - $content .= '$m[]=array(' . $doc['parent'] . '=>' . $docid . ');'; |
|
300 | + $content .= '$a['.$docid.']=array(\'id\'=>'.$docid.',\'alias\'=>\''.$doc['alias'].'\',\'path\'=>\''.$doc['path'].'\',\'parent\'=>'.$doc['parent'].',\'isfolder\'=>'.$doc['isfolder'].',\'alias_visible\'=>'.$doc['alias_visible'].');'; |
|
301 | + $content .= '$d[\''.$key.'\']='.$docid.';'; |
|
302 | + $content .= '$m[]=array('.$doc['parent'].'=>'.$docid.');'; |
|
303 | 303 | } |
304 | 304 | |
305 | 305 | // get content types |
306 | 306 | $rs = $modx->db->select('id, contentType', '[+prefix+]site_content', "contentType!='text/html'"); |
307 | 307 | $content .= '$c=&$this->contentTypes;'; |
308 | 308 | while ($doc = $modx->db->getRow($rs)) { |
309 | - $content .= '$c[\'' . $doc['id'] . '\']=\'' . $doc['contentType'] . '\';'; |
|
309 | + $content .= '$c[\''.$doc['id'].'\']=\''.$doc['contentType'].'\';'; |
|
310 | 310 | } |
311 | 311 | |
312 | 312 | // WRITE Chunks to cache file |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | if ($modx->config['minifyphp_incache']) { |
317 | 317 | $doc['snippet'] = $this->php_strip_whitespace($doc['snippet']); |
318 | 318 | } |
319 | - $content .= '$c[\'' . $doc['name'] . '\']=\'' . ($doc['disabled'] ? '' : $this->escapeSingleQuotes($doc['snippet'])) . '\';'; |
|
319 | + $content .= '$c[\''.$doc['name'].'\']=\''.($doc['disabled'] ? '' : $this->escapeSingleQuotes($doc['snippet'])).'\';'; |
|
320 | 320 | } |
321 | 321 | |
322 | 322 | // WRITE snippets to cache file |
@@ -327,18 +327,18 @@ discard block |
||
327 | 327 | while ($row = $modx->db->getRow($rs)) { |
328 | 328 | $key = $row['name']; |
329 | 329 | if ($row['disabled']) { |
330 | - $content .= '$s[\'' . $key . '\']=\'return false;\';'; |
|
330 | + $content .= '$s[\''.$key.'\']=\'return false;\';'; |
|
331 | 331 | } else { |
332 | 332 | $value = trim($row['snippet']); |
333 | 333 | if ($modx->config['minifyphp_incache']) { |
334 | 334 | $value = $this->php_strip_whitespace($value); |
335 | 335 | } |
336 | - $content .= '$s[\'' . $key . '\']=\'' . $this->escapeSingleQuotes($value) . '\';'; |
|
336 | + $content .= '$s[\''.$key.'\']=\''.$this->escapeSingleQuotes($value).'\';'; |
|
337 | 337 | $properties = $modx->parseProperties($row['properties']); |
338 | 338 | $sharedproperties = $modx->parseProperties($row['sharedproperties']); |
339 | 339 | $properties = array_merge($sharedproperties, $properties); |
340 | 340 | if (0 < count($properties)) { |
341 | - $content .= '$s[\'' . $key . 'Props\']=\'' . $this->escapeSingleQuotes(json_encode($properties)) . '\';'; |
|
341 | + $content .= '$s[\''.$key.'Props\']=\''.$this->escapeSingleQuotes(json_encode($properties)).'\';'; |
|
342 | 342 | } |
343 | 343 | } |
344 | 344 | } |
@@ -356,13 +356,13 @@ discard block |
||
356 | 356 | if ($modx->config['minifyphp_incache']) { |
357 | 357 | $value = $this->php_strip_whitespace($value); |
358 | 358 | } |
359 | - $content .= '$p[\'' . $key . '\']=\'' . $this->escapeSingleQuotes($value) . '\';'; |
|
359 | + $content .= '$p[\''.$key.'\']=\''.$this->escapeSingleQuotes($value).'\';'; |
|
360 | 360 | if ($row['properties'] != '' || $row['sharedproperties'] != '') { |
361 | 361 | $properties = $modx->parseProperties($row['properties']); |
362 | 362 | $sharedproperties = $modx->parseProperties($row['sharedproperties']); |
363 | 363 | $properties = array_merge($sharedproperties, $properties); |
364 | 364 | if (0 < count($properties)) { |
365 | - $content .= '$p[\'' . $key . 'Props\']=\'' . $this->escapeSingleQuotes(json_encode($properties)) . '\';'; |
|
365 | + $content .= '$p[\''.$key.'Props\']=\''.$this->escapeSingleQuotes(json_encode($properties)).'\';'; |
|
366 | 366 | } |
367 | 367 | } |
368 | 368 | } |
@@ -385,14 +385,14 @@ discard block |
||
385 | 385 | } |
386 | 386 | foreach ($events as $evtname => $pluginnames) { |
387 | 387 | $events[$evtname] = $pluginnames; |
388 | - $content .= '$e[\'' . $evtname . '\']=array(\'' . implode('\',\'', |
|
389 | - $this->escapeSingleQuotes($pluginnames)) . '\');'; |
|
388 | + $content .= '$e[\''.$evtname.'\']=array(\''.implode('\',\'', |
|
389 | + $this->escapeSingleQuotes($pluginnames)).'\');'; |
|
390 | 390 | } |
391 | 391 | |
392 | 392 | $content .= "\n"; |
393 | 393 | |
394 | 394 | // close and write the file |
395 | - $filename = $this->cachePath . 'siteCache.idx.php'; |
|
395 | + $filename = $this->cachePath.'siteCache.idx.php'; |
|
396 | 396 | |
397 | 397 | // invoke OnBeforeCacheUpdate event |
398 | 398 | if ($modx) { |
@@ -403,8 +403,8 @@ discard block |
||
403 | 403 | exit("Cannot write main MODX cache file! Make sure the assets/cache directory is writable!"); |
404 | 404 | } |
405 | 405 | |
406 | - if (!is_file($this->cachePath . '/.htaccess')) { |
|
407 | - file_put_contents($this->cachePath . '/.htaccess', "order deny,allow\ndeny from all\n"); |
|
406 | + if (!is_file($this->cachePath.'/.htaccess')) { |
|
407 | + file_put_contents($this->cachePath.'/.htaccess', "order deny,allow\ndeny from all\n"); |
|
408 | 408 | } |
409 | 409 | |
410 | 410 | // invoke OnCacheUpdate event |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | { |
426 | 426 | $source = trim($source); |
427 | 427 | if (substr($source, 0, 5) !== '<?php') { |
428 | - $source = '<?php ' . $source; |
|
428 | + $source = '<?php '.$source; |
|
429 | 429 | } |
430 | 430 | |
431 | 431 | $tokens = token_get_all($source); |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | } |
484 | 484 | } |
485 | 485 | $source = preg_replace(array('@^<\?php@i', '|\s+|', '|<!--|', '|-->|', '|-->\s+<!--|'), |
486 | - array('', ' ', "\n" . '<!--', '-->' . "\n", '-->' . "\n" . '<!--'), $_); |
|
486 | + array('', ' ', "\n".'<!--', '-->'."\n", '-->'."\n".'<!--'), $_); |
|
487 | 487 | $source = trim($source); |
488 | 488 | |
489 | 489 | return $source; |
@@ -22,14 +22,14 @@ discard block |
||
22 | 22 | * @param array $tvsArray |
23 | 23 | * @return string |
24 | 24 | */ |
25 | -function ProcessTVCommand($value, $name = '', $docid = '', $src='docform', $tvsArray = array()) |
|
25 | +function ProcessTVCommand($value, $name = '', $docid = '', $src = 'docform', $tvsArray = array()) |
|
26 | 26 | { |
27 | 27 | $modx = evolutionCMS(); |
28 | - $docid = (int)$docid > 0 ? (int)$docid : $modx->documentIdentifier; |
|
28 | + $docid = (int) $docid > 0 ? (int) $docid : $modx->documentIdentifier; |
|
29 | 29 | $nvalue = trim($value); |
30 | 30 | if (substr($nvalue, 0, 1) != '@') { |
31 | 31 | return $value; |
32 | - } elseif (isset($modx->config['enable_bindings']) && $modx->config['enable_bindings']!=1 && $src==='docform') { |
|
32 | + } elseif (isset($modx->config['enable_bindings']) && $modx->config['enable_bindings'] != 1 && $src === 'docform') { |
|
33 | 33 | return '@Bindings is disabled.'; |
34 | 34 | } else { |
35 | 35 | list($cmd, $param) = ParseCommand($nvalue); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | case 'DIRECTORY': |
101 | 101 | $files = array(); |
102 | - $path = $modx->config['base_path'] . $param; |
|
102 | + $path = $modx->config['base_path'].$param; |
|
103 | 103 | if (substr($path, -1, 1) != '/') { |
104 | 104 | $path .= '/'; |
105 | 105 | } |
@@ -152,9 +152,9 @@ discard block |
||
152 | 152 | global $BINDINGS; |
153 | 153 | $binding_array = array(); |
154 | 154 | foreach ($BINDINGS as $cmd) { |
155 | - if (strpos($binding_string, '@' . $cmd)===0) { |
|
156 | - $code = substr($binding_string, strlen($cmd)+1); |
|
157 | - $binding_array = array($cmd,trim($code)); |
|
155 | + if (strpos($binding_string, '@'.$cmd) === 0) { |
|
156 | + $code = substr($binding_string, strlen($cmd) + 1); |
|
157 | + $binding_array = array($cmd, trim($code)); |
|
158 | 158 | break; |
159 | 159 | } |
160 | 160 | } |
@@ -175,12 +175,12 @@ discard block |
||
175 | 175 | if (strpos($param, '[*') !== false) { |
176 | 176 | $matches = $modx->getTagsFromContent($param, '[*', '*]'); |
177 | 177 | foreach ($matches[0] as $i=>$match) { |
178 | - if (isset($tvsArray[ $matches[1][$i] ])) { |
|
179 | - if (is_array($tvsArray[ $matches[1][$i] ])) { |
|
178 | + if (isset($tvsArray[$matches[1][$i]])) { |
|
179 | + if (is_array($tvsArray[$matches[1][$i]])) { |
|
180 | 180 | $value = $tvsArray[$matches[1][$i]]['value']; |
181 | 181 | $value = $value === '' ? $tvsArray[$matches[1][$i]]['default_text'] : $value; |
182 | 182 | } else { |
183 | - $value = $tvsArray[ $matches[1][$i] ]; |
|
183 | + $value = $tvsArray[$matches[1][$i]]; |
|
184 | 184 | } |
185 | 185 | $param = str_replace($match, $value, $param); |
186 | 186 | } |
@@ -8,23 +8,23 @@ |
||
8 | 8 | * |
9 | 9 | */ |
10 | 10 | |
11 | - require_once(dirname(__FILE__) . '/protect.inc.php'); |
|
11 | + require_once(dirname(__FILE__).'/protect.inc.php'); |
|
12 | 12 | |
13 | 13 | $sysMsgs = ""; |
14 | 14 | $limit = count($SystemAlertMsgQueque); |
15 | - for ($i=0;$i<$limit;$i++) { |
|
16 | - $sysMsgs .= $SystemAlertMsgQueque[$i] . "<hr sys/>"; |
|
15 | + for ($i = 0; $i < $limit; $i++) { |
|
16 | + $sysMsgs .= $SystemAlertMsgQueque[$i]."<hr sys/>"; |
|
17 | 17 | } |
18 | 18 | // reset message queque |
19 | 19 | unset($_SESSION['SystemAlertMsgQueque']); |
20 | 20 | $_SESSION['SystemAlertMsgQueque'] = array(); |
21 | 21 | $SystemAlertMsgQueque = &$_SESSION['SystemAlertMsgQueque']; |
22 | 22 | |
23 | - if ($sysMsgs!="") { |
|
23 | + if ($sysMsgs != "") { |
|
24 | 24 | ?> |
25 | 25 | |
26 | 26 | <?php // fetch the styles |
27 | - echo '<link rel="stylesheet" type="text/css" href="' . MODX_MANAGER_URL . 'media/style/' . $manager_theme . '/style.css' . '" />'; ?> |
|
27 | + echo '<link rel="stylesheet" type="text/css" href="'.MODX_MANAGER_URL.'media/style/'.$manager_theme.'/style.css'.'" />'; ?> |
|
28 | 28 | <script type="text/javascript"> |
29 | 29 | // <![CDATA[ |
30 | 30 | window.addEvent('domready', function() { |
@@ -18,13 +18,13 @@ discard block |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | // andrazk 20070416 - if installer is running, destroy active sessions |
21 | -if (file_exists(MODX_BASE_PATH . 'assets/cache/installProc.inc.php')) { |
|
22 | - include_once(MODX_BASE_PATH . 'assets/cache/installProc.inc.php'); |
|
21 | +if (file_exists(MODX_BASE_PATH.'assets/cache/installProc.inc.php')) { |
|
22 | + include_once(MODX_BASE_PATH.'assets/cache/installProc.inc.php'); |
|
23 | 23 | if (isset($installStartTime)) { |
24 | 24 | if ((time() - $installStartTime) > 5 * 60) { // if install flag older than 5 minutes, discard |
25 | 25 | unset($installStartTime); |
26 | - @ chmod(MODX_BASE_PATH . 'assets/cache/installProc.inc.php', 0755); |
|
27 | - unlink(MODX_BASE_PATH . 'assets/cache/installProc.inc.php'); |
|
26 | + @ chmod(MODX_BASE_PATH.'assets/cache/installProc.inc.php', 0755); |
|
27 | + unlink(MODX_BASE_PATH.'assets/cache/installProc.inc.php'); |
|
28 | 28 | } else { |
29 | 29 | if ($_SERVER['REQUEST_METHOD'] != 'POST') { |
30 | 30 | if (isset($_COOKIE[session_name()])) { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | // setcookie(session_name(), '', 0, MODX_BASE_URL); |
51 | 51 | } |
52 | 52 | header('HTTP/1.0 307 Redirect'); |
53 | - header('Location: ' . MODX_MANAGER_URL . 'index.php?installGoingOn=2'); |
|
53 | + header('Location: '.MODX_MANAGER_URL.'index.php?installGoingOn=2'); |
|
54 | 54 | } |
55 | 55 | } |
56 | 56 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | // establish fallback to English default |
63 | 63 | include_once "lang/english.inc.php"; |
64 | 64 | // include localized overrides |
65 | - include_once "lang/" . $manager_language . ".inc.php"; |
|
65 | + include_once "lang/".$manager_language.".inc.php"; |
|
66 | 66 | } else { |
67 | 67 | include_once "lang/english.inc.php"; |
68 | 68 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $modx->setPlaceholder('modx_charset', $modx_manager_charset); |
71 | 71 | $modx->setPlaceholder('theme', $manager_theme); |
72 | 72 | $modx->setPlaceholder('favicon', |
73 | - (file_exists(MODX_BASE_PATH . 'favicon.ico') ? MODX_SITE_URL . 'favicon.ico' : 'media/style/' . $modx->config['manager_theme'] . '/images/favicon.ico')); |
|
73 | + (file_exists(MODX_BASE_PATH.'favicon.ico') ? MODX_SITE_URL . 'favicon.ico' : 'media/style/'.$modx->config['manager_theme'].'/images/favicon.ico')); |
|
74 | 74 | |
75 | 75 | // invoke OnManagerLoginFormPrerender event |
76 | 76 | $evtOut = $modx->invokeEvent('OnManagerLoginFormPrerender'); |
@@ -81,25 +81,25 @@ discard block |
||
81 | 81 | $modx->setPlaceholder('manager_path', MGR_DIR); |
82 | 82 | $modx->setPlaceholder('logo_slogan', $_lang["logo_slogan"]); |
83 | 83 | $modx->setPlaceholder('login_message', $_lang["login_message"]); |
84 | - $modx->setPlaceholder('manager_theme_url', MODX_MANAGER_URL . 'media/style/' . $modx->config['manager_theme'] . '/'); |
|
84 | + $modx->setPlaceholder('manager_theme_url', MODX_MANAGER_URL.'media/style/'.$modx->config['manager_theme'].'/'); |
|
85 | 85 | $modx->setPlaceholder('year', date('Y')); |
86 | 86 | |
87 | 87 | // set login logo image |
88 | 88 | if (!empty($modx->config['login_logo'])) { |
89 | - $modx->setPlaceholder('login_logo', MODX_SITE_URL . $modx->config['login_logo']); |
|
89 | + $modx->setPlaceholder('login_logo', MODX_SITE_URL.$modx->config['login_logo']); |
|
90 | 90 | } else { |
91 | - $modx->setPlaceholder('login_logo', MODX_MANAGER_URL . 'media/style/' . $modx->config['manager_theme'] . '/images/login/default/login-logo.png'); |
|
91 | + $modx->setPlaceholder('login_logo', MODX_MANAGER_URL.'media/style/'.$modx->config['manager_theme'].'/images/login/default/login-logo.png'); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | // set login background image |
95 | 95 | if (!empty($modx->config['login_bg'])) { |
96 | - $modx->setPlaceholder('login_bg', MODX_SITE_URL . $modx->config['login_bg']); |
|
96 | + $modx->setPlaceholder('login_bg', MODX_SITE_URL.$modx->config['login_bg']); |
|
97 | 97 | } else { |
98 | - $modx->setPlaceholder('login_bg', MODX_MANAGER_URL . 'media/style/' . $modx->config['manager_theme'] . '/images/login/default/login-background.jpg'); |
|
98 | + $modx->setPlaceholder('login_bg', MODX_MANAGER_URL.'media/style/'.$modx->config['manager_theme'].'/images/login/default/login-background.jpg'); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | // set form position css class |
102 | - $modx->setPlaceholder('login_form_position_class', 'loginbox-' . $modx->config['login_form_position']); |
|
102 | + $modx->setPlaceholder('login_form_position_class', 'loginbox-'.$modx->config['login_form_position']); |
|
103 | 103 | |
104 | 104 | switch ($modx->config['manager_theme_mode']) { |
105 | 105 | case '1': |
@@ -124,11 +124,11 @@ discard block |
||
124 | 124 | switch ($installGoingOn) { |
125 | 125 | case 1: |
126 | 126 | $modx->setPlaceholder('login_message', |
127 | - "<p><span class=\"fail\">" . $_lang["login_cancelled_install_in_progress"] . "</p><p>" . $_lang["login_message"] . "</p>"); |
|
127 | + "<p><span class=\"fail\">".$_lang["login_cancelled_install_in_progress"]."</p><p>".$_lang["login_message"]."</p>"); |
|
128 | 128 | break; |
129 | 129 | case 2: |
130 | 130 | $modx->setPlaceholder('login_message', |
131 | - "<p><span class=\"fail\">" . $_lang["login_cancelled_site_was_updated"] . "</p><p>" . $_lang["login_message"] . "</p>"); |
|
131 | + "<p><span class=\"fail\">".$_lang["login_cancelled_site_was_updated"]."</p><p>".$_lang["login_message"]."</p>"); |
|
132 | 132 | break; |
133 | 133 | } |
134 | 134 | } |
@@ -136,9 +136,9 @@ discard block |
||
136 | 136 | if ($modx->config['use_captcha'] == 1) { |
137 | 137 | $modx->setPlaceholder('login_captcha_message', $_lang["login_captcha_message"]); |
138 | 138 | $modx->setPlaceholder('captcha_image', |
139 | - '<a href="' . MODX_MANAGER_URL . '" class="loginCaptcha"><img id="captcha_image" src="' . MODX_MANAGER_URL . 'includes/veriword.php?rand=' . rand() . '" alt="' . $_lang["login_captcha_message"] . '" /></a>'); |
|
139 | + '<a href="'.MODX_MANAGER_URL.'" class="loginCaptcha"><img id="captcha_image" src="'.MODX_MANAGER_URL.'includes/veriword.php?rand='.rand().'" alt="'.$_lang["login_captcha_message"].'" /></a>'); |
|
140 | 140 | $modx->setPlaceholder('captcha_input', |
141 | - '<label>' . $_lang["captcha_code"] . '</label> <input type="text" name="captcha_code" tabindex="3" value="" />'); |
|
141 | + '<label>'.$_lang["captcha_code"].'</label> <input type="text" name="captcha_code" tabindex="3" value="" />'); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | // login info |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | |
157 | 157 | // invoke OnManagerLoginFormRender event |
158 | 158 | $evtOut = $modx->invokeEvent('OnManagerLoginFormRender'); |
159 | - $html = is_array($evtOut) ? '<div id="onManagerLoginFormRender">' . implode('', $evtOut) . '</div>' : ''; |
|
159 | + $html = is_array($evtOut) ? '<div id="onManagerLoginFormRender">'.implode('', $evtOut).'</div>' : ''; |
|
160 | 160 | $modx->setPlaceholder('OnManagerLoginFormRender', $html); |
161 | 161 | |
162 | 162 | // load template |
@@ -174,29 +174,29 @@ discard block |
||
174 | 174 | $login_tpl = file_get_contents($target); |
175 | 175 | } |
176 | 176 | } else { |
177 | - $theme_path = MODX_MANAGER_PATH . 'media/style/' . $modx->config['manager_theme'] . '/'; |
|
178 | - if (is_file($theme_path . 'style.php')) { |
|
179 | - include($theme_path . 'style.php'); |
|
177 | + $theme_path = MODX_MANAGER_PATH.'media/style/'.$modx->config['manager_theme'].'/'; |
|
178 | + if (is_file($theme_path.'style.php')) { |
|
179 | + include($theme_path.'style.php'); |
|
180 | 180 | } |
181 | 181 | $chunk = $modx->getChunk($target); |
182 | 182 | if ($chunk !== false && !empty($chunk)) { |
183 | 183 | $login_tpl = $chunk; |
184 | - } elseif (is_file(MODX_BASE_PATH . $target)) { |
|
185 | - $target = MODX_BASE_PATH . $target; |
|
184 | + } elseif (is_file(MODX_BASE_PATH.$target)) { |
|
185 | + $target = MODX_BASE_PATH.$target; |
|
186 | 186 | $login_tpl = file_get_contents($target); |
187 | 187 | } elseif (is_file($target)) { |
188 | 188 | $login_tpl = file_get_contents($target); |
189 | - } elseif (is_file($theme_path . 'login.tpl')) { |
|
190 | - $target = $theme_path . 'login.tpl'; |
|
189 | + } elseif (is_file($theme_path.'login.tpl')) { |
|
190 | + $target = $theme_path.'login.tpl'; |
|
191 | 191 | $login_tpl = file_get_contents($target); |
192 | - } elseif (is_file($theme_path . 'templates/actions/login.tpl')) { |
|
193 | - $target = $theme_path . 'templates/actions/login.tpl'; |
|
192 | + } elseif (is_file($theme_path.'templates/actions/login.tpl')) { |
|
193 | + $target = $theme_path.'templates/actions/login.tpl'; |
|
194 | 194 | $login_tpl = file_get_contents($target); |
195 | - } elseif (is_file($theme_path . 'html/login.html')) { // ClipperCMS compatible |
|
196 | - $target = $theme_path . 'html/login.html'; |
|
195 | + } elseif (is_file($theme_path.'html/login.html')) { // ClipperCMS compatible |
|
196 | + $target = $theme_path.'html/login.html'; |
|
197 | 197 | $login_tpl = file_get_contents($target); |
198 | 198 | } else { |
199 | - $target = MODX_MANAGER_PATH . 'media/style/common/login.tpl'; |
|
199 | + $target = MODX_MANAGER_PATH.'media/style/common/login.tpl'; |
|
200 | 200 | $login_tpl = file_get_contents($target); |
201 | 201 | } |
202 | 202 | } |
@@ -215,17 +215,17 @@ discard block |
||
215 | 215 | $modx->updateValidatedUserSession(); |
216 | 216 | |
217 | 217 | // Update last action in table active_users |
218 | - $itemid = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : ''; |
|
218 | + $itemid = isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : ''; |
|
219 | 219 | $lasthittime = time(); |
220 | - $action = isset($_REQUEST['a']) ? (int)$_REQUEST['a'] : 1; |
|
220 | + $action = isset($_REQUEST['a']) ? (int) $_REQUEST['a'] : 1; |
|
221 | 221 | |
222 | 222 | if ($action !== 1) { |
223 | - if ((int)$itemid <= 0) { |
|
223 | + if ((int) $itemid <= 0) { |
|
224 | 224 | $itemid = null; |
225 | 225 | } |
226 | 226 | $sql = sprintf("REPLACE INTO %s (sid, internalKey, username, lasthit, action, id) VALUES ('%s', %d, '%s', %d, '%s', %s)", |
227 | 227 | $modx->getFullTableName('active_users') // Table |
228 | - , session_id(), $modx->getLoginUserID(), $_SESSION['mgrShortname'], $lasthittime, (string)$action, |
|
228 | + , session_id(), $modx->getLoginUserID(), $_SESSION['mgrShortname'], $lasthittime, (string) $action, |
|
229 | 229 | $itemid == null ? var_export(null, true) : $itemid); |
230 | 230 | $modx->db->query($sql); |
231 | 231 | } |