@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author Taiwen Jiang <[email protected]> |
18 | 18 | */ |
19 | 19 | |
20 | -include __DIR__ . '/header.php'; |
|
20 | +include __DIR__.'/header.php'; |
|
21 | 21 | include_once $GLOBALS['xoops']->path('modules/system/constants.php'); |
22 | 22 | |
23 | 23 | $uid = isset($_GET['uid']) ? (int)$_GET['uid'] : 0; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | if (is_object($GLOBALS['xoopsUser'])) { |
26 | 26 | $uid = $GLOBALS['xoopsUser']->getVar('uid'); |
27 | 27 | } else { |
28 | - header('location: ' . XOOPS_URL); |
|
28 | + header('location: '.XOOPS_URL); |
|
29 | 29 | exit(); |
30 | 30 | } |
31 | 31 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | if (is_object($GLOBALS['xoopsUser']) && $uid == $GLOBALS['xoopsUser']->getVar('uid')) { |
38 | 38 | //disable cache |
39 | 39 | $GLOBALS['xoopsConfig']['module_cache'][$GLOBALS['xoopsModule']->getVar('mid')] = 0; |
40 | - $GLOBALS['xoopsOption']['template_main'] = 'profile_userinfo.tpl'; |
|
40 | + $GLOBALS['xoopsOption']['template_main'] = 'profile_userinfo.tpl'; |
|
41 | 41 | include $GLOBALS['xoops']->path('header.php'); |
42 | 42 | |
43 | 43 | /* @var $config_handler XoopsConfigHandler */ |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $GLOBALS['xoopsTpl']->assign('user_candelete', false); |
58 | 58 | } |
59 | 59 | $GLOBALS['xoopsTpl']->assign('user_changeemail', $GLOBALS['xoopsConfigUser']['allow_chgmail']); |
60 | - $thisUser =& $GLOBALS['xoopsUser']; |
|
60 | + $thisUser = & $GLOBALS['xoopsUser']; |
|
61 | 61 | } else { |
62 | 62 | /* @var $member_handler XoopsMemberHandler */ |
63 | 63 | $member_handler = xoops_getHandler('member'); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | // Redirect if not a user or not active and the current user is not admin |
67 | 67 | if (!is_object($thisUser) || (!$thisUser->isActive() && (!$GLOBALS['xoopsUser'] || !$GLOBALS['xoopsUser']->isAdmin()))) { |
68 | - redirect_header(XOOPS_URL . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname', 'n'), 3, _US_SELECTNG); |
|
68 | + redirect_header(XOOPS_URL.'/modules/'.$GLOBALS['xoopsModule']->getVar('dirname', 'n'), 3, _US_SELECTNG); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | if ($rejected) { |
103 | - redirect_header(XOOPS_URL . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname', 'n'), 3, _NOPERM); |
|
103 | + redirect_header(XOOPS_URL.'/modules/'.$GLOBALS['xoopsModule']->getVar('dirname', 'n'), 3, _NOPERM); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | if (is_object($GLOBALS['xoopsUser']) && $GLOBALS['xoopsUser']->isAdmin()) { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | |
138 | 138 | $avatar = ''; |
139 | 139 | if ($thisUser->getVar('user_avatar') && 'blank.gif' !== $thisUser->getVar('user_avatar')) { |
140 | - $avatar = XOOPS_UPLOAD_URL . '/' . $thisUser->getVar('user_avatar'); |
|
140 | + $avatar = XOOPS_UPLOAD_URL.'/'.$thisUser->getVar('user_avatar'); |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | $email = ''; |
@@ -191,25 +191,25 @@ discard block |
||
191 | 191 | if (in_array($mid, $allowed_mids)) { |
192 | 192 | $results = $modules[$mid]->search('', '', 5, 0, $thisUser->getVar('uid')); |
193 | 193 | $count = 0; |
194 | - if(is_array($results)) { |
|
194 | + if (is_array($results)) { |
|
195 | 195 | $count = count($results); |
196 | 196 | } |
197 | 197 | if (is_array($results) && $count > 0) { |
198 | 198 | for ($i = 0; $i < $count; ++$i) { |
199 | 199 | if (isset($results[$i]['image']) && $results[$i]['image'] != '') { |
200 | - $results[$i]['image'] = XOOPS_URL . '/modules/' . $modules[$mid]->getVar('dirname', 'n') . '/' . $results[$i]['image']; |
|
200 | + $results[$i]['image'] = XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname', 'n').'/'.$results[$i]['image']; |
|
201 | 201 | } else { |
202 | - $results[$i]['image'] = XOOPS_URL . '/images/icons/posticon2.gif'; |
|
202 | + $results[$i]['image'] = XOOPS_URL.'/images/icons/posticon2.gif'; |
|
203 | 203 | } |
204 | 204 | if (!preg_match("/^http[s]*:\/\//i", $results[$i]['link'])) { |
205 | - $results[$i]['link'] = XOOPS_URL . '/modules/' . $modules[$mid]->getVar('dirname', 'n') . '/' . $results[$i]['link']; |
|
205 | + $results[$i]['link'] = XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname', 'n').'/'.$results[$i]['link']; |
|
206 | 206 | } |
207 | 207 | $results[$i]['title'] = $myts->htmlspecialchars($results[$i]['title']); |
208 | 208 | $results[$i]['time'] = isset($results[$i]['time']) ? formatTimestamp($results[$i]['time']) : ''; |
209 | 209 | } |
210 | 210 | $showall_link = ''; |
211 | 211 | if ($count == 5) { |
212 | - $showall_link = '<a href="' . XOOPS_URL . '/search.php?action=showallbyuser&mid=' . $mid . '&uid=' . $thisUser->getVar('uid') . '">' . _US_SHOWALL . '</a>'; |
|
212 | + $showall_link = '<a href="'.XOOPS_URL.'/search.php?action=showallbyuser&mid='.$mid.'&uid='.$thisUser->getVar('uid').'">'._US_SHOWALL.'</a>'; |
|
213 | 213 | } |
214 | 214 | $GLOBALS['xoopsTpl']->append('modules', array( |
215 | 215 | 'name' => $modules[$mid]->getVar('name'), |
@@ -228,4 +228,4 @@ discard block |
||
228 | 228 | $GLOBALS['xoopsTpl']->assign('avatar', $avatar); |
229 | 229 | $GLOBALS['xoopsTpl']->assign('recent_activity', _PROFILE_MA_RECENTACTIVITY); |
230 | 230 | $xoBreadcrumbs[] = array('title' => _PROFILE_MA_USERINFO); |
231 | -include __DIR__ . '/footer.php'; |
|
231 | +include __DIR__.'/footer.php'; |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | /* @var $module XoopsModule */ |
17 | 17 | |
18 | 18 | // Include header |
19 | -include __DIR__ . '/header.php'; |
|
19 | +include __DIR__.'/header.php'; |
|
20 | 20 | |
21 | 21 | $page = system_CleanVars($_REQUEST, 'page', '', 'string'); |
22 | 22 | $mid = system_CleanVars($_REQUEST, 'mid', 0, 'int'); |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | $GLOBALS['xoopsOption']['template_main'] = 'system_help.tpl'; |
26 | 26 | xoops_cp_header(); |
27 | 27 | // Define Stylesheet |
28 | -$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/admin.css'); |
|
29 | -$xoTheme->addStylesheet(XOOPS_URL . '/modules/system/css/help.css'); |
|
28 | +$xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/admin.css'); |
|
29 | +$xoTheme->addStylesheet(XOOPS_URL.'/modules/system/css/help.css'); |
|
30 | 30 | // Define Breadcrumb and tips |
31 | 31 | $xoBreadCrumb->addLink(_AM_SYSTEM_HELP, 'help.php'); |
32 | 32 | |
@@ -37,21 +37,21 @@ discard block |
||
37 | 37 | /* @var $module XoopsModule */ |
38 | 38 | $module = $module_handler->get($mid); |
39 | 39 | |
40 | - $xoBreadCrumb->addLink($module->getVar('name'), 'help.php?mid=' . $module->getVar('mid', 's')); |
|
40 | + $xoBreadCrumb->addLink($module->getVar('name'), 'help.php?mid='.$module->getVar('mid', 's')); |
|
41 | 41 | $xoBreadCrumb->addLink(system_adminVersion($page, 'name')); |
42 | 42 | $xoBreadCrumb->render(); |
43 | 43 | |
44 | 44 | // Special handling for the System Module |
45 | 45 | if ($module->getVar('dirname', 'e') === 'system') { |
46 | 46 | xoops_load('xoopslists'); |
47 | - $admin_dir = XOOPS_ROOT_PATH . '/modules/system/admin'; |
|
47 | + $admin_dir = XOOPS_ROOT_PATH.'/modules/system/admin'; |
|
48 | 48 | $dirlist = XoopsLists::getDirListAsArray($admin_dir); |
49 | 49 | foreach ($dirlist as $directory) { |
50 | - if (file_exists($admin_dir . '/' . $directory . '/xoops_version.php')) { |
|
51 | - require $admin_dir . '/' . $directory . '/xoops_version.php'; |
|
50 | + if (file_exists($admin_dir.'/'.$directory.'/xoops_version.php')) { |
|
51 | + require $admin_dir.'/'.$directory.'/xoops_version.php'; |
|
52 | 52 | if ($modversion['help']) { |
53 | 53 | $help['name'] = system_adminVersion($directory, 'name'); |
54 | - $help['link'] = 'help.php?mid=' . $mid . '&' . system_adminVersion($directory, 'help'); |
|
54 | + $help['link'] = 'help.php?mid='.$mid.'&'.system_adminVersion($directory, 'help'); |
|
55 | 55 | $xoopsTpl->append_by_ref('help', $help); |
56 | 56 | unset($help); |
57 | 57 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | foreach ($helplist as $helpitem) { |
71 | 71 | if (($helpitem['name'] !== '') && ($helpitem['link'] !== '')) { |
72 | 72 | $list_help[$j]['name'] = $helpitem['name']; |
73 | - $list_help[$j]['link'] = 'help.php?mid=' . $mid . '&' . $helpitem['link']; |
|
73 | + $list_help[$j]['link'] = 'help.php?mid='.$mid.'&'.$helpitem['link']; |
|
74 | 74 | ++$j; |
75 | 75 | } |
76 | 76 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | unset($helplist); |
81 | 81 | if (($module->getInfo('help') !== '') && ($j == 0)) { |
82 | 82 | $help['name'] = $module->getInfo('name'); |
83 | - $help['link'] = 'help.php?mid=' . $mid . '&' . $module->getInfo('help'); |
|
83 | + $help['link'] = 'help.php?mid='.$mid.'&'.$module->getInfo('help'); |
|
84 | 84 | $xoopsTpl->append_by_ref('help', $help); |
85 | 85 | } |
86 | 86 | unset($help); |
@@ -90,24 +90,24 @@ discard block |
||
90 | 90 | |
91 | 91 | if ($page !== '') { |
92 | 92 | // Call template |
93 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname', 'e') . '/language/' . $xoopsConfig['language'] . '/help/' . $page . '.html')) { |
|
94 | - $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname', 'e') . '/language/' . $xoopsConfig['language'] . '/help/' . $page . '.html'); |
|
95 | - } elseif (file_exists(XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname', 'e') . '/language/' . $xoopsConfig['language'] . '/help/' . $page . '.tpl')) { |
|
96 | - $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname', 'e') . '/language/' . $xoopsConfig['language'] . '/help/' . $page . '.tpl'); |
|
97 | - } elseif (file_exists(XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname', 'e') . '/language/english/help/' . $page . '.html')) { |
|
98 | - $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname', 'e') . '/language/english/help/' . $page . '.html'); |
|
99 | - } elseif (file_exists(XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname', 'e') . '/language/english/help/' . $page . '.tpl')) { |
|
100 | - $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname', 'e') . '/language/english/help/' . $page . '.tpl'); |
|
93 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname', 'e').'/language/'.$xoopsConfig['language'].'/help/'.$page.'.html')) { |
|
94 | + $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname', 'e').'/language/'.$xoopsConfig['language'].'/help/'.$page.'.html'); |
|
95 | + } elseif (file_exists(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname', 'e').'/language/'.$xoopsConfig['language'].'/help/'.$page.'.tpl')) { |
|
96 | + $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname', 'e').'/language/'.$xoopsConfig['language'].'/help/'.$page.'.tpl'); |
|
97 | + } elseif (file_exists(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname', 'e').'/language/english/help/'.$page.'.html')) { |
|
98 | + $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname', 'e').'/language/english/help/'.$page.'.html'); |
|
99 | + } elseif (file_exists(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname', 'e').'/language/english/help/'.$page.'.tpl')) { |
|
100 | + $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname', 'e').'/language/english/help/'.$page.'.tpl'); |
|
101 | 101 | } else { |
102 | 102 | $xoopsTpl->assign('load_error', 1); |
103 | 103 | } |
104 | 104 | $xoopsTpl->assign('helpcontent', $helpcontent); |
105 | 105 | } else { |
106 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname', 'e') . '/language/' . $xoopsConfig['language'] . '/help/module_index.html')) { |
|
107 | - $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname', 'e') . '/language/' . $xoopsConfig['language'] . '/help/module_index.html'); |
|
106 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname', 'e').'/language/'.$xoopsConfig['language'].'/help/module_index.html')) { |
|
107 | + $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname', 'e').'/language/'.$xoopsConfig['language'].'/help/module_index.html'); |
|
108 | 108 | } else { |
109 | 109 | $helpcontent = $module->getInfo('description'); |
110 | - $helpcontent = '<div id="non-modhelp">' . $helpcontent . '</div>'; |
|
110 | + $helpcontent = '<div id="non-modhelp">'.$helpcontent.'</div>'; |
|
111 | 111 | } |
112 | 112 | $xoopsTpl->assign('helpcontent', $helpcontent); |
113 | 113 | } |
@@ -142,14 +142,14 @@ discard block |
||
142 | 142 | // Special handling for the System module |
143 | 143 | if ($module->getVar('dirname', 'e') === 'system') { |
144 | 144 | xoops_load('xoopslists'); |
145 | - $admin_dir = XOOPS_ROOT_PATH . '/modules/system/admin'; |
|
145 | + $admin_dir = XOOPS_ROOT_PATH.'/modules/system/admin'; |
|
146 | 146 | $dirlist = XoopsLists::getDirListAsArray($admin_dir); |
147 | 147 | foreach ($dirlist as $directory) { |
148 | - if (file_exists($admin_dir . '/' . $directory . '/xoops_version.php')) { |
|
149 | - require $admin_dir . '/' . $directory . '/xoops_version.php'; |
|
148 | + if (file_exists($admin_dir.'/'.$directory.'/xoops_version.php')) { |
|
149 | + require $admin_dir.'/'.$directory.'/xoops_version.php'; |
|
150 | 150 | if ($modversion['help']) { |
151 | 151 | $list_help[$j]['name'] = system_adminVersion($directory, 'name'); |
152 | - $list_help[$j]['link'] = 'help.php?mid=' . $module->getVar('mid', 'e') . '&' . system_adminVersion($directory, 'help'); |
|
152 | + $list_help[$j]['link'] = 'help.php?mid='.$module->getVar('mid', 'e').'&'.system_adminVersion($directory, 'help'); |
|
153 | 153 | } |
154 | 154 | unset($modversion); |
155 | 155 | ++$j; |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | foreach ($helplist as $helpitem) { |
168 | 168 | if (($helpitem['name'] !== '') && ($helpitem['link'] !== '')) { |
169 | 169 | $list_help[$j]['name'] = $helpitem['name']; |
170 | - $list_help[$j]['link'] = 'help.php?mid=' . $module->getVar('mid', 'e') . '&' . $helpitem['link']; |
|
170 | + $list_help[$j]['link'] = 'help.php?mid='.$module->getVar('mid', 'e').'&'.$helpitem['link']; |
|
171 | 171 | ++$j; |
172 | 172 | ++$k; |
173 | 173 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | // If there is no help section ($k=0), and a lone help parameter has been defined. |
179 | 179 | if (($module->getInfo('help') !== '') && ($k == 0)) { |
180 | 180 | $list_help[$j]['name'] = $module->getInfo('name'); |
181 | - $list_help[$j]['link'] = 'help.php?mid=' . $module->getVar('mid', 'e') . '&' . $module->getInfo('help'); |
|
181 | + $list_help[$j]['link'] = 'help.php?mid='.$module->getVar('mid', 'e').'&'.$module->getInfo('help'); |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | |
@@ -192,10 +192,10 @@ discard block |
||
192 | 192 | } |
193 | 193 | $xoopsTpl->assign('list_mods', $listed_mods); |
194 | 194 | |
195 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/help/help_center.html')) { |
|
196 | - $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/help/help_center.html'); |
|
195 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/help/help_center.html')) { |
|
196 | + $helpcontent = $xoopsTpl->fetch(XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/help/help_center.html'); |
|
197 | 197 | } else { |
198 | - $helpcontent = '<div id="non-modhelp">' . _MD_CPANEL_HELPCENTER . '</div>'; |
|
198 | + $helpcontent = '<div id="non-modhelp">'._MD_CPANEL_HELPCENTER.'</div>'; |
|
199 | 199 | } |
200 | 200 | |
201 | 201 | $xoopsTpl->assign('helpcontent', $helpcontent); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | } |
37 | 37 | if (!headers_sent() && isset($xoopsConfig['redirect_message_ajax']) && $xoopsConfig['redirect_message_ajax']) { |
38 | 38 | $_SESSION['redirect_message'] = $args[2]; |
39 | - header('Location: ' . preg_replace('/[&]amp;/i', '&', $url)); |
|
39 | + header('Location: '.preg_replace('/[&]amp;/i', '&', $url)); |
|
40 | 40 | exit(); |
41 | 41 | } |
42 | 42 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $GLOBALS['xoTheme']->addScript('', array('type' => 'text/javascript'), ' |
72 | 72 | (function($){ |
73 | 73 | $(document).ready(function(){ |
74 | - $.jGrowl("' . $_SESSION['redirect_message'] . '", { life:3000 , position: "center", speed: "slow" }); |
|
74 | + $.jGrowl("' . $_SESSION['redirect_message'].'", { life:3000 , position: "center", speed: "slow" }); |
|
75 | 75 | }); |
76 | 76 | })(jQuery); |
77 | 77 | '); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $GLOBALS['xoTheme']->addScript('', array('type' => 'text/javascript'), ' |
92 | 92 | (function($){ |
93 | 93 | $(document).ready(function(){ |
94 | - $.jGrowl("' . $_SESSION['redirect_message'] . '", { life:3000 , position: "center", speed: "slow" }); |
|
94 | + $.jGrowl("' . $_SESSION['redirect_message'].'", { life:3000 , position: "center", speed: "slow" }); |
|
95 | 95 | }); |
96 | 96 | })(jQuery); |
97 | 97 | '); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | define('_MB_SYSTEM_RECO', 'Recommend Us'); |
30 | 30 | define('_MB_SYSTEM_PWWIDTH', 'Pop-Up Window Width'); |
31 | 31 | define('_MB_SYSTEM_PWHEIGHT', 'Pop-Up Window Height'); |
32 | -define('_MB_SYSTEM_LOGO', 'Logo image is located %s directory'); // %s is your root image directory name |
|
32 | +define('_MB_SYSTEM_LOGO', 'Logo image is located %s directory'); // %s is your root image directory name |
|
33 | 33 | define('_MB_SYSTEM_COMPEND', 'Comments'); |
34 | 34 | //define('_MB_SYSTEM_LOGGEDINAS',"Logged in as"); |
35 | 35 | define('_MB_SYSTEM_SADMIN', 'Show admin groups'); |
@@ -80,9 +80,9 @@ |
||
80 | 80 | define('_AM_SYSTEM_BLOCKS_MODULECANT', 'This block cannot be deleted directly! If you wish to disable this block, deactivate the module.'); |
81 | 81 | // Tips |
82 | 82 | define('_AM_SYSTEM_BLOCKS_TIPS', '<ul> |
83 | -<li>You can easily change side or order position with the drag\'n drop, click on <img class="tooltip" src="%s" alt="' . _AM_SYSTEM_BLOCKS_DRAG . '" title="' . _AM_SYSTEM_BLOCKS_DRAG . '" /> this image and set your site just the way you want it</li> |
|
83 | +<li>You can easily change side or order position with the drag\'n drop, click on <img class="tooltip" src="%s" alt="' . _AM_SYSTEM_BLOCKS_DRAG.'" title="'._AM_SYSTEM_BLOCKS_DRAG.'" /> this image and set your site just the way you want it</li> |
|
84 | 84 | <li>Add a new custom block</li> |
85 | -<li>Set block online or offline by clicking on <img class="tooltip" width="16" src="%s" alt="' . _AM_SYSTEM_BLOCKS_DISPLAY . '" title="' . _AM_SYSTEM_BLOCKS_DISPLAY . '"/> or <img class="tooltip" width="16" src="%s" alt="' . _AM_SYSTEM_BLOCKS_HIDE . '" title="' . _AM_SYSTEM_BLOCKS_HIDE . '" /></li> |
|
85 | +<li>Set block online or offline by clicking on <img class="tooltip" width="16" src="%s" alt="' . _AM_SYSTEM_BLOCKS_DISPLAY.'" title="'._AM_SYSTEM_BLOCKS_DISPLAY.'"/> or <img class="tooltip" width="16" src="%s" alt="'._AM_SYSTEM_BLOCKS_HIDE.'" title="'._AM_SYSTEM_BLOCKS_HIDE.'" /></li> |
|
86 | 86 | </ul>'); |
87 | 87 | |
88 | 88 | define('_AM_SYSTEM_BLOCKS_FOOTER_LEFT', 'Footer Left'); |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | define('_MD_AM_SOAP_SOAP_RESPONSETIMEOUT', 'SOAP - SOAP Response Timeout'); |
239 | 239 | define('_MD_AM_SOAP_SOAP_RESPONSETIMEOUTDESC', 'Keep The Soap Query Alive for <strong>xx</strong> seconds.'); |
240 | 240 | define('_MD_AM_SOAP_FIELDMAPPING', 'Xoops-Auth server fields mapping'); |
241 | -define('_MD_AM_SOAP_FIELDMAPPINGDESC', 'Describe here the mapping between the Xoops database field and the LDAP Authentication system field.' . '<br><br>Format [Xoops Database field]=[Auth system SOAP attribute]' . '<br>for example : email=mail' . '<br>Separate each with a |' . '<br><br>!! For advanced users !!'); |
|
241 | +define('_MD_AM_SOAP_FIELDMAPPINGDESC', 'Describe here the mapping between the Xoops database field and the LDAP Authentication system field.'.'<br><br>Format [Xoops Database field]=[Auth system SOAP attribute]'.'<br>for example : email=mail'.'<br>Separate each with a |'.'<br><br>!! For advanced users !!'); |
|
242 | 242 | // Xoops Authentication constants |
243 | 243 | define('_MD_AM_AUTH_CONFOPTION_XOOPS', 'XOOPS Database'); |
244 | 244 | define('_MD_AM_AUTH_CONFOPTION_LDAP', 'Standard LDAP Directory'); |
@@ -270,14 +270,14 @@ discard block |
||
270 | 270 | define('_MD_AM_LDAP_USERS_BYPASS', 'Users allowed to bypass LDAP authentication'); |
271 | 271 | define('_MD_AM_LDAP_USERS_BYPASS_DESC', 'Users to be authenticated with native XOOPS method'); |
272 | 272 | define('_MD_AM_LDAP_USETLS', ' Use TLS connection'); |
273 | -define('_MD_AM_LDAP_USETLS_DESC', 'Use a TLS (Transport Layer Security) connection. TLS use standard 389 port number<BR>' . ' and the LDAP version must be set to 3.'); |
|
273 | +define('_MD_AM_LDAP_USETLS_DESC', 'Use a TLS (Transport Layer Security) connection. TLS use standard 389 port number<BR>'.' and the LDAP version must be set to 3.'); |
|
274 | 274 | |
275 | 275 | define('_MD_AM_LDAP_LOGINLDAP_ATTR', 'LDAP Attribute use to search the user'); |
276 | 276 | define('_MD_AM_LDAP_LOGINLDAP_ATTR_D', 'When Login name use in the DN option is set to yes, must correspond to the login name XOOPS'); |
277 | 277 | define('_MD_AM_LDAP_LOGINNAME_ASDN', 'Login name use in the DN'); |
278 | 278 | define('_MD_AM_LDAP_LOGINNAME_ASDN_D', 'The XOOPS login name is used in the LDAP DN (eg : uid=<loginname>,dc=xoops,dc=org)<br>The entry is directly read in the LDAP Server without search'); |
279 | 279 | define('_MD_AM_LDAP_FILTER_PERSON', 'The search filter LDAP query to find user'); |
280 | -define('_MD_AM_LDAP_FILTER_PERSON_DESC', "Special LDAP Filter to find user. @@loginname@@ is replace by the users's login name<br> MUST BE BLANK IF YOU DON'T KNOW WHAT YOU DO' !" . '<br>Ex : (&(objectclass=person)(samaccountname=@@loginname@@)) for AD' . '<br>Ex : (&(objectclass=inetOrgPerson)(uid=@@loginname@@)) for LDAP'); |
|
280 | +define('_MD_AM_LDAP_FILTER_PERSON_DESC', "Special LDAP Filter to find user. @@loginname@@ is replace by the users's login name<br> MUST BE BLANK IF YOU DON'T KNOW WHAT YOU DO' !".'<br>Ex : (&(objectclass=person)(samaccountname=@@loginname@@)) for AD'.'<br>Ex : (&(objectclass=inetOrgPerson)(uid=@@loginname@@)) for LDAP'); |
|
281 | 281 | define('_MD_AM_LDAP_DOMAIN_NAME', 'The domain name'); |
282 | 282 | define('_MD_AM_LDAP_DOMAIN_NAME_DESC', 'Windows domain name. for ADS and NT Server only'); |
283 | 283 | define('_MD_AM_LDAP_PROVIS', 'Automatic XOOPS account provisionning'); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | define('_MD_AM_LDAP_PROVIS_GROUP', 'Default affect group'); |
286 | 286 | define('_MD_AM_LDAP_PROVIS_GROUP_DSC', 'The new user is assign to these groups'); |
287 | 287 | define('_MD_AM_LDAP_FIELD_MAPPING_ATTR', 'Xoops-Auth server fields mapping'); |
288 | -define('_MD_AM_LDAP_FIELD_MAPPING_DESC', 'Describe here the mapping between the XOOPS database field and the LDAP Authentication system field.' . '<br><br>Format [Xoops Database field]=[Auth system LDAP attribute]' . '<br>for example : email=mail' . '<br>Separate each with a |' . '<br><br>!! For advanced users !!'); |
|
288 | +define('_MD_AM_LDAP_FIELD_MAPPING_DESC', 'Describe here the mapping between the XOOPS database field and the LDAP Authentication system field.'.'<br><br>Format [Xoops Database field]=[Auth system LDAP attribute]'.'<br>for example : email=mail'.'<br>Separate each with a |'.'<br><br>!! For advanced users !!'); |
|
289 | 289 | define('_MD_AM_LDAP_PROVIS_UPD', 'Maintain XOOPS account provisionning'); |
290 | 290 | define('_MD_AM_LDAP_PROVIS_UPD_DESC', 'The XOOPS User account is always synchronized with the Authentication Server'); |
291 | 291 | define('_MD_AM_CPANEL', 'Control Panel GUI'); |
@@ -67,11 +67,11 @@ discard block |
||
67 | 67 | return false; |
68 | 68 | } |
69 | 69 | $language = empty($language) ? $GLOBALS['xoopsConfig']['language'] : $language; |
70 | - $path = 'modules/' . $domain . '/language/'; |
|
71 | - if (file_exists($file = $GLOBALS['xoops']->path($path . $language . '/admin/' . $name . '.php'))) { |
|
70 | + $path = 'modules/'.$domain.'/language/'; |
|
71 | + if (file_exists($file = $GLOBALS['xoops']->path($path.$language.'/admin/'.$name.'.php'))) { |
|
72 | 72 | $ret = include_once $file; |
73 | 73 | } else { |
74 | - $ret = include_once $GLOBALS['xoops']->path($path . 'english/admin/' . $name . '.php'); |
|
74 | + $ret = include_once $GLOBALS['xoops']->path($path.'english/admin/'.$name.'.php'); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | return $ret; |
@@ -86,15 +86,15 @@ discard block |
||
86 | 86 | function system_adminVersion($version, $value = '') |
87 | 87 | { |
88 | 88 | static $tblVersion = array(); |
89 | - if (is_array($tblVersion) && array_key_exists($version . '.' . $value, $tblVersion)) { |
|
90 | - return $tblVersion[$version . '.' . $value]; |
|
89 | + if (is_array($tblVersion) && array_key_exists($version.'.'.$value, $tblVersion)) { |
|
90 | + return $tblVersion[$version.'.'.$value]; |
|
91 | 91 | } |
92 | - $path = XOOPS_ROOT_PATH . '/modules/system/admin/' . $version . '/xoops_version.php'; |
|
92 | + $path = XOOPS_ROOT_PATH.'/modules/system/admin/'.$version.'/xoops_version.php'; |
|
93 | 93 | if (file_exists($path)) { |
94 | 94 | include $path; |
95 | 95 | |
96 | 96 | $retvalue = $modversion[$value]; |
97 | - $tblVersion[$version . '.' . $value] = $retvalue; |
|
97 | + $tblVersion[$version.'.'.$value] = $retvalue; |
|
98 | 98 | |
99 | 99 | return $retvalue; |
100 | 100 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $style = 'default'; |
115 | 115 | } |
116 | 116 | |
117 | - $url = $GLOBALS['xoops']->url('modules/system/images/icons/' . $style . '/' . $img); |
|
117 | + $url = $GLOBALS['xoops']->url('modules/system/images/icons/'.$style.'/'.$img); |
|
118 | 118 | |
119 | 119 | return $url; |
120 | 120 | } |
@@ -126,11 +126,11 @@ discard block |
||
126 | 126 | { |
127 | 127 | global $sysTpl, $xoopsModule; |
128 | 128 | |
129 | - $path = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/templates/admin/' . $name . '.tpl'; |
|
129 | + $path = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname', 'n').'/templates/admin/'.$name.'.tpl'; |
|
130 | 130 | if (file_exists($path)) { |
131 | 131 | echo $sysTpl->fetch($path); |
132 | 132 | } else { |
133 | - echo 'Unable to read ' . $name; |
|
133 | + echo 'Unable to read '.$name; |
|
134 | 134 | } |
135 | 135 | } |
136 | 136 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | function modify_chmod($value_chmod, $path_file, $id) |
145 | 145 | { |
146 | - $chmod = '<div id="loading_' . $id . '" align="center" style="display:none;">' . '<img src="./images/mimetypes/spinner.gif" title="Loading" alt="Loading" width="12px"/></div>' . '<div id="chmod' . $id . '">' . '<select size="1" onChange="filemanager_modify_chmod(\'' . $path_file . '\', \'' . $id . '\')" name="chmod" id="chmod">'; |
|
146 | + $chmod = '<div id="loading_'.$id.'" align="center" style="display:none;">'.'<img src="./images/mimetypes/spinner.gif" title="Loading" alt="Loading" width="12px"/></div>'.'<div id="chmod'.$id.'">'.'<select size="1" onChange="filemanager_modify_chmod(\''.$path_file.'\', \''.$id.'\')" name="chmod" id="chmod">'; |
|
147 | 147 | if ($value_chmod == 777) { |
148 | 148 | $chmod .= '<option value="777" selected><span style="color:green;">777</span></option>'; |
149 | 149 | } else { |
@@ -50,14 +50,14 @@ discard block |
||
50 | 50 | function update_system_v211($module) |
51 | 51 | { |
52 | 52 | global $xoopsDB; |
53 | - $result = $xoopsDB->query('SELECT t1.tpl_id FROM ' . $xoopsDB->prefix('tplfile') . ' t1, ' . $xoopsDB->prefix('tplfile') . ' t2 WHERE t1.tpl_refid = t2.tpl_refid AND t1.tpl_module = t2.tpl_module AND t1.tpl_tplset=t2.tpl_tplset AND t1.tpl_file = t2.tpl_file AND t1.tpl_type = t2.tpl_type AND t1.tpl_id > t2.tpl_id'); |
|
53 | + $result = $xoopsDB->query('SELECT t1.tpl_id FROM '.$xoopsDB->prefix('tplfile').' t1, '.$xoopsDB->prefix('tplfile').' t2 WHERE t1.tpl_refid = t2.tpl_refid AND t1.tpl_module = t2.tpl_module AND t1.tpl_tplset=t2.tpl_tplset AND t1.tpl_file = t2.tpl_file AND t1.tpl_type = t2.tpl_type AND t1.tpl_id > t2.tpl_id'); |
|
54 | 54 | $tplids = array(); |
55 | 55 | while (false !== (list($tplid) = $xoopsDB->fetchRow($result))) { |
56 | 56 | $tplids[] = $tplid; |
57 | 57 | } |
58 | 58 | if (count($tplids) > 0) { |
59 | 59 | $tplfile_handler = xoops_getHandler('tplfile'); |
60 | - $duplicate_files = $tplfile_handler->getObjects(new Criteria('tpl_id', '(' . implode(',', $tplids) . ')', 'IN')); |
|
60 | + $duplicate_files = $tplfile_handler->getObjects(new Criteria('tpl_id', '('.implode(',', $tplids).')', 'IN')); |
|
61 | 61 | |
62 | 62 | if (count($duplicate_files) > 0) { |
63 | 63 | foreach (array_keys($duplicate_files) as $i) { |
@@ -65,9 +65,9 @@ discard block |
||
65 | 65 | } |
66 | 66 | } |
67 | 67 | } |
68 | - $sql = 'SHOW INDEX FROM ' . $xoopsDB->prefix('tplfile') . " WHERE KEY_NAME = 'tpl_refid_module_set_file_type'"; |
|
68 | + $sql = 'SHOW INDEX FROM '.$xoopsDB->prefix('tplfile')." WHERE KEY_NAME = 'tpl_refid_module_set_file_type'"; |
|
69 | 69 | if (!$result = $xoopsDB->queryF($sql)) { |
70 | - xoops_error($this->db->error() . '<br>' . $sql); |
|
70 | + xoops_error($this->db->error().'<br>'.$sql); |
|
71 | 71 | |
72 | 72 | return false; |
73 | 73 | } |
@@ -80,9 +80,9 @@ discard block |
||
80 | 80 | |
81 | 81 | return true; |
82 | 82 | } |
83 | - $sql = 'ALTER TABLE ' . $xoopsDB->prefix('tplfile') . ' ADD UNIQUE tpl_refid_module_set_file_type ( tpl_refid, tpl_module, tpl_tplset, tpl_file, tpl_type )'; |
|
83 | + $sql = 'ALTER TABLE '.$xoopsDB->prefix('tplfile').' ADD UNIQUE tpl_refid_module_set_file_type ( tpl_refid, tpl_module, tpl_tplset, tpl_file, tpl_type )'; |
|
84 | 84 | if (!$result = $xoopsDB->queryF($sql)) { |
85 | - xoops_error($xoopsDB->error() . '<br>' . $sql); |
|
85 | + xoops_error($xoopsDB->error().'<br>'.$sql); |
|
86 | 86 | $module->setErrors("'tpl_refid_module_set_file_type' unique index is not added to 'tplfile' table. Warning: do not use XOOPS until you add this unique index."); |
87 | 87 | |
88 | 88 | return false; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /* @var $xoopsUser XoopsUser */ |
16 | 16 | |
17 | 17 | // Include XOOPS control panel header |
18 | -include_once dirname(dirname(__DIR__)) . '/include/cp_header.php'; |
|
18 | +include_once dirname(dirname(__DIR__)).'/include/cp_header.php'; |
|
19 | 19 | // Check user rights |
20 | 20 | if (is_object($xoopsUser)) { |
21 | 21 | $admintest = 0; |
@@ -45,4 +45,4 @@ discard block |
||
45 | 45 | $fct = system_CleanVars($_REQUEST, 'fct', '', 'string'); |
46 | 46 | |
47 | 47 | $xoBreadCrumb = new SystemBreadcrumb($fct); |
48 | -$xoBreadCrumb->addLink(_AM_SYSTEM_CPANEL, XOOPS_URL . '/admin.php', true); |
|
48 | +$xoBreadCrumb->addLink(_AM_SYSTEM_CPANEL, XOOPS_URL.'/admin.php', true); |