Test Failed
Pull Request — master (#592)
by Lucio
10:17
created
htdocs/modules/system/admin/users/users.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,9 +151,9 @@
 block discarded – undo
151 151
     // RMV-NOTIFY
152 152
     $notify_method_select = new XoopsFormSelect(_NOT_NOTIFYMETHOD, 'notify_method', $notify_method_value);
153 153
     $notify_method_select->addOptionArray(array(
154
-                                              XOOPS_NOTIFICATION_METHOD_DISABLE => _NOT_METHOD_DISABLE,
155
-                                              XOOPS_NOTIFICATION_METHOD_PM      => _NOT_METHOD_PM,
156
-                                              XOOPS_NOTIFICATION_METHOD_EMAIL   => _NOT_METHOD_EMAIL));
154
+                                                XOOPS_NOTIFICATION_METHOD_DISABLE => _NOT_METHOD_DISABLE,
155
+                                                XOOPS_NOTIFICATION_METHOD_PM      => _NOT_METHOD_PM,
156
+                                                XOOPS_NOTIFICATION_METHOD_EMAIL   => _NOT_METHOD_EMAIL));
157 157
     $form->addElement($notify_method_select);
158 158
     $notify_mode_select = new XoopsFormSelect(_NOT_NOTIFYMODE, 'notify_mode', $notify_mode_value);
159 159
     $notify_mode_select->addOptionArray(array(
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
 /*********************************************************/
31 31
 /* Users Functions                                       */
32 32
 /*********************************************************/
33
-include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
34
-include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
33
+include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
34
+include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
35 35
 
36 36
 //Display form add or edit
37 37
 //true = add and false = edit
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
     $uid = system_CleanVars($_REQUEST, 'uid', 0);
46 46
 
47 47
     //RMV-NOTIFY
48
-    include_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/notification.php';
49
-    include_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
48
+    include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/notification.php';
49
+    include_once XOOPS_ROOT_PATH.'/include/notification_constants.php';
50 50
 
51 51
     if ($add_or_edit === true) {
52 52
         //Add user
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $bio_value           = $user->getVar('bio', 'E');
109 109
             $rank_value          = $user->rank(false);
110 110
             $mailok_value        = $user->getVar('user_mailok', 'E');
111
-            $form_title          = _AM_SYSTEM_USERS_UPDATEUSER . ': ' . $user->getVar('uname');
111
+            $form_title          = _AM_SYSTEM_USERS_UPDATEUSER.': '.$user->getVar('uname');
112 112
             $form_isedit         = true;
113 113
             $groups              = array_values($user->getGroups());
114 114
         }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     } else {
192 192
         //add each user groups
193 193
         foreach ($groups as $key => $group) {
194
-            $group_select[] = new XoopsFormHidden('groups[' . $key . ']', $group);
194
+            $group_select[] = new XoopsFormHidden('groups['.$key.']', $group);
195 195
         }
196 196
     }
197 197
     foreach ($group_select as $group) {
@@ -217,8 +217,8 @@  discard block
 block discarded – undo
217 217
 {
218 218
     global $xoopsDB;
219 219
 
220
-    include_once XOOPS_ROOT_PATH . '/include/comment_constants.php';
221
-    include_once XOOPS_ROOT_PATH . '/kernel/module.php';
220
+    include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
221
+    include_once XOOPS_ROOT_PATH.'/kernel/module.php';
222 222
 
223 223
     $tables = array();
224 224
     // Count comments (approved only: com_status == XOOPS_COMMENT_ACTIVE)
@@ -241,21 +241,21 @@  discard block
 block discarded – undo
241 241
                 if (!empty($table['criteria'])) {
242 242
                     $criteria->add($table['criteria']);
243 243
                 }
244
-                $sql = 'SELECT COUNT(*) AS total FROM ' . $xoopsDB->prefix($table['table_name']) . ' ' . $criteria->renderWhere();
244
+                $sql = 'SELECT COUNT(*) AS total FROM '.$xoopsDB->prefix($table['table_name']).' '.$criteria->renderWhere();
245 245
                 if ($result = $xoopsDB->query($sql)) {
246 246
                     if ($row = $xoopsDB->fetchArray($result)) {
247 247
                         $total_posts += $row['total'];
248 248
                     }
249 249
                 }
250 250
             }
251
-            $sql = 'UPDATE ' . $xoopsDB->prefix('users') . " SET posts = '" . $total_posts . "' WHERE uid = '" . $uid . "'";
251
+            $sql = 'UPDATE '.$xoopsDB->prefix('users')." SET posts = '".$total_posts."' WHERE uid = '".$uid."'";
252 252
             if (!$result = $xoopsDB->queryF($sql)) {
253 253
                 redirect_header('admin.php?fct=users', 1, _AM_SYSTEM_USERS_CNUUSER);
254 254
             }
255 255
             break;
256 256
 
257 257
         case 'all users':
258
-            $sql = 'SELECT uid FROM ' . $xoopsDB->prefix('users') . '';
258
+            $sql = 'SELECT uid FROM '.$xoopsDB->prefix('users').'';
259 259
             if (!$result = $xoopsDB->query($sql)) {
260 260
                 redirect_header('admin.php?fct=users', 1, sprintf(_AM_SYSTEM_USERS_CNGUSERID, $uid));
261 261
             }
Please login to merge, or discard this patch.
htdocs/modules/system/admin/users/jquery.php 2 patches
Switch Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -36,43 +36,43 @@
 block discarded – undo
36 36
 switch ($op) {
37 37
 
38 38
     // Display post
39
-    case 'display_post':
40
-        global $xoopsDB;
39
+        case 'display_post':
40
+            global $xoopsDB;
41 41
 
42
-        $GLOBALS['xoopsLogger']->activated = false;
42
+            $GLOBALS['xoopsLogger']->activated = false;
43 43
 
44
-        include_once XOOPS_ROOT_PATH . '/include/comment_constants.php';
45
-        include_once XOOPS_ROOT_PATH . '/kernel/module.php';
46
-        include_once XOOPS_ROOT_PATH . '/modules/system/include/functions.php';
44
+            include_once XOOPS_ROOT_PATH . '/include/comment_constants.php';
45
+            include_once XOOPS_ROOT_PATH . '/kernel/module.php';
46
+            include_once XOOPS_ROOT_PATH . '/modules/system/include/functions.php';
47 47
 
48
-        $tables = array();
49
-        // Count comments (approved only: com_status == XOOPS_COMMENT_ACTIVE)
50
-        $tables[] = array('table_name' => 'xoopscomments', 'uid_column' => 'com_uid', 'criteria' => new Criteria('com_status', XOOPS_COMMENT_ACTIVE));
51
-        // Count forum posts
52
-        if (XoopsModule::getByDirname('newbb')) {
53
-            $tables[] = array('table_name' => 'bb_posts', 'uid_column' => 'uid');
54
-        }
55
-        $uid         = system_CleanVars($_REQUEST, 'uid', 'int');
56
-        $total_posts = 0;
57
-        foreach ($tables as $table) {
58
-            $criteria = new CriteriaCompo();
59
-            $criteria->add(new Criteria($table['uid_column'], $uid));
60
-            if (!empty($table['criteria'])) {
61
-                $criteria->add($table['criteria']);
48
+            $tables = array();
49
+            // Count comments (approved only: com_status == XOOPS_COMMENT_ACTIVE)
50
+            $tables[] = array('table_name' => 'xoopscomments', 'uid_column' => 'com_uid', 'criteria' => new Criteria('com_status', XOOPS_COMMENT_ACTIVE));
51
+            // Count forum posts
52
+            if (XoopsModule::getByDirname('newbb')) {
53
+                $tables[] = array('table_name' => 'bb_posts', 'uid_column' => 'uid');
62 54
             }
63
-            $sql = 'SELECT COUNT(*) AS total FROM ' . $xoopsDB->prefix($table['table_name']) . ' ' . $criteria->renderWhere();
64
-            if ($result = $xoopsDB->query($sql)) {
65
-                if ($row = $xoopsDB->fetchArray($result)) {
66
-                    $total_posts += $row['total'];
55
+            $uid         = system_CleanVars($_REQUEST, 'uid', 'int');
56
+            $total_posts = 0;
57
+            foreach ($tables as $table) {
58
+                $criteria = new CriteriaCompo();
59
+                $criteria->add(new Criteria($table['uid_column'], $uid));
60
+                if (!empty($table['criteria'])) {
61
+                    $criteria->add($table['criteria']);
62
+                }
63
+                $sql = 'SELECT COUNT(*) AS total FROM ' . $xoopsDB->prefix($table['table_name']) . ' ' . $criteria->renderWhere();
64
+                if ($result = $xoopsDB->query($sql)) {
65
+                    if ($row = $xoopsDB->fetchArray($result)) {
66
+                        $total_posts += $row['total'];
67
+                    }
67 68
                 }
68 69
             }
69
-        }
70 70
 
71
-        $sql = 'UPDATE ' . $xoopsDB->prefix('users') . " SET posts = '" . $total_posts . "' WHERE uid = '" . $uid . "'";
72
-        if (!$result = $xoopsDB->queryF($sql)) {
73
-            redirect_header('admin.php?fct=users', 1, _AM_SYSTEM_USERS_CNUUSER);
74
-        } else {
75
-            echo $total_posts;
76
-        }
77
-        break;
71
+            $sql = 'UPDATE ' . $xoopsDB->prefix('users') . " SET posts = '" . $total_posts . "' WHERE uid = '" . $uid . "'";
72
+            if (!$result = $xoopsDB->queryF($sql)) {
73
+                redirect_header('admin.php?fct=users', 1, _AM_SYSTEM_USERS_CNUUSER);
74
+            } else {
75
+                echo $total_posts;
76
+            }
77
+            break;
78 78
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 /* @var  $xoopsUser XoopsUser */
19 19
 /* @var $xoopsModule XoopsModule */
20 20
 
21
-require dirname(dirname(dirname(dirname(__DIR__)))) . '/mainfile.php';
22
-require XOOPS_ROOT_PATH . '/header.php';
21
+require dirname(dirname(dirname(dirname(__DIR__)))).'/mainfile.php';
22
+require XOOPS_ROOT_PATH.'/header.php';
23 23
 
24 24
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
25 25
 
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 
42 42
         $GLOBALS['xoopsLogger']->activated = false;
43 43
 
44
-        include_once XOOPS_ROOT_PATH . '/include/comment_constants.php';
45
-        include_once XOOPS_ROOT_PATH . '/kernel/module.php';
46
-        include_once XOOPS_ROOT_PATH . '/modules/system/include/functions.php';
44
+        include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
45
+        include_once XOOPS_ROOT_PATH.'/kernel/module.php';
46
+        include_once XOOPS_ROOT_PATH.'/modules/system/include/functions.php';
47 47
 
48 48
         $tables = array();
49 49
         // Count comments (approved only: com_status == XOOPS_COMMENT_ACTIVE)
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             if (!empty($table['criteria'])) {
61 61
                 $criteria->add($table['criteria']);
62 62
             }
63
-            $sql = 'SELECT COUNT(*) AS total FROM ' . $xoopsDB->prefix($table['table_name']) . ' ' . $criteria->renderWhere();
63
+            $sql = 'SELECT COUNT(*) AS total FROM '.$xoopsDB->prefix($table['table_name']).' '.$criteria->renderWhere();
64 64
             if ($result = $xoopsDB->query($sql)) {
65 65
                 if ($row = $xoopsDB->fetchArray($result)) {
66 66
                     $total_posts += $row['total'];
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             }
69 69
         }
70 70
 
71
-        $sql = 'UPDATE ' . $xoopsDB->prefix('users') . " SET posts = '" . $total_posts . "' WHERE uid = '" . $uid . "'";
71
+        $sql = 'UPDATE '.$xoopsDB->prefix('users')." SET posts = '".$total_posts."' WHERE uid = '".$uid."'";
72 72
         if (!$result = $xoopsDB->queryF($sql)) {
73 73
             redirect_header('admin.php?fct=users', 1, _AM_SYSTEM_USERS_CNUUSER);
74 74
         } else {
Please login to merge, or discard this patch.
htdocs/modules/system/admin/users/main.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
             $xoBreadCrumb->addLink(_AM_SYSTEM_USERS_NAV_DELETE_USER);
93 93
             $xoBreadCrumb->render();
94 94
             xoops_confirm(array(
95
-                              'ok'  => 1,
96
-                              'uid' => $uid,
97
-                              'op'  => 'users_delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_SYSTEM_USERS_FORM_SURE_DEL, $user->getVar('uname')));
95
+                                'ok'  => 1,
96
+                                'uid' => $uid,
97
+                                'op'  => 'users_delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_SYSTEM_USERS_FORM_SURE_DEL, $user->getVar('uname')));
98 98
         }
99 99
         break;
100 100
 
@@ -404,9 +404,9 @@  discard block
 block discarded – undo
404 404
             $posts_less   = new XoopsFormText(_AM_SYSTEM_USERS_POSTSLESS, 'user_posts_less', 10, 5);
405 405
             $mailok_radio = new XoopsFormRadio(_AM_SYSTEM_USERS_SHOWMAILOK, 'user_mailok', 'both');
406 406
             $mailok_radio->addOptionArray(array(
407
-                                              'mailok' => _AM_SYSTEM_USERS_MAILOK,
408
-                                              'mailng' => _AM_SYSTEM_USERS_MAILNG,
409
-                                              'both' => _AM_SYSTEM_USERS_BOTH));
407
+                                                'mailok' => _AM_SYSTEM_USERS_MAILOK,
408
+                                                'mailng' => _AM_SYSTEM_USERS_MAILNG,
409
+                                                'both' => _AM_SYSTEM_USERS_BOTH));
410 410
             $type_radio = new XoopsFormRadio(_AM_SYSTEM_USERS_SHOWTYPE, 'user_type', 'actv');
411 411
             $type_radio->addOptionArray(array(
412 412
                                             'actv' => _AM_SYSTEM_USERS_ACTIVE,
@@ -414,11 +414,11 @@  discard block
 block discarded – undo
414 414
                                             'both' => _AM_SYSTEM_USERS_BOTH));
415 415
             $sort_select = new XoopsFormSelect(_AM_SYSTEM_USERS_SORT, 'user_sort');
416 416
             $sort_select->addOptionArray(array(
417
-                                             'uname' => _AM_SYSTEM_USERS_UNAME,
418
-                                             'email' => _AM_SYSTEM_USERS_EMAIL,
419
-                                             'last_login' => _AM_SYSTEM_USERS_LASTLOGIN,
420
-                                             'user_regdate' => _AM_SYSTEM_USERS_REGDATE,
421
-                                             'posts' => _AM_SYSTEM_USERS_POSTS));
417
+                                                'uname' => _AM_SYSTEM_USERS_UNAME,
418
+                                                'email' => _AM_SYSTEM_USERS_EMAIL,
419
+                                                'last_login' => _AM_SYSTEM_USERS_LASTLOGIN,
420
+                                                'user_regdate' => _AM_SYSTEM_USERS_REGDATE,
421
+                                                'posts' => _AM_SYSTEM_USERS_POSTS));
422 422
             $order_select = new XoopsFormSelect(_AM_SYSTEM_USERS_ORDER, 'user_order');
423 423
             $order_select->addOptionArray(array('ASC' => _AM_SYSTEM_USERS_ASC, 'DESC' => _AM_SYSTEM_USERS_DESC));
424 424
             $limit_text    = new XoopsFormText(_AM_SYSTEM_USERS_LIMIT, 'user_limit', 6, 2, 20);
Please login to merge, or discard this patch.
Spacing   +101 added lines, -101 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     exit(_NOPERM);
25 25
 }
26 26
 
27
-include_once XOOPS_ROOT_PATH . '/modules/system/admin/users/users.php';
27
+include_once XOOPS_ROOT_PATH.'/modules/system/admin/users/users.php';
28 28
 // Get Action type
29 29
 $op = system_CleanVars($_REQUEST, 'op', 'default', 'string');
30 30
 /* @var $member_handler XoopsMemberHandler */
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 
37 37
 $myts = MyTextSanitizer::getInstance();
38 38
 // Define Stylesheet
39
-$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
40
-$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css');
39
+$xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
40
+$xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/ui/'.xoops_getModuleOption('jquery_theme', 'system').'/ui.all.css');
41 41
 // Define scripts
42 42
 $xoTheme->addScript('modules/system/js/admin.js');
43 43
 // Define Breadcrumb and tips
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     // Edit user
50 50
     case 'users_edit':
51 51
         // Assign Breadcrumb menu
52
-        $xoBreadCrumb->addHelp(system_adminVersion('users', 'help') . '#edit');
52
+        $xoBreadCrumb->addHelp(system_adminVersion('users', 'help').'#edit');
53 53
         $xoBreadCrumb->addLink(_AM_SYSTEM_USERS_NAV_EDIT_USER);
54 54
         $xoBreadCrumb->render();
55 55
         form_user(false, $uid);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     // Add user
59 59
     case 'users_add':
60 60
         // Assign Breadcrumb menu
61
-        $xoBreadCrumb->addHelp(system_adminVersion('users', 'help') . '#add');
61
+        $xoBreadCrumb->addHelp(system_adminVersion('users', 'help').'#add');
62 62
         $xoBreadCrumb->addLink(_AM_SYSTEM_USERS_NAV_ADD_USER);
63 63
         $xoBreadCrumb->render();
64 64
         form_user(true);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             }
89 89
         } else {
90 90
             //Assign Breadcrumb menu
91
-            $xoBreadCrumb->addHelp(system_adminVersion('users', 'help') . '#delete');
91
+            $xoBreadCrumb->addHelp(system_adminVersion('users', 'help').'#delete');
92 92
             $xoBreadCrumb->addLink(_AM_SYSTEM_USERS_NAV_DELETE_USER);
93 93
             $xoBreadCrumb->render();
94 94
             xoops_confirm(array(
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                     if ($_REQUEST['password'] != $_REQUEST['pass2']) {
190 190
                         xoops_cp_header();
191 191
                         echo '
192
-                        <strong>' . _AM_SYSTEM_USERS_STNPDNM . '</strong>';
192
+                        <strong>' . _AM_SYSTEM_USERS_STNPDNM.'</strong>';
193 193
                         xoops_cp_footer();
194 194
                         exit();
195 195
                     }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
                 $member_handler = xoops_getHandler('member');
234 234
                 // make sure the username doesnt exist yet
235 235
                 if ($member_handler->getUserCount(new Criteria('uname', $myts->addSlashes($_REQUEST['username']))) > 0) {
236
-                    $adduser_errormsg = 'User name ' . htmlspecialchars($_REQUEST['username']) . ' already exists';
236
+                    $adduser_errormsg = 'User name '.htmlspecialchars($_REQUEST['username']).' already exists';
237 237
                 } else {
238 238
                     $newuser = $member_handler->createUser();
239 239
                     if (isset($user_viewemail)) {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                     if ($_REQUEST['pass2'] !== '') {
258 258
                         if ($_REQUEST['password'] != $_REQUEST['pass2']) {
259 259
                             xoops_cp_header();
260
-                            echo '<strong>' . _AM_SYSTEM_USERS_STNPDNM . '</strong>';
260
+                            echo '<strong>'._AM_SYSTEM_USERS_STNPDNM.'</strong>';
261 261
                             xoops_cp_footer();
262 262
                             exit();
263 263
                         }
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
                             }
287 287
                         }
288 288
                         if (!empty($groups_failed)) {
289
-                            $group_names      = $member_handler->getGroupList(new Criteria('groupid', '(' . implode(', ', $groups_failed) . ')', 'IN'));
289
+                            $group_names      = $member_handler->getGroupList(new Criteria('groupid', '('.implode(', ', $groups_failed).')', 'IN'));
290 290
                             $adduser_errormsg = sprintf(_AM_SYSTEM_USERS_CNRNU2, implode(', ', $group_names));
291 291
                         } else {
292 292
                             xoops_load('XoopsUserUtility');
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
             $group_select->addOption('', '--------------');
353 353
             foreach (array_keys($group_arr) as $i) {
354 354
                 if ($group_arr[$i]->getVar('groupid') != XOOPS_GROUP_ANONYMOUS) {
355
-                    $group_select->addOption('' . $group_arr[$i]->getVar('groupid') . '', '' . $group_arr[$i]->getVar('name') . '');
355
+                    $group_select->addOption(''.$group_arr[$i]->getVar('groupid').'', ''.$group_arr[$i]->getVar('name').'');
356 356
                 }
357 357
             }
358 358
 
@@ -473,158 +473,158 @@  discard block
 block discarded – undo
473 473
                 $match = (!empty($_REQUEST['user_uname_match'])) ? (int)$_REQUEST['user_uname_match'] : XOOPS_MATCH_START;
474 474
                 switch ($match) {
475 475
                     case XOOPS_MATCH_START:
476
-                        $criteria->add(new Criteria('uname', $myts->addSlashes(trim($_REQUEST['user_uname'])) . '%', 'LIKE'));
476
+                        $criteria->add(new Criteria('uname', $myts->addSlashes(trim($_REQUEST['user_uname'])).'%', 'LIKE'));
477 477
                         break;
478 478
                     case XOOPS_MATCH_END:
479
-                        $criteria->add(new Criteria('uname', '%' . $myts->addSlashes(trim($_REQUEST['user_uname'])), 'LIKE'));
479
+                        $criteria->add(new Criteria('uname', '%'.$myts->addSlashes(trim($_REQUEST['user_uname'])), 'LIKE'));
480 480
                         break;
481 481
                     case XOOPS_MATCH_EQUAL:
482 482
                         $criteria->add(new Criteria('uname', $myts->addSlashes(trim($_REQUEST['user_uname']))));
483 483
                         break;
484 484
                     case XOOPS_MATCH_CONTAIN:
485
-                        $criteria->add(new Criteria('uname', '%' . $myts->addSlashes(trim($_REQUEST['user_uname'])) . '%', 'LIKE'));
485
+                        $criteria->add(new Criteria('uname', '%'.$myts->addSlashes(trim($_REQUEST['user_uname'])).'%', 'LIKE'));
486 486
                         break;
487 487
                 }
488
-                $requete_pagenav .= '&amp;user_uname=' . htmlspecialchars($_REQUEST['user_uname']) . '&amp;user_uname_match=' . htmlspecialchars($_REQUEST['user_uname_match']);
489
-                $requete_search .= 'uname : ' . $_REQUEST['user_uname'] . ' et user_uname_match=' . $_REQUEST['user_uname_match'] . '<br>';
488
+                $requete_pagenav .= '&amp;user_uname='.htmlspecialchars($_REQUEST['user_uname']).'&amp;user_uname_match='.htmlspecialchars($_REQUEST['user_uname_match']);
489
+                $requete_search .= 'uname : '.$_REQUEST['user_uname'].' et user_uname_match='.$_REQUEST['user_uname_match'].'<br>';
490 490
             }
491 491
             if (!empty($_REQUEST['user_name'])) {
492 492
                 $match = (!empty($_REQUEST['user_name_match'])) ? (int)$_REQUEST['user_name_match'] : XOOPS_MATCH_START;
493 493
                 switch ($match) {
494 494
                     case XOOPS_MATCH_START:
495
-                        $criteria->add(new Criteria('name', $myts->addSlashes(trim($_REQUEST['user_name'])) . '%', 'LIKE'));
495
+                        $criteria->add(new Criteria('name', $myts->addSlashes(trim($_REQUEST['user_name'])).'%', 'LIKE'));
496 496
                         break;
497 497
                     case XOOPS_MATCH_END:
498
-                        $criteria->add(new Criteria('name', '%' . $myts->addSlashes(trim($_REQUEST['user_name'])), 'LIKE'));
498
+                        $criteria->add(new Criteria('name', '%'.$myts->addSlashes(trim($_REQUEST['user_name'])), 'LIKE'));
499 499
                         break;
500 500
                     case XOOPS_MATCH_EQUAL:
501 501
                         $criteria->add(new Criteria('name', $myts->addSlashes(trim($_REQUEST['user_name']))));
502 502
                         break;
503 503
                     case XOOPS_MATCH_CONTAIN:
504
-                        $criteria->add(new Criteria('name', '%' . $myts->addSlashes(trim($_POST['user_name'])) . '%', 'LIKE'));
504
+                        $criteria->add(new Criteria('name', '%'.$myts->addSlashes(trim($_POST['user_name'])).'%', 'LIKE'));
505 505
                         break;
506 506
                 }
507
-                $requete_pagenav .= '&amp;user_name=' . htmlspecialchars($_REQUEST['user_name']) . '&amp;user_name_match=' . htmlspecialchars($_REQUEST['user_name_match']);
508
-                $requete_search .= 'name : ' . $_REQUEST['user_name'] . ' et user_name_match=' . $_REQUEST['user_name_match'] . '<br>';
507
+                $requete_pagenav .= '&amp;user_name='.htmlspecialchars($_REQUEST['user_name']).'&amp;user_name_match='.htmlspecialchars($_REQUEST['user_name_match']);
508
+                $requete_search .= 'name : '.$_REQUEST['user_name'].' et user_name_match='.$_REQUEST['user_name_match'].'<br>';
509 509
             }
510 510
             if (!empty($_REQUEST['user_email'])) {
511 511
                 $match = (!empty($_REQUEST['user_email_match'])) ? (int)$_REQUEST['user_email_match'] : XOOPS_MATCH_START;
512 512
                 switch ($match) {
513 513
                     case XOOPS_MATCH_START:
514
-                        $criteria->add(new Criteria('email', $myts->addSlashes(trim($_REQUEST['user_email'])) . '%', 'LIKE'));
514
+                        $criteria->add(new Criteria('email', $myts->addSlashes(trim($_REQUEST['user_email'])).'%', 'LIKE'));
515 515
                         break;
516 516
                     case XOOPS_MATCH_END:
517
-                        $criteria->add(new Criteria('email', '%' . $myts->addSlashes(trim($_REQUEST['user_email'])), 'LIKE'));
517
+                        $criteria->add(new Criteria('email', '%'.$myts->addSlashes(trim($_REQUEST['user_email'])), 'LIKE'));
518 518
                         break;
519 519
                     case XOOPS_MATCH_EQUAL:
520 520
                         $criteria->add(new Criteria('email', $myts->addSlashes(trim($_REQUEST['user_email']))));
521 521
                         break;
522 522
                     case XOOPS_MATCH_CONTAIN:
523
-                        $criteria->add(new Criteria('email', '%' . $myts->addSlashes(trim($_REQUEST['user_email'])) . '%', 'LIKE'));
523
+                        $criteria->add(new Criteria('email', '%'.$myts->addSlashes(trim($_REQUEST['user_email'])).'%', 'LIKE'));
524 524
                         break;
525 525
                 }
526
-                $requete_pagenav .= '&amp;user_email=' . htmlspecialchars($_REQUEST['user_email']) . '&amp;user_email_match=' . htmlspecialchars($_REQUEST['user_email_match']);
527
-                $requete_search .= 'email : ' . $_REQUEST['user_email'] . ' et user_email_match=' . $_REQUEST['user_email_match'] . '<br>';
526
+                $requete_pagenav .= '&amp;user_email='.htmlspecialchars($_REQUEST['user_email']).'&amp;user_email_match='.htmlspecialchars($_REQUEST['user_email_match']);
527
+                $requete_search .= 'email : '.$_REQUEST['user_email'].' et user_email_match='.$_REQUEST['user_email_match'].'<br>';
528 528
             }
529 529
             if (!empty($_REQUEST['user_url'])) {
530 530
                 $url = formatURL(trim($_REQUEST['user_url']));
531
-                $criteria->add(new Criteria('url', '%' . $myts->addSlashes($url) . '%', 'LIKE'));
532
-                $requete_pagenav .= '&amp;user_url=' . htmlspecialchars($_REQUEST['user_url']);
533
-                $requete_search .= 'url : ' . $_REQUEST['user_url'] . '<br>';
531
+                $criteria->add(new Criteria('url', '%'.$myts->addSlashes($url).'%', 'LIKE'));
532
+                $requete_pagenav .= '&amp;user_url='.htmlspecialchars($_REQUEST['user_url']);
533
+                $requete_search .= 'url : '.$_REQUEST['user_url'].'<br>';
534 534
             }
535 535
             if (!empty($_REQUEST['user_icq'])) {
536 536
                 $match = (!empty($_REQUEST['user_icq_match'])) ? (int)$_REQUEST['user_icq_match'] : XOOPS_MATCH_START;
537 537
                 switch ($match) {
538 538
                     case XOOPS_MATCH_START:
539
-                        $criteria->add(new Criteria('user_icq', $myts->addSlashes(trim($_REQUEST['user_icq'])) . '%', 'LIKE'));
539
+                        $criteria->add(new Criteria('user_icq', $myts->addSlashes(trim($_REQUEST['user_icq'])).'%', 'LIKE'));
540 540
                         break;
541 541
                     case XOOPS_MATCH_END:
542
-                        $criteria->add(new Criteria('user_icq', '%' . $myts->addSlashes(trim($_REQUEST['user_icq'])), 'LIKE'));
542
+                        $criteria->add(new Criteria('user_icq', '%'.$myts->addSlashes(trim($_REQUEST['user_icq'])), 'LIKE'));
543 543
                         break;
544 544
                     case XOOPS_MATCH_EQUAL:
545 545
                         $criteria->add(new Criteria('user_icq', $myts->addSlashes(trim($_REQUEST['user_icq']))));
546 546
                         break;
547 547
                     case XOOPS_MATCH_CONTAIN:
548
-                        $criteria->add(new Criteria('user_icq', '%' . $myts->addSlashes(trim($_REQUEST['user_icq'])) . '%', 'LIKE'));
548
+                        $criteria->add(new Criteria('user_icq', '%'.$myts->addSlashes(trim($_REQUEST['user_icq'])).'%', 'LIKE'));
549 549
                         break;
550 550
                 }
551
-                $requete_pagenav .= '&amp;user_icq=' . htmlspecialchars($_REQUEST['user_icq']) . '&amp;user_icq_match=' . htmlspecialchars($_REQUEST['user_icq_match']);
552
-                $requete_search .= 'icq : ' . $_REQUEST['user_icq'] . ' et user_icq_match=' . $_REQUEST['user_icq_match'] . '<br>';
551
+                $requete_pagenav .= '&amp;user_icq='.htmlspecialchars($_REQUEST['user_icq']).'&amp;user_icq_match='.htmlspecialchars($_REQUEST['user_icq_match']);
552
+                $requete_search .= 'icq : '.$_REQUEST['user_icq'].' et user_icq_match='.$_REQUEST['user_icq_match'].'<br>';
553 553
             }
554 554
             if (!empty($_REQUEST['user_aim'])) {
555 555
                 $match = (!empty($_REQUEST['user_aim_match'])) ? (int)$_REQUEST['user_aim_match'] : XOOPS_MATCH_START;
556 556
                 switch ($match) {
557 557
                     case XOOPS_MATCH_START:
558
-                        $criteria->add(new Criteria('user_aim', $myts->addSlashes(trim($_REQUEST['user_aim'])) . '%', 'LIKE'));
558
+                        $criteria->add(new Criteria('user_aim', $myts->addSlashes(trim($_REQUEST['user_aim'])).'%', 'LIKE'));
559 559
                         break;
560 560
                     case XOOPS_MATCH_END:
561
-                        $criteria->add(new Criteria('user_aim', '%' . $myts->addSlashes(trim($_REQUEST['user_aim'])), 'LIKE'));
561
+                        $criteria->add(new Criteria('user_aim', '%'.$myts->addSlashes(trim($_REQUEST['user_aim'])), 'LIKE'));
562 562
                         break;
563 563
                     case XOOPS_MATCH_EQUAL:
564 564
                         $criteria->add(new Criteria('user_aim', $myts->addSlashes(trim($_REQUEST['user_aim']))));
565 565
                         break;
566 566
                     case XOOPS_MATCH_CONTAIN:
567
-                        $criteria->add(new Criteria('user_aim', '%' . $myts->addSlashes(trim($_REQUEST['user_aim'])) . '%', 'LIKE'));
567
+                        $criteria->add(new Criteria('user_aim', '%'.$myts->addSlashes(trim($_REQUEST['user_aim'])).'%', 'LIKE'));
568 568
                         break;
569 569
                 }
570
-                $requete_pagenav .= '&amp;user_aim=' . htmlspecialchars($_REQUEST['user_aim']) . '&amp;user_aim_match=' . htmlspecialchars($_REQUEST['user_aim_match']);
571
-                $requete_search .= 'aim : ' . $_REQUEST['user_aim'] . ' et user_aim_match=' . $_REQUEST['user_aim_match'] . '<br>';
570
+                $requete_pagenav .= '&amp;user_aim='.htmlspecialchars($_REQUEST['user_aim']).'&amp;user_aim_match='.htmlspecialchars($_REQUEST['user_aim_match']);
571
+                $requete_search .= 'aim : '.$_REQUEST['user_aim'].' et user_aim_match='.$_REQUEST['user_aim_match'].'<br>';
572 572
             }
573 573
             if (!empty($_REQUEST['user_yim'])) {
574 574
                 $match = (!empty($_REQUEST['user_yim_match'])) ? (int)$_REQUEST['user_yim_match'] : XOOPS_MATCH_START;
575 575
                 switch ($match) {
576 576
                     case XOOPS_MATCH_START:
577
-                        $criteria->add(new Criteria('user_yim', $myts->addSlashes(trim($_REQUEST['user_yim'])) . '%', 'LIKE'));
577
+                        $criteria->add(new Criteria('user_yim', $myts->addSlashes(trim($_REQUEST['user_yim'])).'%', 'LIKE'));
578 578
                         break;
579 579
                     case XOOPS_MATCH_END:
580
-                        $criteria->add(new Criteria('user_yim', '%' . $myts->addSlashes(trim($_REQUEST['user_yim'])), 'LIKE'));
580
+                        $criteria->add(new Criteria('user_yim', '%'.$myts->addSlashes(trim($_REQUEST['user_yim'])), 'LIKE'));
581 581
                         break;
582 582
                     case XOOPS_MATCH_EQUAL:
583 583
                         $criteria->add(new Criteria('user_yim', $myts->addSlashes(trim($_REQUEST['user_yim']))));
584 584
                         break;
585 585
                     case XOOPS_MATCH_CONTAIN:
586
-                        $criteria->add(new Criteria('user_yim', '%' . $myts->addSlashes(trim($_REQUEST['user_yim'])) . '%', 'LIKE'));
586
+                        $criteria->add(new Criteria('user_yim', '%'.$myts->addSlashes(trim($_REQUEST['user_yim'])).'%', 'LIKE'));
587 587
                         break;
588 588
                 }
589
-                $requete_pagenav .= '&amp;user_yim=' . htmlspecialchars($_REQUEST['user_yim']) . '&amp;user_yim_match=' . htmlspecialchars($_REQUEST['user_yim_match']);
590
-                $requete_search .= 'yim : ' . $_REQUEST['user_yim'] . ' et user_yim_match=' . $_REQUEST['user_yim_match'] . '<br>';
589
+                $requete_pagenav .= '&amp;user_yim='.htmlspecialchars($_REQUEST['user_yim']).'&amp;user_yim_match='.htmlspecialchars($_REQUEST['user_yim_match']);
590
+                $requete_search .= 'yim : '.$_REQUEST['user_yim'].' et user_yim_match='.$_REQUEST['user_yim_match'].'<br>';
591 591
             }
592 592
             if (!empty($_REQUEST['user_msnm'])) {
593 593
                 $match = (!empty($_REQUEST['user_msnm_match'])) ? (int)$_REQUEST['user_msnm_match'] : XOOPS_MATCH_START;
594 594
                 switch ($match) {
595 595
                     case XOOPS_MATCH_START:
596
-                        $criteria->add(new Criteria('user_msnm', $myts->addSlashes(trim($_REQUEST['user_msnm'])) . '%', 'LIKE'));
596
+                        $criteria->add(new Criteria('user_msnm', $myts->addSlashes(trim($_REQUEST['user_msnm'])).'%', 'LIKE'));
597 597
                         break;
598 598
                     case XOOPS_MATCH_END:
599
-                        $criteria->add(new Criteria('user_msnm', '%' . $myts->addSlashes(trim($_REQUEST['user_msnm'])), 'LIKE'));
599
+                        $criteria->add(new Criteria('user_msnm', '%'.$myts->addSlashes(trim($_REQUEST['user_msnm'])), 'LIKE'));
600 600
                         break;
601 601
                     case XOOPS_MATCH_EQUAL:
602 602
                         $criteria->add(new Criteria('user_msnm', $myts->addSlashes(trim($_REQUEST['user_msnm']))));
603 603
                         break;
604 604
                     case XOOPS_MATCH_CONTAIN:
605
-                        $criteria->add(new Criteria('user_msnm', '%' . $myts->addSlashes(trim($_REQUEST['user_msnm'])) . '%', 'LIKE'));
605
+                        $criteria->add(new Criteria('user_msnm', '%'.$myts->addSlashes(trim($_REQUEST['user_msnm'])).'%', 'LIKE'));
606 606
                         break;
607 607
                 }
608
-                $requete_pagenav .= '&amp;user_msnm=' . htmlspecialchars($_REQUEST['user_msnm']) . '&amp;user_msnm_match=' . htmlspecialchars($_REQUEST['user_msnm_match']);
609
-                $requete_search .= 'msn : ' . $_REQUEST['user_msnm'] . ' et user_msnm_match=' . $_REQUEST['user_msnm_match'] . '<br>';
608
+                $requete_pagenav .= '&amp;user_msnm='.htmlspecialchars($_REQUEST['user_msnm']).'&amp;user_msnm_match='.htmlspecialchars($_REQUEST['user_msnm_match']);
609
+                $requete_search .= 'msn : '.$_REQUEST['user_msnm'].' et user_msnm_match='.$_REQUEST['user_msnm_match'].'<br>';
610 610
             }
611 611
 
612 612
             if (!empty($_REQUEST['user_from'])) {
613
-                $criteria->add(new Criteria('user_from', '%' . $myts->addSlashes(trim($_REQUEST['user_from'])) . '%', 'LIKE'));
614
-                $requete_pagenav .= '&amp;user_from=' . htmlspecialchars($_REQUEST['user_from']);
615
-                $requete_search .= 'from : ' . $_REQUEST['user_from'] . '<br>';
613
+                $criteria->add(new Criteria('user_from', '%'.$myts->addSlashes(trim($_REQUEST['user_from'])).'%', 'LIKE'));
614
+                $requete_pagenav .= '&amp;user_from='.htmlspecialchars($_REQUEST['user_from']);
615
+                $requete_search .= 'from : '.$_REQUEST['user_from'].'<br>';
616 616
             }
617 617
 
618 618
             if (!empty($_REQUEST['user_intrest'])) {
619
-                $criteria->add(new Criteria('user_intrest', '%' . $myts->addSlashes(trim($_REQUEST['user_intrest'])) . '%', 'LIKE'));
620
-                $requete_pagenav .= '&amp;user_intrest=' . htmlspecialchars($_REQUEST['user_intrest']);
621
-                $requete_search .= 'interet : ' . $_REQUEST['user_intrest'] . '<br>';
619
+                $criteria->add(new Criteria('user_intrest', '%'.$myts->addSlashes(trim($_REQUEST['user_intrest'])).'%', 'LIKE'));
620
+                $requete_pagenav .= '&amp;user_intrest='.htmlspecialchars($_REQUEST['user_intrest']);
621
+                $requete_search .= 'interet : '.$_REQUEST['user_intrest'].'<br>';
622 622
             }
623 623
 
624 624
             if (!empty($_REQUEST['user_occ'])) {
625
-                $criteria->add(new Criteria('user_occ', '%' . $myts->addSlashes(trim($_REQUEST['user_occ'])) . '%', 'LIKE'));
626
-                $requete_pagenav .= '&amp;user_occ=' . htmlspecialchars($_REQUEST['user_occ']);
627
-                $requete_search .= 'location : ' . $_REQUEST['user_occ'] . '<br>';
625
+                $criteria->add(new Criteria('user_occ', '%'.$myts->addSlashes(trim($_REQUEST['user_occ'])).'%', 'LIKE'));
626
+                $requete_pagenav .= '&amp;user_occ='.htmlspecialchars($_REQUEST['user_occ']);
627
+                $requete_search .= 'location : '.$_REQUEST['user_occ'].'<br>';
628 628
             }
629 629
 
630 630
             if (!empty($_REQUEST['user_lastlog_more']) && is_numeric($_REQUEST['user_lastlog_more'])) {
@@ -633,8 +633,8 @@  discard block
 block discarded – undo
633 633
                 if ($time > 0) {
634 634
                     $criteria->add(new Criteria('last_login', $time, '<'));
635 635
                 }
636
-                $requete_pagenav .= '&amp;user_lastlog_more=' . htmlspecialchars($_REQUEST['user_lastlog_more']);
637
-                $requete_search .= 'derniere connexion apres : ' . $_REQUEST['user_lastlog_more'] . '<br>';
636
+                $requete_pagenav .= '&amp;user_lastlog_more='.htmlspecialchars($_REQUEST['user_lastlog_more']);
637
+                $requete_search .= 'derniere connexion apres : '.$_REQUEST['user_lastlog_more'].'<br>';
638 638
             }
639 639
 
640 640
             if (!empty($_REQUEST['user_lastlog_less']) && is_numeric($_REQUEST['user_lastlog_less'])) {
@@ -643,8 +643,8 @@  discard block
 block discarded – undo
643 643
                 if ($time > 0) {
644 644
                     $criteria->add(new Criteria('last_login', $time, '>'));
645 645
                 }
646
-                $requete_pagenav .= '&amp;user_lastlog_less=' . htmlspecialchars($_REQUEST['user_lastlog_less']);
647
-                $requete_search .= 'derniere connexion avant : ' . $_REQUEST['user_lastlog_less'] . '<br>';
646
+                $requete_pagenav .= '&amp;user_lastlog_less='.htmlspecialchars($_REQUEST['user_lastlog_less']);
647
+                $requete_search .= 'derniere connexion avant : '.$_REQUEST['user_lastlog_less'].'<br>';
648 648
             }
649 649
 
650 650
             if (!empty($_REQUEST['user_reg_more']) && is_numeric($_REQUEST['user_reg_more'])) {
@@ -653,8 +653,8 @@  discard block
 block discarded – undo
653 653
                 if ($time > 0) {
654 654
                     $criteria->add(new Criteria('user_regdate', $time, '<'));
655 655
                 }
656
-                $requete_pagenav .= '&amp;user_regdate=' . htmlspecialchars($_REQUEST['user_regdate']);
657
-                $requete_search .= 'enregistre apres : ' . $_REQUEST['user_reg_more'] . '<br>';
656
+                $requete_pagenav .= '&amp;user_regdate='.htmlspecialchars($_REQUEST['user_regdate']);
657
+                $requete_search .= 'enregistre apres : '.$_REQUEST['user_reg_more'].'<br>';
658 658
             }
659 659
 
660 660
             if (!empty($_REQUEST['user_reg_less']) && is_numeric($_REQUEST['user_reg_less'])) {
@@ -663,20 +663,20 @@  discard block
 block discarded – undo
663 663
                 if ($time > 0) {
664 664
                     $criteria->add(new Criteria('user_regdate', $time, '>'));
665 665
                 }
666
-                $requete_pagenav .= '&amp;user_reg_less=' . htmlspecialchars($_REQUEST['user_reg_less']);
667
-                $requete_search .= 'enregistre avant : ' . $_REQUEST['user_reg_less'] . '<br>';
666
+                $requete_pagenav .= '&amp;user_reg_less='.htmlspecialchars($_REQUEST['user_reg_less']);
667
+                $requete_search .= 'enregistre avant : '.$_REQUEST['user_reg_less'].'<br>';
668 668
             }
669 669
 
670 670
             if (!empty($_REQUEST['user_posts_more']) && is_numeric($_REQUEST['user_posts_more'])) {
671 671
                 $criteria->add(new Criteria('posts', (int)$_REQUEST['user_posts_more'], '>'));
672
-                $requete_pagenav .= '&amp;user_posts_more=' . htmlspecialchars($_REQUEST['user_posts_more']);
673
-                $requete_search .= 'posts plus de : ' . $_REQUEST['user_posts_more'] . '<br>';
672
+                $requete_pagenav .= '&amp;user_posts_more='.htmlspecialchars($_REQUEST['user_posts_more']);
673
+                $requete_search .= 'posts plus de : '.$_REQUEST['user_posts_more'].'<br>';
674 674
             }
675 675
 
676 676
             if (!empty($_REQUEST['user_posts_less']) && is_numeric($_REQUEST['user_posts_less'])) {
677 677
                 $criteria->add(new Criteria('posts', (int)$_REQUEST['user_posts_less'], '<'));
678
-                $requete_pagenav .= '&amp;user_posts_less=' . htmlspecialchars($_REQUEST['user_posts_less']);
679
-                $requete_search .= 'post moins de : ' . $_REQUEST['user_posts_less'] . '<br>';
678
+                $requete_pagenav .= '&amp;user_posts_less='.htmlspecialchars($_REQUEST['user_posts_less']);
679
+                $requete_search .= 'post moins de : '.$_REQUEST['user_posts_less'].'<br>';
680 680
             }
681 681
 
682 682
             if (isset($_REQUEST['user_mailok'])) {
@@ -687,8 +687,8 @@  discard block
 block discarded – undo
687 687
                 } else {
688 688
                     $criteria->add(new Criteria('user_mailok', 0, '>='));
689 689
                 }
690
-                $requete_pagenav .= '&amp;user_mailok=' . htmlspecialchars($_REQUEST['user_mailok']);
691
-                $requete_search .= 'accept email : ' . $_REQUEST['user_mailok'] . '<br>';
690
+                $requete_pagenav .= '&amp;user_mailok='.htmlspecialchars($_REQUEST['user_mailok']);
691
+                $requete_search .= 'accept email : '.$_REQUEST['user_mailok'].'<br>';
692 692
             }
693 693
 
694 694
             if (isset($_REQUEST['user_type']) && !empty($_REQUEST['user_type'])) {
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
                     $user_type = 'actv';
702 702
                     $requete_search .= 'actif ou inactif : actif<br>';
703 703
                 }
704
-                $requete_pagenav .= '&amp;user_type=' . htmlspecialchars($_REQUEST['user_type']);
704
+                $requete_pagenav .= '&amp;user_type='.htmlspecialchars($_REQUEST['user_type']);
705 705
             } else {
706 706
                 $criteria->add(new Criteria('level', 0, '>='));
707 707
                 $user_type = '';
@@ -712,32 +712,32 @@  discard block
 block discarded – undo
712 712
             $validsort = array('uname', 'email', 'last_login', 'user_regdate', 'posts');
713 713
             if (isset($_REQUEST['user_sort'])) {
714 714
                 $sort = (!in_array($_REQUEST['user_sort'], $validsort)) ? 'user_regdate' : $_REQUEST['user_sort'];
715
-                $requete_pagenav .= '&amp;user_sort=' . htmlspecialchars($_REQUEST['user_sort']);
716
-                $requete_search .= 'order by : ' . $sort . '<br>';
715
+                $requete_pagenav .= '&amp;user_sort='.htmlspecialchars($_REQUEST['user_sort']);
716
+                $requete_search .= 'order by : '.$sort.'<br>';
717 717
             } else {
718 718
                 $sort = 'user_regdate';
719 719
                 $requete_pagenav .= '&amp;user_sort=user_regdate';
720
-                $requete_search .= 'order by : ' . $sort . '<br>';
720
+                $requete_search .= 'order by : '.$sort.'<br>';
721 721
             }
722 722
 
723 723
             $order = 'DESC';
724 724
             if (isset($_REQUEST['user_order']) && $_REQUEST['user_order'] === 'ASC') {
725 725
                 $requete_pagenav .= '&amp;user_order=ASC';
726
-                $requete_search .= 'tris : ' . $order . '<br>';
726
+                $requete_search .= 'tris : '.$order.'<br>';
727 727
             } else {
728 728
                 //$order = "ASC";
729 729
                 $requete_pagenav .= '&amp;user_order=DESC';
730
-                $requete_search .= 'tris : ' . $order . '<br>';
730
+                $requete_search .= 'tris : '.$order.'<br>';
731 731
             }
732 732
 
733 733
             $user_limit = xoops_getModuleOption('users_pager', 'system');
734 734
             if (isset($_REQUEST['user_limit'])) {
735 735
                 $user_limit = $_REQUEST['user_limit'];
736
-                $requete_pagenav .= '&amp;user_limit=' . htmlspecialchars($_REQUEST['user_limit']);
737
-                $requete_search .= 'limit : ' . $user_limit . '<br>';
736
+                $requete_pagenav .= '&amp;user_limit='.htmlspecialchars($_REQUEST['user_limit']);
737
+                $requete_search .= 'limit : '.$user_limit.'<br>';
738 738
             } else {
739
-                $requete_pagenav .= '&amp;user_limit=' . xoops_getModuleOption('users_pager', 'system');
740
-                $requete_search .= 'limit : ' . $user_limit . '<br>';
739
+                $requete_pagenav .= '&amp;user_limit='.xoops_getModuleOption('users_pager', 'system');
740
+                $requete_search .= 'limit : '.$user_limit.'<br>';
741 741
             }
742 742
 
743 743
             $start = (!empty($_REQUEST['start'])) ? (int)$_REQUEST['start'] : 0;
@@ -745,14 +745,14 @@  discard block
 block discarded – undo
745 745
             if (isset($_REQUEST['selgroups'])) {
746 746
                 if ($_REQUEST['selgroups'] != 0) {
747 747
                     if (count($_REQUEST['selgroups']) == 1) {
748
-                        $groups = array( 0 => (int) $_REQUEST['selgroups']);
748
+                        $groups = array(0 => (int)$_REQUEST['selgroups']);
749 749
                     } else {
750 750
                         $groups = array_map('intval', $_REQUEST['selgroups']);
751 751
                     }
752 752
                 } else {
753 753
                     $groups = array();
754 754
                 }
755
-                $requete_pagenav .= '&amp;selgroups=' . htmlspecialchars($_REQUEST['selgroups']);
755
+                $requete_pagenav .= '&amp;selgroups='.htmlspecialchars($_REQUEST['selgroups']);
756 756
             } else {
757 757
                 $groups = array();
758 758
             }
@@ -766,7 +766,7 @@  discard block
 block discarded – undo
766 766
                 $users_count = $member_handler->getUserCountByGroupLink($groups, $criteria);
767 767
             }
768 768
             if ($start < $users_count) {
769
-                echo sprintf(_AM_SYSTEM_USERS_USERSFOUND, $users_count) . '<br>';
769
+                echo sprintf(_AM_SYSTEM_USERS_USERSFOUND, $users_count).'<br>';
770 770
                 $criteria->setSort($sort);
771 771
                 $criteria->setOrder($order);
772 772
                 $criteria->setLimit($user_limit);
@@ -787,32 +787,32 @@  discard block
 block discarded – undo
787 787
 
788 788
             $user_uname = (!isset($_REQUEST['user_uname'])) ? '' : $_REQUEST['user_uname'];
789 789
             //Form tris
790
-            $form          = '<form action="admin.php?fct=users" method="post">
791
-                    ' . _AM_SYSTEM_USERS_SEARCH_USER . '<input type="text" name="user_uname" value="' . $myts->htmlSpecialChars($user_uname) . '" size="15">
790
+            $form = '<form action="admin.php?fct=users" method="post">
791
+                    ' . _AM_SYSTEM_USERS_SEARCH_USER.'<input type="text" name="user_uname" value="'.$myts->htmlSpecialChars($user_uname).'" size="15">
792 792
                     <select name="selgroups">
793
-                        <option value="" selected>' . _AM_SYSTEM_USERS_ALLGROUP . '</option>';
793
+                        <option value="" selected>' . _AM_SYSTEM_USERS_ALLGROUP.'</option>';
794 794
             /* @var $group_handler XoopsGroupHandler */
795 795
             $group_handler = xoops_getHandler('group');
796 796
             $group_arr     = $group_handler->getObjects();
797 797
             foreach (array_keys($group_arr) as $i) {
798 798
                 if ($group_arr[$i]->getVar('groupid') != XOOPS_GROUP_ANONYMOUS) {
799
-                    $form .= '<option value="' . $group_arr[$i]->getVar('groupid') . '"  ' . ($selgroups == $group_arr[$i]->getVar('groupid') ? ' selected' : '') . '>' . $group_arr[$i]->getVar('name') . '</option>';
799
+                    $form .= '<option value="'.$group_arr[$i]->getVar('groupid').'"  '.($selgroups == $group_arr[$i]->getVar('groupid') ? ' selected' : '').'>'.$group_arr[$i]->getVar('name').'</option>';
800 800
                 }
801 801
             }
802 802
             $form .= '</select>&nbsp;
803 803
                 <select name="user_type">
804
-                    <option value="" ' . ($user_type === '' ? ' selected' : '') . '>' . _AM_SYSTEM_USERS_ALLUSER . '</option>
805
-                    <option value="actv" ' . ($user_type === 'actv' ? ' selected' : '') . '>' . _AM_SYSTEM_USERS_ACTIVEUSER . '</option>
806
-                    <option value="inactv" ' . ($user_type === 'inactv' ? ' selected' : '') . '>' . _AM_SYSTEM_USERS_INACTIVEUSER . '</option>
804
+                    <option value="" ' . ($user_type === '' ? ' selected' : '').'>'._AM_SYSTEM_USERS_ALLUSER.'</option>
805
+                    <option value="actv" ' . ($user_type === 'actv' ? ' selected' : '').'>'._AM_SYSTEM_USERS_ACTIVEUSER.'</option>
806
+                    <option value="inactv" ' . ($user_type === 'inactv' ? ' selected' : '').'>'._AM_SYSTEM_USERS_INACTIVEUSER.'</option>
807 807
                 </select>&nbsp;
808 808
                 <select name="user_limit">
809
-                    <option value="20" ' . ($user_limit == 20 ? ' selected' : '') . '>20</option>
810
-                    <option value="50" ' . ($user_limit == 50 ? ' selected' : '') . '>50</option>
811
-                    <option value="100" ' . ($user_limit == 100 ? ' selected' : '') . '>100</option>
809
+                    <option value="20" ' . ($user_limit == 20 ? ' selected' : '').'>20</option>
810
+                    <option value="50" ' . ($user_limit == 50 ? ' selected' : '').'>50</option>
811
+                    <option value="100" ' . ($user_limit == 100 ? ' selected' : '').'>100</option>
812 812
                 </select>&nbsp;
813 813
                 <input type="hidden" name="user_uname_match" value="XOOPS_MATCH_START" />
814
-                <input type="submit" value="' . _AM_SYSTEM_USERS_SEARCH . '" name="speed_search">&nbsp;
815
-                <input type="submit" value="' . _AM_SYSTEM_USERS_ADVANCED_SEARCH . '" name="complet_search"></form>
814
+                <input type="submit" value="' . _AM_SYSTEM_USERS_SEARCH.'" name="speed_search">&nbsp;
815
+                <input type="submit" value="' . _AM_SYSTEM_USERS_ADVANCED_SEARCH.'" name="complet_search"></form>
816 816
                 ';
817 817
 
818 818
             //select groupe
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
             $group_arr     = $group_handler->getObjects();
823 823
             foreach (array_keys($group_arr) as $i) {
824 824
                 if ($group_arr[$i]->getVar('groupid') != XOOPS_GROUP_ANONYMOUS) {
825
-                    $form_select_groups .= '<option value="' . $group_arr[$i]->getVar('groupid') . '"  ' . ($selgroups == $group_arr[$i]->getVar('groupid') ? ' selected' : '') . '>' . $group_arr[$i]->getVar('name') . '</option>';
825
+                    $form_select_groups .= '<option value="'.$group_arr[$i]->getVar('groupid').'"  '.($selgroups == $group_arr[$i]->getVar('groupid') ? ' selected' : '').'>'.$group_arr[$i]->getVar('name').'</option>';
826 826
                 }
827 827
             }
828 828
             $form_select_groups .= '</select><input type="hidden" name="op" value="users_add_delete_group">';
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
                     $users['uname']       = $users_arr[$i]->getVar('uname');
856 856
                     $users['email']       = $users_arr[$i]->getVar('email');
857 857
                     $users['url']         = $users_arr[$i]->getVar('url');
858
-                    $users['user_avatar'] = ($users_arr[$i]->getVar('user_avatar') === 'blank.gif') ? system_AdminIcons('anonymous.png') : XOOPS_URL . '/uploads/' . $users_arr[$i]->getVar('user_avatar');
858
+                    $users['user_avatar'] = ($users_arr[$i]->getVar('user_avatar') === 'blank.gif') ? system_AdminIcons('anonymous.png') : XOOPS_URL.'/uploads/'.$users_arr[$i]->getVar('user_avatar');
859 859
                     $users['reg_date']    = formatTimestamp($users_arr[$i]->getVar('user_regdate'), 'm');
860 860
                     if ($users_arr[$i]->getVar('last_login') > 0) {
861 861
                         $users['last_login'] = formatTimestamp($users_arr[$i]->getVar('last_login'), 'm');
@@ -879,8 +879,8 @@  discard block
 block discarded – undo
879 879
             }
880 880
 
881 881
             if ($users_count > $user_limit) {
882
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
883
-                $nav = new XoopsPageNav($users_count, $user_limit, $start, 'start', 'fct=users&amp;op=default' . $requete_pagenav);
882
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
883
+                $nav = new XoopsPageNav($users_count, $user_limit, $start, 'start', 'fct=users&amp;op=default'.$requete_pagenav);
884 884
                 $xoopsTpl->assign('nav', $nav->renderNav());
885 885
             }
886 886
         }
Please login to merge, or discard this patch.
htdocs/modules/system/admin/modulesadmin/modulesadmin.php 1 patch
Spacing   +186 added lines, -186 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 {
33 33
     global $xoopsUser, $xoopsConfig;
34 34
     $dirname        = trim($dirname);
35
-    $db             =& $GLOBALS['xoopsDB'];
35
+    $db             = & $GLOBALS['xoopsDB'];
36 36
     $reservedTables = array(
37 37
         'avatar',
38 38
         'avatar_users_link',
@@ -81,19 +81,19 @@  discard block
 block discarded – undo
81 81
         $msgs  = array();
82 82
 
83 83
         $msgs[] = '<div id="xo-module-log"><div class="header">';
84
-        $msgs[] = $errs[] = '<h4>' . _AM_SYSTEM_MODULES_INSTALLING . $module->getInfo('name', 's') . '</h4>';
84
+        $msgs[] = $errs[] = '<h4>'._AM_SYSTEM_MODULES_INSTALLING.$module->getInfo('name', 's').'</h4>';
85 85
         if ($module->getInfo('image') !== false && trim($module->getInfo('image')) != '') {
86
-            $msgs[] = '<a href="' . XOOPS_URL . '/modules/' . $module->getInfo('dirname', 'e') . '/' . $module->getInfo('adminindex') . '"><img src="' . XOOPS_URL . '/modules/' . $dirname . '/' . trim($module->getInfo('image')) . '" alt="" /></a>';
86
+            $msgs[] = '<a href="'.XOOPS_URL.'/modules/'.$module->getInfo('dirname', 'e').'/'.$module->getInfo('adminindex').'"><img src="'.XOOPS_URL.'/modules/'.$dirname.'/'.trim($module->getInfo('image')).'" alt="" /></a>';
87 87
         }
88
-        $msgs[] = '<strong>' . _VERSION . ':</strong> ' . $module->getInfo('version') . '&nbsp;' . $module->getInfo('module_status');
88
+        $msgs[] = '<strong>'._VERSION.':</strong> '.$module->getInfo('version').'&nbsp;'.$module->getInfo('module_status');
89 89
         if ($module->getInfo('author') !== false && trim($module->getInfo('author')) != '') {
90
-            $msgs[] = '<strong>' . _AUTHOR . ':</strong> ' . htmlspecialchars(trim($module->getInfo('author')));
90
+            $msgs[] = '<strong>'._AUTHOR.':</strong> '.htmlspecialchars(trim($module->getInfo('author')));
91 91
         }
92 92
         $msgs[] = '</div><div class="logger">';
93 93
         // Load module specific install script if any
94 94
         $install_script = $module->getInfo('onInstall');
95 95
         if ($install_script && trim($install_script) != '') {
96
-            include_once XOOPS_ROOT_PATH . '/modules/' . $dirname . '/' . trim($install_script);
96
+            include_once XOOPS_ROOT_PATH.'/modules/'.$dirname.'/'.trim($install_script);
97 97
         }
98 98
         $func = "xoops_module_pre_install_{$dirname}";
99 99
         // If pre install function is defined, execute
@@ -101,10 +101,10 @@  discard block
 block discarded – undo
101 101
             $result = $func($module);
102 102
             if (!$result) {
103 103
                 $error  = true;
104
-                $errs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func) . '</p>';
104
+                $errs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func).'</p>';
105 105
                 $errs   = array_merge($errs, $module->getErrors());
106 106
             } else {
107
-                $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, "<strong>{$func}</strong>") . '</p>';
107
+                $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, "<strong>{$func}</strong>").'</p>';
108 108
                 $msgs += $module->getErrors();
109 109
             }
110 110
         }
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
         if ($error === false) {
113 113
             $sqlfile = $module->getInfo('sqlfile');
114 114
             if (is_array($sqlfile) && !empty($sqlfile[XOOPS_DB_TYPE])) {
115
-                $sql_file_path = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/' . $sqlfile[XOOPS_DB_TYPE];
115
+                $sql_file_path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/'.$sqlfile[XOOPS_DB_TYPE];
116 116
                 if (!file_exists($sql_file_path)) {
117
-                    $errs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_SQL_NOT_FOUND, "<strong>{$sql_file_path}</strong>");
117
+                    $errs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_SQL_NOT_FOUND, "<strong>{$sql_file_path}</strong>");
118 118
                     $error  = true;
119 119
                 } else {
120
-                    $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_SQL_FOUND, "<strong>{$sql_file_path}</strong>") . '<br  />' . _AM_SYSTEM_MODULES_CREATE_TABLES;
121
-                    include_once XOOPS_ROOT_PATH . '/class/database/sqlutility.php';
120
+                    $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_SQL_FOUND, "<strong>{$sql_file_path}</strong>").'<br  />'._AM_SYSTEM_MODULES_CREATE_TABLES;
121
+                    include_once XOOPS_ROOT_PATH.'/class/database/sqlutility.php';
122 122
                     $sql_query = fread(fopen($sql_file_path, 'r'), filesize($sql_file_path));
123 123
                     $sql_query = trim($sql_query);
124 124
                     SqlUtility::splitMySqlFile($pieces, $sql_query);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                         // [4] contains unprefixed table name
129 129
                         $prefixed_query = SqlUtility::prefixQuery($piece, $db->prefix());
130 130
                         if (!$prefixed_query) {
131
-                            $errs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_SQL_NOT_VALID, '<strong>' . $piece . '</strong>');
131
+                            $errs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_SQL_NOT_VALID, '<strong>'.$piece.'</strong>');
132 132
                             $error  = true;
133 133
                             break;
134 134
                         }
@@ -141,15 +141,15 @@  discard block
 block discarded – undo
141 141
                                 break;
142 142
                             } else {
143 143
                                 if (!in_array($prefixed_query[4], $created_tables)) {
144
-                                    $msgs[]           = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TABLE_CREATED, '<strong>' . $db->prefix($prefixed_query[4]) . '</strong>');
144
+                                    $msgs[]           = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TABLE_CREATED, '<strong>'.$db->prefix($prefixed_query[4]).'</strong>');
145 145
                                     $created_tables[] = $prefixed_query[4];
146 146
                                 } else {
147
-                                    $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_INSERT_DATA, '<strong>' . $db->prefix($prefixed_query[4]) . '</strong>');
147
+                                    $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_INSERT_DATA, '<strong>'.$db->prefix($prefixed_query[4]).'</strong>');
148 148
                                 }
149 149
                             }
150 150
                         } else {
151 151
                             // the table name is reserved, so halt the installation
152
-                            $errs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TABLE_RESERVED, '<strong>' . $prefixed_query[4] . '</strong>');
152
+                            $errs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TABLE_RESERVED, '<strong>'.$prefixed_query[4].'</strong>');
153 153
                             $error  = true;
154 154
                             break;
155 155
                         }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                     // if there was an error, delete the tables created so far, so the next installation will not fail
158 158
                     if ($error === true) {
159 159
                         foreach ($created_tables as $ct) {
160
-                            $db->query('DROP TABLE ' . $db->prefix($ct));
160
+                            $db->query('DROP TABLE '.$db->prefix($ct));
161 161
                         }
162 162
                     }
163 163
                 }
@@ -166,13 +166,13 @@  discard block
 block discarded – undo
166 166
         // if no error, save the module info and blocks info associated with it
167 167
         if ($error === false) {
168 168
             if (!$module_handler->insert($module)) {
169
-                $errs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_INSERT_DATA_FAILD, '<strong>' . $module->getVar('name') . '</strong>');
169
+                $errs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_INSERT_DATA_FAILD, '<strong>'.$module->getVar('name').'</strong>');
170 170
                 foreach ($created_tables as $ct) {
171
-                    $db->query('DROP TABLE ' . $db->prefix($ct));
171
+                    $db->query('DROP TABLE '.$db->prefix($ct));
172 172
                 }
173
-                $ret = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILINS, '<strong>' . $module->name() . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br>';
173
+                $ret = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILINS, '<strong>'.$module->name().'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br>';
174 174
                 foreach ($errs as $err) {
175
-                    $ret .= ' - ' . $err . '<br>';
175
+                    $ret .= ' - '.$err.'<br>';
176 176
                 }
177 177
                 $ret .= '</p>';
178 178
                 unset($module, $created_tables, $errs, $msgs);
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
             } else {
182 182
                 $newmid = $module->getVar('mid');
183 183
                 unset($created_tables);
184
-                $msgs[]          = '<p>' . _AM_SYSTEM_MODULES_INSERT_DATA_DONE . sprintf(_AM_SYSTEM_MODULES_MODULEID, '<strong>' . $newmid . '</strong>');
184
+                $msgs[]          = '<p>'._AM_SYSTEM_MODULES_INSERT_DATA_DONE.sprintf(_AM_SYSTEM_MODULES_MODULEID, '<strong>'.$newmid.'</strong>');
185 185
                 $tplfile_handler = xoops_getHandler('tplfile');
186 186
                 $templates       = $module->getInfo('templates');
187 187
                 if ($templates !== false) {
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                     foreach ($templates as $tpl) {
190 190
                         $tplfile = $tplfile_handler->create();
191 191
                         $type    = (isset($tpl['type']) ? $tpl['type'] : 'module');
192
-                        $tpldata =&  xoops_module_gettemplate($dirname, $tpl['file'], $type);
192
+                        $tpldata = &  xoops_module_gettemplate($dirname, $tpl['file'], $type);
193 193
                         $tplfile->setVar('tpl_source', $tpldata, true);
194 194
                         $tplfile->setVar('tpl_refid', $newmid);
195 195
 
@@ -201,22 +201,22 @@  discard block
 block discarded – undo
201 201
                         $tplfile->setVar('tpl_lastimported', time());
202 202
                         $tplfile->setVar('tpl_type', $type);
203 203
                         if (!$tplfile_handler->insert($tplfile)) {
204
-                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_ERROR, '<strong>' . $tpl['file'] . '</strong>') . '</span>';
204
+                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_ERROR, '<strong>'.$tpl['file'].'</strong>').'</span>';
205 205
                         } else {
206 206
                             $newtplid = $tplfile->getVar('tpl_id');
207
-                            $msgs[]   = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_DATA, '<strong>' . $tpl['file'] . '</strong>') . '(ID: <strong>' . $newtplid . '</strong>)';
207
+                            $msgs[]   = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_DATA, '<strong>'.$tpl['file'].'</strong>').'(ID: <strong>'.$newtplid.'</strong>)';
208 208
                             // generate compiled file
209
-                            include_once XOOPS_ROOT_PATH . '/class/template.php';
209
+                            include_once XOOPS_ROOT_PATH.'/class/template.php';
210 210
                             if (!xoops_template_touch($newtplid)) {
211
-                                $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_COMPILED_FAILED, '<strong>' . $tpl['file'] . '</strong>') . '</span>';
211
+                                $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_COMPILED_FAILED, '<strong>'.$tpl['file'].'</strong>').'</span>';
212 212
                             } else {
213
-                                $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_COMPILED, '<strong>' . $tpl['file'] . '</strong>');
213
+                                $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_COMPILED, '<strong>'.$tpl['file'].'</strong>');
214 214
                             }
215 215
                         }
216 216
                         unset($tplfile, $tpldata);
217 217
                     }
218 218
                 }
219
-                include_once XOOPS_ROOT_PATH . '/class/template.php';
219
+                include_once XOOPS_ROOT_PATH.'/class/template.php';
220 220
                 xoops_template_clear_module_cache($newmid);
221 221
                 $blocks = $module->getInfo('blocks');
222 222
                 if ($blocks !== false) {
@@ -230,11 +230,11 @@  discard block
 block discarded – undo
230 230
                         if (!empty($block['options'])) {
231 231
                             $options = trim($block['options']);
232 232
                         }
233
-                        $newbid    = $db->genId($db->prefix('newblocks') . '_bid_seq');
233
+                        $newbid    = $db->genId($db->prefix('newblocks').'_bid_seq');
234 234
                         $edit_func = isset($block['edit_func']) ? trim($block['edit_func']) : '';
235 235
                         $template  = '';
236 236
                         if (isset($block['template']) && trim($block['template']) != '') {
237
-                            $content =& xoops_module_gettemplate($dirname, $block['template'], 'blocks');
237
+                            $content = & xoops_module_gettemplate($dirname, $block['template'], 'blocks');
238 238
                         }
239 239
                         if (empty($content)) {
240 240
                             $content = '';
@@ -242,15 +242,15 @@  discard block
 block discarded – undo
242 242
                             $template = trim($block['template']);
243 243
                         }
244 244
                         $block_name = addslashes(trim($block['name']));
245
-                        $sql        = 'INSERT INTO ' . $db->prefix('newblocks') . " (bid, mid, func_num, options, name, title, content, side, weight, visible, block_type, c_type, isactive, dirname, func_file, show_func, edit_func, template, bcachetime, last_modified) VALUES ($newbid, $newmid, " . (int)$blockkey . ", '$options', '" . $block_name . "','" . $block_name . "', '', 0, 0, 0, 'M', 'H', 1, '" . addslashes($dirname) . "', '" . addslashes(trim($block['file'])) . "', '" . addslashes(trim($block['show_func'])) . "', '" . addslashes($edit_func) . "', '" . $template . "', 0, " . time() . ')';
245
+                        $sql        = 'INSERT INTO '.$db->prefix('newblocks')." (bid, mid, func_num, options, name, title, content, side, weight, visible, block_type, c_type, isactive, dirname, func_file, show_func, edit_func, template, bcachetime, last_modified) VALUES ($newbid, $newmid, ".(int)$blockkey.", '$options', '".$block_name."','".$block_name."', '', 0, 0, 0, 'M', 'H', 1, '".addslashes($dirname)."', '".addslashes(trim($block['file']))."', '".addslashes(trim($block['show_func']))."', '".addslashes($edit_func)."', '".$template."', 0, ".time().')';
246 246
                         if (!$db->query($sql)) {
247
-                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_BLOCK_ADD_ERROR, '<strong>' . $block['name'] . '</strong>') . sprintf(_AM_SYSTEM_MODULES_BLOCK_ADD_ERROR_DATABASE, '<strong>' . $db->error() . '</strong>') . '</span>';
247
+                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_BLOCK_ADD_ERROR, '<strong>'.$block['name'].'</strong>').sprintf(_AM_SYSTEM_MODULES_BLOCK_ADD_ERROR_DATABASE, '<strong>'.$db->error().'</strong>').'</span>';
248 248
                         } else {
249 249
                             if (empty($newbid)) {
250 250
                                 $newbid = $db->getInsertId();
251 251
                             }
252
-                            $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_BLOCK_ADD, '<strong>' . $block['name'] . '</strong>') . sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>' . $newbid . '</strong>');
253
-                            $sql    = 'INSERT INTO ' . $db->prefix('block_module_link') . ' (block_id, module_id) VALUES (' . $newbid . ', -1)';
252
+                            $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_BLOCK_ADD, '<strong>'.$block['name'].'</strong>').sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>'.$newbid.'</strong>');
253
+                            $sql    = 'INSERT INTO '.$db->prefix('block_module_link').' (block_id, module_id) VALUES ('.$newbid.', -1)';
254 254
                             $db->query($sql);
255 255
                             if ($template != '') {
256 256
                                 $tplfile = $tplfile_handler->create();
@@ -264,16 +264,16 @@  discard block
 block discarded – undo
264 264
                                 $tplfile->setVar('tpl_lastimported', 0);
265 265
                                 $tplfile->setVar('tpl_lastmodified', time());
266 266
                                 if (!$tplfile_handler->insert($tplfile)) {
267
-                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_ERROR, '<strong>' . $block['template'] . '</strong>') . '</span>';
267
+                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_ERROR, '<strong>'.$block['template'].'</strong>').'</span>';
268 268
                                 } else {
269 269
                                     $newtplid = $tplfile->getVar('tpl_id');
270
-                                    $msgs[]   = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_DATA, '<strong>' . $block['template'] . '</strong>') . ' (ID: <strong>' . $newtplid . '</strong>)';
270
+                                    $msgs[]   = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_DATA, '<strong>'.$block['template'].'</strong>').' (ID: <strong>'.$newtplid.'</strong>)';
271 271
                                     // generate compiled file
272
-                                    include_once XOOPS_ROOT_PATH . '/class/template.php';
272
+                                    include_once XOOPS_ROOT_PATH.'/class/template.php';
273 273
                                     if (!xoops_template_touch($newtplid)) {
274
-                                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_COMPILED_FAILED, '<strong>' . $block['template'] . '</strong>') . '</span>';
274
+                                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_COMPILED_FAILED, '<strong>'.$block['template'].'</strong>').'</span>';
275 275
                                     } else {
276
-                                        $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_COMPILED, '<strong>' . $block['template'] . '</strong>');
276
+                                        $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_COMPILED, '<strong>'.$block['template'].'</strong>');
277 277
                                     }
278 278
                                 }
279 279
                                 unset($tplfile);
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
                 $configs = $module->getInfo('config');
287 287
                 if ($configs !== false) {
288 288
                     if ($module->getVar('hascomments') != 0) {
289
-                        include_once XOOPS_ROOT_PATH . '/include/comment_constants.php';
289
+                        include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
290 290
                         $configs[] = array(
291 291
                             'name'        => 'com_rule',
292 292
                             'title'       => '_CM_COMRULES',
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
                 } else {
311 311
                     if ($module->getVar('hascomments') != 0) {
312 312
                         $configs = array();
313
-                        include_once XOOPS_ROOT_PATH . '/include/comment_constants.php';
313
+                        include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
314 314
                         $configs[] = array(
315 315
                             'name'        => 'com_rule',
316 316
                             'title'       => '_CM_COMRULES',
@@ -338,8 +338,8 @@  discard block
 block discarded – undo
338 338
                         $configs = array();
339 339
                     }
340 340
                     // Main notification options
341
-                    include_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
342
-                    include_once XOOPS_ROOT_PATH . '/include/notification_functions.php';
341
+                    include_once XOOPS_ROOT_PATH.'/include/notification_constants.php';
342
+                    include_once XOOPS_ROOT_PATH.'/include/notification_functions.php';
343 343
                     $options                             = array();
344 344
                     $options['_NOT_CONFIG_DISABLE']      = XOOPS_NOTIFICATION_DISABLE;
345 345
                     $options['_NOT_CONFIG_ENABLEBLOCK']  = XOOPS_NOTIFICATION_ENABLEBLOCK;
@@ -357,15 +357,15 @@  discard block
 block discarded – undo
357 357
                     // Event-specific notification options
358 358
                     // FIXME: doesn't work when update module... can't read back the array of options properly...  " changing to &quot;
359 359
                     $options    = array();
360
-                    $categories =& notificationCategoryInfo('', $module->getVar('mid'));
360
+                    $categories = & notificationCategoryInfo('', $module->getVar('mid'));
361 361
                     foreach ($categories as $category) {
362
-                        $events =& notificationEvents($category['name'], false, $module->getVar('mid'));
362
+                        $events = & notificationEvents($category['name'], false, $module->getVar('mid'));
363 363
                         foreach ($events as $event) {
364 364
                             if (!empty($event['invisible'])) {
365 365
                                 continue;
366 366
                             }
367
-                            $option_name           = $category['title'] . ' : ' . $event['title'];
368
-                            $option_value          = $category['name'] . '-' . $event['name'];
367
+                            $option_name           = $category['title'].' : '.$event['title'];
368
+                            $option_value          = $category['name'].'-'.$event['name'];
369 369
                             $options[$option_name] = $option_value;
370 370
                         }
371 371
                         unset($events);
@@ -404,15 +404,15 @@  discard block
 block discarded – undo
404 404
                                 $confop->setVar('confop_name', $key, true);
405 405
                                 $confop->setVar('confop_value', $value, true);
406 406
                                 $confobj->setConfOptions($confop);
407
-                                $confop_msgs .= '<br>&nbsp;&nbsp;&nbsp;&nbsp; ' . _AM_SYSTEM_MODULES_CONFIG_ADD . _AM_SYSTEM_MODULES_NAME . ' <strong>' . (defined($key) ? constant($key) : $key) . '</strong> ' . _AM_SYSTEM_MODULES_VALUE . ' <strong>' . $value . '</strong> ';
407
+                                $confop_msgs .= '<br>&nbsp;&nbsp;&nbsp;&nbsp; '._AM_SYSTEM_MODULES_CONFIG_ADD._AM_SYSTEM_MODULES_NAME.' <strong>'.(defined($key) ? constant($key) : $key).'</strong> '._AM_SYSTEM_MODULES_VALUE.' <strong>'.$value.'</strong> ';
408 408
                                 unset($confop);
409 409
                             }
410 410
                         }
411 411
                         ++$order;
412 412
                         if ($config_handler->insertConfig($confobj) != false) {
413
-                            $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_CONFIG_DATA_ADD, '<strong>' . $config['name'] . '</strong>') . $confop_msgs;
413
+                            $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_CONFIG_DATA_ADD, '<strong>'.$config['name'].'</strong>').$confop_msgs;
414 414
                         } else {
415
-                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_CONFIG_DATA_ADD_ERROR, '<strong>' . $config['name'] . '</strong>') . '</span>';
415
+                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_CONFIG_DATA_ADD_ERROR, '<strong>'.$config['name'].'</strong>').'</span>';
416 416
                         }
417 417
                         unset($confobj);
418 418
                     }
@@ -437,9 +437,9 @@  discard block
 block discarded – undo
437 437
                     $mperm->setVar('gperm_name', 'module_admin');
438 438
                     $mperm->setVar('gperm_modid', 1);
439 439
                     if (!$gperm_handler->insert($mperm)) {
440
-                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_ACCESS_ADMIN_ADD_ERROR, '<strong>' . $mygroup . '</strong>') . '</span>';
440
+                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_ACCESS_ADMIN_ADD_ERROR, '<strong>'.$mygroup.'</strong>').'</span>';
441 441
                     } else {
442
-                        $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_ACCESS_ADMIN_ADD, '<strong>' . $mygroup . '</strong>');
442
+                        $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_ACCESS_ADMIN_ADD, '<strong>'.$mygroup.'</strong>');
443 443
                     }
444 444
                     unset($mperm);
445 445
                 }
@@ -449,9 +449,9 @@  discard block
 block discarded – undo
449 449
                 $mperm->setVar('gperm_name', 'module_read');
450 450
                 $mperm->setVar('gperm_modid', 1);
451 451
                 if (!$gperm_handler->insert($mperm)) {
452
-                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_ACCESS_USER_ADD_ERROR, '<strong>' . $mygroup . '</strong>') . '</span>';
452
+                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_ACCESS_USER_ADD_ERROR, '<strong>'.$mygroup.'</strong>').'</span>';
453 453
                 } else {
454
-                    $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_ACCESS_USER_ADD_ERROR, '<strong>' . $mygroup . '</strong>');
454
+                    $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_ACCESS_USER_ADD_ERROR, '<strong>'.$mygroup.'</strong>');
455 455
                 }
456 456
                 unset($mperm);
457 457
                 foreach ($blocks as $blc) {
@@ -462,9 +462,9 @@  discard block
 block discarded – undo
462 462
                     $bperm->setVar('gperm_name', 'block_read');
463 463
                     $bperm->setVar('gperm_modid', 1);
464 464
                     if (!$gperm_handler->insert($bperm)) {
465
-                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . _AM_SYSTEM_MODULES_BLOCK_ACCESS_ERROR . ' Block ID: <strong>' . $blc . '</strong> Group ID: <strong>' . $mygroup . '</strong></span>';
465
+                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'._AM_SYSTEM_MODULES_BLOCK_ACCESS_ERROR.' Block ID: <strong>'.$blc.'</strong> Group ID: <strong>'.$mygroup.'</strong></span>';
466 466
                     } else {
467
-                        $msgs[] = '&nbsp;&nbsp;' . _AM_SYSTEM_MODULES_BLOCK_ACCESS . sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>' . $blc . '</strong>') . sprintf(_AM_SYSTEM_MODULES_GROUP_ID, '<strong>' . $mygroup . '</strong>');
467
+                        $msgs[] = '&nbsp;&nbsp;'._AM_SYSTEM_MODULES_BLOCK_ACCESS.sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>'.$blc.'</strong>').sprintf(_AM_SYSTEM_MODULES_GROUP_ID, '<strong>'.$mygroup.'</strong>');
468 468
                     }
469 469
                     unset($bperm);
470 470
                 }
@@ -475,32 +475,32 @@  discard block
 block discarded – undo
475 475
             $func = "xoops_module_install_{$dirname}";
476 476
             if (function_exists($func)) {
477 477
                 if (!$lastmsg = $func($module)) {
478
-                    $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func) . '</p>';
478
+                    $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func).'</p>';
479 479
                 } else {
480
-                    $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, "<strong>{$func}</strong>") . '</p>';
480
+                    $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, "<strong>{$func}</strong>").'</p>';
481 481
                     if (is_string($lastmsg)) {
482 482
                         $msgs[] = $lastmsg;
483 483
                     }
484 484
                 }
485 485
             }
486 486
 
487
-            $msgs[] = sprintf(_AM_SYSTEM_MODULES_OKINS, '<strong>' . $module->getVar('name', 's') . '</strong>');
487
+            $msgs[] = sprintf(_AM_SYSTEM_MODULES_OKINS, '<strong>'.$module->getVar('name', 's').'</strong>');
488 488
             $msgs[] = '</div></div>';
489 489
 
490 490
             $blocks = $module->getInfo('blocks');
491 491
             $redDevider = '<span class="red bold">  |  </span>';
492
-            $msgs[] = '<div class="noininstall center"><a href="admin.php?fct=modulesadmin">' . _AM_SYSTEM_MODULES_BTOMADMIN . '</a> |
493
-                        <a href="admin.php?fct=modulesadmin&op=installlist">' . _AM_SYSTEM_MODULES_TOINSTALL . '</a> | ';
494
-            $msgs[] = '<br><span class="red bold">' . _AM_SYSTEM_MODULES_MODULE . ' ' . $module->getInfo('name') . ': </span></div>';
492
+            $msgs[] = '<div class="noininstall center"><a href="admin.php?fct=modulesadmin">'._AM_SYSTEM_MODULES_BTOMADMIN.'</a> |
493
+                        <a href="admin.php?fct=modulesadmin&op=installlist">' . _AM_SYSTEM_MODULES_TOINSTALL.'</a> | ';
494
+            $msgs[] = '<br><span class="red bold">'._AM_SYSTEM_MODULES_MODULE.' '.$module->getInfo('name').': </span></div>';
495 495
             if ($blocks !== false) {
496
-                $msgs[] = '<div class="noininstall center"><a href="admin.php?fct=blocksadmin&op=list&filter=1&selgen=' . $newmid . '&selmod=-2&selgrp=-1&selvis=-1&filsave=1">' . _AM_SYSTEM_BLOCKS . '</a></div>';
496
+                $msgs[] = '<div class="noininstall center"><a href="admin.php?fct=blocksadmin&op=list&filter=1&selgen='.$newmid.'&selmod=-2&selgrp=-1&selvis=-1&filsave=1">'._AM_SYSTEM_BLOCKS.'</a></div>';
497 497
             }
498
-            $msgs[] = '<div class="noininstall center"><a href="admin.php?fct=preferences&op=showmod&mod=' . $newmid . '">' . _AM_SYSTEM_PREF . '</a>';
499
-            $msgs[] = '<a href="' . XOOPS_URL . '/modules/' . $module->getInfo('dirname', 'e') . '/' . $module->getInfo('adminindex') . '">' . _AM_SYSTEM_MODULES_ADMIN . '</a>';
498
+            $msgs[] = '<div class="noininstall center"><a href="admin.php?fct=preferences&op=showmod&mod='.$newmid.'">'._AM_SYSTEM_PREF.'</a>';
499
+            $msgs[] = '<a href="'.XOOPS_URL.'/modules/'.$module->getInfo('dirname', 'e').'/'.$module->getInfo('adminindex').'">'._AM_SYSTEM_MODULES_ADMIN.'</a>';
500 500
 
501
-            $testdataDirectory = XOOPS_ROOT_PATH . '/modules/' . $module->getInfo('dirname', 'e') . '/testdata';
501
+            $testdataDirectory = XOOPS_ROOT_PATH.'/modules/'.$module->getInfo('dirname', 'e').'/testdata';
502 502
             if (file_exists($testdataDirectory)) {
503
-                $msgs[] = '<a href="' . XOOPS_URL . '/modules/' . $module->getInfo('dirname', 'e') . '/testdata/index.php?op=load' . '">' . _AM_SYSTEM_MODULES_INSTALL_TESTDATA . '</a></div>';
503
+                $msgs[] = '<a href="'.XOOPS_URL.'/modules/'.$module->getInfo('dirname', 'e').'/testdata/index.php?op=load'.'">'._AM_SYSTEM_MODULES_INSTALL_TESTDATA.'</a></div>';
504 504
             } else {
505 505
                 $msgs[] = '</div>';
506 506
             }
@@ -510,13 +510,13 @@  discard block
 block discarded – undo
510 510
 
511 511
             return $ret;
512 512
         } else {
513
-            $ret = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILINS, '<strong>' . $dirname . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br>' . implode('<br>', $errs) . '</p>';
513
+            $ret = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILINS, '<strong>'.$dirname.'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br>'.implode('<br>', $errs).'</p>';
514 514
             unset($msgs, $errs);
515 515
 
516 516
             return $ret;
517 517
         }
518 518
     } else {
519
-        return '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILINS, '<strong>' . $dirname . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br>&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_ALEXISTS, $dirname) . '</p>';
519
+        return '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILINS, '<strong>'.$dirname.'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br>&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_ALEXISTS, $dirname).'</p>';
520 520
     }
521 521
 }
522 522
 
@@ -534,10 +534,10 @@  discard block
 block discarded – undo
534 534
     switch ($type) {
535 535
         case 'blocks':
536 536
         case 'admin':
537
-            $path = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/templates/' . $type . '/' . $template;
537
+            $path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates/'.$type.'/'.$template;
538 538
             break;
539 539
         default:
540
-            $path = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/templates/' . $template;
540
+            $path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates/'.$template;
541 541
             break;
542 542
     }
543 543
     if (!file_exists($path)) {
@@ -603,28 +603,28 @@  discard block
 block discarded – undo
603 603
     /* @var $module_handler XoopsModuleHandler */
604 604
     $module_handler = xoops_getHandler('module');
605 605
     $module         = $module_handler->getByDirname($dirname);
606
-    include_once XOOPS_ROOT_PATH . '/class/template.php';
606
+    include_once XOOPS_ROOT_PATH.'/class/template.php';
607 607
     xoops_template_clear_module_cache($module->getVar('mid'));
608 608
     if ($module->getVar('dirname') === 'system') {
609
-        return '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILUNINS, '<strong>' . $module->getVar('name') . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br> - ' . _AM_SYSTEM_MODULES_SYSNO . '</p>';
609
+        return '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILUNINS, '<strong>'.$module->getVar('name').'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br> - '._AM_SYSTEM_MODULES_SYSNO.'</p>';
610 610
     } elseif ($module->getVar('dirname') == $xoopsConfig['startpage']) {
611
-        return '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILUNINS, '<strong>' . $module->getVar('name') . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br> - ' . _AM_SYSTEM_MODULES_STRTNO . '</p>';
611
+        return '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILUNINS, '<strong>'.$module->getVar('name').'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br> - '._AM_SYSTEM_MODULES_STRTNO.'</p>';
612 612
     } else {
613 613
         $msgs   = array();
614 614
         $msgs[] = '<div id="xo-module-log"><div class="header">';
615
-        $msgs[] = $errs[] = '<h4>' . _AM_SYSTEM_MODULES_UNINSTALL . $module->getInfo('name', 's') . '</h4>';
615
+        $msgs[] = $errs[] = '<h4>'._AM_SYSTEM_MODULES_UNINSTALL.$module->getInfo('name', 's').'</h4>';
616 616
         if ($module->getInfo('image') !== false && trim($module->getInfo('image')) != '') {
617
-            $msgs[] = '<img src="' . XOOPS_URL . '/modules/' . $dirname . '/' . trim($module->getInfo('image')) . '" alt="" />';
617
+            $msgs[] = '<img src="'.XOOPS_URL.'/modules/'.$dirname.'/'.trim($module->getInfo('image')).'" alt="" />';
618 618
         }
619
-        $msgs[] = '<strong>' . _VERSION . ':</strong> ' . $module->getInfo('version') . '&nbsp;' . $module->getInfo('module_status');
619
+        $msgs[] = '<strong>'._VERSION.':</strong> '.$module->getInfo('version').'&nbsp;'.$module->getInfo('module_status');
620 620
         if ($module->getInfo('author') !== false && trim($module->getInfo('author')) != '') {
621
-            $msgs[] = '<strong>' . _AUTHOR . ':</strong> ' . htmlspecialchars(trim($module->getInfo('author')));
621
+            $msgs[] = '<strong>'._AUTHOR.':</strong> '.htmlspecialchars(trim($module->getInfo('author')));
622 622
         }
623 623
         $msgs[] = '</div><div class="logger">';
624 624
         // Load module specific install script if any
625 625
         $uninstall_script = $module->getInfo('onUninstall');
626 626
         if ($uninstall_script && trim($uninstall_script) != '') {
627
-            include_once XOOPS_ROOT_PATH . '/modules/' . $dirname . '/' . trim($uninstall_script);
627
+            include_once XOOPS_ROOT_PATH.'/modules/'.$dirname.'/'.trim($uninstall_script);
628 628
         }
629 629
         $func = "xoops_module_pre_uninstall_{$dirname}";
630 630
         // If pre uninstall function is defined, execute
@@ -634,16 +634,16 @@  discard block
 block discarded – undo
634 634
                 $errs   = $module->getErrors();
635 635
                 $errs[] = sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func);
636 636
 
637
-                return '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILUNINS, '<strong>' . $module->getVar('name') . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br>' . implode('<br>', $errs) . '</p>';
637
+                return '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILUNINS, '<strong>'.$module->getVar('name').'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br>'.implode('<br>', $errs).'</p>';
638 638
             } else {
639 639
                 $prevErrs = $module->getErrors();
640
-                array_unshift($prevErrs, '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, "<strong>{$func}</strong>") . '</p>');
640
+                array_unshift($prevErrs, '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, "<strong>{$func}</strong>").'</p>');
641 641
                 $msgs = array_merge($msgs, $prevErrs);
642 642
             }
643 643
         }
644 644
 
645 645
         if (false === $module_handler->delete($module)) {
646
-            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_DELETE_ERROR, $module->getVar('name')) . '</span>';
646
+            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_DELETE_ERROR, $module->getVar('name')).'</span>';
647 647
         } else {
648 648
 
649 649
             // delete template files
@@ -654,9 +654,9 @@  discard block
 block discarded – undo
654 654
                 $msgs[] = _AM_SYSTEM_MODULES_TEMPLATES_DELETE;
655 655
                 for ($i = 0; $i < $tcount; ++$i) {
656 656
                     if (false === $tplfile_handler->delete($templates[$i])) {
657
-                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_DELETE_DATA_FAILD, $templates[$i]->getVar('tpl_file')) . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ID, '<strong>' . $templates[$i]->getVar('tpl_id') . '</strong>') . '</span>';
657
+                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_DELETE_DATA_FAILD, $templates[$i]->getVar('tpl_file')).sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ID, '<strong>'.$templates[$i]->getVar('tpl_id').'</strong>').'</span>';
658 658
                     } else {
659
-                        $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_DELETE_DATA, '<strong>' . $templates[$i]->getVar('tpl_file') . '</strong>') . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ID, '<strong>' . $templates[$i]->getVar('tpl_id') . '</strong>');
659
+                        $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_DELETE_DATA, '<strong>'.$templates[$i]->getVar('tpl_file').'</strong>').sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ID, '<strong>'.$templates[$i]->getVar('tpl_id').'</strong>');
660 660
                     }
661 661
                 }
662 662
             }
@@ -669,9 +669,9 @@  discard block
 block discarded – undo
669 669
                 $msgs[] = _AM_SYSTEM_MODULES_BLOCKS_DELETE;
670 670
                 for ($i = 0; $i < $bcount; ++$i) {
671 671
                     if (false === $block_arr[$i]->delete()) {
672
-                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_BLOCK_DELETE_ERROR, '<strong>' . $block_arr[$i]->getVar('name') . '</strong>') . sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>' . $block_arr[$i]->getVar('bid') . '</strong>') . '</span>';
672
+                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_BLOCK_DELETE_ERROR, '<strong>'.$block_arr[$i]->getVar('name').'</strong>').sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>'.$block_arr[$i]->getVar('bid').'</strong>').'</span>';
673 673
                     } else {
674
-                        $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_BLOCK_DELETE, '<strong>' . $block_arr[$i]->getVar('name') . '</strong>') . sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>' . $block_arr[$i]->getVar('bid') . '</strong>');
674
+                        $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_BLOCK_DELETE, '<strong>'.$block_arr[$i]->getVar('name').'</strong>').sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>'.$block_arr[$i]->getVar('bid').'</strong>');
675 675
                     }
676 676
                     if ($block_arr[$i]->getVar('template') != '') {
677 677
                         $templates = $tplfile_handler->find(null, 'block', $block_arr[$i]->getVar('bid'));
@@ -679,9 +679,9 @@  discard block
 block discarded – undo
679 679
                         if ($btcount > 0) {
680 680
                             for ($j = 0; $j < $btcount; ++$j) {
681 681
                                 if (!$tplfile_handler->delete($templates[$j])) {
682
-                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_BLOCK_DELETE_TEMPLATE_ERROR, $templates[$j]->getVar('tpl_file')) . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ID, '<strong>' . $templates[$j]->getVar('tpl_id') . '</strong>') . '</span>';
682
+                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_BLOCK_DELETE_TEMPLATE_ERROR, $templates[$j]->getVar('tpl_file')).sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ID, '<strong>'.$templates[$j]->getVar('tpl_id').'</strong>').'</span>';
683 683
                                 } else {
684
-                                    $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_BLOCK_DELETE_DATA, '<strong>' . $templates[$j]->getVar('tpl_file') . '</strong>') . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ID, '<strong>' . $templates[$j]->getVar('tpl_id') . '</strong>');
684
+                                    $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_BLOCK_DELETE_DATA, '<strong>'.$templates[$j]->getVar('tpl_file').'</strong>').sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ID, '<strong>'.$templates[$j]->getVar('tpl_id').'</strong>');
685 685
                                 }
686 686
                             }
687 687
                         }
@@ -697,14 +697,14 @@  discard block
 block discarded – undo
697 697
                 foreach ($modtables as $table) {
698 698
                     // prevent deletion of reserved core tables!
699 699
                     if (!in_array($table, $reservedTables)) {
700
-                        $sql = 'DROP TABLE ' . $db->prefix($table);
700
+                        $sql = 'DROP TABLE '.$db->prefix($table);
701 701
                         if (!$db->query($sql)) {
702
-                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TABLE_DROPPED_ERROR, '<strong>' . $db->prefix($table) . '</strong>') . '</span>';
702
+                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TABLE_DROPPED_ERROR, '<strong>'.$db->prefix($table).'</strong>').'</span>';
703 703
                         } else {
704
-                            $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TABLE_DROPPED, '<strong>' . $db->prefix($table) . '</strong>');
704
+                            $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TABLE_DROPPED, '<strong>'.$db->prefix($table).'</strong>');
705 705
                         }
706 706
                     } else {
707
-                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TABLE_DROPPED_FAILDED, '<strong>' . $db->prefix($table) . '</strong>') . '</span>';
707
+                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TABLE_DROPPED_FAILDED, '<strong>'.$db->prefix($table).'</strong>').'</span>';
708 708
                     }
709 709
                 }
710 710
             }
@@ -714,9 +714,9 @@  discard block
 block discarded – undo
714 714
                 $msgs[]          = _AM_SYSTEM_MODULES_COMMENTS_DELETE;
715 715
                 $comment_handler = xoops_getHandler('comment');
716 716
                 if (false === $comment_handler->deleteByModule($module->getVar('mid'))) {
717
-                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . _AM_SYSTEM_MODULES_COMMENTS_DELETE_ERROR . '</span>';
717
+                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'._AM_SYSTEM_MODULES_COMMENTS_DELETE_ERROR.'</span>';
718 718
                 } else {
719
-                    $msgs[] = '&nbsp;&nbsp;' . _AM_SYSTEM_MODULES_COMMENTS_DELETED;
719
+                    $msgs[] = '&nbsp;&nbsp;'._AM_SYSTEM_MODULES_COMMENTS_DELETED;
720 720
                 }
721 721
             }
722 722
 
@@ -725,18 +725,18 @@  discard block
 block discarded – undo
725 725
             if ($module->getVar('hasnotification') != 0) {
726 726
                 $msgs[] = _AM_SYSTEM_MODULES_NOTIFICATIONS_DELETE;
727 727
                 if (false === xoops_notification_deletebymodule($module->getVar('mid'))) {
728
-                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . _AM_SYSTEM_MODULES_NOTIFICATIONS_DELETE_ERROR . '</span>';
728
+                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'._AM_SYSTEM_MODULES_NOTIFICATIONS_DELETE_ERROR.'</span>';
729 729
                 } else {
730
-                    $msgs[] = '&nbsp;&nbsp;' . _AM_SYSTEM_MODULES_NOTIFICATIONS_DELETED;
730
+                    $msgs[] = '&nbsp;&nbsp;'._AM_SYSTEM_MODULES_NOTIFICATIONS_DELETED;
731 731
                 }
732 732
             }
733 733
 
734 734
             // delete permissions if any
735 735
             $gperm_handler = xoops_getHandler('groupperm');
736 736
             if (false === $gperm_handler->deleteByModule($module->getVar('mid'))) {
737
-                $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . _AM_SYSTEM_MODULES_GROUP_PERMS_DELETE_ERROR . '</span>';
737
+                $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'._AM_SYSTEM_MODULES_GROUP_PERMS_DELETE_ERROR.'</span>';
738 738
             } else {
739
-                $msgs[] = '&nbsp;&nbsp;' . _AM_SYSTEM_MODULES_GROUP_PERMS_DELETED;
739
+                $msgs[] = '&nbsp;&nbsp;'._AM_SYSTEM_MODULES_GROUP_PERMS_DELETED;
740 740
             }
741 741
 
742 742
             // delete module config options if any
@@ -749,27 +749,27 @@  discard block
 block discarded – undo
749 749
                     $msgs[] = _AM_SYSTEM_MODULES_MODULE_DATA_DELETE;
750 750
                     for ($i = 0; $i < $confcount; ++$i) {
751 751
                         if (false === $config_handler->deleteConfig($configs[$i])) {
752
-                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . _AM_SYSTEM_MODULES_CONFIG_DATA_DELETE_ERROR . sprintf(_AM_SYSTEM_MODULES_GONFIG_ID, '<strong>' . $configs[$i]->getvar('conf_id') . '</strong>') . '</span>';
752
+                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'._AM_SYSTEM_MODULES_CONFIG_DATA_DELETE_ERROR.sprintf(_AM_SYSTEM_MODULES_GONFIG_ID, '<strong>'.$configs[$i]->getvar('conf_id').'</strong>').'</span>';
753 753
                         } else {
754
-                            $msgs[] = '&nbsp;&nbsp;' . _AM_SYSTEM_MODULES_GONFIG_DATA_DELETE . sprintf(_AM_SYSTEM_MODULES_GONFIG_ID, '<strong>' . $configs[$i]->getvar('conf_id') . '</strong>');
754
+                            $msgs[] = '&nbsp;&nbsp;'._AM_SYSTEM_MODULES_GONFIG_DATA_DELETE.sprintf(_AM_SYSTEM_MODULES_GONFIG_ID, '<strong>'.$configs[$i]->getvar('conf_id').'</strong>');
755 755
                         }
756 756
                     }
757 757
                 }
758 758
             }
759 759
 
760 760
             // execute module specific install script if any
761
-            $func = 'xoops_module_uninstall_' . $dirname;
761
+            $func = 'xoops_module_uninstall_'.$dirname;
762 762
             if (function_exists($func)) {
763 763
                 if (!$func($module)) {
764
-                    $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func) . '</p>';
764
+                    $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func).'</p>';
765 765
                 } else {
766
-                    $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, "<strong>{$func}</strong>") . '</p>';
766
+                    $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, "<strong>{$func}</strong>").'</p>';
767 767
                 }
768 768
             }
769
-            $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_OKUNINS, '<strong>' . $module->getVar('name') . '</strong>') . '</p>';
769
+            $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_OKUNINS, '<strong>'.$module->getVar('name').'</strong>').'</p>';
770 770
         }
771 771
         $msgs[] = '</div></div>';
772
-        $msgs[] = '<div class="center"><a href="admin.php?fct=modulesadmin">' . _AM_SYSTEM_MODULES_BTOMADMIN . '</a></div>';
772
+        $msgs[] = '<div class="center"><a href="admin.php?fct=modulesadmin">'._AM_SYSTEM_MODULES_BTOMADMIN.'</a></div>';
773 773
         $ret    = implode('<br>', $msgs);
774 774
 
775 775
         return $ret;
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
 {
785 785
     global $xoopsUser, $xoopsConfig, $xoopsTpl;
786 786
     $dirname = trim($dirname);
787
-    $xoopsDB =& $GLOBALS['xoopsDB'];
787
+    $xoopsDB = & $GLOBALS['xoopsDB'];
788 788
 
789 789
     $myts = MyTextSanitizer::getInstance();
790 790
 
@@ -818,34 +818,34 @@  discard block
 block discarded – undo
818 818
 
819 819
         */
820 820
     if (!$module_handler->insert($module)) {
821
-        echo '<p>Could not update ' . $module->getVar('name') . '</p>';
822
-        echo "<br><div class='center'><a href='admin.php?fct=modulesadmin'>" . _AM_SYSTEM_MODULES_BTOMADMIN . '</a></div>';
821
+        echo '<p>Could not update '.$module->getVar('name').'</p>';
822
+        echo "<br><div class='center'><a href='admin.php?fct=modulesadmin'>"._AM_SYSTEM_MODULES_BTOMADMIN.'</a></div>';
823 823
     } else {
824 824
         $newmid = $module->getVar('mid');
825 825
         $msgs   = array();
826 826
         $msgs[] = '<div id="xo-module-log"><div class="header">';
827
-        $msgs[] = $errs[] = '<h4>' . _AM_SYSTEM_MODULES_UPDATING . $module->getInfo('name', 's') . '</h4>';
827
+        $msgs[] = $errs[] = '<h4>'._AM_SYSTEM_MODULES_UPDATING.$module->getInfo('name', 's').'</h4>';
828 828
         if ($module->getInfo('image') !== false && trim($module->getInfo('image')) != '') {
829
-            $msgs[] = '<img src="' . XOOPS_URL . '/modules/' . $dirname . '/' . trim($module->getInfo('image')) . '" alt="" />';
829
+            $msgs[] = '<img src="'.XOOPS_URL.'/modules/'.$dirname.'/'.trim($module->getInfo('image')).'" alt="" />';
830 830
         }
831
-        $msgs[] = '<strong>' . _VERSION . ':</strong> ' . $module->getInfo('version') . '&nbsp;' . $module->getInfo('module_status');
831
+        $msgs[] = '<strong>'._VERSION.':</strong> '.$module->getInfo('version').'&nbsp;'.$module->getInfo('module_status');
832 832
         if ($module->getInfo('author') !== false && trim($module->getInfo('author')) != '') {
833
-            $msgs[] = '<strong>' . _AUTHOR . ':</strong> ' . $myts->htmlspecialchars(trim($module->getInfo('author')));
833
+            $msgs[] = '<strong>'._AUTHOR.':</strong> '.$myts->htmlspecialchars(trim($module->getInfo('author')));
834 834
         }
835
-        $msgs[]          = '</div><div class="logger">';
835
+        $msgs[] = '</div><div class="logger">';
836 836
 
837 837
         $update_script = $module->getInfo('onUpdate');
838 838
         if (!empty($update_script) && trim($update_script) != '') {
839
-            include_once XOOPS_ROOT_PATH . '/modules/' . $dirname . '/' . trim($update_script);
839
+            include_once XOOPS_ROOT_PATH.'/modules/'.$dirname.'/'.trim($update_script);
840 840
         }
841 841
         // execute module specific update script if any
842
-        if (function_exists('xoops_module_pre_update_' . $dirname)) {
843
-            $func = 'xoops_module_pre_update_' . $dirname;
842
+        if (function_exists('xoops_module_pre_update_'.$dirname)) {
843
+            $func = 'xoops_module_pre_update_'.$dirname;
844 844
             if (!$func($module, $prev_version)) {
845
-                $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func) . '</p>';
845
+                $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func).'</p>';
846 846
                 $msgs = array_merge($msgs, $module->getErrors());
847 847
             } else {
848
-                $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, '<strong>' . $func . '</strong>') . '</p>';
848
+                $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, '<strong>'.$func.'</strong>').'</p>';
849 849
                 $msgs += $module->getErrors();
850 850
             }
851 851
         }
@@ -886,7 +886,7 @@  discard block
 block discarded – undo
886 886
                 $criteria->add(new Criteria('tpl_type', $type), 'AND');
887 887
                 $tplfiles = $tplfile_handler->getObjects($criteria);
888 888
 
889
-                $tpldata =& xoops_module_gettemplate($dirname, $tpl['file'], $type);
889
+                $tpldata = & xoops_module_gettemplate($dirname, $tpl['file'], $type);
890 890
                 $tplfile = empty($tplfiles) ? $tplfile_handler->create() : $tplfiles[0];
891 891
                 // END irmtfan solve templates duplicate issue
892 892
                 $tplfile->setVar('tpl_refid', $newmid);
@@ -899,15 +899,15 @@  discard block
 block discarded – undo
899 899
                 $tplfile->setVar('tpl_file', $tpl['file'], true);
900 900
                 $tplfile->setVar('tpl_desc', $tpl['description'], true);
901 901
                 if (!$tplfile_handler->insert($tplfile)) {
902
-                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_ERROR, '<strong>' . $tpl['file'] . '</strong>') . '</span>';
902
+                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_ERROR, '<strong>'.$tpl['file'].'</strong>').'</span>';
903 903
                 } else {
904 904
                     $newid  = $tplfile->getVar('tpl_id');
905
-                    $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_INSERT_DATA, '<strong>' . $tpl['file'] . '</strong>');
905
+                    $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_INSERT_DATA, '<strong>'.$tpl['file'].'</strong>');
906 906
                     if ($xoopsConfig['template_set'] === 'default') {
907 907
                         if (!xoops_template_touch($newid)) {
908
-                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE_ERROR, '<strong>' . $tpl['file'] . '</strong>') . '</span>';
908
+                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE_ERROR, '<strong>'.$tpl['file'].'</strong>').'</span>';
909 909
                         } else {
910
-                            $msgs[] = '&nbsp;&nbsp;<span>' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE, '<strong>' . $tpl['file'] . '</strong>') . '</span>';
910
+                            $msgs[] = '&nbsp;&nbsp;<span>'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE, '<strong>'.$tpl['file'].'</strong>').'</span>';
911 911
                         }
912 912
                     }
913 913
                 }
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
                     $content = '';
935 935
                     $template = '';
936 936
                     if (isset($block['template']) && trim($block['template']) != '') {
937
-                        $content =& xoops_module_gettemplate($dirname, $block['template'], 'blocks');
937
+                        $content = & xoops_module_gettemplate($dirname, $block['template'], 'blocks');
938 938
                     }
939 939
                     if (!$content) {
940 940
                         $content = '';
@@ -945,17 +945,17 @@  discard block
 block discarded – undo
945 945
                     if (!empty($block['options'])) {
946 946
                         $options = $block['options'];
947 947
                     }
948
-                    $sql     = 'SELECT bid, name FROM ' . $xoopsDB->prefix('newblocks') . ' WHERE mid=' . $module->getVar('mid') . ' AND func_num=' . $i . " AND show_func='" . addslashes($block['show_func']) . "' AND func_file='" . addslashes($block['file']) . "'";
948
+                    $sql     = 'SELECT bid, name FROM '.$xoopsDB->prefix('newblocks').' WHERE mid='.$module->getVar('mid').' AND func_num='.$i." AND show_func='".addslashes($block['show_func'])."' AND func_file='".addslashes($block['file'])."'";
949 949
                     $fresult = $xoopsDB->query($sql);
950 950
                     $fcount  = 0;
951 951
                     while (false !== ($fblock = $xoopsDB->fetchArray($fresult))) {
952 952
                         ++$fcount;
953
-                        $sql    = 'UPDATE ' . $xoopsDB->prefix('newblocks') . " SET name='" . addslashes($block['name']) . "', edit_func='" . addslashes($editfunc) . "', content='', template='" . $template . "', last_modified=" . time() . ' WHERE bid=' . $fblock['bid'];
953
+                        $sql    = 'UPDATE '.$xoopsDB->prefix('newblocks')." SET name='".addslashes($block['name'])."', edit_func='".addslashes($editfunc)."', content='', template='".$template."', last_modified=".time().' WHERE bid='.$fblock['bid'];
954 954
                         $result = $xoopsDB->query($sql);
955 955
                         if (!$result) {
956
-                            $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_UPDATE_ERROR, $fblock['name']);
956
+                            $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_UPDATE_ERROR, $fblock['name']);
957 957
                         } else {
958
-                            $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_BLOCK_UPDATE, $fblock['name']) . sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>' . $fblock['bid'] . '</strong>');
958
+                            $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_BLOCK_UPDATE, $fblock['name']).sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>'.$fblock['bid'].'</strong>');
959 959
                             if ($template != '') {
960 960
                                 $tplfile = $tplfile_handler->find('default', 'block', $fblock['bid']);
961 961
                                 if (count($tplfile) == 0) {
@@ -974,14 +974,14 @@  discard block
 block discarded – undo
974 974
                                 $tplfile_new->setVar('tpl_lastimported', 0);
975 975
                                 $tplfile_new->setVar('tpl_file', $block['template'], true); // irmtfan bug fix:  block template file will not updated after update the module
976 976
                                 if (!$tplfile_handler->insert($tplfile_new)) {
977
-                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_UPDATE_ERROR, '<strong>' . $block['template'] . '</strong>') . '</span>';
977
+                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_UPDATE_ERROR, '<strong>'.$block['template'].'</strong>').'</span>';
978 978
                                 } else {
979
-                                    $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_UPDATE, '<strong>' . $block['template'] . '</strong>');
979
+                                    $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_UPDATE, '<strong>'.$block['template'].'</strong>');
980 980
                                     if ($xoopsConfig['template_set'] === 'default') {
981 981
                                         if (!xoops_template_touch($tplfile_new->getVar('tpl_id'))) {
982
-                                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE_ERROR, '<strong>' . $block['template'] . '</strong>') . '</span>';
982
+                                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE_ERROR, '<strong>'.$block['template'].'</strong>').'</span>';
983 983
                                         } else {
984
-                                            $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE, '<strong>' . $block['template'] . '</strong>');
984
+                                            $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE, '<strong>'.$block['template'].'</strong>');
985 985
                                         }
986 986
                                     }
987 987
                                 }
@@ -989,13 +989,13 @@  discard block
 block discarded – undo
989 989
                         }
990 990
                     }
991 991
                     if ($fcount == 0) {
992
-                        $newbid     = $xoopsDB->genId($xoopsDB->prefix('newblocks') . '_bid_seq');
992
+                        $newbid     = $xoopsDB->genId($xoopsDB->prefix('newblocks').'_bid_seq');
993 993
                         $block_name = addslashes($block['name']);
994 994
                         $block_type = ($module->getVar('dirname') === 'system') ? 'S' : 'M';
995
-                        $sql        = 'INSERT INTO ' . $xoopsDB->prefix('newblocks') . ' (bid, mid, func_num, options, name, title, content, side, weight, visible, block_type, isactive, dirname, func_file, show_func, edit_func, template, last_modified) VALUES (' . $newbid . ', ' . $module->getVar('mid') . ', ' . $i . ",'" . addslashes($options) . "','" . $block_name . "', '" . $block_name . "', '', 0, 0, 0, '{$block_type}', 1, '" . addslashes($dirname) . "', '" . addslashes($block['file']) . "', '" . addslashes($block['show_func']) . "', '" . addslashes($editfunc) . "', '" . $template . "', " . time() . ')';
995
+                        $sql        = 'INSERT INTO '.$xoopsDB->prefix('newblocks').' (bid, mid, func_num, options, name, title, content, side, weight, visible, block_type, isactive, dirname, func_file, show_func, edit_func, template, last_modified) VALUES ('.$newbid.', '.$module->getVar('mid').', '.$i.",'".addslashes($options)."','".$block_name."', '".$block_name."', '', 0, 0, 0, '{$block_type}', 1, '".addslashes($dirname)."', '".addslashes($block['file'])."', '".addslashes($block['show_func'])."', '".addslashes($editfunc)."', '".$template."', ".time().')';
996 996
                         $result     = $xoopsDB->query($sql);
997 997
                         if (!$result) {
998
-                            $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_SQL_NOT_CREATE, $block['name']);
998
+                            $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_SQL_NOT_CREATE, $block['name']);
999 999
                             echo $sql;
1000 1000
                         } else {
1001 1001
                             if (empty($newbid)) {
@@ -1014,9 +1014,9 @@  discard block
 block discarded – undo
1014 1014
                                 $bperm->setVar('gperm_name', 'block_read');
1015 1015
                                 $bperm->setVar('gperm_modid', 1);
1016 1016
                                 if (!$gperm_handler->insert($bperm)) {
1017
-                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . _AM_SYSTEM_MODULES_BLOCK_ACCESS_ERROR . sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>' . $newbid . '</strong>') . sprintf(_AM_SYSTEM_MODULES_GROUP_ID, '<strong>' . $mygroup . '</strong>') . '</span>';
1017
+                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'._AM_SYSTEM_MODULES_BLOCK_ACCESS_ERROR.sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>'.$newbid.'</strong>').sprintf(_AM_SYSTEM_MODULES_GROUP_ID, '<strong>'.$mygroup.'</strong>').'</span>';
1018 1018
                                 } else {
1019
-                                    $msgs[] = '&nbsp;&nbsp;' . _AM_SYSTEM_MODULES_BLOCK_ACCESS . sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>' . $newbid . '</strong>') . sprintf(_AM_SYSTEM_MODULES_GROUP_ID, '<strong>' . $mygroup . '</strong>');
1019
+                                    $msgs[] = '&nbsp;&nbsp;'._AM_SYSTEM_MODULES_BLOCK_ACCESS.sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>'.$newbid.'</strong>').sprintf(_AM_SYSTEM_MODULES_GROUP_ID, '<strong>'.$mygroup.'</strong>');
1020 1020
                                 }
1021 1021
                             }
1022 1022
 
@@ -1032,21 +1032,21 @@  discard block
 block discarded – undo
1032 1032
                                 $tplfile->setVar('tpl_lastmodified', time());
1033 1033
                                 $tplfile->setVar('tpl_desc', $block['description'], true);
1034 1034
                                 if (!$tplfile_handler->insert($tplfile)) {
1035
-                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_ERROR, '<strong>' . $block['template'] . '</strong>') . '</span>';
1035
+                                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_ERROR, '<strong>'.$block['template'].'</strong>').'</span>';
1036 1036
                                 } else {
1037 1037
                                     $newid  = $tplfile->getVar('tpl_id');
1038
-                                    $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_DATA, '<strong>' . $block['template'] . '</strong>');
1038
+                                    $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_DATA, '<strong>'.$block['template'].'</strong>');
1039 1039
                                     if ($xoopsConfig['template_set'] === 'default') {
1040 1040
                                         if (!xoops_template_touch($newid)) {
1041
-                                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE_FAILD, '<strong>' . $block['template'] . '</strong>') . '</span>';
1041
+                                            $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE_FAILD, '<strong>'.$block['template'].'</strong>').'</span>';
1042 1042
                                         } else {
1043
-                                            $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE, '<strong>' . $block['template'] . '</strong>');
1043
+                                            $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_RECOMPILE, '<strong>'.$block['template'].'</strong>');
1044 1044
                                         }
1045 1045
                                     }
1046 1046
                                 }
1047 1047
                             }
1048
-                            $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_BLOCK_CREATED, '<strong>' . $block['name'] . '</strong>') . sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>' . $newbid . '</strong>');
1049
-                            $sql    = 'INSERT INTO ' . $xoopsDB->prefix('block_module_link') . ' (block_id, module_id) VALUES (' . $newbid . ', -1)';
1048
+                            $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_BLOCK_CREATED, '<strong>'.$block['name'].'</strong>').sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>'.$newbid.'</strong>');
1049
+                            $sql    = 'INSERT INTO '.$xoopsDB->prefix('block_module_link').' (block_id, module_id) VALUES ('.$newbid.', -1)';
1050 1050
                             $xoopsDB->query($sql);
1051 1051
                         }
1052 1052
                     }
@@ -1058,18 +1058,18 @@  discard block
 block discarded – undo
1058 1058
                 if (!in_array($block->getVar('show_func'), $showfuncs) || !in_array($block->getVar('func_file'), $funcfiles)) {
1059 1059
                     $sql = sprintf('DELETE FROM %s WHERE bid = %u', $xoopsDB->prefix('newblocks'), $block->getVar('bid'));
1060 1060
                     if (!$xoopsDB->query($sql)) {
1061
-                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_BLOCK_DELETE_ERROR, '<strong>' . $block->getVar('name') . '</strong>') . sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>' . $block->getVar('bid') . '</strong>') . '</span>';
1061
+                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_BLOCK_DELETE_ERROR, '<strong>'.$block->getVar('name').'</strong>').sprintf(_AM_SYSTEM_MODULES_BLOCK_ID, '<strong>'.$block->getVar('bid').'</strong>').'</span>';
1062 1062
                     } else {
1063
-                        $msgs[] = '&nbsp;&nbsp;Block <strong>' . $block->getVar('name') . '</strong> deleted. Block ID: <strong>' . $block->getVar('bid') . '</strong>';
1063
+                        $msgs[] = '&nbsp;&nbsp;Block <strong>'.$block->getVar('name').'</strong> deleted. Block ID: <strong>'.$block->getVar('bid').'</strong>';
1064 1064
                         if ($block->getVar('template') != '') {
1065 1065
                             $tplfiles = $tplfile_handler->find(null, 'block', $block->getVar('bid'));
1066 1066
                             if (is_array($tplfiles)) {
1067 1067
                                 $btcount = count($tplfiles);
1068 1068
                                 for ($k = 0; $k < $btcount; $k++) {
1069 1069
                                     if (!$tplfile_handler->delete($tplfiles[$k])) {
1070
-                                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . _AM_SYSTEM_MODULES_BLOCK_DEPRECATED_ERROR . '(ID: <strong>' . $tplfiles[$k]->getVar('tpl_id') . '</strong>)</span>';
1070
+                                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'._AM_SYSTEM_MODULES_BLOCK_DEPRECATED_ERROR.'(ID: <strong>'.$tplfiles[$k]->getVar('tpl_id').'</strong>)</span>';
1071 1071
                                     } else {
1072
-                                        $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_BLOCK_DEPRECATED, '<strong>' . $tplfiles[$k]->getVar('tpl_file') . '</strong>');
1072
+                                        $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_BLOCK_DEPRECATED, '<strong>'.$tplfiles[$k]->getVar('tpl_file').'</strong>');
1073 1073
                                     }
1074 1074
                                 }
1075 1075
                             }
@@ -1100,14 +1100,14 @@  discard block
 block discarded – undo
1100 1100
             $msgs[] = _AM_SYSTEM_MODULES_MODULE_DATA_DELETE;
1101 1101
             for ($i = 0; $i < $confcount; $i++) {
1102 1102
                 if (!$config_handler->deleteConfig($configs[$i])) {
1103
-                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . _AM_SYSTEM_MODULES_CONFIG_DATA_DELETE_ERROR . sprintf(_AM_SYSTEM_MODULES_GONFIG_ID, '<strong>' . $configs[$i]->getvar('conf_id') . '</strong>') . '</span>';
1103
+                    $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'._AM_SYSTEM_MODULES_CONFIG_DATA_DELETE_ERROR.sprintf(_AM_SYSTEM_MODULES_GONFIG_ID, '<strong>'.$configs[$i]->getvar('conf_id').'</strong>').'</span>';
1104 1104
                     // save the name of config failed to delete for later use
1105 1105
                     $config_delng[] = $configs[$i]->getvar('conf_name');
1106 1106
                 } else {
1107 1107
                     $config_old[$configs[$i]->getvar('conf_name')]['value']     = $configs[$i]->getvar('conf_value', 'N');
1108 1108
                     $config_old[$configs[$i]->getvar('conf_name')]['formtype']  = $configs[$i]->getvar('conf_formtype');
1109 1109
                     $config_old[$configs[$i]->getvar('conf_name')]['valuetype'] = $configs[$i]->getvar('conf_valuetype');
1110
-                    $msgs[]                                                     = '&nbsp;&nbsp;' . _AM_SYSTEM_MODULES_GONFIG_DATA_DELETE . sprintf(_AM_SYSTEM_MODULES_GONFIG_ID, '<strong>' . $configs[$i]->getVar('conf_id') . '</strong>');
1110
+                    $msgs[]                                                     = '&nbsp;&nbsp;'._AM_SYSTEM_MODULES_GONFIG_DATA_DELETE.sprintf(_AM_SYSTEM_MODULES_GONFIG_ID, '<strong>'.$configs[$i]->getVar('conf_id').'</strong>');
1111 1111
                 }
1112 1112
             }
1113 1113
         }
@@ -1116,7 +1116,7 @@  discard block
 block discarded – undo
1116 1116
         $configs = $module->getInfo('config');
1117 1117
         if ($configs !== false) {
1118 1118
             if ($module->getVar('hascomments') != 0) {
1119
-                include_once XOOPS_ROOT_PATH . '/include/comment_constants.php';
1119
+                include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
1120 1120
                 array_push($configs, array(
1121 1121
                     'name'        => 'com_rule',
1122 1122
                     'title'       => '_CM_COMRULES',
@@ -1140,7 +1140,7 @@  discard block
 block discarded – undo
1140 1140
         } else {
1141 1141
             if ($module->getVar('hascomments') != 0) {
1142 1142
                 $configs = array();
1143
-                include_once XOOPS_ROOT_PATH . '/include/comment_constants.php';
1143
+                include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
1144 1144
                 $configs[] = array(
1145 1145
                     'name'        => 'com_rule',
1146 1146
                     'title'       => '_CM_COMRULES',
@@ -1168,8 +1168,8 @@  discard block
 block discarded – undo
1168 1168
                 $configs = array();
1169 1169
             }
1170 1170
             // Main notification options
1171
-            include_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
1172
-            include_once XOOPS_ROOT_PATH . '/include/notification_functions.php';
1171
+            include_once XOOPS_ROOT_PATH.'/include/notification_constants.php';
1172
+            include_once XOOPS_ROOT_PATH.'/include/notification_functions.php';
1173 1173
             $options                             = array();
1174 1174
             $options['_NOT_CONFIG_DISABLE']      = XOOPS_NOTIFICATION_DISABLE;
1175 1175
             $options['_NOT_CONFIG_ENABLEBLOCK']  = XOOPS_NOTIFICATION_ENABLEBLOCK;
@@ -1189,15 +1189,15 @@  discard block
 block discarded – undo
1189 1189
             // FIXME: for some reason the default doesn't come up properly
1190 1190
             //  initially is ok, but not when 'update' module..
1191 1191
             $options    = array();
1192
-            $categories =& notificationCategoryInfo('', $module->getVar('mid'));
1192
+            $categories = & notificationCategoryInfo('', $module->getVar('mid'));
1193 1193
             foreach ($categories as $category) {
1194
-                $events =& notificationEvents($category['name'], false, $module->getVar('mid'));
1194
+                $events = & notificationEvents($category['name'], false, $module->getVar('mid'));
1195 1195
                 foreach ($events as $event) {
1196 1196
                     if (!empty($event['invisible'])) {
1197 1197
                         continue;
1198 1198
                     }
1199
-                    $option_name           = $category['title'] . ' : ' . $event['title'];
1200
-                    $option_value          = $category['name'] . '-' . $event['name'];
1199
+                    $option_name           = $category['title'].' : '.$event['title'];
1200
+                    $option_value          = $category['name'].'-'.$event['name'];
1201 1201
                     $options[$option_name] = $option_value;
1202 1202
                     //$configs[] = array ('name' => notificationGenerateConfig($category,$event,'name'), 'title' => notificationGenerateConfig($category,$event,'title_constant'), 'description' => notificationGenerateConfig($category,$event,'description_constant'), 'formtype' => 'yesno', 'valuetype' => 'int', 'default' => 1);
1203 1203
                 }
@@ -1247,16 +1247,16 @@  discard block
 block discarded – undo
1247 1247
                             $confop->setVar('confop_name', $key, true);
1248 1248
                             $confop->setVar('confop_value', $value, true);
1249 1249
                             $confobj->setConfOptions($confop);
1250
-                            $confop_msgs .= '<br>&nbsp;&nbsp;&nbsp;&nbsp; ' . _AM_SYSTEM_MODULES_CONFIG_ADD . _AM_SYSTEM_MODULES_NAME . ' <strong>' . (defined($key) ? constant($key) : $key) . '</strong> ' . _AM_SYSTEM_MODULES_VALUE . ' <strong>' . $value . '</strong> ';
1250
+                            $confop_msgs .= '<br>&nbsp;&nbsp;&nbsp;&nbsp; '._AM_SYSTEM_MODULES_CONFIG_ADD._AM_SYSTEM_MODULES_NAME.' <strong>'.(defined($key) ? constant($key) : $key).'</strong> '._AM_SYSTEM_MODULES_VALUE.' <strong>'.$value.'</strong> ';
1251 1251
                             unset($confop);
1252 1252
                         }
1253 1253
                     }
1254 1254
                     $order++;
1255 1255
                     if (false !== $config_handler->insertConfig($confobj)) {
1256 1256
                         //$msgs[] = '&nbsp;&nbsp;Config <strong>'.$config['name'].'</strong> added to the database.'.$confop_msgs;
1257
-                        $msgs[] = '&nbsp;&nbsp;' . sprintf(_AM_SYSTEM_MODULES_CONFIG_DATA_ADD, '<strong>' . $config['name'] . '</strong>') . $confop_msgs;
1257
+                        $msgs[] = '&nbsp;&nbsp;'.sprintf(_AM_SYSTEM_MODULES_CONFIG_DATA_ADD, '<strong>'.$config['name'].'</strong>').$confop_msgs;
1258 1258
                     } else {
1259
-                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_CONFIG_DATA_ADD_ERROR, '<strong>' . $config['name'] . '</strong>') . '</span>';
1259
+                        $msgs[] = '&nbsp;&nbsp;<span style="color:#ff0000;">'.sprintf(_AM_SYSTEM_MODULES_CONFIG_DATA_ADD_ERROR, '<strong>'.$config['name'].'</strong>').'</span>';
1260 1260
                     }
1261 1261
                     unset($confobj);
1262 1262
                 }
@@ -1265,19 +1265,19 @@  discard block
 block discarded – undo
1265 1265
         }
1266 1266
 
1267 1267
         // execute module specific update script if any
1268
-        if (function_exists('xoops_module_update_' . $dirname)) {
1269
-            $func = 'xoops_module_update_' . $dirname;
1268
+        if (function_exists('xoops_module_update_'.$dirname)) {
1269
+            $func = 'xoops_module_update_'.$dirname;
1270 1270
             if (!$func($module, $prev_version)) {
1271
-                $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func) . '</p>';
1271
+                $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_EXECUTE, $func).'</p>';
1272 1272
                 $msgs = array_merge($msgs, $module->getErrors());
1273 1273
             } else {
1274
-                $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, '<strong>' . $func . '</strong>') . '</p>';
1274
+                $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILED_SUCESS, '<strong>'.$func.'</strong>').'</p>';
1275 1275
                 $msgs += $module->getErrors();
1276 1276
             }
1277 1277
         }
1278
-        $msgs[] = sprintf(_AM_SYSTEM_MODULES_OKUPD, '<strong>' . $module->getVar('name', 's') . '</strong>');
1278
+        $msgs[] = sprintf(_AM_SYSTEM_MODULES_OKUPD, '<strong>'.$module->getVar('name', 's').'</strong>');
1279 1279
         $msgs[] = '</div></div>';
1280
-        $msgs[] = '<div class="center"><a href="admin.php?fct=modulesadmin">' . _AM_SYSTEM_MODULES_BTOMADMIN . '</a>  | <a href="' . XOOPS_URL . '/modules/' . $module->getInfo('dirname', 'e') . '/' . $module->getInfo('adminindex') . '">' . _AM_SYSTEM_MODULES_ADMIN . '</a></div>';
1280
+        $msgs[] = '<div class="center"><a href="admin.php?fct=modulesadmin">'._AM_SYSTEM_MODULES_BTOMADMIN.'</a>  | <a href="'.XOOPS_URL.'/modules/'.$module->getInfo('dirname', 'e').'/'.$module->getInfo('adminindex').'">'._AM_SYSTEM_MODULES_ADMIN.'</a></div>';
1281 1281
         //        foreach ($msgs as $msg) {
1282 1282
         //            echo $msg . '<br>';
1283 1283
         //        }
@@ -1313,7 +1313,7 @@  discard block
 block discarded – undo
1313 1313
 
1314 1314
     $module_handler = xoops_getHandler('module');
1315 1315
     $module         = $module_handler->get($mid);
1316
-    include_once XOOPS_ROOT_PATH . '/class/template.php';
1316
+    include_once XOOPS_ROOT_PATH.'/class/template.php';
1317 1317
     xoops_template_clear_module_cache($module->getVar('mid'));
1318 1318
     // Display header
1319 1319
     $msgs[] = '<div id="xo-module-log">';
@@ -1321,7 +1321,7 @@  discard block
 block discarded – undo
1321 1321
     // Change value
1322 1322
     $module->setVar('isactive', 1);
1323 1323
     if (!$module_handler->insert($module)) {
1324
-        $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILACT, '<strong>' . $module->getVar('name', 's') . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br>' . $module->getHtmlErrors() . '</p>';
1324
+        $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILACT, '<strong>'.$module->getVar('name', 's').'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br>'.$module->getHtmlErrors().'</p>';
1325 1325
     } else {
1326 1326
         $blocks = XoopsBlock::getByModule($module->getVar('mid'));
1327 1327
         $bcount = count($blocks);
@@ -1329,10 +1329,10 @@  discard block
 block discarded – undo
1329 1329
             $blocks[$i]->setVar('isactive', 1);
1330 1330
             $blocks[$i]->store();
1331 1331
         }
1332
-        $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_OKACT, '<strong>' . $module->getVar('name', 's') . '</strong>') . '</p></div>';
1332
+        $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_OKACT, '<strong>'.$module->getVar('name', 's').'</strong>').'</p></div>';
1333 1333
     }
1334 1334
     //$msgs[] = '</div>';
1335
-    $msgs[] = '<div class="center"><a href="admin.php?fct=modulesadmin">' . _AM_SYSTEM_MODULES_BTOMADMIN . '</a></div>';
1335
+    $msgs[] = '<div class="center"><a href="admin.php?fct=modulesadmin">'._AM_SYSTEM_MODULES_BTOMADMIN.'</a></div>';
1336 1336
     $ret    = implode('<br>', $msgs);
1337 1337
 
1338 1338
     return $ret;
@@ -1350,7 +1350,7 @@  discard block
 block discarded – undo
1350 1350
 
1351 1351
     $module_handler = xoops_getHandler('module');
1352 1352
     $module         = $module_handler->get($mid);
1353
-    include_once XOOPS_ROOT_PATH . '/class/template.php';
1353
+    include_once XOOPS_ROOT_PATH.'/class/template.php';
1354 1354
     xoops_template_clear_module_cache($mid);
1355 1355
     // Display header
1356 1356
     $msgs[] = '<div id="xo-module-log">';
@@ -1358,12 +1358,12 @@  discard block
 block discarded – undo
1358 1358
     // Change value
1359 1359
     $module->setVar('isactive', 0);
1360 1360
     if ($module->getVar('dirname') === 'system') {
1361
-        $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILDEACT, '<strong>' . $module->getVar('name') . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br> - ' . _AM_SYSTEM_MODULES_SYSNO . '</p>';
1361
+        $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILDEACT, '<strong>'.$module->getVar('name').'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br> - '._AM_SYSTEM_MODULES_SYSNO.'</p>';
1362 1362
     } elseif ($module->getVar('dirname') == $xoopsConfig['startpage']) {
1363
-        $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILDEACT, '<strong>' . $module->getVar('name') . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br> - ' . _AM_SYSTEM_MODULES_STRTNO . '</p>';
1363
+        $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILDEACT, '<strong>'.$module->getVar('name').'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br> - '._AM_SYSTEM_MODULES_STRTNO.'</p>';
1364 1364
     } else {
1365 1365
         if (!$module_handler->insert($module)) {
1366
-            $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILDEACT, '<strong>' . $module->getVar('name') . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br>' . $module->getHtmlErrors() . '</p>';
1366
+            $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILDEACT, '<strong>'.$module->getVar('name').'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br>'.$module->getHtmlErrors().'</p>';
1367 1367
         } else {
1368 1368
             $blocks = XoopsBlock::getByModule($module->getVar('mid'));
1369 1369
             $bcount = count($blocks);
@@ -1371,10 +1371,10 @@  discard block
 block discarded – undo
1371 1371
                 $blocks[$i]->setVar('isactive', 0);
1372 1372
                 $blocks[$i]->store();
1373 1373
             }
1374
-            $msgs[] = '<p>' . sprintf(_AM_SYSTEM_MODULES_OKDEACT, '<strong>' . $module->getVar('name') . '</strong>') . '</p>';
1374
+            $msgs[] = '<p>'.sprintf(_AM_SYSTEM_MODULES_OKDEACT, '<strong>'.$module->getVar('name').'</strong>').'</p>';
1375 1375
         }
1376 1376
     }
1377
-    $msgs[] = '<div class="center"><a href="admin.php?fct=modulesadmin">' . _AM_SYSTEM_MODULES_BTOMADMIN . '</a></div>';
1377
+    $msgs[] = '<div class="center"><a href="admin.php?fct=modulesadmin">'._AM_SYSTEM_MODULES_BTOMADMIN.'</a></div>';
1378 1378
     $ret    = implode('<br>', $msgs);
1379 1379
 
1380 1380
     return $ret;
@@ -1394,13 +1394,13 @@  discard block
 block discarded – undo
1394 1394
     $module->setVar('name', $name);
1395 1395
     $myts = MyTextSanitizer::getInstance();
1396 1396
     if (!$module_handler->insert($module)) {
1397
-        $ret = '<p>' . sprintf(_AM_SYSTEM_MODULES_FAILORDER, '<strong>' . $myts->stripSlashesGPC($name) . '</strong>') . '&nbsp;' . _AM_SYSTEM_MODULES_ERRORSC . '<br>';
1398
-        $ret .= $module->getHtmlErrors() . '</p>';
1397
+        $ret = '<p>'.sprintf(_AM_SYSTEM_MODULES_FAILORDER, '<strong>'.$myts->stripSlashesGPC($name).'</strong>').'&nbsp;'._AM_SYSTEM_MODULES_ERRORSC.'<br>';
1398
+        $ret .= $module->getHtmlErrors().'</p>';
1399 1399
 
1400 1400
         return $ret;
1401 1401
     }
1402 1402
 
1403
-    return '<p>' . sprintf(_AM_SYSTEM_MODULES_OKORDER, '<strong>' . $myts->stripSlashesGPC($name) . '</strong>') . '</p>';
1403
+    return '<p>'.sprintf(_AM_SYSTEM_MODULES_OKORDER, '<strong>'.$myts->stripSlashesGPC($name).'</strong>').'</p>';
1404 1404
 }
1405 1405
 
1406 1406
 /**
@@ -1412,13 +1412,13 @@  discard block
 block discarded – undo
1412 1412
 function xoops_module_log_header($module, $title)
1413 1413
 {
1414 1414
     $msgs[] = '<div class="header">';
1415
-    $msgs[] = $errs[] = '<h4>' . $title . $module->getInfo('name', 's') . '</h4>';
1415
+    $msgs[] = $errs[] = '<h4>'.$title.$module->getInfo('name', 's').'</h4>';
1416 1416
     if ($module->getInfo('image') !== false && trim($module->getInfo('image')) != '') {
1417
-        $msgs[] = '<img src="' . XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/' . trim($module->getInfo('image')) . '" alt="" />';
1417
+        $msgs[] = '<img src="'.XOOPS_URL.'/modules/'.$module->getVar('dirname').'/'.trim($module->getInfo('image')).'" alt="" />';
1418 1418
     }
1419
-    $msgs[] = '<strong>' . _VERSION . ':</strong> ' . $module->getInfo('version') . '&nbsp;' . $module->getInfo('module_status');
1419
+    $msgs[] = '<strong>'._VERSION.':</strong> '.$module->getInfo('version').'&nbsp;'.$module->getInfo('module_status');
1420 1420
     if ($module->getInfo('author') !== false && trim($module->getInfo('author')) != '') {
1421
-        $msgs[] = '<strong>' . _AUTHOR . ':</strong> ' . htmlspecialchars(trim($module->getInfo('author')));
1421
+        $msgs[] = '<strong>'._AUTHOR.':</strong> '.htmlspecialchars(trim($module->getInfo('author')));
1422 1422
     }
1423 1423
     $msgs[] = '</div>';
1424 1424
 
@@ -1438,9 +1438,9 @@  discard block
 block discarded – undo
1438 1438
 function xoops_module_delayed_clean_cache($cacheList = null)
1439 1439
 {
1440 1440
     if (empty($cacheList)) {
1441
-        $cacheList = array (1,2,3);
1441
+        $cacheList = array(1, 2, 3);
1442 1442
     }
1443
-    require_once XOOPS_ROOT_PATH . '/modules/system/class/maintenance.php';
1443
+    require_once XOOPS_ROOT_PATH.'/modules/system/class/maintenance.php';
1444 1444
     $maintenance = new SystemMaintenance();
1445 1445
     register_shutdown_function(array($maintenance, 'CleanCache'), $cacheList);
1446 1446
 }
Please login to merge, or discard this patch.
htdocs/modules/system/admin/modulesadmin/main.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
     exit(_NOPERM);
23 23
 }
24 24
 
25
-include_once XOOPS_ROOT_PATH . '/class/xoopsblock.php';
26
-include_once XOOPS_ROOT_PATH . '/modules/system/admin/modulesadmin/modulesadmin.php';
25
+include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';
26
+include_once XOOPS_ROOT_PATH.'/modules/system/admin/modulesadmin/modulesadmin.php';
27 27
 XoopsLoad::load('XoopsFilterInput');
28 28
 
29 29
 if (isset($_POST)) {
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
         // Call Header
51 51
         xoops_cp_header();
52 52
         // Define Stylesheet
53
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
54
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css');
53
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
54
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/ui/'.xoops_getModuleOption('jquery_theme', 'system').'/ui.all.css');
55 55
         // Define scripts
56 56
         $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
57 57
         $xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $toinstall_mods = array();
101 101
         $i              = 0;
102 102
         foreach ($dirlist as $file) {
103
-            if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $file . '/xoops_version.php')) {
103
+            if (file_exists(XOOPS_ROOT_PATH.'/modules/'.$file.'/xoops_version.php')) {
104 104
                 clearstatcache();
105 105
                 $file = trim($file);
106 106
                 if (!in_array($file, $install_mods)) {
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
         // Call Header
124 124
         xoops_cp_header();
125 125
         // Define Stylesheet
126
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
127
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css');
126
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
127
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/ui/'.xoops_getModuleOption('jquery_theme', 'system').'/ui.all.css');
128 128
         // Define scripts
129 129
         $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
130 130
         $xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         // Define Breadcrumb and tips
133 133
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_ADMIN, system_adminVersion('modulesadmin', 'adminpath'));
134 134
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_TOINSTALL);
135
-        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help') . '#install');
135
+        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help').'#install');
136 136
         $xoBreadCrumb->addTips(_AM_SYSTEM_MODULES_TIPS);
137 137
         $xoBreadCrumb->render();
138 138
         // Get Module Handler
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $toinstall_mods = array();
150 150
         $i              = 0;
151 151
         foreach ($dirlist as $file) {
152
-            if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $file . '/xoops_version.php')) {
152
+            if (file_exists(XOOPS_ROOT_PATH.'/modules/'.$file.'/xoops_version.php')) {
153 153
                 clearstatcache();
154 154
                 $file = trim($file);
155 155
                 if (!in_array($file, $install_mods)) {
@@ -206,16 +206,16 @@  discard block
 block discarded – undo
206 206
         // Call Header
207 207
         xoops_cp_header();
208 208
         // Define Stylesheet
209
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
209
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
210 210
         // Define Breadcrumb and tips
211 211
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_ADMIN, system_adminVersion('modulesadmin', 'adminpath'));
212 212
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_VALIDATE);
213
-        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help') . '#confirm');
213
+        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help').'#confirm');
214 214
         $xoBreadCrumb->addTips(_AM_SYSTEM_MODULES_CONFIRM_TIPS);
215 215
         $xoBreadCrumb->render();
216 216
         $errorMessage = array();
217
-        if (!is_writable(XOOPS_CACHE_PATH . '/')) {
218
-            $errorMessage[] = sprintf(_MUSTWABLE, '<strong>' . XOOPS_CACHE_PATH . '/</strong>');
217
+        if (!is_writable(XOOPS_CACHE_PATH.'/')) {
218
+            $errorMessage[] = sprintf(_MUSTWABLE, '<strong>'.XOOPS_CACHE_PATH.'/</strong>');
219 219
         }
220 220
         if (count($errorMessage) > 0) {
221 221
             // Display Error
@@ -316,11 +316,11 @@  discard block
 block discarded – undo
316 316
         // Call Header
317 317
         xoops_cp_header();
318 318
         // Define Stylesheet
319
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
319
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
320 320
         // Define Breadcrumb and tips
321 321
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_ADMIN, system_adminVersion('modulesadmin', 'adminpath'));
322 322
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_SUBMITRES);
323
-        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help') . '#submit');
323
+        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help').'#submit');
324 324
         $xoBreadCrumb->render();
325 325
         if (count($ret) > 0) {
326 326
             $xoopsTpl->assign('result', $ret);
@@ -338,17 +338,17 @@  discard block
 block discarded – undo
338 338
         $mod->loadInfoAsVar($module);
339 339
         // Construct message
340 340
         if ($mod->getInfo('image') !== false && trim($mod->getInfo('image')) != '') {
341
-            $msgs = '<img src="' . XOOPS_URL . '/modules/' . $mod->getVar('dirname', 'n') . '/' . trim($mod->getInfo('image')) . '" alt="" />';
341
+            $msgs = '<img src="'.XOOPS_URL.'/modules/'.$mod->getVar('dirname', 'n').'/'.trim($mod->getInfo('image')).'" alt="" />';
342 342
         }
343
-        $msgs .= '<br><span style="font-size:smaller;">' . $mod->getVar('name', 's') . '</span><br><br>' . _AM_SYSTEM_MODULES_RUSUREINS;
343
+        $msgs .= '<br><span style="font-size:smaller;">'.$mod->getVar('name', 's').'</span><br><br>'._AM_SYSTEM_MODULES_RUSUREINS;
344 344
         // Call Header
345 345
         xoops_cp_header();
346 346
         // Define Stylesheet
347
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
347
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
348 348
         // Define Breadcrumb and tips
349 349
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_ADMIN, system_adminVersion('modulesadmin', 'adminpath'));
350 350
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_INSTALL);
351
-        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help') . '#install');
351
+        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help').'#install');
352 352
         $xoBreadCrumb->render();
353 353
         // Display question message
354 354
         xoops_confirm(array('module' => $module, 'op' => 'install_ok', 'fct' => 'modulesadmin'), 'admin.php', $msgs, _AM_SYSTEM_MODULES_INSTALL);
@@ -369,11 +369,11 @@  discard block
 block discarded – undo
369 369
         // Call Header
370 370
         xoops_cp_header();
371 371
         // Define Stylesheet
372
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
372
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
373 373
         // Define Breadcrumb and tips
374 374
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_ADMIN, system_adminVersion('modulesadmin', 'adminpath'));
375 375
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_INSTALL);
376
-        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help') . '#install');
376
+        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help').'#install');
377 377
         $xoBreadCrumb->render();
378 378
         if (count($ret) > 0) {
379 379
             foreach ($ret as $msg) {
@@ -395,17 +395,17 @@  discard block
 block discarded – undo
395 395
         $mod            = $module_handler->getByDirname($module);
396 396
         // Construct message
397 397
         if ($mod->getInfo('image') !== false && trim($mod->getInfo('image')) != '') {
398
-            $msgs = '<img src="' . XOOPS_URL . '/modules/' . $mod->getVar('dirname', 'n') . '/' . trim($mod->getInfo('image')) . '" alt="" />';
398
+            $msgs = '<img src="'.XOOPS_URL.'/modules/'.$mod->getVar('dirname', 'n').'/'.trim($mod->getInfo('image')).'" alt="" />';
399 399
         }
400
-        $msgs .= '<br><span style="font-size:smaller;">' . $mod->getVar('name') . '</span><br><br>' . _AM_SYSTEM_MODULES_RUSUREUNINS;
400
+        $msgs .= '<br><span style="font-size:smaller;">'.$mod->getVar('name').'</span><br><br>'._AM_SYSTEM_MODULES_RUSUREUNINS;
401 401
         // Call Header
402 402
         xoops_cp_header();
403 403
         // Define Stylesheet
404
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
404
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
405 405
         // Define Breadcrumb and tips
406 406
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_ADMIN, system_adminVersion('modulesadmin', 'adminpath'));
407 407
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_UNINSTALL);
408
-        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help') . '#delete');
408
+        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help').'#delete');
409 409
         $xoBreadCrumb->render();
410 410
         // Display Question
411 411
         xoops_confirm(array('module' => $module, 'op' => 'uninstall_ok', 'fct' => 'modulesadmin'), 'admin.php', $msgs, _AM_SYSTEM_MODULES_UNINSTALL);
@@ -426,11 +426,11 @@  discard block
 block discarded – undo
426 426
         // Call Header
427 427
         xoops_cp_header();
428 428
         // Define Stylesheet
429
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
429
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
430 430
         // Define Breadcrumb and tips
431 431
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_ADMIN, system_adminVersion('modulesadmin', 'adminpath'));
432 432
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_UNINSTALL);
433
-        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help') . '#delete');
433
+        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help').'#delete');
434 434
         $xoBreadCrumb->render();
435 435
         if (count($ret) > 0) {
436 436
             foreach ($ret as $msg) {
@@ -452,17 +452,17 @@  discard block
 block discarded – undo
452 452
         $mod            = $module_handler->getByDirname($module);
453 453
         // Construct message
454 454
         if ($mod->getInfo('image') !== false && trim($mod->getInfo('image')) != '') {
455
-            $msgs = '<img src="' . XOOPS_URL . '/modules/' . $mod->getVar('dirname', 'n') . '/' . trim($mod->getInfo('image')) . '" alt="" />';
455
+            $msgs = '<img src="'.XOOPS_URL.'/modules/'.$mod->getVar('dirname', 'n').'/'.trim($mod->getInfo('image')).'" alt="" />';
456 456
         }
457
-        $msgs .= '<br><span style="font-size:smaller;">' . $mod->getVar('name', 's') . '</span><br><br>' . _AM_SYSTEM_MODULES_RUSUREUPD;
457
+        $msgs .= '<br><span style="font-size:smaller;">'.$mod->getVar('name', 's').'</span><br><br>'._AM_SYSTEM_MODULES_RUSUREUPD;
458 458
         // Call Header
459 459
         xoops_cp_header();
460 460
         // Define Stylesheet
461
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
461
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
462 462
         // Define Breadcrumb and tips
463 463
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_ADMIN, system_adminVersion('modulesadmin', 'adminpath'));
464 464
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_UPDATE);
465
-        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help') . '#update');
465
+        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help').'#update');
466 466
         $xoBreadCrumb->render();
467 467
         // Display message
468 468
         xoops_confirm(array('module' => $module, 'op' => 'update_ok', 'fct' => 'modulesadmin'), 'admin.php', $msgs, _AM_SYSTEM_MODULES_UPDATE);
@@ -483,11 +483,11 @@  discard block
 block discarded – undo
483 483
         // Call Header
484 484
         xoops_cp_header();
485 485
         // Define Stylesheet
486
-        $xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
486
+        $xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
487 487
         // Define Breadcrumb and tips
488 488
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_ADMIN, system_adminVersion('modulesadmin', 'adminpath'));
489 489
         $xoBreadCrumb->addLink(_AM_SYSTEM_MODULES_UPDATE);
490
-        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help') . '#update');
490
+        $xoBreadCrumb->addHelp(system_adminVersion('modulesadmin', 'help').'#update');
491 491
         $xoBreadCrumb->render();
492 492
         if (count($ret) > 0) {
493 493
             foreach ($ret as $msg) {
Please login to merge, or discard this patch.
htdocs/modules/system/admin/groupperm.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,18 +17,18 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team, Kazumi Ono (AKA onokazu)
18 18
  */
19 19
 /* @var  $xoopsUser XoopsUser */
20
-include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
20
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
21 21
 $modid = isset($_POST['modid']) ? (int)$_POST['modid'] : 0;
22 22
 
23 23
 // we don't want system module permissions to be changed here
24 24
 if ($modid <= 1 || !is_object($xoopsUser) || !$xoopsUser->isAdmin($modid)) {
25
-    redirect_header(XOOPS_URL . '/index.php', 1, _NOPERM);
25
+    redirect_header(XOOPS_URL.'/index.php', 1, _NOPERM);
26 26
 }
27 27
 /* @var $module_handler XoopsModuleHandler */
28 28
 $module_handler = xoops_getHandler('module');
29 29
 $module         = $module_handler->get($modid);
30 30
 if (!is_object($module) || !$module->getVar('isactive')) {
31
-    redirect_header(XOOPS_URL . '/admin.php', 1, _MODULENOEXIST);
31
+    redirect_header(XOOPS_URL.'/admin.php', 1, _MODULENOEXIST);
32 32
 }
33 33
 
34 34
 $msg = array();
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                                 //                                if ($pid != 0 && !in_array($pid, array_keys($item_ids))) {
53 53
                                 if ($pid != 0 && !array_key_exists($pid, $item_ids)) {
54 54
                                     // one of the parent items were not selected, so skip this item
55
-                                    $msg[] = sprintf(_MD_AM_PERMADDNG, '<strong>' . $perm_name . '</strong>', '<strong>' . $perm_data['itemname'][$item_id] . '</strong>', '<strong>' . $group_list[$group_id] . '</strong>') . ' (' . _MD_AM_PERMADDNGP . ')';
55
+                                    $msg[] = sprintf(_MD_AM_PERMADDNG, '<strong>'.$perm_name.'</strong>', '<strong>'.$perm_data['itemname'][$item_id].'</strong>', '<strong>'.$group_list[$group_id].'</strong>').' ('._MD_AM_PERMADDNGP.')';
56 56
                                     continue 2;
57 57
                                 }
58 58
                             }
@@ -64,16 +64,16 @@  discard block
 block discarded – undo
64 64
                         $gperm->setVar('gperm_modid', $modid);
65 65
                         $gperm->setVar('gperm_itemid', $item_id);
66 66
                         if (!$gperm_handler->insert($gperm)) {
67
-                            $msg[] = sprintf(_MD_AM_PERMADDNG, '<strong>' . $perm_name . '</strong>', '<strong>' . $perm_data['itemname'][$item_id] . '</strong>', '<strong>' . $group_list[$group_id] . '</strong>');
67
+                            $msg[] = sprintf(_MD_AM_PERMADDNG, '<strong>'.$perm_name.'</strong>', '<strong>'.$perm_data['itemname'][$item_id].'</strong>', '<strong>'.$group_list[$group_id].'</strong>');
68 68
                         } else {
69
-                            $msg[] = sprintf(_MD_AM_PERMADDOK, '<strong>' . $perm_name . '</strong>', '<strong>' . $perm_data['itemname'][$item_id] . '</strong>', '<strong>' . $group_list[$group_id] . '</strong>');
69
+                            $msg[] = sprintf(_MD_AM_PERMADDOK, '<strong>'.$perm_name.'</strong>', '<strong>'.$perm_data['itemname'][$item_id].'</strong>', '<strong>'.$group_list[$group_id].'</strong>');
70 70
                         }
71 71
                         unset($gperm);
72 72
                     }
73 73
                 }
74 74
             }
75 75
         } else {
76
-            $msg[] = sprintf(_MD_AM_PERMRESETNG, $module->getVar('name') . '(' . $perm_name . ')');
76
+            $msg[] = sprintf(_MD_AM_PERMRESETNG, $module->getVar('name').'('.$perm_name.')');
77 77
         }
78 78
     }
79 79
 }
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
 if ($module->getVar('hasadmin')) {
83 83
     $adminindex = isset($_POST['redirect_url']) ? $_POST['redirect_url'] : $module->getInfo('adminindex');
84 84
     if ($adminindex) {
85
-        $backlink = XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/' . $adminindex;
85
+        $backlink = XOOPS_URL.'/modules/'.$module->getVar('dirname').'/'.$adminindex;
86 86
     }
87 87
 }
88
-$backlink = $backlink ?: XOOPS_URL . '/admin.php';
88
+$backlink = $backlink ?: XOOPS_URL.'/admin.php';
89 89
 
90 90
 redirect_header($backlink, 2, implode('<br>', $msg));
Please login to merge, or discard this patch.
htdocs/modules/system/admin/preferences/main.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -209,16 +209,16 @@
 block discarded – undo
209 209
                 case 'site_cache':
210 210
                     $ele = new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
211 211
                     $ele->addOptionArray(array(
212
-                                             '0'      => _NOCACHE,
213
-                                             '30'     => sprintf(_SECONDS, 30),
214
-                                             '60'     => _MINUTE,
215
-                                             '300'    => sprintf(_MINUTES, 5),
216
-                                             '1800'   => sprintf(_MINUTES, 30),
217
-                                             '3600'   => _HOUR,
218
-                                             '18000'  => sprintf(_HOURS, 5),
219
-                                             '86400'  => _DAY,
220
-                                             '259200' => sprintf(_DAYS, 3),
221
-                                             '604800' => _WEEK));
212
+                                                '0'      => _NOCACHE,
213
+                                                '30'     => sprintf(_SECONDS, 30),
214
+                                                '60'     => _MINUTE,
215
+                                                '300'    => sprintf(_MINUTES, 5),
216
+                                                '1800'   => sprintf(_MINUTES, 30),
217
+                                                '3600'   => _HOUR,
218
+                                                '18000'  => sprintf(_HOURS, 5),
219
+                                                '86400'  => _DAY,
220
+                                                '259200' => sprintf(_DAYS, 3),
221
+                                                '604800' => _WEEK));
222 222
                     break;
223 223
 
224 224
                 case 'password':
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 // Call Header
37 37
 xoops_cp_header();
38 38
 // Define Stylesheet
39
-$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
39
+$xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
40 40
 // Define scripts
41 41
 $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
42 42
 $xoTheme->addScript('modules/system/js/admin.js');
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 case 'theme':
114 114
                 case 'theme_multi':
115 115
                     $ele = ($config[$i]->getVar('conf_formtype') !== 'theme_multi') ? new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()) : new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, true);
116
-                    require_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
116
+                    require_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
117 117
                     $dirlist = XoopsLists::getThemesList();
118 118
                     if (!empty($dirlist)) {
119 119
                         asort($dirlist);
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                         $ele = new XoopsFormElementTray($title, '<br>');
197 197
                         foreach (array_keys($modules) as $mid) {
198 198
                             $c_val   = isset($currrent_val[$mid]) ? (int)$currrent_val[$mid] : null;
199
-                            $selform = new XoopsFormSelect($modules[$mid]->getVar('name'), $config[$i]->getVar('conf_name') . "[$mid]", $c_val);
199
+                            $selform = new XoopsFormSelect($modules[$mid]->getVar('name'), $config[$i]->getVar('conf_name')."[$mid]", $c_val);
200 200
                             $selform->addOptionArray($cache_options);
201 201
                             $ele->addElement($selform);
202 202
                             unset($selform);
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         if ($count < 1) {
269 269
             redirect_header('admin.php?fct=preferences', 1);
270 270
         }
271
-        include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
271
+        include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
272 272
         $form           = new XoopsThemeForm(_MD_AM_MODCONFIG, 'pref_form', 'admin.php?fct=preferences', 'post', true);
273 273
         $module_handler = xoops_getHandler('module');
274 274
         $module         = $module_handler->get($mod);
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
             $myts = MyTextSanitizer::getInstance();
291 291
             $form->addElement(new XoopsFormHidden('redirect', $myts->htmlspecialchars($_REQUEST['redirect'])));
292 292
         } elseif ($module->getInfo('adminindex')) {
293
-            $form->addElement(new XoopsFormHidden('redirect', XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/' . $module->getInfo('adminindex')));
293
+            $form->addElement(new XoopsFormHidden('redirect', XOOPS_URL.'/modules/'.$module->getVar('dirname').'/'.$module->getInfo('adminindex')));
294 294
         }
295 295
         for ($i = 0; $i < $count; ++$i) {
296 296
             $title       = constant($config[$i]->getVar('conf_title'));
@@ -334,23 +334,23 @@  discard block
 block discarded – undo
334 334
                     break;
335 335
 
336 336
                 case 'group':
337
-                    include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
337
+                    include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
338 338
                     $ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false);
339 339
                     break;
340 340
 
341 341
                 case 'group_multi':
342
-                    include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
342
+                    include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
343 343
                     $ele = new XoopsFormSelectGroup($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true);
344 344
                     break;
345 345
 
346 346
                 // RMV-NOTIFY: added 'user' and 'user_multi'
347 347
                 case 'user':
348
-                    include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
348
+                    include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
349 349
                     $ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 1, false);
350 350
                     break;
351 351
 
352 352
                 case 'user_multi':
353
-                    include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
353
+                    include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
354 354
                     $ele = new XoopsFormSelectUser($title, $config[$i]->getVar('conf_name'), false, $config[$i]->getConfValueForOutput(), 5, true);
355 355
                     break;
356 356
 
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 
372 372
                 case 'line_break':
373 373
                     $myts = MyTextSanitizer::getInstance();
374
-                    $form->insertBreak('<div style="text-align:center">' . $title . '</div>', $myts->htmlspecialchars($config[$i]->getConfValueForOutput()));
374
+                    $form->insertBreak('<div style="text-align:center">'.$title.'</div>', $myts->htmlspecialchars($config[$i]->getConfValueForOutput()));
375 375
                     break;
376 376
 
377 377
                 case 'textbox':
@@ -398,9 +398,9 @@  discard block
 block discarded – undo
398 398
             $xoopsTpl->assign('breadcrumb', 1);
399 399
         } else {
400 400
             if ($module->getInfo('adminindex')) {
401
-                echo '<a href="' . XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/' . $module->getInfo('adminindex') . '">' . $module->getVar('name') . '</a>&nbsp;<span style="font-weight:bold;">&raquo;</span>&nbsp;' . _PREFERENCES . '<br><br>';
401
+                echo '<a href="'.XOOPS_URL.'/modules/'.$module->getVar('dirname').'/'.$module->getInfo('adminindex').'">'.$module->getVar('name').'</a>&nbsp;<span style="font-weight:bold;">&raquo;</span>&nbsp;'._PREFERENCES.'<br><br>';
402 402
             } else {
403
-                echo $module->getVar('name') . '&nbsp;<span style="font-weight:bold;">&raquo;</span>&nbsp;' . _PREFERENCES . '<br><br>';
403
+                echo $module->getVar('name').'&nbsp;<span style="font-weight:bold;">&raquo;</span>&nbsp;'._PREFERENCES.'<br><br>';
404 404
             }
405 405
         }
406 406
         $form->display();
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
         if (!$GLOBALS['xoopsSecurity']->check()) {
411 411
             redirect_header('admin.php?fct=preferences', 3, implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
412 412
         }
413
-        require_once XOOPS_ROOT_PATH . '/class/template.php';
413
+        require_once XOOPS_ROOT_PATH.'/class/template.php';
414 414
         $xoopsTpl         = new XoopsTpl();
415 415
         $count            = count($conf_ids);
416 416
         $tpl_updated      = false;
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
         if ($count > 0) {
421 421
             for ($i = 0; $i < $count; ++$i) {
422 422
                 $config    = $config_handler->getConfig($conf_ids[$i]);
423
-                $new_value =& ${$config->getVar('conf_name')};
423
+                $new_value = & ${$config->getVar('conf_name')};
424 424
                 if (is_array($new_value) || $new_value != $config->getVar('conf_value')) {
425 425
                     // if language has been changed
426 426
                     if (!$lang_updated && $config->getVar('conf_catid') == XOOPS_CONF && $config->getVar('conf_name') === 'language') {
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
                             $image_handler = xoops_getHandler('imagesetimg');
470 470
                             $imagefiles    = $image_handler->getObjects(new Criteria('tplset_name', $newtplset), true);
471 471
                             foreach (array_keys($imagefiles) as $j) {
472
-                                if (!$fp = fopen(XOOPS_CACHE_PATH . '/' . $newtplset . '_' . $imagefiles[$j]->getVar('imgsetimg_file'), 'wb')) {
472
+                                if (!$fp = fopen(XOOPS_CACHE_PATH.'/'.$newtplset.'_'.$imagefiles[$j]->getVar('imgsetimg_file'), 'wb')) {
473 473
                                 } else {
474 474
                                     fwrite($fp, $imagefiles[$j]->getVar('imgsetimg_body'));
475 475
                                     fclose($fp);
@@ -510,9 +510,9 @@  discard block
 block discarded – undo
510 510
         // Clean cached files, may take long time
511 511
         // User register_shutdown_function to keep running after connection closes so that cleaning cached files can be finished
512 512
         // Cache management should be performed on a separate page
513
-        require_once XOOPS_ROOT_PATH . '/modules/system/class/maintenance.php';
513
+        require_once XOOPS_ROOT_PATH.'/modules/system/class/maintenance.php';
514 514
         $maintenance = new SystemMaintenance();
515
-        $options     = array(1,2,3); // smarty_cache and Smarty_compile
515
+        $options     = array(1, 2, 3); // smarty_cache and Smarty_compile
516 516
         register_shutdown_function(array(&$maintenance, 'CleanCache'), $options);
517 517
 
518 518
         if ($lang_updated) {
@@ -541,10 +541,10 @@  discard block
 block discarded – undo
541 541
         $nbcolonnes_pref = 5;
542 542
         foreach (array_keys($confcats) as $i) {
543 543
             $preferences['id']    = $confcats[$i]->getVar('confcat_id');
544
-            $preferences['image'] = system_AdminIcons('xoops/' . $image[$i]);
544
+            $preferences['image'] = system_AdminIcons('xoops/'.$image[$i]);
545 545
             $preferences['name']  = constant($confcats[$i]->getVar('confcat_name'));
546 546
             ++$count_prefs;
547
-            $preferences['newline'] = ($count_prefs % $nbcolonnes_pref == 1);// ? true : false;
547
+            $preferences['newline'] = ($count_prefs % $nbcolonnes_pref == 1); // ? true : false;
548 548
             $xoopsTpl->assign('newline', $preferences['newline']);
549 549
 
550 550
             $xoopsTpl->append_by_ref('preferences', $preferences);
Please login to merge, or discard this patch.
htdocs/modules/system/admin/banners/main.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
                 }
114 114
             } else {
115 115
                 xoops_confirm(array(
116
-                                  'ok' => 1,
117
-                                  'bid' => $bid,
118
-                                  'op' => 'banner_delete'), 'admin.php?fct=banners', sprintf(_AM_SYSTEM_BANNERS_SUREDELE));
116
+                                    'ok' => 1,
117
+                                    'bid' => $bid,
118
+                                    'op' => 'banner_delete'), 'admin.php?fct=banners', sprintf(_AM_SYSTEM_BANNERS_SUREDELE));
119 119
             }
120 120
         } else {
121 121
             redirect_header('admin.php?fct=banners', 1, _AM_SYSTEM_DBERROR);
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
                 }
142 142
             } else {
143 143
                 xoops_confirm(array(
144
-                                  'ok' => 1,
145
-                                  'bid' => $bid,
146
-                                  'op' => 'banner_finish_delete'), 'admin.php?fct=banners', sprintf(_AM_SYSTEM_BANNERS_SUREDELE));
144
+                                    'ok' => 1,
145
+                                    'bid' => $bid,
146
+                                    'op' => 'banner_finish_delete'), 'admin.php?fct=banners', sprintf(_AM_SYSTEM_BANNERS_SUREDELE));
147 147
             }
148 148
         } else {
149 149
             redirect_header('admin.php?fct=banners', 1, _AM_SYSTEM_DBERROR);
@@ -214,9 +214,9 @@  discard block
 block discarded – undo
214 214
                 }
215 215
             } else {
216 216
                 xoops_confirm(array(
217
-                                  'ok' => 1,
218
-                                  'cid' => $cid,
219
-                                  'op' => 'banner_client_delete'), 'admin.php?fct=banners', _AM_SYSTEM_BANNERS_SUREDELBNR);
217
+                                    'ok' => 1,
218
+                                    'cid' => $cid,
219
+                                    'op' => 'banner_client_delete'), 'admin.php?fct=banners', _AM_SYSTEM_BANNERS_SUREDELBNR);
220 220
             }
221 221
         } else {
222 222
             redirect_header('admin.php?fct=banners', 1, _AM_SYSTEM_DBERROR);
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 // Call header
42 42
 xoops_cp_header();
43 43
 // Define Stylesheet
44
-$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
45
-$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css');
44
+$xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
45
+$xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/ui/'.xoops_getModuleOption('jquery_theme', 'system').'/ui.all.css');
46 46
 // Define scripts
47 47
 $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
48 48
 $xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     case 'banner_edit': // Edit banner
80 80
         $xoBreadCrumb->addLink(_AM_SYSTEM_BANNERS_NAV_EDITBNR);
81
-        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help') . '#banner_edit');
81
+        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help').'#banner_edit');
82 82
         $xoBreadCrumb->addTips(_AM_SYSTEM_BANNERS_NAV_TIPS);
83 83
         $xoBreadCrumb->render();
84 84
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
     case 'banner_delete': // Delete banner
98 98
         $xoBreadCrumb->addLink(_AM_SYSTEM_BANNERS_NAV_DELETEBNR);
99
-        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help') . '#banner_delete');
99
+        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help').'#banner_delete');
100 100
         $xoBreadCrumb->render();
101 101
 
102 102
         $bid = system_CleanVars($_REQUEST, 'bid', 0, 'int');
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
     case 'banner_finish_delete': // Delete finish banner
126 126
         $xoBreadCrumb->addLink(_AM_SYSTEM_BANNERS_NAV_DELETEFINISHBNR);
127
-        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help') . '#banner_finish_delete');
127
+        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help').'#banner_finish_delete');
128 128
         $xoBreadCrumb->render();
129 129
 
130 130
         $bid = system_CleanVars($_REQUEST, 'bid', 0, 'int');
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
     case 'banner_client_edit': // Edit client
178 178
         $xoBreadCrumb->addLink(_AM_SYSTEM_BANNERS_NAV_EDITADVCLI);
179
-        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help') . '#banner_client_edit');
179
+        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help').'#banner_client_edit');
180 180
         $xoBreadCrumb->addTips(_AM_SYSTEM_BANNERS_NAV_TIPS);
181 181
         $xoBreadCrumb->render();
182 182
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
     case 'banner_client_delete': // Delete Client
195 195
         $xoBreadCrumb->addLink(_AM_SYSTEM_BANNERS_NAV_DELETECLI);
196
-        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help') . '#banner_client_delete');
196
+        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help').'#banner_client_delete');
197 197
         $xoBreadCrumb->render();
198 198
 
199 199
         $cid = system_CleanVars($_REQUEST, 'cid', 0, 'int');
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 
226 226
     case 'new_banner': // Form: New Banner
227 227
         $xoBreadCrumb->addLink(_AM_SYSTEM_BANNERS_NAV_ADDBNR);
228
-        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help') . '#new_banner');
228
+        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help').'#new_banner');
229 229
         $xoBreadCrumb->addTips(_AM_SYSTEM_BANNERS_NAV_TIPS);
230 230
         $xoBreadCrumb->render();
231 231
         /* @var  $obj SystemBanner */
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 
237 237
     case 'new_client': // Form: New Client
238 238
         $xoBreadCrumb->addLink(_AM_SYSTEM_BANNERS_NAV_ADDNWCLI);
239
-        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help') . '#new_client');
239
+        $xoBreadCrumb->addHelp(system_adminVersion('banners', 'help').'#new_client');
240 240
         $xoBreadCrumb->addTips(_AM_SYSTEM_BANNERS_NAV_TIPS);
241 241
         $xoBreadCrumb->render();
242 242
         /* @var  $obj SystemBanner */
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
                     $percent = substr(100 * $clicks / $impmade, 0, 5);
288 288
                 }
289 289
                 if ($imptotal == 0) {
290
-                    $left = '' . _AM_SYSTEM_BANNERS_UNLIMIT . '';
290
+                    $left = ''._AM_SYSTEM_BANNERS_UNLIMIT.'';
291 291
                 } else {
292 292
                     $left = $imptotal - $impmade;
293 293
                 }
@@ -295,10 +295,10 @@  discard block
 block discarded – undo
295 295
                 //Img
296 296
                 $img = '';
297 297
                 if ($htmlbanner) {
298
-                    if ($htmlcode){
298
+                    if ($htmlcode) {
299 299
                         $img .= html_entity_decode($htmlcode);
300 300
                     } else {
301
-                        $img .= ' <iframe src=' . $imageurl . ' border="0" scrolling="no" allowtransparency="true" width="480px" height="60px" style="border:0" alt=""> </iframe>';
301
+                        $img .= ' <iframe src='.$imageurl.' border="0" scrolling="no" allowtransparency="true" width="480px" height="60px" style="border:0" alt=""> </iframe>';
302 302
                     }
303 303
                 } else {
304 304
                     if (strtolower(substr($imageurl, strrpos($imageurl, '.'))) === '.swf') {
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
                         $img .= '</embed>';
310 310
                         $img .= '</object>';
311 311
                     } else {
312
-                        $img .= "<img src='" . $imageurl . "' alt='' />";
312
+                        $img .= "<img src='".$imageurl."' alt='' />";
313 313
                     }
314 314
                 }
315 315
 
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
                 $banner['percent']     = $percent;
321 321
                 $banner['imageurl']    = $img;
322 322
                 $banner['name']        = $name;
323
-                $banner['edit_delete'] = '<img class="cursorpointer" onclick="display_dialog(' . $bid . ', true, false, \'slide\', \'slide\', 200, 520);" src="images/icons/view.png" alt="' . _AM_SYSTEM_BANNERS_VIEW . '" title="' . _AM_SYSTEM_BANNERS_VIEW . '" /><a href="admin.php?fct=banners&amp;op=banner_edit&amp;bid=' . $bid . '"><img src="./images/icons/edit.png" border="0" alt="' . _AM_SYSTEM_BANNERS_EDIT . '" title="' . _AM_SYSTEM_BANNERS_EDIT . '"></a><a href="admin.php?fct=banners&amp;op=banner_delete&amp;bid=' . $bid . '"><img src="./images/icons/delete.png" border="0" alt="' . _AM_SYSTEM_BANNERS_DELETE . '" title="' . _AM_SYSTEM_BANNERS_DELETE . '"></a>';
323
+                $banner['edit_delete'] = '<img class="cursorpointer" onclick="display_dialog('.$bid.', true, false, \'slide\', \'slide\', 200, 520);" src="images/icons/view.png" alt="'._AM_SYSTEM_BANNERS_VIEW.'" title="'._AM_SYSTEM_BANNERS_VIEW.'" /><a href="admin.php?fct=banners&amp;op=banner_edit&amp;bid='.$bid.'"><img src="./images/icons/edit.png" border="0" alt="'._AM_SYSTEM_BANNERS_EDIT.'" title="'._AM_SYSTEM_BANNERS_EDIT.'"></a><a href="admin.php?fct=banners&amp;op=banner_delete&amp;bid='.$bid.'"><img src="./images/icons/delete.png" border="0" alt="'._AM_SYSTEM_BANNERS_DELETE.'" title="'._AM_SYSTEM_BANNERS_DELETE.'"></a>';
324 324
 
325 325
                 $xoopsTpl->append_by_ref('banner', $banner);
326 326
                 $xoopsTpl->append_by_ref('popup_banner', $banner);
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
         }
330 330
         // Display Page Navigation
331 331
         if ($banner_count > $nb_aff) {
332
-            $nav = new XoopsPageNav($banner_count, $nb_aff, $start, 'start', 'fct=banners&amp;startF=' . $startF . '&amp;startC=' . $startC);
332
+            $nav = new XoopsPageNav($banner_count, $nb_aff, $start, 'start', 'fct=banners&amp;startF='.$startF.'&amp;startC='.$startC);
333 333
             $xoopsTpl->assign('nav_menu_banner', $nav->renderNav(4));
334 334
         }
335 335
         // Display Finished Banners
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
                 $banner_finish['dateend']     = formatTimestamp($banner_finish_arr[$i]->getVar('dateend'), 'm');
365 365
                 $name_client                  = $banner_client_Handler->get($banner_finish_arr[$i]->getVar('cid'));
366 366
                 $banner_finish['name']        = $name_client->getVar('name');
367
-                $banner_finish['edit_delete'] = '<img class="cursorpointer" onclick="display_dialog(' . $bid . '000, true, true, \'slide\', \'slide\', 200, 520);" src="images/icons/view.png" alt="' . _AM_SYSTEM_BANNERS_VIEW . '" title="' . _AM_SYSTEM_BANNERS_VIEW . '" /><a href="admin.php?fct=banners&amp;op=banner_finish_delete&amp;bid=' . $bid . '"><img src="./images/icons/delete.png" border="0" alt="' . _AM_SYSTEM_BANNERS_DELETE . '" title="' . _AM_SYSTEM_BANNERS_DELETE . '"></a>';
367
+                $banner_finish['edit_delete'] = '<img class="cursorpointer" onclick="display_dialog('.$bid.'000, true, true, \'slide\', \'slide\', 200, 520);" src="images/icons/view.png" alt="'._AM_SYSTEM_BANNERS_VIEW.'" title="'._AM_SYSTEM_BANNERS_VIEW.'" /><a href="admin.php?fct=banners&amp;op=banner_finish_delete&amp;bid='.$bid.'"><img src="./images/icons/delete.png" border="0" alt="'._AM_SYSTEM_BANNERS_DELETE.'" title="'._AM_SYSTEM_BANNERS_DELETE.'"></a>';
368 368
 
369 369
                 $xoopsTpl->append_by_ref('banner_finish', $banner_finish);
370 370
                 unset($banner_finish);
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
         }
373 373
         // Display Page Navigation
374 374
         if ($banner_finish_count > $nb_aff) {
375
-            $nav = new XoopsPageNav($banner_count, $nb_aff, $startF, 'startF', 'fct=banners&amp;start=' . $start . '&amp;startC=' . $startC);
375
+            $nav = new XoopsPageNav($banner_count, $nb_aff, $startF, 'startF', 'fct=banners&amp;start='.$start.'&amp;startC='.$startC);
376 376
             $xoopsTpl->assign('nav_menu_bannerF', $nav->renderNav(4));
377 377
         }
378 378
         // Display client
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
                 $banner_client['name']          = $banner_client_arr[$i]->getVar('name');
400 400
                 $banner_client['contact']       = $banner_client_arr[$i]->getVar('contact');
401 401
                 $banner_client['email']         = $banner_client_arr[$i]->getVar('email');
402
-                $banner_client['edit_delete']   = '<a href="admin.php?fct=banners&amp;op=banner_client_edit&amp;cid=' . $cid . '"><img src="./images/icons/edit.png" border="0" alt="' . _AM_SYSTEM_BANNERS_EDIT . '" title="' . _AM_SYSTEM_BANNERS_EDIT . '"></a><a href="admin.php?fct=banners&amp;op=banner_client_delete&amp;cid=' . $cid . '"><img src="./images/icons/delete.png" border="0" alt="' . _AM_SYSTEM_BANNERS_DELETE . '" title="' . _AM_SYSTEM_BANNERS_DELETE . '"></a>';
402
+                $banner_client['edit_delete']   = '<a href="admin.php?fct=banners&amp;op=banner_client_edit&amp;cid='.$cid.'"><img src="./images/icons/edit.png" border="0" alt="'._AM_SYSTEM_BANNERS_EDIT.'" title="'._AM_SYSTEM_BANNERS_EDIT.'"></a><a href="admin.php?fct=banners&amp;op=banner_client_delete&amp;cid='.$cid.'"><img src="./images/icons/delete.png" border="0" alt="'._AM_SYSTEM_BANNERS_DELETE.'" title="'._AM_SYSTEM_BANNERS_DELETE.'"></a>';
403 403
 
404 404
                 $xoopsTpl->append_by_ref('banner_client', $banner_client);
405 405
                 unset($banner_client);
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
         }
408 408
         // Display Page Navigation
409 409
         if ($banner_client_count > $nb_aff) {
410
-            $nav = new XoopsPageNav($banner_count, $nb_aff, $startC, 'startC', 'fct=banners&amp;start=' . $start . '&amp;startF=' . $startF);
410
+            $nav = new XoopsPageNav($banner_count, $nb_aff, $startC, 'startC', 'fct=banners&amp;start='.$start.'&amp;startF='.$startF);
411 411
             $xoopsTpl->assign('nav_menu_client', $nav->renderNav(4));
412 412
         }
413 413
         break;
Please login to merge, or discard this patch.
htdocs/modules/system/admin/maintenance/main.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  * @package             system
16 16
  */
17 17
 
18
-require_once XOOPS_ROOT_PATH . '/modules/system/class/maintenance.php';
18
+require_once XOOPS_ROOT_PATH.'/modules/system/class/maintenance.php';
19 19
 
20 20
 // Check users rights
21 21
 if (!is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid())) {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 // Call Header
34 34
 xoops_cp_header();
35 35
 // Define Stylesheet
36
-$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css');
36
+$xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css');
37 37
 // Define scripts
38 38
 $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
39 39
 $xoTheme->addScript('modules/system/js/admin.js');
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $form_maintenance = new XoopsThemeForm(_AM_SYSTEM_MAINTENANCE, 'maintenance_save', 'admin.php?fct=maintenance', 'post', true);
54 54
 
55 55
         $cache = new XoopsFormSelect(_AM_SYSTEM_MAINTENANCE_CACHE, 'cache', '', 3, true);
56
-        $cache->setDescription(XOOPS_VAR_PATH . '/cache/smarty_cache/<br>' . XOOPS_VAR_PATH . '/cache/smarty_compile/<br>' . XOOPS_VAR_PATH . '/cache/xoops_cache/');
56
+        $cache->setDescription(XOOPS_VAR_PATH.'/cache/smarty_cache/<br>'.XOOPS_VAR_PATH.'/cache/smarty_compile/<br>'.XOOPS_VAR_PATH.'/cache/xoops_cache/');
57 57
         $cache_arr = array(
58 58
             1 => 'smarty_cache',
59 59
             2 => 'smarty_compile',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $select_tables = new XoopsFormSelect('', 'tables', '', 7, true);
69 69
         $select_tables->addOptionArray($maintenance->displayTables(true));
70 70
         $tables_tray->addElement($select_tables, false);
71
-        $tables_tray->addElement(new xoopsFormLabel('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . _AM_SYSTEM_MAINTENANCE_DUMP_AND . '&nbsp;'));
71
+        $tables_tray->addElement(new xoopsFormLabel('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'._AM_SYSTEM_MAINTENANCE_DUMP_AND.'&nbsp;'));
72 72
         $choice  = new XoopsFormSelect('&nbsp;&nbsp;', 'maintenance', '', 4, true);
73 73
         $options = array(
74 74
             '1' => _AM_SYSTEM_MAINTENANCE_CHOICE1,
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $select_tables1->addOptionArray($maintenance->displayTables(true));
93 93
         $dump_tray->addElement($select_tables1, false);
94 94
 
95
-        $dump_tray->addElement(new xoopsFormLabel('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . _AM_SYSTEM_MAINTENANCE_DUMP_OR . '&nbsp;'));
95
+        $dump_tray->addElement(new xoopsFormLabel('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'._AM_SYSTEM_MAINTENANCE_DUMP_OR.'&nbsp;'));
96 96
         $ele            = new XoopsFormSelect('&nbsp;&nbsp;', 'dump_modules', '', 7, true);
97 97
     /* @var $module_handler XoopsModuleHandler */
98 98
         $module_handler = xoops_getHandler('module');
Please login to merge, or discard this patch.