@@ -16,7 +16,7 @@ |
||
16 | 16 | * @link http://xoops.org |
17 | 17 | */ |
18 | 18 | |
19 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
19 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
20 | 20 | |
21 | 21 | $xoops = Xoops::getInstance(); |
22 | 22 | $xoops->header(); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @author Laurent JEN (aka DuGris) |
16 | 16 | */ |
17 | 17 | |
18 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
18 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
19 | 19 | |
20 | 20 | $xoops = Xoops::getInstance(); |
21 | 21 | $xoops->header(); |
@@ -31,5 +31,5 @@ discard block |
||
31 | 31 | </ul> |
32 | 32 | "; |
33 | 33 | |
34 | -\Xoops\Utils::dumpFile(__DIR__ . '/class/plugin/system.php'); |
|
34 | +\Xoops\Utils::dumpFile(__DIR__.'/class/plugin/system.php'); |
|
35 | 35 | $xoops->footer(); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @author trabis <[email protected]> |
16 | 16 | */ |
17 | 17 | |
18 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
18 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
19 | 19 | |
20 | 20 | $xoops = Xoops::getInstance(); |
21 | 21 | $xoops->header(); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $configs = $config_handler->getConfigsByUser($xoops->user->getVar('uid'), $xoops->module->getVar('mid')); |
27 | 27 | \Xoops\Utils::dumpVar($configs); |
28 | 28 | $url = $xoops->url('modules/userconfigs'); |
29 | - echo '<a href="' . $url . '">Change your settings</a>'; |
|
29 | + echo '<a href="'.$url.'">Change your settings</a>'; |
|
30 | 30 | } else { |
31 | 31 | echo 'Please login and install userconfigs module'; |
32 | 32 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | public function waiting() |
48 | 48 | { |
49 | 49 | $xoops = Xoops::getInstance(); |
50 | - $ret['count'] = count(\Xoops\Core\Lists\File::getList($xoops->path('modules/codex/')))-2; |
|
50 | + $ret['count'] = count(\Xoops\Core\Lists\File::getList($xoops->path('modules/codex/'))) - 2; |
|
51 | 51 | $ret['name'] = $xoops->getHandlerModule()->getByDirname('codex')->getVar('name'); |
52 | 52 | $ret['link'] = $xoops->url('modules/codex/'); |
53 | 53 | return array(); |
@@ -69,16 +69,16 @@ discard block |
||
69 | 69 | public function backend($limit) |
70 | 70 | { |
71 | 71 | $xoops = Xoops::getInstance(); |
72 | - $i=0; |
|
73 | - $ret=array(); |
|
72 | + $i = 0; |
|
73 | + $ret = array(); |
|
74 | 74 | |
75 | 75 | $files = \Xoops\Core\Lists\File::getList($xoops->path('modules/codex/')); |
76 | 76 | foreach ($files as $file) { |
77 | 77 | if (!in_array($file, array('xoops_version.php', 'index.php'))) { |
78 | 78 | $ret[$i]['title'] = ucfirst(str_replace('.php', '', $file)); |
79 | - $ret[$i]['link'] = $xoops->url('modules/codex/' . $file); |
|
80 | - $ret[$i]['content'] = 'Codex module : ' . ucfirst(str_replace('.php', '', $file)); |
|
81 | - $ret[$i]['date'] = filemtime($xoops->path('modules/codex/' . $file)); |
|
79 | + $ret[$i]['link'] = $xoops->url('modules/codex/'.$file); |
|
80 | + $ret[$i]['content'] = 'Codex module : '.ucfirst(str_replace('.php', '', $file)); |
|
81 | + $ret[$i]['date'] = filemtime($xoops->path('modules/codex/'.$file)); |
|
82 | 82 | ++$i; |
83 | 83 | } |
84 | 84 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | public function search($queries, $andor, $limit, $start, $uid) |
21 | 21 | { |
22 | 22 | $xoops = Xoops::getInstance(); |
23 | - $queries = implode(' ', (array) $queries); |
|
23 | + $queries = implode(' ', (array)$queries); |
|
24 | 24 | |
25 | 25 | $files = \Xoops\Core\Lists\File::getList($xoops->path('modules/codex/')); |
26 | 26 | $res = array(); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @author trabis <[email protected]> |
16 | 16 | */ |
17 | 17 | |
18 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
18 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
19 | 19 | |
20 | 20 | $xoops = Xoops::getInstance(); |
21 | 21 | $xoops->header(); |
@@ -30,5 +30,5 @@ discard block |
||
30 | 30 | See how Codex module hooks into the search module just by using this codex/class/plugin/search.php |
31 | 31 | "; |
32 | 32 | |
33 | -\Xoops\Utils::dumpFile(__DIR__ . '/class/plugin/search.php'); |
|
33 | +\Xoops\Utils::dumpFile(__DIR__.'/class/plugin/search.php'); |
|
34 | 34 | $xoops->footer(); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @author Richard Griffith <[email protected]> |
24 | 24 | */ |
25 | 25 | |
26 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
26 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
27 | 27 | |
28 | 28 | $xoops = Xoops::getInstance(); |
29 | 29 | $xoops->header(); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | echo $xoops->translate('GENDER', 'codex', ['name' => 'Bob', 'gender' => 'sponge']); echo '<br>'; |
87 | 87 | |
88 | 88 | echo "<br>Usage on template<br>"; |
89 | -\Xoops\Utils::dumpFile(__DIR__ .'/templates/language.tpl'); |
|
89 | +\Xoops\Utils::dumpFile(__DIR__.'/templates/language.tpl'); |
|
90 | 90 | $tpl = new \Xoops\Core\XoopsTpl(); |
91 | 91 | $tpl->display("module:codex/language.tpl"); |
92 | 92 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * @author Laurent JEN - aka DuGris |
22 | 22 | */ |
23 | 23 | |
24 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
24 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
25 | 25 | |
26 | 26 | $xoops = Xoops::getInstance(); |
27 | 27 | $xoops->header(); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | if ($response->isSuccess()) { |
46 | 46 | echo 'Message sent. Check your inbox.'; |
47 | 47 | } else { |
48 | - $errors = implode(', ', (array) $response->getErrorMessage()); |
|
48 | + $errors = implode(', ', (array)$response->getErrorMessage()); |
|
49 | 49 | echo 'Your message was not sent<br>'; |
50 | 50 | echo $errors; |
51 | 51 | } |
@@ -48,18 +48,18 @@ |
||
48 | 48 | $xoops->theme()->addScript('/include/xoops.js', array('type' => 'text/javascript')); |
49 | 49 | $xoops->setTpl($xoops->theme()->template); |
50 | 50 | $xoops->tpl()->assign(array( |
51 | - 'xoops_theme' => $xoops->getConfig('theme_set'), |
|
52 | - 'xoops_imageurl' => \XoopsBaseConfig::get('themes-url') . '/' . $xoops->getConfig('theme_set') . '/', |
|
53 | - 'xoops_themecss' => $xoops->getCss($xoops->getConfig('theme_set')), |
|
54 | - 'xoops_requesturi' => htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES), |
|
55 | - 'xoops_sitename' => htmlspecialchars($xoops->getConfig('sitename'), ENT_QUOTES), |
|
56 | - 'xoops_slogan' => htmlspecialchars($xoops->getConfig('slogan'), ENT_QUOTES), |
|
57 | - 'xoops_dirname' => $xoops->isModule() ? $xoops->module->getVar('dirname') : 'system', |
|
58 | - 'xoops_banner' => $xoops->getConfig('banners') ? $xoops->getBanner() : ' ', |
|
59 | - 'xoops_pagetitle' => $xoops->isModule() ? $xoops->module->getVar('name') : htmlspecialchars($xoops->getConfig('slogan'), ENT_QUOTES), |
|
60 | - 'lang_login' => XoopsLocale::A_LOGIN, 'lang_username' => XoopsLocale::C_USERNAME, 'lang_password' => XoopsLocale::C_PASSWORD, |
|
61 | - 'lang_siteclosemsg' => $xoops->getConfig('closesite_text') |
|
62 | - )); |
|
51 | + 'xoops_theme' => $xoops->getConfig('theme_set'), |
|
52 | + 'xoops_imageurl' => \XoopsBaseConfig::get('themes-url') . '/' . $xoops->getConfig('theme_set') . '/', |
|
53 | + 'xoops_themecss' => $xoops->getCss($xoops->getConfig('theme_set')), |
|
54 | + 'xoops_requesturi' => htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES), |
|
55 | + 'xoops_sitename' => htmlspecialchars($xoops->getConfig('sitename'), ENT_QUOTES), |
|
56 | + 'xoops_slogan' => htmlspecialchars($xoops->getConfig('slogan'), ENT_QUOTES), |
|
57 | + 'xoops_dirname' => $xoops->isModule() ? $xoops->module->getVar('dirname') : 'system', |
|
58 | + 'xoops_banner' => $xoops->getConfig('banners') ? $xoops->getBanner() : ' ', |
|
59 | + 'xoops_pagetitle' => $xoops->isModule() ? $xoops->module->getVar('name') : htmlspecialchars($xoops->getConfig('slogan'), ENT_QUOTES), |
|
60 | + 'lang_login' => XoopsLocale::A_LOGIN, 'lang_username' => XoopsLocale::C_USERNAME, 'lang_password' => XoopsLocale::C_PASSWORD, |
|
61 | + 'lang_siteclosemsg' => $xoops->getConfig('closesite_text') |
|
62 | + )); |
|
63 | 63 | //todo check if we can use $xoops->getConfig() instead |
64 | 64 | $config_handler = $xoops->getHandlerConfig(); |
65 | 65 | $criteria = new CriteriaCompo(new Criteria('conf_modid', 1)); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $xoops->setTpl($xoops->theme()->template); |
50 | 50 | $xoops->tpl()->assign(array( |
51 | 51 | 'xoops_theme' => $xoops->getConfig('theme_set'), |
52 | - 'xoops_imageurl' => \XoopsBaseConfig::get('themes-url') . '/' . $xoops->getConfig('theme_set') . '/', |
|
52 | + 'xoops_imageurl' => \XoopsBaseConfig::get('themes-url').'/'.$xoops->getConfig('theme_set').'/', |
|
53 | 53 | 'xoops_themecss' => $xoops->getCss($xoops->getConfig('theme_set')), |
54 | 54 | 'xoops_requesturi' => htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES), |
55 | 55 | 'xoops_sitename' => htmlspecialchars($xoops->getConfig('sitename'), ENT_QUOTES), |