Completed
Push — develop ( d568f8...c061fc )
by Agel_Nash
06:25
created
manager/actions/category_mgr/inc/Module_Categories_Manager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
     die('Please use the MODx Backend.');
8 8
 }
9 9
 
10
-require_once realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Categories.php';
10
+require_once realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR.'Categories.php';
11 11
 
12 12
 class Module_Categories_Manager extends Categories
13 13
 {
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
     {
95 95
         global $_lang, $_style;
96 96
 
97
-        $filename = trim($view_name) . '.tpl.phtml';
98
-        $file = self::get('views_dir') . $filename;
97
+        $filename = trim($view_name).'.tpl.phtml';
98
+        $file = self::get('views_dir').$filename;
99 99
         $view = &$this;
100 100
 
101 101
         if (is_file($file)
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
     public function updateElement($element, $element_id, $category_id)
120 120
     {
121 121
         $_update = array(
122
-            'id'       => (int)$element_id,
123
-            'category' => (int)$category_id
122
+            'id'       => (int) $element_id,
123
+            'category' => (int) $category_id
124 124
         );
125 125
 
126 126
         $this->db->update(
127 127
             $_update,
128 128
             $this->db_tbl[$element],
129
-            "`id` = '" . (int)$element_id . "'"
129
+            "`id` = '".(int) $element_id."'"
130 130
         );
131 131
 
132 132
         return $this->db->getAffectedRows() === 1;
Please login to merge, or discard this patch.
manager/actions/role_management.static.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 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
 if (!$modx->hasPermission('edit_user')) {
Please login to merge, or discard this patch.
manager/actions/user_management.static.php 1 patch
Spacing   +11 added lines, -11 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
 if (!$modx->hasPermission('edit_user')) {
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
 
27 27
 // context menu
28
-include_once MODX_MANAGER_PATH . "includes/controls/contextmenu.php";
28
+include_once MODX_MANAGER_PATH."includes/controls/contextmenu.php";
29 29
 $cm = new ContextMenu("cntxm", 150);
30 30
 $cm->addItem($_lang["edit"], "js:menuAction(1)", $_style["actions_edit"], (!$modx->hasPermission('edit_user') ? 1 : 0));
31 31
 $cm->addItem($_lang["delete"], "js:menuAction(2)", $_style["actions_delete"], (!$modx->hasPermission('delete_user') ? 1 : 0));
@@ -122,15 +122,15 @@  discard block
 block discarded – undo
122 122
 					<?php
123 123
                     $where = "";
124 124
                     if (!$modx->hasPermission('save_role')) {
125
-                        $where .= (empty($where) ? "" : " AND ") . "mua.role != 1";
125
+                        $where .= (empty($where) ? "" : " AND ")."mua.role != 1";
126 126
                     }
127 127
                     if (!empty($sqlQuery)) {
128
-                        $where .= (empty($where) ? "" : " AND ") . "((mu.username LIKE '{$sqlQuery}%') OR (mua.fullname LIKE '%{$sqlQuery}%') OR (mua.email LIKE '{$sqlQuery}%'))";
128
+                        $where .= (empty($where) ? "" : " AND ")."((mu.username LIKE '{$sqlQuery}%') OR (mua.fullname LIKE '%{$sqlQuery}%') OR (mua.email LIKE '{$sqlQuery}%'))";
129 129
                     }
130
-                    $ds = $modx->db->select("mu.id, mu.username, rname.name AS role, mua.fullname, mua.email, ELT(mua.gender, '{$_lang['user_male']}', '{$_lang['user_female']}', '{$_lang['user_other']}') AS gender, IF(mua.blocked,'{$_lang['yes']}','-') as blocked, mua.thislogin", $modx->getFullTableName('manager_users') . " AS mu 
131
-			INNER JOIN " . $modx->getFullTableName('user_attributes') . " AS mua ON mua.internalKey=mu.id 
132
-			LEFT JOIN " . $modx->getFullTableName('user_roles') . " AS rname ON mua.role=rname.id", $where, 'mua.blocked ASC, mua.thislogin DESC');
133
-                    include_once MODX_MANAGER_PATH . "includes/controls/datagrid.class.php";
130
+                    $ds = $modx->db->select("mu.id, mu.username, rname.name AS role, mua.fullname, mua.email, ELT(mua.gender, '{$_lang['user_male']}', '{$_lang['user_female']}', '{$_lang['user_other']}') AS gender, IF(mua.blocked,'{$_lang['yes']}','-') as blocked, mua.thislogin", $modx->getFullTableName('manager_users')." AS mu 
131
+			INNER JOIN " . $modx->getFullTableName('user_attributes')." AS mua ON mua.internalKey=mu.id 
132
+			LEFT JOIN " . $modx->getFullTableName('user_roles')." AS rname ON mua.role=rname.id", $where, 'mua.blocked ASC, mua.thislogin DESC');
133
+                    include_once MODX_MANAGER_PATH."includes/controls/datagrid.class.php";
134 134
                     $grd = new DataGrid('', $ds, $modx->config['number_of_results']); // set page size to 0 t show all items
135 135
                     $grd->noRecordMsg = $_lang["no_records_found"];
136 136
                     $grd->cssClass = "table data";
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
                     $grd->colWidths = "1%,,,,,,1%,1%";
152 152
                     $grd->colAligns = "center,,,,,center,center,right' nowrap='nowrap";
153 153
                     $grd->colTypes = implode('||', array(
154
-                        'template:<a class="gridRowIcon" href="javascript:;" onclick="return showContentMenu([+id+],event);" title="' . $_lang['click_to_context'] . '"><i class="' . $_style['icons_user'] . '"></i></a>',
155
-                        'template:<a href="index.php?a=12&id=[+id+]" title="' . $_lang['click_to_edit_title'] . '">[+value+]</a>',
154
+                        'template:<a class="gridRowIcon" href="javascript:;" onclick="return showContentMenu([+id+],event);" title="'.$_lang['click_to_context'].'"><i class="'.$_style['icons_user'].'"></i></a>',
155
+                        'template:<a href="index.php?a=12&id=[+id+]" title="'.$_lang['click_to_edit_title'].'">[+value+]</a>',
156 156
                         'template:[+fullname+]',
157 157
                         'template:[+role+]',
158 158
                         'template:[+email+]',
159 159
                         'template:[+gender+]',
160 160
                         'template:[+blocked+]',
161
-                        'date: ' . $modx->toDateFormat('[+thislogin+]', 'formatOnly') . ' %H:%M'
161
+                        'date: '.$modx->toDateFormat('[+thislogin+]', 'formatOnly').' %H:%M'
162 162
                     ));
163 163
                     if ($listmode == '1') {
164 164
                         $grd->pageSize = 0;
Please login to merge, or discard this patch.
manager/actions/bkmanager.static.php 1 patch
Spacing   +45 added lines, -45 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
 if (!$modx->hasPermission('bk_manager')) {
@@ -9,10 +9,10 @@  discard block
 block discarded – undo
9 9
 $dbase = trim($dbase, '`');
10 10
 
11 11
 if (!isset($modx->config['snapshot_path'])) {
12
-    if (is_dir(MODX_BASE_PATH . 'temp/backup/')) {
13
-        $modx->config['snapshot_path'] = MODX_BASE_PATH . 'temp/backup/';
12
+    if (is_dir(MODX_BASE_PATH.'temp/backup/')) {
13
+        $modx->config['snapshot_path'] = MODX_BASE_PATH.'temp/backup/';
14 14
     } else {
15
-        $modx->config['snapshot_path'] = MODX_BASE_PATH . 'assets/backup/';
15
+        $modx->config['snapshot_path'] = MODX_BASE_PATH.'assets/backup/';
16 16
     }
17 17
 }
18 18
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 if ($mode == 'restore1') {
24 24
     if (isset($_POST['textarea']) && !empty($_POST['textarea'])) {
25 25
         $source = trim($_POST['textarea']);
26
-        $_SESSION['textarea'] = $source . "\n";
26
+        $_SESSION['textarea'] = $source."\n";
27 27
     } else {
28 28
         $source = file_get_contents($_FILES['sqlfile']['tmp_name']);
29 29
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     header('Location: index.php?r=9&a=93');
32 32
     exit;
33 33
 } elseif ($mode == 'restore2') {
34
-    $path = $modx->config['snapshot_path'] . $_POST['filename'];
34
+    $path = $modx->config['snapshot_path'].$_POST['filename'];
35 35
     if (file_exists($path)) {
36 36
         $source = file_get_contents($path);
37 37
         import_sql($source);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     if (!is_writable(rtrim($modx->config['snapshot_path'], '/'))) {
78 78
         $modx->webAlertAndQuit(parsePlaceholder($_lang["bkmgr_alert_mkdir"], array('snapshot_path' => $modx->config['snapshot_path'])));
79 79
     }
80
-    $sql = "SHOW TABLE STATUS FROM `{$dbase}` LIKE '" . $modx->db->escape($modx->db->config['table_prefix']) . "%'";
80
+    $sql = "SHOW TABLE STATUS FROM `{$dbase}` LIKE '".$modx->db->escape($modx->db->config['table_prefix'])."%'";
81 81
     $rs = $modx->db->query($sql);
82 82
     $tables = $modx->db->getColumn('Name', $rs);
83 83
     $today = date('Y-m-d_H-i-s');
@@ -109,18 +109,18 @@  discard block
 block discarded – undo
109 109
         $modx->webAlertAndQuit('Unable to Backup Database');
110 110
     }
111 111
 } else {
112
-    include_once MODX_MANAGER_PATH . "includes/header.inc.php";  // start normal header
112
+    include_once MODX_MANAGER_PATH."includes/header.inc.php"; // start normal header
113 113
 }
114 114
 
115 115
 if (isset($_SESSION['result_msg']) && $_SESSION['result_msg'] != '') {
116 116
     switch ($_SESSION['result_msg']) {
117 117
         case 'import_ok':
118
-            $ph['result_msg_import'] = '<div class="alert alert-success">' . $_lang["bkmgr_import_ok"] . '</div>';
119
-            $ph['result_msg_snapshot'] = '<div class="alert alert-success">' . $_lang["bkmgr_import_ok"] . '</div>';
118
+            $ph['result_msg_import'] = '<div class="alert alert-success">'.$_lang["bkmgr_import_ok"].'</div>';
119
+            $ph['result_msg_snapshot'] = '<div class="alert alert-success">'.$_lang["bkmgr_import_ok"].'</div>';
120 120
             break;
121 121
         case 'snapshot_ok':
122 122
             $ph['result_msg_import'] = '';
123
-            $ph['result_msg_snapshot'] = '<div class="alert alert-success">' . $_lang["bkmgr_snapshot_ok"] . '</div>';
123
+            $ph['result_msg_snapshot'] = '<div class="alert alert-success">'.$_lang["bkmgr_snapshot_ok"].'</div>';
124 124
             break;
125 125
     }
126 126
     $_SESSION['result_msg'] = '';
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
                 f.style.display = 'none';
180 180
             }
181 181
         }
182
-        <?= (isset($_REQUEST['r']) ? " doRefresh(" . $_REQUEST['r'] . ");" : "") ?>
182
+        <?= (isset($_REQUEST['r']) ? " doRefresh(".$_REQUEST['r'].");" : "") ?>
183 183
 
184 184
     </script>
185 185
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                                 </thead>
224 224
                                 <tbody>
225 225
                                 <?php
226
-                                $sql = "SHOW TABLE STATUS FROM `{$dbase}` LIKE '" . $modx->db->escape($modx->db->config['table_prefix']) . "%'";
226
+                                $sql = "SHOW TABLE STATUS FROM `{$dbase}` LIKE '".$modx->db->escape($modx->db->config['table_prefix'])."%'";
227 227
                                 $rs = $modx->db->query($sql);
228 228
                                 $i = 0;
229 229
                                 while ($db_status = $modx->db->getRow($rs)) {
@@ -233,29 +233,29 @@  discard block
 block discarded – undo
233 233
                                         $table_string = '';
234 234
                                     }
235 235
 
236
-                                    echo '<tr>' . "\n" . '<td><label class="form-check form-check-label"><input type="checkbox" name="chk[]" class="form-check-input" value="' . $db_status['Name'] . '"' . (strstr($table_string, $db_status['Name']) === false ? '' : ' checked="checked"') . ' /><b class="text-primary">' . $db_status['Name'] . '</b></label></td>' . "\n";
237
-                                    echo '<td class="text-xs-center">' . (!empty($db_status['Comment']) ? '<i class="' . $_style['actions_help'] . '" data-tooltip="' . $db_status['Comment'] . '"></i>' : '') . '</td>' . "\n";
238
-                                    echo '<td class="text-xs-right">' . $db_status['Rows'] . '</td>' . "\n";
239
-                                    echo '<td class="text-xs-right">' . $db_status['Collation'] . '</td>' . "\n";
236
+                                    echo '<tr>'."\n".'<td><label class="form-check form-check-label"><input type="checkbox" name="chk[]" class="form-check-input" value="'.$db_status['Name'].'"'.(strstr($table_string, $db_status['Name']) === false ? '' : ' checked="checked"').' /><b class="text-primary">'.$db_status['Name'].'</b></label></td>'."\n";
237
+                                    echo '<td class="text-xs-center">'.(!empty($db_status['Comment']) ? '<i class="'.$_style['actions_help'].'" data-tooltip="'.$db_status['Comment'].'"></i>' : '').'</td>'."\n";
238
+                                    echo '<td class="text-xs-right">'.$db_status['Rows'].'</td>'."\n";
239
+                                    echo '<td class="text-xs-right">'.$db_status['Collation'].'</td>'."\n";
240 240
 
241 241
                                     // Enable record deletion for certain tables (TRUNCATE TABLE) if they're not already empty
242 242
                                     $truncateable = array(
243
-                                        $modx->db->config['table_prefix'] . 'event_log',
244
-                                        $modx->db->config['table_prefix'] . 'manager_log',
243
+                                        $modx->db->config['table_prefix'].'event_log',
244
+                                        $modx->db->config['table_prefix'].'manager_log',
245 245
                                     );
246 246
                                     if ($modx->hasPermission('settings') && in_array($db_status['Name'], $truncateable) && $db_status['Rows'] > 0) {
247
-                                        echo '<td class="text-xs-right"><a class="text-danger" href="index.php?a=54&mode=' . $action . '&u=' . $db_status['Name'] . '" title="' . $_lang['truncate_table'] . '">' . $modx->nicesize($db_status['Data_length'] + $db_status['Data_free']) . '</a>' . '</td>' . "\n";
247
+                                        echo '<td class="text-xs-right"><a class="text-danger" href="index.php?a=54&mode='.$action.'&u='.$db_status['Name'].'" title="'.$_lang['truncate_table'].'">'.$modx->nicesize($db_status['Data_length'] + $db_status['Data_free']).'</a>'.'</td>'."\n";
248 248
                                     } else {
249
-                                        echo '<td class="text-xs-right">' . $modx->nicesize($db_status['Data_length'] + $db_status['Data_free']) . '</td>' . "\n";
249
+                                        echo '<td class="text-xs-right">'.$modx->nicesize($db_status['Data_length'] + $db_status['Data_free']).'</td>'."\n";
250 250
                                     }
251 251
 
252 252
                                     if ($modx->hasPermission('settings')) {
253
-                                        echo '<td class="text-xs-right">' . ($db_status['Data_free'] > 0 ? '<a class="text-danger" href="index.php?a=54&mode=' . $action . '&t=' . $db_status['Name'] . '" title="' . $_lang['optimize_table'] . '">' . $modx->nicesize($db_status['Data_free']) . '</a>' : '-') . '</td>' . "\n";
253
+                                        echo '<td class="text-xs-right">'.($db_status['Data_free'] > 0 ? '<a class="text-danger" href="index.php?a=54&mode='.$action.'&t='.$db_status['Name'].'" title="'.$_lang['optimize_table'].'">'.$modx->nicesize($db_status['Data_free']).'</a>' : '-').'</td>'."\n";
254 254
                                     } else {
255
-                                        echo '<td class="text-xs-right">' . ($db_status['Data_free'] > 0 ? $modx->nicesize($db_status['Data_free']) : '-') . '</td>' . "\n";
255
+                                        echo '<td class="text-xs-right">'.($db_status['Data_free'] > 0 ? $modx->nicesize($db_status['Data_free']) : '-').'</td>'."\n";
256 256
                                     }
257 257
 
258
-                                    echo '<td class="text-xs-right">' . $modx->nicesize($db_status['Data_length'] - $db_status['Data_free']) . '</td>' . "\n" . '<td class="text-xs-right">' . $modx->nicesize($db_status['Index_length']) . '</td>' . "\n" . '<td class="text-xs-right">' . $modx->nicesize($db_status['Index_length'] + $db_status['Data_length'] + $db_status['Data_free']) . '</td>' . "\n" . "</tr>";
258
+                                    echo '<td class="text-xs-right">'.$modx->nicesize($db_status['Data_length'] - $db_status['Data_free']).'</td>'."\n".'<td class="text-xs-right">'.$modx->nicesize($db_status['Index_length']).'</td>'."\n".'<td class="text-xs-right">'.$modx->nicesize($db_status['Index_length'] + $db_status['Data_length'] + $db_status['Data_free']).'</td>'."\n"."</tr>";
259 259
 
260 260
                                     $total = $total + $db_status['Index_length'] + $db_status['Data_length'];
261 261
                                     $totaloverhead = $totaloverhead + $db_status['Data_free'];
@@ -266,9 +266,9 @@  discard block
 block discarded – undo
266 266
                                 <tr>
267 267
                                     <td class="text-xs-right"><?= $_lang['database_table_totals'] ?></td>
268 268
                                     <td colspan="4">&nbsp;</td>
269
-                                    <td class="text-xs-right"><?= $totaloverhead > 0 ? '<b class="text-danger">' . $modx->nicesize($totaloverhead) . '</b><br />(' . number_format($totaloverhead) . ' B)' : '-' ?></td>
269
+                                    <td class="text-xs-right"><?= $totaloverhead > 0 ? '<b class="text-danger">'.$modx->nicesize($totaloverhead).'</b><br />('.number_format($totaloverhead).' B)' : '-' ?></td>
270 270
                                     <td colspan="2">&nbsp;</td>
271
-                                    <td class="text-xs-right"><?= "<b>" . $modx->nicesize($total) . "</b><br />(" . number_format($total) . " B)" ?></td>
271
+                                    <td class="text-xs-right"><?= "<b>".$modx->nicesize($total)."</b><br />(".number_format($total)." B)" ?></td>
272 272
                                 </tr>
273 273
                                 </tfoot>
274 274
                             </table>
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
                             foreach ($last_result['0'] as $k => $v) {
322 322
                                 $title[] = $k;
323 323
                             }
324
-                            $result = '<thead><tr><th>' . implode('</th><th>', $title) . '</th></tr></thead>';
324
+                            $result = '<thead><tr><th>'.implode('</th><th>', $title).'</th></tr></thead>';
325 325
                             $result .= '<tbody>';
326 326
                             foreach ($last_result as $row) {
327 327
                                 $result_value = array();
@@ -329,11 +329,11 @@  discard block
 block discarded – undo
329 329
                                     foreach ($row as $k => $v) {
330 330
                                         $result_value[] = $v;
331 331
                                     }
332
-                                    $result .= '<tr><td>' . implode('</td><td>', $result_value) . '</td></tr>';
332
+                                    $result .= '<tr><td>'.implode('</td><td>', $result_value).'</td></tr>';
333 333
                                 }
334 334
                             }
335 335
                             $result .= '</tbody>';
336
-                            $result = '<table class="table data">' . $result . '</table>';
336
+                            $result = '<table class="table data">'.$result.'</table>';
337 337
                         }
338 338
                     }
339 339
 
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
                             while ($count < 11) {
436 436
                                 $line = fgets($file);
437 437
                                 foreach ($detailFields as $label) {
438
-                                    $fileLabel = '# ' . $label;
438
+                                    $fileLabel = '# '.$label;
439 439
                                     if (strpos($line, $fileLabel) !== false) {
440 440
                                         $details[$label] = htmlentities(trim(str_replace(array(
441 441
                                                         $fileLabel,
@@ -448,10 +448,10 @@  discard block
 block discarded – undo
448 448
                             };
449 449
                             fclose($file);
450 450
 
451
-                            $tooltip = "Generation Time: " . $details["Generation Time"] . "\n";
452
-                            $tooltip .= "Server version: " . $details["Server version"] . "\n";
453
-                            $tooltip .= "PHP Version: " . $details["PHP Version"] . "\n";
454
-                            $tooltip .= "Host: " . $details["Host"] . "\n"; ?>
451
+                            $tooltip = "Generation Time: ".$details["Generation Time"]."\n";
452
+                            $tooltip .= "Server version: ".$details["Server version"]."\n";
453
+                            $tooltip .= "PHP Version: ".$details["PHP Version"]."\n";
454
+                            $tooltip .= "Host: ".$details["Host"]."\n"; ?>
455 455
                                         <tr>
456 456
                                             <td><?= $filename ?></td>
457 457
                                             <td><i class="<?= $_style['actions_help'] ?>" data-tooltip="<?= $tooltip ?>"></i></td>
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 <?php
482 482
 
483 483
 if (is_numeric($_GET['tab'])) {
484
-    echo '<script type="text/javascript">tpDBM.setSelectedIndex( ' . $_GET['tab'] . ' );</script>';
484
+    echo '<script type="text/javascript">tpDBM.setSelectedIndex( '.$_GET['tab'].' );</script>';
485 485
 }
486 486
 
487 487
 include_once "footer.inc.php"; // send footer
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
 
562 562
         // Set line feed
563 563
         $lf = "\n";
564
-        $tempfile_path = $modx->config['base_path'] . 'assets/backup/temp.php';
564
+        $tempfile_path = $modx->config['base_path'].'assets/backup/temp.php';
565 565
 
566 566
         $result = $modx->db->query('SHOW TABLES');
567 567
         $tables = $this->result2Array(0, $result);
@@ -574,15 +574,15 @@  discard block
 block discarded – undo
574 574
 
575 575
         // Set header
576 576
         $output = "#{$lf}";
577
-        $output .= "# " . addslashes($modx->config['site_name']) . " Database Dump{$lf}";
577
+        $output .= "# ".addslashes($modx->config['site_name'])." Database Dump{$lf}";
578 578
         $output .= "# MODX Version:{$version['version']}{$lf}";
579 579
         $output .= "# {$lf}";
580 580
         $output .= "# Host: {$this->database_server}{$lf}";
581
-        $output .= "# Generation Time: " . $modx->toDateFormat(time()) . $lf;
582
-        $output .= "# Server version: " . $modx->db->getVersion() . $lf;
583
-        $output .= "# PHP Version: " . phpversion() . $lf;
581
+        $output .= "# Generation Time: ".$modx->toDateFormat(time()).$lf;
582
+        $output .= "# Server version: ".$modx->db->getVersion().$lf;
583
+        $output .= "# PHP Version: ".phpversion().$lf;
584 584
         $output .= "# Database: `{$this->dbname}`{$lf}";
585
-        $output .= "# Description: " . trim($_REQUEST['backup_title']) . "{$lf}";
585
+        $output .= "# Description: ".trim($_REQUEST['backup_title'])."{$lf}";
586 586
         $output .= "#";
587 587
         file_put_contents($tempfile_path, $output, FILE_APPEND | LOCK_EX);
588 588
         $output = '';
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
                 }
602 602
             }
603 603
             if ($callBack === 'snapshot') {
604
-                if (!preg_match('@^' . $modx->db->config['table_prefix'] . '@', $tblval)) {
604
+                if (!preg_match('@^'.$modx->db->config['table_prefix'].'@', $tblval)) {
605 605
                     continue;
606 606
                 }
607 607
             }
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
                 $insertdump = $lf;
624 624
                 $insertdump .= "INSERT INTO `{$tblval}` VALUES (";
625 625
                 $arr = $this->object2Array($row);
626
-                if (! is_array($arr)) {
626
+                if (!is_array($arr)) {
627 627
                     $arr = array();
628 628
                 }
629 629
                 foreach ($arr as $key => $value) {
@@ -638,9 +638,9 @@  discard block
 block discarded – undo
638 638
                         ), '\\n', $value);
639 639
                         $value = "'{$value}'";
640 640
                     }
641
-                    $insertdump .= $value . ',';
641
+                    $insertdump .= $value.',';
642 642
                 }
643
-                $output .= rtrim($insertdump, ',') . ");\n";
643
+                $output .= rtrim($insertdump, ',').");\n";
644 644
                 if (1048576 < strlen($output)) {
645 645
                     file_put_contents($tempfile_path, $output, FILE_APPEND | LOCK_EX);
646 646
                     $output = '';
Please login to merge, or discard this patch.
manager/actions/mutate_template_tv_rank.dynamic.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  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
 if (!$modx->hasPermission('save_template')) {
6 6
     $modx->webAlertAndQuit($_lang["error_no_privileges"]);
7 7
 }
8 8
 
9
-$id = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : 0;
9
+$id = isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0;
10 10
 $reset = isset($_POST['reset']) && $_POST['reset'] == 'true' ? 1 : 0;
11 11
 
12 12
 $tbl_site_templates = $modx->getFullTableName('site_templates');
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 $templatename = '';
20 20
 
21 21
 if (isset($_POST['listSubmitted'])) {
22
-    $updateMsg .= '<div class="text-success" id="updated">' . $_lang['sort_updated'] . '</div>';
22
+    $updateMsg .= '<div class="text-success" id="updated">'.$_lang['sort_updated'].'</div>';
23 23
     foreach ($_POST as $listName => $listValue) {
24 24
         if ($listName == 'listSubmitted' || $listName == 'reset') {
25 25
             continue;
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
     while ($row = $modx->db->getRow($rs)) {
48 48
         $templatename = $row['templatename'];
49 49
         $caption = $row['caption'] != '' ? $row['caption'] : $row['name'];
50
-        $sortableList .= '<li id="item_' . $row['id'] . '"><i class="fa fa-list-alt"></i> ' . $caption . ' <small class="protectedNode" style="float:right">[*' . $row['name'] . '*]</small></li>';
50
+        $sortableList .= '<li id="item_'.$row['id'].'"><i class="fa fa-list-alt"></i> '.$caption.' <small class="protectedNode" style="float:right">[*'.$row['name'].'*]</small></li>';
51 51
     }
52 52
     $sortableList .= '</ul></div>';
53 53
 } else {
54
-    $updateMsg = '<p class="text-danger">' . $_lang['tmplvars_novars'] . '</p>';
54
+    $updateMsg = '<p class="text-danger">'.$_lang['tmplvars_novars'].'</p>';
55 55
 }
56 56
 ?>
57 57
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 </script>
129 129
 
130 130
 <h1>
131
-    <i class="fa fa-sort-numeric-asc"></i><?= ($templatename ? $templatename . '<small>(' . $id . ')</small>' : $_lang['template_tv_edit_title']) ?>
131
+    <i class="fa fa-sort-numeric-asc"></i><?= ($templatename ? $templatename.'<small>('.$id.')</small>' : $_lang['template_tv_edit_title']) ?>
132 132
 </h1>
133 133
 
134 134
 <?= $_style['actionbuttons']['dynamic']['save'] ?>
Please login to merge, or discard this patch.
manager/actions/mutate_module.dynamic.php 3 patches
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -3,18 +3,18 @@
 block discarded – undo
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
 switch ($modx->manager->action) {
6
-    case 107:
7
-        if (!$modx->hasPermission('new_module')) {
6
+        case 107:
7
+            if (!$modx->hasPermission('new_module')) {
8
+                $modx->webAlertAndQuit($_lang["error_no_privileges"]);
9
+            }
10
+            break;
11
+        case 108:
12
+            if (!$modx->hasPermission('edit_module')) {
13
+                $modx->webAlertAndQuit($_lang["error_no_privileges"]);
14
+            }
15
+            break;
16
+        default:
8 17
             $modx->webAlertAndQuit($_lang["error_no_privileges"]);
9
-        }
10
-        break;
11
-    case 108:
12
-        if (!$modx->hasPermission('edit_module')) {
13
-            $modx->webAlertAndQuit($_lang["error_no_privileges"]);
14
-        }
15
-        break;
16
-    default:
17
-        $modx->webAlertAndQuit($_lang["error_no_privileges"]);
18 18
 }
19 19
 $id = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : 0;
20 20
 // Get table names (alphabetical)
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 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
 switch ($modx->manager->action) {
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     default:
17 17
         $modx->webAlertAndQuit($_lang["error_no_privileges"]);
18 18
 }
19
-$id = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : 0;
19
+$id = isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0;
20 20
 // Get table names (alphabetical)
21 21
 $tbl_membergroup_names = $modx->getFullTableName('membergroup_names');
22 22
 $tbl_site_content = $modx->getFullTableName('site_content');
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 {
38 38
     srand((double) microtime() * 1000000);
39 39
     $r = rand();
40
-    $u = uniqid(getmypid() . $r . (double) microtime() * 1000000, 1);
40
+    $u = uniqid(getmypid().$r.(double) microtime() * 1000000, 1);
41 41
     $m = md5($u);
42 42
     return $m;
43 43
 }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 // Add lock-element JS-Script
74 74
 $lockElementId = $id;
75 75
 $lockElementType = 6;
76
-require_once(MODX_MANAGER_PATH . 'includes/active_user_locks.inc.php');
76
+require_once(MODX_MANAGER_PATH.'includes/active_user_locks.inc.php');
77 77
 ?>
78 78
 <script type="text/javascript">
79 79
 	function loadDependencies() {
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 	function BrowseServer() {
421 421
 		var w = screen.width * 0.7;
422 422
 		var h = screen.height * 0.7;
423
-		OpenServerBrowser("<?= MODX_MANAGER_URL;?>media/browser/<?= $which_browser;?>/browser.php?Type=images", w, h);
423
+		OpenServerBrowser("<?= MODX_MANAGER_URL; ?>media/browser/<?= $which_browser; ?>/browser.php?Type=images", w, h);
424 424
 	}
425 425
 
426 426
 	function SetUrl(url, width, height, alt) {
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 	<input type="hidden" name="mode" value="<?= $modx->manager->action ?>">
455 455
 
456 456
 	<h1>
457
-		<i class="<?= ($content['icon'] != '' ? $content['icon'] : $_style['icons_module']) ?>"></i><?= ($content['name'] ? $content['name'] . '<small>(' . $content['id'] . ')</small>' : $_lang['new_module']) ?><i class="fa fa-question-circle help"></i>
457
+		<i class="<?= ($content['icon'] != '' ? $content['icon'] : $_style['icons_module']) ?>"></i><?= ($content['name'] ? $content['name'].'<small>('.$content['id'].')</small>' : $_lang['new_module']) ?><i class="fa fa-question-circle help"></i>
458 458
 	</h1>
459 459
 
460 460
 	<?= $_style['actionbuttons']['dynamic']['element'] ?>
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
 							<div class="form-control-name clearfix">
481 481
 								<input name="name" type="text" maxlength="100" value="<?= $modx->htmlspecialchars($content['name']) ?>" class="form-control form-control-lg" onchange="documentDirty=true;" />
482 482
 								<?php if ($modx->hasPermission('save_role')): ?>
483
-									<label class="custom-control" title="<?= $_lang['lock_module'] . "\n" . $_lang['lock_module_msg'] ?>" tooltip>
483
+									<label class="custom-control" title="<?= $_lang['lock_module']."\n".$_lang['lock_module_msg'] ?>" tooltip>
484 484
 										<input name="locked" type="checkbox"<?= ($content['locked'] == 1 ? ' checked="checked"' : '') ?> />
485 485
 										<i class="fa fa-lock"></i>
486 486
 									</label>
@@ -502,9 +502,9 @@  discard block
 block discarded – undo
502 502
 							<select name="categoryid" class="form-control" onchange="documentDirty=true;">
503 503
 								<option>&nbsp;</option>
504 504
 								<?php
505
-                                include_once(MODX_MANAGER_PATH . 'includes/categories.inc.php');
505
+                                include_once(MODX_MANAGER_PATH.'includes/categories.inc.php');
506 506
                                 foreach (getCategories() as $n => $v) {
507
-                                    echo "\t\t\t" . '<option value="' . $v['id'] . '"' . ($content['category'] == $v['id'] ? ' selected="selected"' : '') . '>' . $modx->htmlspecialchars($v['category']) . "</option>\n";
507
+                                    echo "\t\t\t".'<option value="'.$v['id'].'"'.($content['category'] == $v['id'] ? ' selected="selected"' : '').'>'.$modx->htmlspecialchars($v['category'])."</option>\n";
508 508
                                 }
509 509
                                 ?>
510 510
 							</select>
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
 				<div class="form-group">
537 537
 					<div class="form-row">
538 538
 						<label for="disabled"><input name="disabled" id="disabled" type="checkbox" value="on"<?= ($content['disabled'] == 1 ? ' checked="checked"' : '') ?> />
539
-							<?= ($content['disabled'] == 1 ? '<span class="text-danger">' . $_lang['module_disabled'] . '</span>' : $_lang['module_disabled']) ?></label>
539
+							<?= ($content['disabled'] == 1 ? '<span class="text-danger">'.$_lang['module_disabled'].'</span>' : $_lang['module_disabled']) ?></label>
540 540
 					</div>
541 541
 					<div class="form-row">
542 542
 						<label for="parse_docblock">
@@ -629,14 +629,14 @@  discard block
 block discarded – undo
629 629
 						LEFT JOIN {$tbl_site_templates} AS st ON st.id = smd.resource AND smd.type = 50
630 630
 						LEFT JOIN {$tbl_site_tmplvars} AS sv ON sv.id = smd.resource AND smd.type = 60", "smd.module='{$id}'", 'smd.type,name');
631 631
 
632
-                    include_once MODX_MANAGER_PATH . "includes/controls/datagrid.class.php";
632
+                    include_once MODX_MANAGER_PATH."includes/controls/datagrid.class.php";
633 633
                     $grd = new DataGrid('', $ds, 0); // set page size to 0 t show all items
634 634
                     $grd->noRecordMsg = $_lang['no_records_found'];
635 635
                     $grd->cssClass = 'grid';
636 636
                     $grd->columnHeaderClass = 'gridHeader';
637 637
                     $grd->itemClass = 'gridItem';
638 638
                     $grd->altItemClass = 'gridAltItem';
639
-                    $grd->columns = $_lang['element_name'] . " ," . $_lang['type'];
639
+                    $grd->columns = $_lang['element_name']." ,".$_lang['type'];
640 640
                     $grd->fields = "name,type";
641 641
                     echo $grd->render();
642 642
                     ?>
@@ -690,15 +690,15 @@  discard block
 block discarded – undo
690 690
                             if ($checked) {
691 691
                                 $notPublic = true;
692 692
                             }
693
-                            $chks .= '<label><input type="checkbox" name="usrgroups[]" value="' . $row['id'] . '"' . ($checked ? ' checked="checked"' : '') . ' onclick="makePublic(false)" /> ' . $row['name'] . "</label><br />\n";
693
+                            $chks .= '<label><input type="checkbox" name="usrgroups[]" value="'.$row['id'].'"'.($checked ? ' checked="checked"' : '').' onclick="makePublic(false)" /> '.$row['name']."</label><br />\n";
694 694
                         } else {
695 695
                             if ($checked) {
696
-                                $chks = '<input type="hidden" name="usrgroups[]"  value="' . $row['id'] . '" />' . "\n" . $chks;
696
+                                $chks = '<input type="hidden" name="usrgroups[]"  value="'.$row['id'].'" />'."\n".$chks;
697 697
                             }
698 698
                         }
699 699
                     }
700 700
                     if ($modx->hasPermission('access_permissions')) {
701
-                        $chks = '<label><input type="checkbox" name="chkallgroups"' . (!$notPublic ? ' checked="checked"' : '') . ' onclick="makePublic(true)" /><span class="warning"> ' . $_lang['all_usr_groups'] . '</span></label><br />' . "\n" . $chks;
701
+                        $chks = '<label><input type="checkbox" name="chkallgroups"'.(!$notPublic ? ' checked="checked"' : '').' onclick="makePublic(true)" /><span class="warning"> '.$_lang['all_usr_groups'].'</span></label><br />'."\n".$chks;
702 702
                     }
703 703
                     echo $chks;
704 704
                     ?>
Please login to merge, or discard this patch.
Braces   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  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
-switch ($modx->manager->action) {
5
+switch ($modx->manager->action) {
6 6
     case 107:
7
-        if (!$modx->hasPermission('new_module')) {
7
+        if (!$modx->hasPermission('new_module')) {
8 8
             $modx->webAlertAndQuit($_lang["error_no_privileges"]);
9 9
         }
10 10
         break;
11 11
     case 108:
12
-        if (!$modx->hasPermission('edit_module')) {
12
+        if (!$modx->hasPermission('edit_module')) {
13 13
             $modx->webAlertAndQuit($_lang["error_no_privileges"]);
14 14
         }
15 15
         break;
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
  *
34 34
  * @return string
35 35
  */
36
-function createGUID()
37
-{
36
+function createGUID()
37
+{
38 38
     srand((double) microtime() * 1000000);
39 39
     $r = rand();
40 40
     $u = uniqid(getmypid() . $r . (double) microtime() * 1000000, 1);
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 }
44 44
 
45 45
 // check to see the module editor isn't locked
46
-if ($lockedEl = $modx->elementIsLocked(6, $id)) {
46
+if ($lockedEl = $modx->elementIsLocked(6, $id)) {
47 47
     $modx->webAlertAndQuit(sprintf($_lang['lock_msg'], $lockedEl['username'], $_lang['module']));
48 48
 }
49 49
 // end check for lock
@@ -51,22 +51,22 @@  discard block
 block discarded – undo
51 51
 // Lock snippet for other users to edit
52 52
 $modx->lockElement(6, $id);
53 53
 
54
-if (isset($_GET['id'])) {
54
+if (isset($_GET['id'])) {
55 55
     $rs = $modx->db->select('*', $tbl_site_modules, "id='{$id}'");
56 56
     $content = $modx->db->getRow($rs);
57
-    if (!$content) {
57
+    if (!$content) {
58 58
         $modx->webAlertAndQuit("Module not found for id '{$id}'.");
59 59
     }
60 60
     $content['properties'] = str_replace("&", "&amp;", $content['properties']);
61 61
     $_SESSION['itemname'] = $content['name'];
62
-    if ($content['locked'] == 1 && $_SESSION['mgrRole'] != 1) {
62
+    if ($content['locked'] == 1 && $_SESSION['mgrRole'] != 1) {
63 63
         $modx->webAlertAndQuit($_lang["error_no_privileges"]);
64 64
     }
65
-} else {
65
+} else {
66 66
     $_SESSION['itemname'] = $_lang["new_module"];
67 67
     $content['wrap'] = '1';
68 68
 }
69
-if ($modx->manager->hasFormValues()) {
69
+if ($modx->manager->hasFormValues()) {
70 70
     $modx->manager->loadFormValues();
71 71
 }
72 72
 
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 	<?php
441 441
     // invoke OnModFormPrerender event
442 442
     $evtOut = $modx->invokeEvent('OnModFormPrerender', array('id' => $id));
443
-    if (is_array($evtOut)) {
443
+    if (is_array($evtOut)) {
444 444
         echo implode('', $evtOut);
445 445
     }
446 446
 
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 								<option>&nbsp;</option>
504 504
 								<?php
505 505
                                 include_once(MODX_MANAGER_PATH . 'includes/categories.inc.php');
506
-                                foreach (getCategories() as $n => $v) {
506
+                                foreach (getCategories() as $n => $v) {
507 507
                                     echo "\t\t\t" . '<option value="' . $v['id'] . '"' . ($content['category'] == $v['id'] ? ' selected="selected"' : '') . '>' . $modx->htmlspecialchars($v['category']) . "</option>\n";
508 508
                                 }
509 509
                                 ?>
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
                     $rs = $modx->db->select('usergroup', $tbl_site_module_access, "module='{$id}'");
656 656
                     $groupsarray = $modx->db->getColumn('usergroup', $rs);
657 657
 
658
-                    if ($modx->hasPermission('access_permissions')) {
658
+                    if ($modx->hasPermission('access_permissions')) {
659 659
                         ?>
660 660
 						<!-- User Group Access Permissions -->
661 661
 						<script type="text/javascript">
@@ -683,21 +683,21 @@  discard block
 block discarded – undo
683 683
                     }
684 684
                     $chk = '';
685 685
                     $rs = $modx->db->select('name, id', $tbl_membergroup_names, '', 'name');
686
-                    while ($row = $modx->db->getRow($rs)) {
686
+                    while ($row = $modx->db->getRow($rs)) {
687 687
                         $groupsarray = is_numeric($id) && $id > 0 ? $groupsarray : array();
688 688
                         $checked = in_array($row['id'], $groupsarray);
689
-                        if ($modx->hasPermission('access_permissions')) {
690
-                            if ($checked) {
689
+                        if ($modx->hasPermission('access_permissions')) {
690
+                            if ($checked) {
691 691
                                 $notPublic = true;
692 692
                             }
693 693
                             $chks .= '<label><input type="checkbox" name="usrgroups[]" value="' . $row['id'] . '"' . ($checked ? ' checked="checked"' : '') . ' onclick="makePublic(false)" /> ' . $row['name'] . "</label><br />\n";
694
-                        } else {
695
-                            if ($checked) {
694
+                        } else {
695
+                            if ($checked) {
696 696
                                 $chks = '<input type="hidden" name="usrgroups[]"  value="' . $row['id'] . '" />' . "\n" . $chks;
697 697
                             }
698 698
                         }
699 699
                     }
700
-                    if ($modx->hasPermission('access_permissions')) {
700
+                    if ($modx->hasPermission('access_permissions')) {
701 701
                         $chks = '<label><input type="checkbox" name="chkallgroups"' . (!$notPublic ? ' checked="checked"' : '') . ' onclick="makePublic(true)" /><span class="warning"> ' . $_lang['all_usr_groups'] . '</span></label><br />' . "\n" . $chks;
702 702
                     }
703 703
                     echo $chks;
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
 		<?php
720 720
         // invoke OnModFormRender event
721 721
         $evtOut = $modx->invokeEvent('OnModFormRender', array('id' => $id));
722
-        if (is_array($evtOut)) {
722
+        if (is_array($evtOut)) {
723 723
             echo implode('', $evtOut);
724 724
         }
725 725
         ?>
Please login to merge, or discard this patch.
manager/actions/mutate_settings/tab6_filemanager_settings.inc.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         <?php
114 114
             // invoke OnMiscSettingsRender event
115 115
             $evtOut = $modx->invokeEvent('OnFileManagerSettingsRender');
116
-            if (is_array($evtOut)) {
116
+            if (is_array($evtOut)) {
117 117
                 echo implode("", $evtOut);
118 118
             }
119 119
         ?>
Please login to merge, or discard this patch.
manager/actions/mutate_settings/tab5_security_settings.inc.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -183,9 +183,9 @@
 block discarded – undo
183 183
     <td colspan="2"><div class="split"></div></td>
184 184
   </tr>
185 185
   <?php
186
-      // Check for GD before allowing captcha to be enabled
187
-      $gdAvailable = extension_loaded('gd');
188
-  ?>
186
+        // Check for GD before allowing captcha to be enabled
187
+        $gdAvailable = extension_loaded('gd');
188
+    ?>
189 189
 <?php
190 190
 $gdAvailable = extension_loaded('gd');
191 191
 if (!$gdAvailable) {
Please login to merge, or discard this patch.
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
 <tr>
16 16
 <th><?php echo $_lang['allow_eval_title']; ?><br><small>[(allow_eval)]</small></th>
17 17
 <td>
18
-<?php echo wrap_label($_lang['allow_eval_with_scan'], form_radio('allow_eval', 'with_scan'));?><br />
19
-<?php echo wrap_label($_lang['allow_eval_with_scan_at_post'], form_radio('allow_eval', 'with_scan_at_post'));?><br />
20
-<?php echo wrap_label($_lang['allow_eval_everytime_eval'], form_radio('allow_eval', 'everytime_eval'));?><br />
21
-<?php echo wrap_label($_lang['allow_eval_dont_eval'], form_radio('allow_eval', 'dont_eval'));?>
18
+<?php echo wrap_label($_lang['allow_eval_with_scan'], form_radio('allow_eval', 'with_scan')); ?><br />
19
+<?php echo wrap_label($_lang['allow_eval_with_scan_at_post'], form_radio('allow_eval', 'with_scan_at_post')); ?><br />
20
+<?php echo wrap_label($_lang['allow_eval_everytime_eval'], form_radio('allow_eval', 'everytime_eval')); ?><br />
21
+<?php echo wrap_label($_lang['allow_eval_dont_eval'], form_radio('allow_eval', 'dont_eval')); ?>
22 22
     <div class="comment">
23 23
         <?php echo $_lang['allow_eval_msg'] ?>
24 24
     </div>
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 <tr>
44 44
     <th><?php echo $_lang['check_files_onlogin_title'] ?><br><small>[(check_files_onlogin)]</small></th>
45 45
     <td>
46
-      <textarea name="check_files_onlogin"><?php echo $check_files_onlogin;?></textarea><br />
46
+      <textarea name="check_files_onlogin"><?php echo $check_files_onlogin; ?></textarea><br />
47 47
         
48 48
 </td>
49 49
 </tr>
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
     <tr>
54 54
       <td nowrap class="warning"><?php echo $_lang['validate_referer_title'] ?><br><small>[(validate_referer)]</small></td>
55 55
       <td>
56
-        <?php echo wrap_label($_lang['yes'], form_radio('validate_referer', 1));?><br />
57
-        <?php echo wrap_label($_lang['no'], form_radio('validate_referer', 0));?>
56
+        <?php echo wrap_label($_lang['yes'], form_radio('validate_referer', 1)); ?><br />
57
+        <?php echo wrap_label($_lang['no'], form_radio('validate_referer', 0)); ?>
58 58
       </td>
59 59
     </tr>
60 60
     <tr>
@@ -89,25 +89,25 @@  discard block
 block discarded – undo
89 89
   <tr>
90 90
 <th><?php echo $_lang['a17_error_reporting_title']; ?><br><small>[(error_reporting)]</small></th>
91 91
 <td>
92
-<?php echo wrap_label($_lang['a17_error_reporting_opt0'], form_radio('error_reporting', '0'));?><br />
93
-<?php echo wrap_label($_lang['a17_error_reporting_opt1'], form_radio('error_reporting', '1'));?><br />
94
-<?php echo wrap_label($_lang['a17_error_reporting_opt2'], form_radio('error_reporting', '2'));?><br />
95
-<?php echo wrap_label($_lang['a17_error_reporting_opt99'], form_radio('error_reporting', '99'));?>
92
+<?php echo wrap_label($_lang['a17_error_reporting_opt0'], form_radio('error_reporting', '0')); ?><br />
93
+<?php echo wrap_label($_lang['a17_error_reporting_opt1'], form_radio('error_reporting', '1')); ?><br />
94
+<?php echo wrap_label($_lang['a17_error_reporting_opt2'], form_radio('error_reporting', '2')); ?><br />
95
+<?php echo wrap_label($_lang['a17_error_reporting_opt99'], form_radio('error_reporting', '99')); ?>
96 96
 </td>
97 97
 </tr>
98 98
 <tr>
99 99
     <td width="200">&nbsp;</td>
100
-    <td class="comment"> <?php echo $_lang['a17_error_reporting_msg'];?></td>
100
+    <td class="comment"> <?php echo $_lang['a17_error_reporting_msg']; ?></td>
101 101
 </tr>
102 102
 <tr><td colspan="2"><div class="split"></div></td></tr>
103 103
 <tr>
104 104
 <th><?php echo $_lang['mutate_settings.dynamic.php6']; ?><br><small>[(send_errormail)]</small></th>
105 105
 <td>
106
-<?php echo wrap_label($_lang['mutate_settings.dynamic.php7'], form_radio('send_errormail', '0'));?><br />
107
-<?php echo wrap_label('error', form_radio('send_errormail', '3'));?><br />
108
-<?php echo wrap_label('error + warning', form_radio('send_errormail', '2'));?><br />
109
-<?php echo wrap_label('error + warning + information', form_radio('send_errormail', '1'));?><br />
110
-<?php echo parseText($_lang['mutate_settings.dynamic.php8'], array('emailsender'=>$modx->config['emailsender']));?></td>
106
+<?php echo wrap_label($_lang['mutate_settings.dynamic.php7'], form_radio('send_errormail', '0')); ?><br />
107
+<?php echo wrap_label('error', form_radio('send_errormail', '3')); ?><br />
108
+<?php echo wrap_label('error + warning', form_radio('send_errormail', '2')); ?><br />
109
+<?php echo wrap_label('error + warning + information', form_radio('send_errormail', '1')); ?><br />
110
+<?php echo parseText($_lang['mutate_settings.dynamic.php8'], array('emailsender'=>$modx->config['emailsender'])); ?></td>
111 111
 </tr>
112 112
    <tr>
113 113
     <td colspan="2"><div class="split"></div></td>
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
 <tr>
116 116
 <th><?php echo $_lang['enable_bindings_title'] ?><br><small>[(enable_bindings)]</small></th>
117 117
 <td>
118
-<?php echo wrap_label($_lang['yes'], form_radio('enable_bindings', '1'));?><br />
119
-<?php echo wrap_label($_lang['no'], form_radio('enable_bindings', '0'));?>
118
+<?php echo wrap_label($_lang['yes'], form_radio('enable_bindings', '1')); ?><br />
119
+<?php echo wrap_label($_lang['no'], form_radio('enable_bindings', '0')); ?>
120 120
 
121 121
 </td>
122 122
 </tr>
@@ -160,19 +160,19 @@  discard block
 block discarded – undo
160 160
 if (empty($pwd_hash_algo)) {
161 161
     $phm['sel']['UNCRYPT'] = 1;
162 162
 }
163
-$phm['e']['BLOWFISH_Y'] = $modx->manager->checkHashAlgorithm('BLOWFISH_Y') ? 0:1;
164
-$phm['e']['BLOWFISH_A'] = $modx->manager->checkHashAlgorithm('BLOWFISH_A') ? 0:1;
165
-$phm['e']['SHA512']     = $modx->manager->checkHashAlgorithm('SHA512') ? 0:1;
166
-$phm['e']['SHA256']     = $modx->manager->checkHashAlgorithm('SHA256') ? 0:1;
167
-$phm['e']['MD5']        = $modx->manager->checkHashAlgorithm('MD5') ? 0:1;
168
-$phm['e']['UNCRYPT']    = $modx->manager->checkHashAlgorithm('UNCRYPT') ? 0:1;
163
+$phm['e']['BLOWFISH_Y'] = $modx->manager->checkHashAlgorithm('BLOWFISH_Y') ? 0 : 1;
164
+$phm['e']['BLOWFISH_A'] = $modx->manager->checkHashAlgorithm('BLOWFISH_A') ? 0 : 1;
165
+$phm['e']['SHA512']     = $modx->manager->checkHashAlgorithm('SHA512') ? 0 : 1;
166
+$phm['e']['SHA256']     = $modx->manager->checkHashAlgorithm('SHA256') ? 0 : 1;
167
+$phm['e']['MD5']        = $modx->manager->checkHashAlgorithm('MD5') ? 0 : 1;
168
+$phm['e']['UNCRYPT']    = $modx->manager->checkHashAlgorithm('UNCRYPT') ? 0 : 1;
169 169
 ?>
170
-<?php echo wrap_label('CRYPT_BLOWFISH_Y (salt &amp; stretch)', form_radio('pwd_hash_algo', 'BLOWFISH_Y', '', $phm['e']['BLOWFISH_Y']));?><br />
171
-<?php echo wrap_label('CRYPT_BLOWFISH_A (salt &amp; stretch)', form_radio('pwd_hash_algo', 'BLOWFISH_A', '', $phm['e']['BLOWFISH_A']));?><br />
172
-<?php echo wrap_label('CRYPT_SHA512 (salt &amp; stretch)', form_radio('pwd_hash_algo', 'SHA512', '', $phm['e']['SHA512']));?><br />
173
-<?php echo wrap_label('CRYPT_SHA256 (salt &amp; stretch)', form_radio('pwd_hash_algo', 'SHA256', '', $phm['e']['SHA256']));?><br />
174
-<?php echo wrap_label('CRYPT_MD5 (salt &amp; stretch)', form_radio('pwd_hash_algo', 'MD5', '', $phm['e']['MD5']));?><br />
175
-<?php echo wrap_label('UNCRYPT(32 chars salt + SHA-1 hash)', form_radio('pwd_hash_algo', 'UNCRYPT', '', $phm['e']['UNCRYPT']));?>
170
+<?php echo wrap_label('CRYPT_BLOWFISH_Y (salt &amp; stretch)', form_radio('pwd_hash_algo', 'BLOWFISH_Y', '', $phm['e']['BLOWFISH_Y'])); ?><br />
171
+<?php echo wrap_label('CRYPT_BLOWFISH_A (salt &amp; stretch)', form_radio('pwd_hash_algo', 'BLOWFISH_A', '', $phm['e']['BLOWFISH_A'])); ?><br />
172
+<?php echo wrap_label('CRYPT_SHA512 (salt &amp; stretch)', form_radio('pwd_hash_algo', 'SHA512', '', $phm['e']['SHA512'])); ?><br />
173
+<?php echo wrap_label('CRYPT_SHA256 (salt &amp; stretch)', form_radio('pwd_hash_algo', 'SHA256', '', $phm['e']['SHA256'])); ?><br />
174
+<?php echo wrap_label('CRYPT_MD5 (salt &amp; stretch)', form_radio('pwd_hash_algo', 'MD5', '', $phm['e']['MD5'])); ?><br />
175
+<?php echo wrap_label('UNCRYPT(32 chars salt + SHA-1 hash)', form_radio('pwd_hash_algo', 'UNCRYPT', '', $phm['e']['UNCRYPT'])); ?>
176 176
 </td>
177 177
 </tr>
178 178
 <tr>
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
 ?>
195 195
   <tr>
196 196
     <td nowrap class="warning"><?php echo $_lang['captcha_title'] ?><br><small>[(use_captcha)]</small></td>
197
-    <td> <label><input type="radio" id="captchaOn" name="use_captcha" value="1" <?php echo ($use_captcha==1) ? 'checked="checked"' : "" ; echo (!$gdAvailable)? ' readonly="readonly"' : ''; ?> />
197
+    <td> <label><input type="radio" id="captchaOn" name="use_captcha" value="1" <?php echo ($use_captcha == 1) ? 'checked="checked"' : ""; echo (!$gdAvailable) ? ' readonly="readonly"' : ''; ?> />
198 198
       <?php echo $_lang['yes']?></label><br />
199
-      <label><input type="radio" id="captchaOff" name="use_captcha" value="0" <?php echo ($use_captcha==0) ? 'checked="checked"' : "" ; echo (!$gdAvailable)? ' readonly="readonly"' : '';?> />
199
+      <label><input type="radio" id="captchaOff" name="use_captcha" value="0" <?php echo ($use_captcha == 0) ? 'checked="checked"' : ""; echo (!$gdAvailable) ? ' readonly="readonly"' : ''; ?> />
200 200
       <?php echo $_lang['no']?></label> </td>
201 201
   </tr>
202 202
   <tr>
@@ -206,23 +206,23 @@  discard block
 block discarded – undo
206 206
   <tr>
207 207
     <td colspan="2"><div class="split"></div></td>
208 208
   </tr>
209
-  <tr class="captchaRow" <?php echo showHide($use_captcha==1);?>>
209
+  <tr class="captchaRow" <?php echo showHide($use_captcha == 1); ?>>
210 210
     <td nowrap class="warning"><?php echo $_lang['captcha_words_title'] ?><br><small>[(captcha_words)]</small>
211 211
       <br />
212 212
       <p><?php echo $_lang['update_settings_from_language']; ?></p>
213 213
       <select name="reload_captcha_words" id="reload_captcha_words_select" onchange="confirmLangChange(this, 'captcha_words_default', 'captcha_words_input');">
214
-<?php echo get_lang_options('captcha_words_default');?>
214
+<?php echo get_lang_options('captcha_words_default'); ?>
215 215
       </select>
216 216
     </td>
217 217
     <td><input type="text" id="captcha_words_input" name="captcha_words" style="width:250px" value="<?php echo $captcha_words; ?>" />
218
-        <input type="hidden" name="captcha_words_default" id="captcha_words_default_hidden" value="<?php echo addslashes($_lang['captcha_words_default']);?>" />
218
+        <input type="hidden" name="captcha_words_default" id="captcha_words_default_hidden" value="<?php echo addslashes($_lang['captcha_words_default']); ?>" />
219 219
     </td>
220 220
   </tr>
221
-  <tr class="captchaRow" <?php echo showHide($use_captcha==1);?>>
221
+  <tr class="captchaRow" <?php echo showHide($use_captcha == 1); ?>>
222 222
     <td width="200">&nbsp;</td>
223 223
     <td class="comment"><?php echo $_lang['captcha_words_message'] ?></td>
224 224
   </tr>
225
-  <tr class="captchaRow" <?php echo showHide($use_captcha==1);?>>
225
+  <tr class="captchaRow" <?php echo showHide($use_captcha == 1); ?>>
226 226
     <td colspan="2"><div class="split"></div></td>
227 227
   </tr>
228 228
   <tr>
Please login to merge, or discard this patch.
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
     $MODX_SITE_HOSTNAMES = MODX_SITE_HOSTNAMES; // Fix for PHP 5.4
3
-    if (empty($valid_hostnames) && empty($MODX_SITE_HOSTNAMES)) {
3
+    if (empty($valid_hostnames) && empty($MODX_SITE_HOSTNAMES)) {
4 4
         $valid_hostnames = $_SERVER['HTTP_HOST'];
5
-    } else {
5
+    } else {
6 6
         $valid_hostnames = $MODX_SITE_HOSTNAMES;
7 7
     }
8 8
 ?>
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 <th><?php echo $_lang['pwd_hash_algo_title'] ?><br><small>[(pwd_hash_algo)]</small></th>
158 158
 <td>
159 159
 <?php
160
-if (empty($pwd_hash_algo)) {
160
+if (empty($pwd_hash_algo)) {
161 161
     $phm['sel']['UNCRYPT'] = 1;
162 162
 }
163 163
 $phm['e']['BLOWFISH_Y'] = $modx->manager->checkHashAlgorithm('BLOWFISH_Y') ? 0:1;
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
   ?>
189 189
 <?php
190 190
 $gdAvailable = extension_loaded('gd');
191
-if (!$gdAvailable) {
191
+if (!$gdAvailable) {
192 192
     $use_captcha = 0;
193 193
 }
194 194
 ?>
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
         <?php
231 231
             // invoke OnMiscSettingsRender event
232 232
             $evtOut = $modx->invokeEvent('OnSecuritySettingsRender');
233
-            if (is_array($evtOut)) {
233
+            if (is_array($evtOut)) {
234 234
                 echo implode("", $evtOut);
235 235
             }
236 236
         ?>
Please login to merge, or discard this patch.
manager/actions/mutate_settings/tab3_user_settings.inc.php 2 patches
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
   <tr>
7 7
     <td nowrap class="warning"><?php echo $_lang['udperms_title'] ?><br><small>[(use_udperms)]</small></td>
8 8
     <td>
9
-        <?php echo wrap_label($_lang['yes'], form_radio('use_udperms', 1, 'id="udPermsOn"'));?><br />
10
-        <?php echo wrap_label($_lang['no'], form_radio('use_udperms', 0, 'id="udPermsOff"'));?>
9
+        <?php echo wrap_label($_lang['yes'], form_radio('use_udperms', 1, 'id="udPermsOn"')); ?><br />
10
+        <?php echo wrap_label($_lang['no'], form_radio('use_udperms', 0, 'id="udPermsOff"')); ?>
11 11
     </td>
12 12
   </tr>
13 13
   <tr>
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
   <tr>
18 18
     <td colspan="2"><div class="split"></div></td>
19 19
   </tr>
20
-  <tr class="udPerms" <?php echo showHide($use_udperms==1);?>>
20
+  <tr class="udPerms" <?php echo showHide($use_udperms == 1); ?>>
21 21
     <td nowrap class="warning"><?php echo $_lang['udperms_allowroot_title'] ?><br><small>[(udperms_allowroot)]</small></td>
22 22
     <td>
23
-      <label><input type="radio" name="udperms_allowroot" value="1" <?php echo $udperms_allowroot=='1' ? 'checked="checked"' : "" ; ?> />
23
+      <label><input type="radio" name="udperms_allowroot" value="1" <?php echo $udperms_allowroot == '1' ? 'checked="checked"' : ""; ?> />
24 24
       <?php echo $_lang['yes']?></label><br />
25
-      <label><input type="radio" name="udperms_allowroot" value="0" <?php echo $udperms_allowroot=='0' ? 'checked="checked"' : "" ; ?> />
25
+      <label><input type="radio" name="udperms_allowroot" value="0" <?php echo $udperms_allowroot == '0' ? 'checked="checked"' : ""; ?> />
26 26
       <?php echo $_lang['no']?></label>
27 27
     </td>
28 28
   </tr>
29
-  <tr class="udPerms" <?php echo showHide($use_udperms==1);?>>
29
+  <tr class="udPerms" <?php echo showHide($use_udperms == 1); ?>>
30 30
     <td width="200">&nbsp;</td>
31 31
     <td class="comment"><?php echo $_lang['udperms_allowroot_message'] ?></td>
32 32
   </tr>
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
   <tr>
38 38
     <td nowrap class="warning"><?php echo $_lang['email_sender_method'] ?><br><small>[(email_sender_method)]</small></td>
39 39
     <td>
40
-      <label><input type="radio" name="email_sender_method" value="1" <?php echo $email_sender_method=='1' ? 'checked="checked"' : "" ; ?> />
40
+      <label><input type="radio" name="email_sender_method" value="1" <?php echo $email_sender_method == '1' ? 'checked="checked"' : ""; ?> />
41 41
       <?php echo $_lang['auto']?></label><br />
42
-      <label><input type="radio" name="email_sender_method" value="0" <?php echo $email_sender_method=='0' ? 'checked="checked"' : "" ; ?> />
42
+      <label><input type="radio" name="email_sender_method" value="0" <?php echo $email_sender_method == '0' ? 'checked="checked"' : ""; ?> />
43 43
       <?php echo $_lang['use_emailsender']?></label>
44 44
     </td>
45 45
   </tr>
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
   <tr>
56 56
     <td nowrap class="warning"><?php echo $_lang['email_method_title'] ?><br><small>[(email_method)]</small></td>
57 57
     <td>
58
-        <?php echo wrap_label($_lang['email_method_mail'], form_radio('email_method', 'mail', 'id="useMail"'));?><br />
59
-        <?php echo wrap_label($_lang['email_method_smtp'], form_radio('email_method', 'smtp', 'id="useSmtp"'));?>
60
-        <div class="smtpRow" <?php echo showHide($email_method=='smtp');?>>
61
-            <?php include_once(MODX_MANAGER_PATH . 'actions/mutate_settings/snippet_smtp.inc.php'); ?>
58
+        <?php echo wrap_label($_lang['email_method_mail'], form_radio('email_method', 'mail', 'id="useMail"')); ?><br />
59
+        <?php echo wrap_label($_lang['email_method_smtp'], form_radio('email_method', 'smtp', 'id="useSmtp"')); ?>
60
+        <div class="smtpRow" <?php echo showHide($email_method == 'smtp'); ?>>
61
+            <?php include_once(MODX_MANAGER_PATH.'actions/mutate_settings/snippet_smtp.inc.php'); ?>
62 62
         </div>
63 63
     </td>
64 64
   </tr>
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
       <br />
71 71
       <p><?php echo $_lang['update_settings_from_language']; ?></p>
72 72
       <select name="reload_emailsubject" id="reload_emailsubject_select" onchange="confirmLangChange(this, 'emailsubject_default', 'emailsubject_field');">
73
-<?php echo get_lang_options('emailsubject_default');?>
73
+<?php echo get_lang_options('emailsubject_default'); ?>
74 74
       </select>
75 75
     </td>
76 76
     <td ><input id="emailsubject_field" name="emailsubject" onchange="documentDirty=true;" type="text" maxlength="255" style="width: 250px;" value="<?php echo $emailsubject; ?>" />
77
-        <input type="hidden" name="emailsubject_default" id="emailsubject_default_hidden" value="<?php echo addslashes($_lang['emailsubject_default']);?>" />
77
+        <input type="hidden" name="emailsubject_default" id="emailsubject_default_hidden" value="<?php echo addslashes($_lang['emailsubject_default']); ?>" />
78 78
     </td>
79 79
   </tr>
80 80
   <tr>
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
       <br />
90 90
       <p><?php echo $_lang['update_settings_from_language']; ?></p>
91 91
       <select name="reload_signupemail_message" id="reload_signupemail_message_select" onchange="confirmLangChange(this, 'system_email_signup', 'signupemail_message_textarea');">
92
-<?php echo get_lang_options('system_email_signup');?>
92
+<?php echo get_lang_options('system_email_signup'); ?>
93 93
       </select>
94 94
     </td>
95 95
     <td> <textarea id="signupemail_message_textarea" name="signupemail_message" style="width:100%; height: 120px;"><?php echo $signupemail_message; ?></textarea>
96
-        <input type="hidden" name="system_email_signup_default" id="system_email_signup_hidden" value="<?php echo addslashes($_lang['system_email_signup']);?>" />
96
+        <input type="hidden" name="system_email_signup_default" id="system_email_signup_hidden" value="<?php echo addslashes($_lang['system_email_signup']); ?>" />
97 97
     </td>
98 98
   </tr>
99 99
   <tr>
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
       <br />
109 109
       <p><?php echo $_lang['update_settings_from_language']; ?></p>
110 110
       <select name="reload_websignupemail_message" id="reload_websignupemail_message_select" onchange="confirmLangChange(this, 'system_email_websignup', 'websignupemail_message_textarea');">
111
-<?php echo get_lang_options('system_email_websignup');?>
111
+<?php echo get_lang_options('system_email_websignup'); ?>
112 112
       </select>
113 113
     </td>
114 114
     <td> <textarea id="websignupemail_message_textarea" name="websignupemail_message" style="width:100%; height: 120px;"><?php echo $websignupemail_message; ?></textarea>
115
-        <input type="hidden" name="system_email_websignup_default" id="system_email_websignup_hidden" value="<?php echo addslashes($_lang['system_email_websignup']);?>" />
115
+        <input type="hidden" name="system_email_websignup_default" id="system_email_websignup_hidden" value="<?php echo addslashes($_lang['system_email_websignup']); ?>" />
116 116
     </td>
117 117
   </tr>
118 118
   <tr>
@@ -127,11 +127,11 @@  discard block
 block discarded – undo
127 127
       <br />
128 128
       <p><?php echo $_lang['update_settings_from_language']; ?></p>
129 129
       <select name="reload_system_email_webreminder_message" id="reload_system_email_webreminder_select" onchange="confirmLangChange(this, 'system_email_webreminder', 'system_email_webreminder_textarea');">
130
-<?php echo get_lang_options('system_email_webreminder');?>
130
+<?php echo get_lang_options('system_email_webreminder'); ?>
131 131
       </select>
132 132
     </td>
133 133
     <td> <textarea id="system_email_webreminder_textarea" name="webpwdreminder_message" style="width:100%; height: 120px;"><?php echo $webpwdreminder_message; ?></textarea>
134
-        <input type="hidden" name="system_email_webreminder_default" id="system_email_webreminder_hidden" value="<?php echo addslashes($_lang['system_email_webreminder']);?>" />
134
+        <input type="hidden" name="system_email_webreminder_default" id="system_email_webreminder_hidden" value="<?php echo addslashes($_lang['system_email_webreminder']); ?>" />
135 135
     </td>
136 136
   </tr>
137 137
   <tr>
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
   <tr>
145 145
     <td nowrap class="warning" valign="top"><?php echo $_lang['allow_multiple_emails_title'] ?><br><small>[(allow_multiple_emails)]</small></td>
146 146
     <td>
147
-      <?php echo wrap_label($_lang['yes'], form_radio('allow_multiple_emails', '1'));?><br />
148
-      <?php echo wrap_label($_lang['no'], form_radio('allow_multiple_emails', '0'));?>
147
+      <?php echo wrap_label($_lang['yes'], form_radio('allow_multiple_emails', '1')); ?><br />
148
+      <?php echo wrap_label($_lang['no'], form_radio('allow_multiple_emails', '0')); ?>
149 149
     </td>
150 150
   </tr>
151 151
   <tr>
Please login to merge, or discard this 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.