@@ -10,7 +10,7 @@ |
||
10 | 10 | function smartobject_plugin_smartband() |
11 | 11 | { |
12 | 12 | global $xoopsConfig; |
13 | - require_once XOOPS_ROOT_PATH . '/modules/smartband/language/' . $xoopsConfig['language'] . '/main.php'; |
|
13 | + require_once XOOPS_ROOT_PATH.'/modules/smartband/language/'.$xoopsConfig['language'].'/main.php'; |
|
14 | 14 | |
15 | 15 | $pluginInfo = []; |
16 | 16 | $pluginInfo['items']['item']['caption'] = _MD_ARTALBUM_ITEM_CAP; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $tagObj = $smartobjectTagHandler->get($tagid); |
18 | 18 | |
19 | 19 | if ($tagObj->isNew()) { |
20 | - $breadcrumb = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_TAG_CREATE; |
|
20 | + $breadcrumb = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_TAG_CREATE; |
|
21 | 21 | $title = _AM_SOBJECT_TAG_CREATE; |
22 | 22 | $info = _AM_SOBJECT_TAG_CREATE_INFO; |
23 | 23 | $collaps_name = 'tagcreate'; |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | //$tagObj->stripMultilanguageFields(); |
27 | 27 | } else { |
28 | 28 | if ($language) { |
29 | - $breadcrumb = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_TAG_EDITING_LANGUAGE; |
|
29 | + $breadcrumb = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_TAG_EDITING_LANGUAGE; |
|
30 | 30 | $title = _AM_SOBJECT_TAG_EDIT_LANGUAGE; |
31 | 31 | $info = _AM_SOBJECT_TAG_EDIT_LANGUAGE_INFO; |
32 | 32 | $collaps_name = 'tageditlanguage'; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $submit_button_caption = null; |
35 | 35 | $tagObj->makeNonMLFieldReadOnly(); |
36 | 36 | } else { |
37 | - $breadcrumb = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_EDITING; |
|
37 | + $breadcrumb = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_EDITING; |
|
38 | 38 | $title = _AM_SOBJECT_TAG_EDIT; |
39 | 39 | $info = _AM_SOBJECT_TAG_EDIT_INFO; |
40 | 40 | $collaps_name = 'tagedit'; |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | smart_close_collapsable($collaps_name); |
54 | 54 | } |
55 | 55 | |
56 | -require_once __DIR__ . '/admin_header.php'; |
|
57 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
58 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttag.php'; |
|
56 | +require_once __DIR__.'/admin_header.php'; |
|
57 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
58 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttag.php'; |
|
59 | 59 | |
60 | 60 | $smartobjectTagHandler = xoops_getModuleHandler('tag'); |
61 | 61 | |
@@ -75,22 +75,22 @@ discard block |
||
75 | 75 | switch ($op) { |
76 | 76 | |
77 | 77 | case 'del': |
78 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
78 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
79 | 79 | $controller = new SmartObjectController($smartobjectTagHandler); |
80 | 80 | $controller->handleObjectDeletion(_AM_SOBJECT_TAG_DELETE_CONFIRM); |
81 | 81 | |
82 | 82 | break; |
83 | 83 | |
84 | 84 | case 'addtag': |
85 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
85 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
86 | 86 | $controller = new SmartObjectController($smartobjectTagHandler); |
87 | 87 | $tagObj = $controller->storeSmartObject(); |
88 | 88 | if ($tagObj->hasError()) { |
89 | - redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors()); |
|
89 | + redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR.$tagObj->getHtmlErrors()); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | if ($tagObj->hasError()) { |
93 | - redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors()); |
|
93 | + redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR.$tagObj->getHtmlErrors()); |
|
94 | 94 | } else { |
95 | 95 | redirect_header(smart_get_page_before_form(), 3, _CO_SOBJECT_SAVE_SUCCESS); |
96 | 96 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | smart_collapsableBar('tags', _AM_SOBJECT_TAGS, _AM_SOBJECT_TAGS_INFO); |
112 | 112 | |
113 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
113 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
114 | 114 | $objectTable = new SmartObjectTable($smartobjectTagHandler, false, ['delete']); |
115 | 115 | $objectTable->addColumn(new SmartObjectColumn('name')); |
116 | 116 | $objectTable->addColumn(new SmartObjectColumn('language')); |
@@ -137,4 +137,4 @@ discard block |
||
137 | 137 | |
138 | 138 | //smart_modFooter(); |
139 | 139 | //xoops_cp_footer(); |
140 | -require_once __DIR__ . '/admin_footer.php'; |
|
140 | +require_once __DIR__.'/admin_footer.php'; |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | * Licence: GNU |
12 | 12 | */ |
13 | 13 | |
14 | -require_once __DIR__ . '/admin_header.php'; |
|
15 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
16 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectlink.php'; |
|
14 | +require_once __DIR__.'/admin_header.php'; |
|
15 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
16 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjectlink.php'; |
|
17 | 17 | $adminObject = \Xmf\Module\Admin::getInstance(); |
18 | 18 | |
19 | 19 | $smartobjectLinkHandler = xoops_getModuleHandler('link'); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | switch ($op) { |
31 | 31 | |
32 | 32 | case 'del': |
33 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
33 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
34 | 34 | $controller = new SmartObjectController($smartobjectLinkHandler); |
35 | 35 | $controller->handleObjectDeletion(_AM_SOBJECT_SENT_LINK_DELETE_CONFIRM); |
36 | 36 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $linkObj = $smartobjectLinkHandler->get($linkid); |
42 | 42 | |
43 | 43 | if ($linkObj->isNew()) { |
44 | - redirect_header(SMARTOBJECT_URL . 'admin/link.php', 3, _AM_SOBJECT_LINK_NOT_FOUND); |
|
44 | + redirect_header(SMARTOBJECT_URL.'admin/link.php', 3, _AM_SOBJECT_LINK_NOT_FOUND); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | smart_xoops_cp_header(); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINK_DISPLAY, _AM_SOBJECT_SENT_LINK_DISPLAY_INFO); |
52 | 52 | |
53 | - require_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
53 | + require_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
54 | 54 | |
55 | 55 | // --- |
56 | 56 | // 2012-01-01 PHP 5.3: Assigning the return value of new by reference is now deprecated. |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINKS, _AM_SOBJECT_SENT_LINKS_INFO); |
79 | 79 | |
80 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
80 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
81 | 81 | $objectTable = new SmartObjectTable($smartobjectLinkHandler, null, ['delete']); |
82 | 82 | $objectTable->addColumn(new SmartObjectColumn('date')); |
83 | 83 | $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_SENT_LINKS_FROM, $align = 'left', $width = false, 'getFromInfo')); |
@@ -100,4 +100,4 @@ discard block |
||
100 | 100 | |
101 | 101 | //smart_modFooter(); |
102 | 102 | //xoops_cp_footer(); |
103 | -require_once __DIR__ . '/admin_footer.php'; |
|
103 | +require_once __DIR__.'/admin_footer.php'; |
@@ -7,8 +7,8 @@ discard block |
||
7 | 7 | * Licence: GNU |
8 | 8 | */ |
9 | 9 | |
10 | -require_once __DIR__ . '/admin_header.php'; |
|
11 | -require_once SMARTCONTENT_ROOT_PATH . 'class/dbupdater.php'; |
|
10 | +require_once __DIR__.'/admin_header.php'; |
|
11 | +require_once SMARTCONTENT_ROOT_PATH.'class/dbupdater.php'; |
|
12 | 12 | |
13 | 13 | smartcontent_xoops_cp_header(); |
14 | 14 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | $ret = []; |
208 | 208 | global $xoopsDB; |
209 | 209 | $catHandler = xoops_getModuleHandler('category', 'wfdownloads'); |
210 | - $result = $xoopsDB->query('SHOW COLUMNS FROM ' . $catHandler->table); |
|
210 | + $result = $xoopsDB->query('SHOW COLUMNS FROM '.$catHandler->table); |
|
211 | 211 | while ($existing_field = $xoopsDB->fetchArray($result)) { |
212 | 212 | $fields[$existing_field['field']] = $existing_field['type']; |
213 | 213 | } |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | //$xoopsDB->query("ALTER TABLE ".$table." ADD ".$field." ".$type); |
267 | 267 | //echo $field."(".$type.") <FONT COLOR='##22DD51'>Added</FONT><br>"; |
268 | 268 | } elseif ($existing_fields[$field] != $type) { |
269 | - $table->addAlteredField($field, $field . ' ' . $type); |
|
269 | + $table->addAlteredField($field, $field.' '.$type); |
|
270 | 270 | // check $fields[$field]['type'] for things like "int(10) unsigned" |
271 | 271 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$field." ".$type); |
272 | 272 | //echo $field." <FONT COLOR='#FF6600'>Changed to</FONT> ".$type."<br>"; |
@@ -287,17 +287,17 @@ discard block |
||
287 | 287 | function get_table_info($table, $default_fields) |
288 | 288 | { |
289 | 289 | global $xoopsDB; |
290 | - $result = $xoopsDB->query('SHOW COLUMNS FROM ' . $table); |
|
290 | + $result = $xoopsDB->query('SHOW COLUMNS FROM '.$table); |
|
291 | 291 | while ($existing_field = $xoopsDB->fetchArray($result)) { |
292 | 292 | $fields[$existing_field['Field']] = $existing_field['Type']; |
293 | 293 | if ($existing_field['Null'] !== 'YES') { |
294 | 294 | $fields[$existing_field['Field']] .= ' NOT NULL'; |
295 | 295 | } |
296 | 296 | if ($existing_field['Extra']) { |
297 | - $fields[$existing_field['Field']] .= ' ' . $existing_field['Extra']; |
|
297 | + $fields[$existing_field['Field']] .= ' '.$existing_field['Extra']; |
|
298 | 298 | } |
299 | 299 | if ($default_fields[$existing_field['Field']]['Default']) { |
300 | - $fields[$existing_field['Field']] .= " default '" . $existing_field['Default'] . "'"; |
|
300 | + $fields[$existing_field['Field']] .= " default '".$existing_field['Default']."'"; |
|
301 | 301 | } |
302 | 302 | } |
303 | 303 | |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | if (in_array($field, array_keys($renamed_fields))) { |
320 | 320 | $new_field_name = $renamed_fields[$field]; |
321 | 321 | $new_field_type = $new_fields[$new_field_name]['Type']; |
322 | - $table->addAltered($field, $new_field_name . ' ' . $new_field_type); |
|
322 | + $table->addAltered($field, $new_field_name.' '.$new_field_type); |
|
323 | 323 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$new_field_name." ".$new_field_type); |
324 | 324 | //echo $field." Renamed to ".$new_field_name."<br>"; |
325 | 325 | $fields[$new_field_name] = $new_field_type; |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | //return $fields; |
329 | 329 | } |
330 | 330 | |
331 | -$op = isset($_REQUEST['op']) ? (int)$_REQUEST['op'] : 0; |
|
331 | +$op = isset($_REQUEST['op']) ? (int) $_REQUEST['op'] : 0; |
|
332 | 332 | switch ($op) { |
333 | 333 | case 1: |
334 | 334 | // Make sure that nohtml is properly changed to dohtml |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | |
348 | 348 | default: |
349 | 349 | //ask what to do |
350 | - include XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
350 | + include XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
351 | 351 | $form = new XoopsThemeForm('Upgrade WF-Downloads', 'form', $_SERVER['REQUEST_URI']); |
352 | 352 | |
353 | 353 | //Is MyDownloads installed? |
@@ -372,4 +372,4 @@ discard block |
||
372 | 372 | } |
373 | 373 | //wfdownloads_modFooter(); |
374 | 374 | //xoops_cp_footer(); |
375 | -require_once __DIR__ . '/admin_footer.php'; |
|
375 | +require_once __DIR__.'/admin_footer.php'; |
@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | } |
41 | 41 | } |
42 | 42 | |
43 | -require_once __DIR__ . '/admin_header.php'; |
|
44 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
45 | -require_once SMARTOBJECT_ROOT_PATH . 'class/adsense.php'; |
|
43 | +require_once __DIR__.'/admin_header.php'; |
|
44 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
45 | +require_once SMARTOBJECT_ROOT_PATH.'class/adsense.php'; |
|
46 | 46 | $smartobjectAdsenseHandler = xoops_getModuleHandler('adsense'); |
47 | 47 | smart_loadLanguageFile('smartobject', 'adsense'); |
48 | 48 | $adminObject = \Xmf\Module\Admin::getInstance(); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | switch ($op) { |
60 | 60 | case 'mod': |
61 | 61 | |
62 | - $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0; |
|
62 | + $adsenseid = isset($_GET['adsenseid']) ? (int) $_GET['adsenseid'] : 0; |
|
63 | 63 | |
64 | 64 | smart_xoops_cp_header(); |
65 | 65 | $adminObject->displayNavigation(basename(__FILE__)); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | case 'clone': |
71 | 71 | |
72 | - $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0; |
|
72 | + $adsenseid = isset($_GET['adsenseid']) ? (int) $_GET['adsenseid'] : 0; |
|
73 | 73 | |
74 | 74 | smart_xoops_cp_header(); |
75 | 75 | $adminObject->displayNavigation(basename(__FILE__)); |
@@ -78,20 +78,20 @@ discard block |
||
78 | 78 | break; |
79 | 79 | |
80 | 80 | case 'addadsense': |
81 | - if (@require_once SMARTOBJECT_ROOT_PATH . 'include/captcha/captcha.php') { |
|
81 | + if (@require_once SMARTOBJECT_ROOT_PATH.'include/captcha/captcha.php') { |
|
82 | 82 | $xoopsCaptcha = XoopsCaptcha::getInstance(); |
83 | 83 | if (!$xoopsCaptcha->verify()) { |
84 | 84 | redirect_header('javascript:history.go(-1);', 3, $xoopsCaptcha->getMessage()); |
85 | 85 | } |
86 | 86 | } |
87 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
87 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
88 | 88 | $controller = new SmartObjectController($smartobjectAdsenseHandler); |
89 | 89 | $controller->storeFromDefaultForm(_AM_SOBJECT_ADSENSES_CREATED, _AM_SOBJECT_ADSENSES_MODIFIED); |
90 | 90 | break; |
91 | 91 | |
92 | 92 | case 'del': |
93 | 93 | |
94 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
94 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
95 | 95 | $controller = new SmartObjectController($smartobjectAdsenseHandler); |
96 | 96 | $controller->handleObjectDeletion(); |
97 | 97 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | smart_collapsableBar('createdadsenses', _AM_SOBJECT_ADSENSES, _AM_SOBJECT_ADSENSES_DSC); |
108 | 108 | |
109 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
109 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
110 | 110 | $objectTable = new SmartObjectTable($smartobjectAdsenseHandler); |
111 | 111 | $objectTable->addColumn(new SmartObjectColumn('description', 'left')); |
112 | 112 | $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_ADSENSE_TAG, 'center', 200, 'getXoopsCode')); |
@@ -153,4 +153,4 @@ discard block |
||
153 | 153 | |
154 | 154 | //smart_modFooter(); |
155 | 155 | //xoops_cp_footer(); |
156 | -require_once __DIR__ . '/admin_footer.php'; |
|
156 | +require_once __DIR__.'/admin_footer.php'; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | // defined('XOOPS_ROOT_PATH') || exit('Restricted access.'); |
15 | 15 | |
16 | -require_once XOOPS_ROOT_PATH . '/class/xoopsform/formelement.php'; |
|
16 | +require_once XOOPS_ROOT_PATH.'/class/xoopsform/formelement.php'; |
|
17 | 17 | |
18 | 18 | /* |
19 | 19 | * Usage |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $backgroundnum = null |
63 | 63 | ) { |
64 | 64 | if (!class_exists('XoopsCaptcaha')) { |
65 | - require_once SMARTOBJECT_ROOT_PATH . '/include/captcha/captcha.php'; |
|
65 | + require_once SMARTOBJECT_ROOT_PATH.'/include/captcha/captcha.php'; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $this->_captchaHandler = XoopsCaptcha::getInstance(); |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | class XoopsCaptcha |
15 | 15 | { |
16 | 16 | public $active = true; |
17 | - public $mode = 'text'; // potential values: image, text |
|
17 | + public $mode = 'text'; // potential values: image, text |
|
18 | 18 | public $config = []; |
19 | 19 | |
20 | 20 | public $message = []; // Logging error messages |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | public function __construct() |
26 | 26 | { |
27 | 27 | // Loading default preferences |
28 | - $this->config = @include __DIR__ . '/config.php'; |
|
28 | + $this->config = @include __DIR__.'/config.php'; |
|
29 | 29 | |
30 | 30 | $this->setMode($this->config['mode']); |
31 | 31 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | { |
142 | 142 | $sessionName = @$_SESSION['XoopsCaptcha_name']; |
143 | 143 | $skipMember = ($skipMember === null) ? @$_SESSION['XoopsCaptcha_skipmember'] : $skipMember; |
144 | - $maxAttempts = (int)(@$_SESSION['XoopsCaptcha_maxattempts']); |
|
144 | + $maxAttempts = (int) (@$_SESSION['XoopsCaptcha_maxattempts']); |
|
145 | 145 | |
146 | 146 | $is_valid = false; |
147 | 147 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | if (is_object($GLOBALS['xoopsUser']) && !empty($skipMember)) { |
150 | 150 | $is_valid = true; |
151 | 151 | // Kill too many attempts |
152 | - } elseif (!empty($maxAttempts) && $_SESSION['XoopsCaptcha_attempt_' . $sessionName] > $maxAttempts) { |
|
152 | + } elseif (!empty($maxAttempts) && $_SESSION['XoopsCaptcha_attempt_'.$sessionName] > $maxAttempts) { |
|
153 | 153 | $this->message[] = XOOPS_CAPTCHA_TOOMANYATTEMPTS; |
154 | 154 | |
155 | 155 | // Verify the code |
@@ -161,13 +161,13 @@ discard block |
||
161 | 161 | if (!empty($maxAttempts)) { |
162 | 162 | if (!$is_valid) { |
163 | 163 | // Increase the attempt records on failure |
164 | - $_SESSION['XoopsCaptcha_attempt_' . $sessionName]++; |
|
164 | + $_SESSION['XoopsCaptcha_attempt_'.$sessionName]++; |
|
165 | 165 | // Log the error message |
166 | 166 | $this->message[] = XOOPS_CAPTCHA_INVALID_CODE; |
167 | 167 | } else { |
168 | 168 | |
169 | 169 | // reset attempt records on success |
170 | - $_SESSION['XoopsCaptcha_attempt_' . $sessionName] = null; |
|
170 | + $_SESSION['XoopsCaptcha_attempt_'.$sessionName] = null; |
|
171 | 171 | } |
172 | 172 | } |
173 | 173 | $this->destroyGarbage(true); |
@@ -198,8 +198,8 @@ discard block |
||
198 | 198 | */ |
199 | 199 | public function destroyGarbage($clearSession = false) |
200 | 200 | { |
201 | - require_once __DIR__ . '/' . $this->mode . '.php'; |
|
202 | - $class = 'XoopsCaptcha' . ucfirst($this->mode); |
|
201 | + require_once __DIR__.'/'.$this->mode.'.php'; |
|
202 | + $class = 'XoopsCaptcha'.ucfirst($this->mode); |
|
203 | 203 | $captchaHandler = new $class(); |
204 | 204 | if (method_exists($captchaHandler, 'destroyGarbage')) { |
205 | 205 | $captchaHandler->loadConfig($this->config); |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | */ |
239 | 239 | |
240 | 240 | // Fail on too many attempts |
241 | - if (!empty($maxAttempts) && @$_SESSION['XoopsCaptcha_attempt_' . $this->config['name']] > $maxAttempts) { |
|
241 | + if (!empty($maxAttempts) && @$_SESSION['XoopsCaptcha_attempt_'.$this->config['name']] > $maxAttempts) { |
|
242 | 242 | $form = XOOPS_CAPTCHA_TOOMANYATTEMPTS; |
243 | 243 | // Load the form element |
244 | 244 | } else { |
@@ -253,8 +253,8 @@ discard block |
||
253 | 253 | */ |
254 | 254 | public function loadForm() |
255 | 255 | { |
256 | - require_once __DIR__ . '/' . $this->mode . '.php'; |
|
257 | - $class = 'XoopsCaptcha' . ucfirst($this->mode); |
|
256 | + require_once __DIR__.'/'.$this->mode.'.php'; |
|
257 | + $class = 'XoopsCaptcha'.ucfirst($this->mode); |
|
258 | 258 | $captchaHandler = new $class(); |
259 | 259 | $captchaHandler->loadConfig($this->config); |
260 | 260 |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | |
20 | 20 | // defined('XOOPS_ROOT_PATH') || exit('Restricted access.'); |
21 | 21 | |
22 | -require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'; |
|
23 | -require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartdbupdater.php'; |
|
22 | +require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'; |
|
23 | +require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartdbupdater.php'; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @param XoopsModule $module |
@@ -37,12 +37,12 @@ discard block |
||
37 | 37 | |
38 | 38 | $dbupdater = new SmartobjectDbupdater(); |
39 | 39 | |
40 | - echo '<code>' . _SDU_UPDATE_UPDATING_DATABASE . '<br>'; |
|
40 | + echo '<code>'._SDU_UPDATE_UPDATING_DATABASE.'<br>'; |
|
41 | 41 | |
42 | 42 | // db migrate version = 1 |
43 | 43 | $newDbVersion = 1; |
44 | 44 | if ($dbVersion < $newDbVersion) { |
45 | - echo 'Database migrate to version ' . $newDbVersion . '<br>'; |
|
45 | + echo 'Database migrate to version '.$newDbVersion.'<br>'; |
|
46 | 46 | |
47 | 47 | // Create table smartobject_link |
48 | 48 | $table = new SmartDbTable('smartobject_link'); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | // db migrate version = 2 |
146 | 146 | $newDbVersion = 2; |
147 | 147 | if ($dbVersion < $newDbVersion) { |
148 | - echo 'Database migrate to version ' . $newDbVersion . '<br>'; |
|
148 | + echo 'Database migrate to version '.$newDbVersion.'<br>'; |
|
149 | 149 | |
150 | 150 | // Create table smartobject_rating |
151 | 151 | $table = new SmartDbTable('smartobject_rating'); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | // db migrate version = 3 |
186 | 186 | $newDbVersion = 3; |
187 | 187 | if ($dbVersion < $newDbVersion) { |
188 | - echo 'Database migrate to version ' . $newDbVersion . '<br>'; |
|
188 | + echo 'Database migrate to version '.$newDbVersion.'<br>'; |
|
189 | 189 | |
190 | 190 | // Create table smartobject_customtag |
191 | 191 | $table = new SmartDbTable('smartobject_customtag'); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | // db migrate version = 4 |
211 | 211 | $newDbVersion = 4; |
212 | 212 | if ($dbVersion < $newDbVersion) { |
213 | - echo 'Database migrate to version ' . $newDbVersion . '<br>'; |
|
213 | + echo 'Database migrate to version '.$newDbVersion.'<br>'; |
|
214 | 214 | |
215 | 215 | // Create table smartobject_currency |
216 | 216 | $table = new SmartDbTable('smartobject_currency'); |
@@ -236,12 +236,12 @@ discard block |
||
236 | 236 | // db migrate version = 6 |
237 | 237 | $newDbVersion = 6; |
238 | 238 | if ($dbVersion < $newDbVersion) { |
239 | - echo 'Database migrate to version ' . $newDbVersion . '<br>'; |
|
239 | + echo 'Database migrate to version '.$newDbVersion.'<br>'; |
|
240 | 240 | } |
241 | 241 | |
242 | 242 | $newDbVersion = 7; |
243 | 243 | if ($dbVersion < $newDbVersion) { |
244 | - echo 'Database migrate to version ' . $newDbVersion . '<br>'; |
|
244 | + echo 'Database migrate to version '.$newDbVersion.'<br>'; |
|
245 | 245 | |
246 | 246 | // Create table smartobject_file |
247 | 247 | $table = new SmartDbTable('smartobject_file'); |
@@ -9,10 +9,10 @@ discard block |
||
9 | 9 | // defined('XOOPS_ROOT_PATH') || exit('Restricted access.'); |
10 | 10 | |
11 | 11 | if (!defined('SMARTOBJECT_URL')) { |
12 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'; |
|
12 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'; |
|
13 | 13 | } |
14 | -require_once SMARTOBJECT_ROOT_PATH . 'class/rating.php'; |
|
15 | -require_once SMARTOBJECT_ROOT_PATH . 'include/functions.php'; |
|
14 | +require_once SMARTOBJECT_ROOT_PATH.'class/rating.php'; |
|
15 | +require_once SMARTOBJECT_ROOT_PATH.'include/functions.php'; |
|
16 | 16 | |
17 | 17 | smart_loadLanguageFile('smartobject', 'rating'); |
18 | 18 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $urls = smart_getCurrentUrls(); |
44 | 44 | $xoopsTpl->assign('smartobject_rating_current_page', $urls['full']); |
45 | 45 | if (isset($xoTheme) && is_object($xoTheme)) { |
46 | - $xoTheme->addStylesheet(SMARTOBJECT_URL . 'assets/css/module.css'); |
|
46 | + $xoTheme->addStylesheet(SMARTOBJECT_URL.'assets/css/module.css'); |
|
47 | 47 | } else { |
48 | 48 | //probleme d'inclusion de css apres le flashplayer. Style plac� dans css du theme |
49 | 49 | //$xoopsTpl->assign('smartobject_css',"<link rel='stylesheet' type='text/css' href='".XOOPS_URL."/modules/smartobject/assets/css/module.css'>"); |