@@ -32,88 +32,88 @@ |
||
32 | 32 | |
33 | 33 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
34 | 34 | if (!defined('PLANET_INI')) { |
35 | - exit(); |
|
35 | + exit(); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | if (!defined('PLANET_FUNCTIONS_INI')): |
39 | - define('PLANET_FUNCTIONS_INI', 1); |
|
39 | + define('PLANET_FUNCTIONS_INI', 1); |
|
40 | 40 | |
41 | - /** |
|
42 | - * @param $name |
|
43 | - * @return mixed |
|
44 | - */ |
|
45 | - function planet_constant($name) |
|
46 | - { |
|
47 | - return mod_constant($name); |
|
48 | - } |
|
41 | + /** |
|
42 | + * @param $name |
|
43 | + * @return mixed |
|
44 | + */ |
|
45 | + function planet_constant($name) |
|
46 | + { |
|
47 | + return mod_constant($name); |
|
48 | + } |
|
49 | 49 | |
50 | - /** |
|
51 | - * @param $name |
|
52 | - * @param bool $isRel |
|
53 | - * @return string |
|
54 | - */ |
|
55 | - function planet_DB_prefix($name, $isRel = false) |
|
56 | - { |
|
57 | - return mod_DB_prefix($name, $isRel); |
|
58 | - } |
|
50 | + /** |
|
51 | + * @param $name |
|
52 | + * @param bool $isRel |
|
53 | + * @return string |
|
54 | + */ |
|
55 | + function planet_DB_prefix($name, $isRel = false) |
|
56 | + { |
|
57 | + return mod_DB_prefix($name, $isRel); |
|
58 | + } |
|
59 | 59 | |
60 | - /** |
|
61 | - * @return bool |
|
62 | - */ |
|
63 | - function planet_load_object() |
|
64 | - { |
|
65 | - return load_object(); |
|
66 | - } |
|
60 | + /** |
|
61 | + * @return bool |
|
62 | + */ |
|
63 | + function planet_load_object() |
|
64 | + { |
|
65 | + return load_object(); |
|
66 | + } |
|
67 | 67 | |
68 | - /** |
|
69 | - * @return array|mixed |
|
70 | - */ |
|
71 | - function planet_load_config() |
|
72 | - { |
|
73 | - static $moduleConfig; |
|
74 | - if (isset($moduleConfig)) { |
|
75 | - return $moduleConfig; |
|
76 | - } |
|
68 | + /** |
|
69 | + * @return array|mixed |
|
70 | + */ |
|
71 | + function planet_load_config() |
|
72 | + { |
|
73 | + static $moduleConfig; |
|
74 | + if (isset($moduleConfig)) { |
|
75 | + return $moduleConfig; |
|
76 | + } |
|
77 | 77 | |
78 | - if (is_object($GLOBALS['xoopsModule']) |
|
79 | - && $GLOBALS['xoopsModule']->getVar('dirname') == $GLOBALS['moddirname']) { |
|
80 | - if (isset($GLOBALS['xoopsModuleConfig'])) { |
|
81 | - $moduleConfig = $GLOBALS['xoopsModuleConfig']; |
|
82 | - } |
|
83 | - } else { |
|
84 | - /** @var XoopsModuleHandler $moduleHandler */ |
|
85 | - $moduleHandler = xoops_getHandler('module'); |
|
86 | - $module = $moduleHandler->getByDirname($GLOBALS['moddirname']); |
|
78 | + if (is_object($GLOBALS['xoopsModule']) |
|
79 | + && $GLOBALS['xoopsModule']->getVar('dirname') == $GLOBALS['moddirname']) { |
|
80 | + if (isset($GLOBALS['xoopsModuleConfig'])) { |
|
81 | + $moduleConfig = $GLOBALS['xoopsModuleConfig']; |
|
82 | + } |
|
83 | + } else { |
|
84 | + /** @var XoopsModuleHandler $moduleHandler */ |
|
85 | + $moduleHandler = xoops_getHandler('module'); |
|
86 | + $module = $moduleHandler->getByDirname($GLOBALS['moddirname']); |
|
87 | 87 | |
88 | - $configHandler = xoops_getHandler('config'); |
|
89 | - $criteria = new CriteriaCompo(new Criteria('conf_modid', $module->getVar('mid'))); |
|
90 | - $configs = $configHandler->getConfigs($criteria); |
|
91 | - foreach (array_keys($configs) as $i) { |
|
92 | - $moduleConfig[$configs[$i]->getVar('conf_name')] = $configs[$i]->getConfValueForOutput(); |
|
93 | - } |
|
94 | - unset($configs); |
|
95 | - } |
|
96 | - if ($customConfig = @include XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/plugin.php') { |
|
97 | - $moduleConfig = array_merge($moduleConfig, $customConfig); |
|
98 | - } |
|
88 | + $configHandler = xoops_getHandler('config'); |
|
89 | + $criteria = new CriteriaCompo(new Criteria('conf_modid', $module->getVar('mid'))); |
|
90 | + $configs = $configHandler->getConfigs($criteria); |
|
91 | + foreach (array_keys($configs) as $i) { |
|
92 | + $moduleConfig[$configs[$i]->getVar('conf_name')] = $configs[$i]->getConfValueForOutput(); |
|
93 | + } |
|
94 | + unset($configs); |
|
95 | + } |
|
96 | + if ($customConfig = @include XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/plugin.php') { |
|
97 | + $moduleConfig = array_merge($moduleConfig, $customConfig); |
|
98 | + } |
|
99 | 99 | |
100 | - return $moduleConfig; |
|
101 | - } |
|
100 | + return $moduleConfig; |
|
101 | + } |
|
102 | 102 | |
103 | - function planet_define_url_delimiter() |
|
104 | - { |
|
105 | - if (defined('URL_DELIMITER')) { |
|
106 | - if (!in_array(URL_DELIMITER, array('?', '/'))) { |
|
107 | - die('Exit on security'); |
|
108 | - } |
|
109 | - } else { |
|
110 | - $moduleConfig = planet_load_config(); |
|
111 | - if (empty($moduleConfig['do_urw'])) { |
|
112 | - define('URL_DELIMITER', '?'); |
|
113 | - } else { |
|
114 | - define('URL_DELIMITER', '/'); |
|
115 | - } |
|
116 | - } |
|
117 | - } |
|
103 | + function planet_define_url_delimiter() |
|
104 | + { |
|
105 | + if (defined('URL_DELIMITER')) { |
|
106 | + if (!in_array(URL_DELIMITER, array('?', '/'))) { |
|
107 | + die('Exit on security'); |
|
108 | + } |
|
109 | + } else { |
|
110 | + $moduleConfig = planet_load_config(); |
|
111 | + if (empty($moduleConfig['do_urw'])) { |
|
112 | + define('URL_DELIMITER', '?'); |
|
113 | + } else { |
|
114 | + define('URL_DELIMITER', '/'); |
|
115 | + } |
|
116 | + } |
|
117 | + } |
|
118 | 118 | |
119 | 119 | endif; |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | if (isset($GLOBALS['xoopsModuleConfig'])) { |
81 | 81 | $moduleConfig = $GLOBALS['xoopsModuleConfig']; |
82 | 82 | } |
83 | - } else { |
|
83 | + }else { |
|
84 | 84 | /** @var XoopsModuleHandler $moduleHandler */ |
85 | 85 | $moduleHandler = xoops_getHandler('module'); |
86 | 86 | $module = $moduleHandler->getByDirname($GLOBALS['moddirname']); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | unset($configs); |
95 | 95 | } |
96 | - if ($customConfig = @include XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/plugin.php') { |
|
96 | + if ($customConfig = @include XOOPS_ROOT_PATH.'/modules/'.$GLOBALS['moddirname'].'/include/plugin.php') { |
|
97 | 97 | $moduleConfig = array_merge($moduleConfig, $customConfig); |
98 | 98 | } |
99 | 99 | |
@@ -106,11 +106,11 @@ discard block |
||
106 | 106 | if (!in_array(URL_DELIMITER, array('?', '/'))) { |
107 | 107 | die('Exit on security'); |
108 | 108 | } |
109 | - } else { |
|
109 | + }else { |
|
110 | 110 | $moduleConfig = planet_load_config(); |
111 | 111 | if (empty($moduleConfig['do_urw'])) { |
112 | 112 | define('URL_DELIMITER', '?'); |
113 | - } else { |
|
113 | + }else { |
|
114 | 114 | define('URL_DELIMITER', '/'); |
115 | 115 | } |
116 | 116 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
16 | 16 | |
17 | 17 | if (!@require_once XOOPS_ROOT_PATH . '/Frameworks/transfer/transfer.php') { |
18 | - return null; |
|
18 | + return null; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | // Specify the addons to skip for the module |
@@ -28,41 +28,41 @@ discard block |
||
28 | 28 | */ |
29 | 29 | class ModuleTransferHandler extends TransferHandler |
30 | 30 | { |
31 | - /** |
|
32 | - * ModuleTransferHandler constructor. |
|
33 | - */ |
|
34 | - public function __construct() |
|
35 | - { |
|
36 | - parent::__construct(); |
|
37 | - } |
|
31 | + /** |
|
32 | + * ModuleTransferHandler constructor. |
|
33 | + */ |
|
34 | + public function __construct() |
|
35 | + { |
|
36 | + parent::__construct(); |
|
37 | + } |
|
38 | 38 | |
39 | - /** |
|
40 | - * Get valid addon list |
|
41 | - * |
|
42 | - * @param array $skip Addons to skip |
|
43 | - * @param boolean $sort To sort the list upon 'level' |
|
44 | - * return array $list |
|
45 | - */ |
|
46 | - public function &getList($skip = array(), $sort = true) |
|
47 | - { |
|
48 | - $list = parent::getList($skip, $sort); |
|
39 | + /** |
|
40 | + * Get valid addon list |
|
41 | + * |
|
42 | + * @param array $skip Addons to skip |
|
43 | + * @param boolean $sort To sort the list upon 'level' |
|
44 | + * return array $list |
|
45 | + */ |
|
46 | + public function &getList($skip = array(), $sort = true) |
|
47 | + { |
|
48 | + $list = parent::getList($skip, $sort); |
|
49 | 49 | |
50 | - return $list; |
|
51 | - } |
|
50 | + return $list; |
|
51 | + } |
|
52 | 52 | |
53 | - /** |
|
54 | - * If need change config of an item |
|
55 | - * 1 parent::load_item |
|
56 | - * 2 $this->config |
|
57 | - * 3 $this->do_transfer |
|
58 | - * @param $item |
|
59 | - * @param $data |
|
60 | - * @return |
|
61 | - */ |
|
62 | - public function do_transfer($item, &$data) |
|
63 | - { |
|
64 | - $ret = parent::do_transfer($item, $data); |
|
53 | + /** |
|
54 | + * If need change config of an item |
|
55 | + * 1 parent::load_item |
|
56 | + * 2 $this->config |
|
57 | + * 3 $this->do_transfer |
|
58 | + * @param $item |
|
59 | + * @param $data |
|
60 | + * @return |
|
61 | + */ |
|
62 | + public function do_transfer($item, &$data) |
|
63 | + { |
|
64 | + $ret = parent::do_transfer($item, $data); |
|
65 | 65 | |
66 | - return $ret; |
|
67 | - } |
|
66 | + return $ret; |
|
67 | + } |
|
68 | 68 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
16 | 16 | |
17 | -if (!@require_once XOOPS_ROOT_PATH . '/Frameworks/transfer/transfer.php') { |
|
17 | +if (!@require_once XOOPS_ROOT_PATH.'/Frameworks/transfer/transfer.php') { |
|
18 | 18 | return null; |
19 | 19 | } |
20 | 20 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | // ------------------------------------------------------------------------ // |
27 | 27 | |
28 | 28 | if (!defined('PLANET_INI')) { |
29 | - define('PLANET_INI', 1); |
|
29 | + define('PLANET_INI', 1); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | require_once __DIR__ . '/../class/utility.php'; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | // include customized variables |
57 | 57 | if (is_object($GLOBALS['xoopsModule']) && $GLOBALS['moddirname'] == $GLOBALS['xoopsModule']->getVar('dirname', 'n')) { |
58 | - $GLOBALS['xoopsModuleConfig'] = planet_load_config(); |
|
58 | + $GLOBALS['xoopsModuleConfig'] = planet_load_config(); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | planet_load_object(); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | define('PLANET_INI', 1); |
30 | 30 | } |
31 | 31 | |
32 | -require_once __DIR__ . '/../class/utility.php'; |
|
32 | +require_once __DIR__.'/../class/utility.php'; |
|
33 | 33 | /* |
34 | 34 | * The prefix for database table name prefix |
35 | 35 | * You can change to any term but be consistent with the table names in /sql/mysql.sql, and be unique , no conflict with other modules |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $GLOBALS['MOD_DB_PREFIX'] = 'planet'; |
38 | 38 | |
39 | 39 | /* You are not supposed to modify following contents */ |
40 | -defined('FRAMEWORKS_ART_FUNCTIONS_INI') || require_once XOOPS_ROOT_PATH . '/Frameworks/art/functions.ini.php'; |
|
40 | +defined('FRAMEWORKS_ART_FUNCTIONS_INI') || require_once XOOPS_ROOT_PATH.'/Frameworks/art/functions.ini.php'; |
|
41 | 41 | $GLOBALS['moddirname'] = mod_getDirname(__FILE__); |
42 | 42 | |
43 | 43 | /* |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * You can change to any term but be capital and unique, no conflict with other modules |
52 | 52 | */ |
53 | 53 | $GLOBALS['VAR_PREFIXU'] = strtoupper($GLOBALS['moddirname']); |
54 | -require_once XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/functions.ini.php'; |
|
54 | +require_once XOOPS_ROOT_PATH.'/modules/'.$GLOBALS['moddirname'].'/include/functions.ini.php'; |
|
55 | 55 | |
56 | 56 | // include customized variables |
57 | 57 | if (is_object($GLOBALS['xoopsModule']) && $GLOBALS['moddirname'] == $GLOBALS['xoopsModule']->getVar('dirname', 'n')) { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
29 | 29 | |
30 | -include __DIR__ . '/vars.php'; |
|
30 | +include __DIR__.'/vars.php'; |
|
31 | 31 | //mod_loadFunctions('', $GLOBALS['moddirname']); |
32 | 32 | |
33 | 33 | PlanetUtility::planetParseFunction(' |
@@ -43,28 +43,28 @@ |
||
43 | 43 | $categories_option = $categoryHandler->getList(); |
44 | 44 | natsort($categories_option); |
45 | 45 | if (count($categories_option)) { |
46 | - $cat_option_tray = new XoopsFormElementTray(planet_constant('MD_CATEGORY'), '<br>'); |
|
47 | - $options = array(0 => _NONE); |
|
48 | - foreach ($categories_option as $id => $title) { |
|
49 | - $options[$id] = $title; |
|
50 | - } |
|
51 | - $cat_select = new XoopsFormSelect('', 'categories', $categories, 3, true); |
|
52 | - $cat_select->addOptionArray($options); |
|
53 | - $cat_option_tray->addElement($cat_select); |
|
54 | - $form->addElement($cat_option_tray); |
|
46 | + $cat_option_tray = new XoopsFormElementTray(planet_constant('MD_CATEGORY'), '<br>'); |
|
47 | + $options = array(0 => _NONE); |
|
48 | + foreach ($categories_option as $id => $title) { |
|
49 | + $options[$id] = $title; |
|
50 | + } |
|
51 | + $cat_select = new XoopsFormSelect('', 'categories', $categories, 3, true); |
|
52 | + $cat_select->addOptionArray($options); |
|
53 | + $cat_option_tray->addElement($cat_select); |
|
54 | + $form->addElement($cat_option_tray); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /* For admin only */ |
58 | 58 | if (is_object($xoopsUser) && $xoopsUser->isAdmin()) { |
59 | - $status_option_tray = new XoopsFormElementTray(planet_constant('MD_STATUS'), '<br>'); |
|
60 | - $status_select = new XoopsFormSelect('', 'blog_status', $blog_obj->getVar('blog_status')); |
|
61 | - $status_select->addOptionArray(array( |
|
62 | - '0' => planet_constant('MD_PENDING'), |
|
63 | - '1' => planet_constant('MD_ACTIVE'), |
|
64 | - '2' => planet_constant('MD_FEATURED') |
|
65 | - )); |
|
66 | - $status_option_tray->addElement($status_select); |
|
67 | - $form->addElement($status_option_tray); |
|
59 | + $status_option_tray = new XoopsFormElementTray(planet_constant('MD_STATUS'), '<br>'); |
|
60 | + $status_select = new XoopsFormSelect('', 'blog_status', $blog_obj->getVar('blog_status')); |
|
61 | + $status_select->addOptionArray(array( |
|
62 | + '0' => planet_constant('MD_PENDING'), |
|
63 | + '1' => planet_constant('MD_ACTIVE'), |
|
64 | + '2' => planet_constant('MD_FEATURED') |
|
65 | + )); |
|
66 | + $status_option_tray->addElement($status_select); |
|
67 | + $form->addElement($status_option_tray); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | $form->addElement(new XoopsFormHidden('blog', $blog_id)); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | // ------------------------------------------------------------------------ // |
27 | 27 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
28 | 28 | |
29 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
29 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
30 | 30 | $categoryHandler = xoops_getModuleHandler('category', $GLOBALS['moddirname']); |
31 | 31 | |
32 | 32 | $form = new XoopsThemeForm(_EDIT, 'formblog', xoops_getenv('PHP_SELF'), 'POST', true); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $butt_save = new XoopsFormButton('', 'submit', _SUBMIT, 'submit'); |
77 | 77 | $button_tray->addElement($butt_save); |
78 | 78 | $butt_cancel = new XoopsFormButton('', 'cancel', _CANCEL, 'button'); |
79 | -$butt_cancel->setExtra("onclick='window.document.location=\"" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'b' . (int)$blog_id . "\"'"); |
|
79 | +$butt_cancel->setExtra("onclick='window.document.location=\"".XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php'.URL_DELIMITER.'b'.(int) $blog_id."\"'"); |
|
80 | 80 | $button_tray->addElement($butt_cancel); |
81 | 81 | $form->addElement($button_tray); |
82 | 82 | $form->display(); |
@@ -24,8 +24,8 @@ |
||
24 | 24 | |
25 | 25 | $moduleDirName = basename(dirname(__DIR__)); |
26 | 26 | $uploadFolders = array( |
27 | - NEWBB_UPLOAD_PATH, |
|
28 | - NEWBB_UPLOAD_PATH . '/thumbs' |
|
27 | + NEWBB_UPLOAD_PATH, |
|
28 | + NEWBB_UPLOAD_PATH . '/thumbs' |
|
29 | 29 | ); |
30 | 30 | |
31 | 31 | //$copyFiles = array( |
@@ -20,12 +20,12 @@ |
||
20 | 20 | */ |
21 | 21 | |
22 | 22 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
23 | -require_once __DIR__ . '/common.php'; |
|
23 | +require_once __DIR__.'/common.php'; |
|
24 | 24 | |
25 | 25 | $moduleDirName = basename(dirname(__DIR__)); |
26 | 26 | $uploadFolders = array( |
27 | 27 | NEWBB_UPLOAD_PATH, |
28 | - NEWBB_UPLOAD_PATH . '/thumbs' |
|
28 | + NEWBB_UPLOAD_PATH.'/thumbs' |
|
29 | 29 | ); |
30 | 30 | |
31 | 31 | //$copyFiles = array( |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
21 | 21 | |
22 | -include __DIR__ . '/vars.php'; |
|
22 | +include __DIR__.'/vars.php'; |
|
23 | 23 | //mod_loadFunctions('', $GLOBALS['moddirname']); |
24 | 24 | |
25 | 25 | PlanetUtility::planetParseFunction(' |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
29 | 29 | |
30 | -include __DIR__ . '/vars.php'; |
|
30 | +include __DIR__.'/vars.php'; |
|
31 | 31 | //mod_loadFunctions('', $GLOBALS['moddirname']); |
32 | 32 | |
33 | 33 | PlanetUtility::planetParseFunction(' |
@@ -22,19 +22,19 @@ |
||
22 | 22 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
23 | 23 | |
24 | 24 | define('NEWBB_DIRNAME', basename(dirname(__DIR__))); |
25 | -define('NEWBB_URL', XOOPS_URL . '/modules/' . NEWBB_DIRNAME); |
|
26 | -define('NEWBB_PATH', XOOPS_ROOT_PATH . '/modules/' . NEWBB_DIRNAME); |
|
27 | -define('NEWBB_IMAGES_URL', NEWBB_URL . '/assets/images'); |
|
28 | -define('NEWBB_ADMIN_URL', NEWBB_URL . '/admin'); |
|
29 | -define('NEWBB_ADMIN_PATH', NEWBB_PATH . '/admin/index.php'); |
|
30 | -define('NEWBB_ROOT_PATH', $GLOBALS['xoops']->path('modules/' . NEWBB_DIRNAME)); |
|
31 | -define('NEWBB_AUTHOR_LOGOIMG', NEWBB_URL . '/assets/images/logo_module.png'); |
|
32 | -define('NEWBB_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . NEWBB_DIRNAME); // WITHOUT Trailing slash |
|
33 | -define('NEWBB_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . NEWBB_DIRNAME); // WITHOUT Trailing slash |
|
25 | +define('NEWBB_URL', XOOPS_URL.'/modules/'.NEWBB_DIRNAME); |
|
26 | +define('NEWBB_PATH', XOOPS_ROOT_PATH.'/modules/'.NEWBB_DIRNAME); |
|
27 | +define('NEWBB_IMAGES_URL', NEWBB_URL.'/assets/images'); |
|
28 | +define('NEWBB_ADMIN_URL', NEWBB_URL.'/admin'); |
|
29 | +define('NEWBB_ADMIN_PATH', NEWBB_PATH.'/admin/index.php'); |
|
30 | +define('NEWBB_ROOT_PATH', $GLOBALS['xoops']->path('modules/'.NEWBB_DIRNAME)); |
|
31 | +define('NEWBB_AUTHOR_LOGOIMG', NEWBB_URL.'/assets/images/logo_module.png'); |
|
32 | +define('NEWBB_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.NEWBB_DIRNAME); // WITHOUT Trailing slash |
|
33 | +define('NEWBB_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.NEWBB_DIRNAME); // WITHOUT Trailing slash |
|
34 | 34 | |
35 | 35 | // module information |
36 | 36 | $mod_copyright = "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
37 | - <img src='" . NEWBB_AUTHOR_LOGOIMG . "' alt='XOOPS Project'></a>"; |
|
37 | + <img src='" . NEWBB_AUTHOR_LOGOIMG."' alt='XOOPS Project'></a>"; |
|
38 | 38 | |
39 | 39 | xoops_loadLanguage('common', NEWBB_DIRNAME); |
40 | 40 |