@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof XoopsUser) |
25 | 25 | || !$GLOBALS['xoopsUser']->IsAdmin() |
26 | 26 | ) { |
27 | - exit('Restricted access' . PHP_EOL); |
|
27 | + exit('Restricted access'.PHP_EOL); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $moduleDirName = basename(dirname(__DIR__)); |
52 | 52 | /** @var ContactUtility $utilityClass */ |
53 | - $utilityClass = ucfirst($moduleDirName) . 'Utility'; |
|
53 | + $utilityClass = ucfirst($moduleDirName).'Utility'; |
|
54 | 54 | if (!class_exists($utilityClass)) { |
55 | 55 | xoops_load('utility', $moduleDirName); |
56 | 56 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $xoopsDB = XoopsDatabaseFactory::getDatabaseConnection(); |
78 | 78 | |
79 | 79 | if ($previousVersion < 180) { |
80 | - $sql = 'CREATE TABLE ' . $xoopsDB->prefix('contact') . ' ( |
|
80 | + $sql = 'CREATE TABLE '.$xoopsDB->prefix('contact').' ( |
|
81 | 81 | contact_id int(10) unsigned NOT NULL auto_increment, |
82 | 82 | contact_uid int(10) NOT NULL, |
83 | 83 | contact_cid int(10) NOT NULL, |
@@ -102,39 +102,39 @@ discard block |
||
102 | 102 | |
103 | 103 | if ($previousVersion < 181) { |
104 | 104 | // Add contact_platform |
105 | - $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . "` ADD `contact_platform` ENUM('Android','Ios','Web') NOT NULL DEFAULT 'Web'"; |
|
105 | + $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact')."` ADD `contact_platform` ENUM('Android','Ios','Web') NOT NULL DEFAULT 'Web'"; |
|
106 | 106 | $xoopsDB->query($sql); |
107 | 107 | // Add contact_type |
108 | - $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . "` ADD `contact_type` ENUM('Contact','Phone','Mail') NOT NULL DEFAULT 'Contact'"; |
|
108 | + $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact')."` ADD `contact_type` ENUM('Contact','Phone','Mail') NOT NULL DEFAULT 'Contact'"; |
|
109 | 109 | $xoopsDB->query($sql); |
110 | 110 | // Add index contact_uid |
111 | - $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_uid` ( `contact_uid` )'; |
|
111 | + $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_uid` ( `contact_uid` )'; |
|
112 | 112 | $xoopsDB->query($sql); |
113 | 113 | // Add index contact_cid |
114 | - $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_cid` ( `contact_cid` )'; |
|
114 | + $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_cid` ( `contact_cid` )'; |
|
115 | 115 | $xoopsDB->query($sql); |
116 | 116 | // Add index contact_create |
117 | - $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_create` ( `contact_create` )'; |
|
117 | + $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_create` ( `contact_create` )'; |
|
118 | 118 | $xoopsDB->query($sql); |
119 | 119 | // Add index contact_mail |
120 | - $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_mail` ( `contact_mail` )'; |
|
120 | + $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_mail` ( `contact_mail` )'; |
|
121 | 121 | $xoopsDB->query($sql); |
122 | 122 | // Add index contact_phone |
123 | - $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_phone` ( `contact_phone` )'; |
|
123 | + $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_phone` ( `contact_phone` )'; |
|
124 | 124 | $xoopsDB->query($sql); |
125 | 125 | // Add index contact_platform |
126 | - $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_platform` ( `contact_platform` )'; |
|
126 | + $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_platform` ( `contact_platform` )'; |
|
127 | 127 | $xoopsDB->query($sql); |
128 | 128 | // Add index contact_type |
129 | - $sql = 'ALTER TABLE `' . $xoopsDB->prefix('contact') . '` ADD INDEX `contact_type` ( `contact_type` )'; |
|
129 | + $sql = 'ALTER TABLE `'.$xoopsDB->prefix('contact').'` ADD INDEX `contact_type` ( `contact_type` )'; |
|
130 | 130 | $xoopsDB->query($sql); |
131 | 131 | } |
132 | 132 | |
133 | 133 | if ($previousVersion < 226) { |
134 | - require_once __DIR__ . '/config.php'; |
|
134 | + require_once __DIR__.'/config.php'; |
|
135 | 135 | $configurator = new ContactConfigurator(); |
136 | 136 | /** @var ContactUtility $utilityClass */ |
137 | - $utilityClass = ucfirst($moduleDirName) . 'Utility'; |
|
137 | + $utilityClass = ucfirst($moduleDirName).'Utility'; |
|
138 | 138 | if (!class_exists($utilityClass)) { |
139 | 139 | xoops_load('utility', $moduleDirName); |
140 | 140 | } |
@@ -142,14 +142,14 @@ discard block |
||
142 | 142 | //delete old HTML templates |
143 | 143 | if (count($configurator->templateFolders) > 0) { |
144 | 144 | foreach ($configurator->templateFolders as $folder) { |
145 | - $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder); |
|
145 | + $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder); |
|
146 | 146 | if (is_dir($templateFolder)) { |
147 | 147 | $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), ['..', '.']); |
148 | 148 | foreach ($templateList as $k => $v) { |
149 | - $fileInfo = new SplFileInfo($templateFolder . $v); |
|
149 | + $fileInfo = new SplFileInfo($templateFolder.$v); |
|
150 | 150 | if ($fileInfo->getExtension() === 'html' && $fileInfo->getFilename() !== 'index.html') { |
151 | - if (file_exists($templateFolder . $v)) { |
|
152 | - unlink($templateFolder . $v); |
|
151 | + if (file_exists($templateFolder.$v)) { |
|
152 | + unlink($templateFolder.$v); |
|
153 | 153 | } |
154 | 154 | } |
155 | 155 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | if (count($configurator->oldFiles) > 0) { |
162 | 162 | // foreach (array_keys($GLOBALS['uploadFolders']) as $i) { |
163 | 163 | foreach (array_keys($configurator->oldFiles) as $i) { |
164 | - $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator->oldFiles[$i]); |
|
164 | + $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator->oldFiles[$i]); |
|
165 | 165 | if (is_file($tempFile)) { |
166 | 166 | unlink($tempFile); |
167 | 167 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | if (count($configurator->oldFolders) > 0) { |
174 | 174 | // foreach (array_keys($GLOBALS['uploadFolders']) as $i) { |
175 | 175 | foreach (array_keys($configurator->oldFolders) as $i) { |
176 | - $tempFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator->oldFolders[$i]); |
|
176 | + $tempFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator->oldFolders[$i]); |
|
177 | 177 | /* @var $folderHandler XoopsObjectHandler */ |
178 | 178 | $folderHandler = XoopsFile::getHandler('folder', $tempFolder); |
179 | 179 | $folderHandler->delete($tempFolder); |
@@ -190,15 +190,15 @@ discard block |
||
190 | 190 | |
191 | 191 | // --- COPY blank.png FILES --------------- |
192 | 192 | if (count($configurator->blankFiles) > 0) { |
193 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
193 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
194 | 194 | foreach (array_keys($configurator->blankFiles) as $i) { |
195 | - $dest = $configurator->blankFiles[$i] . '/blank.png'; |
|
195 | + $dest = $configurator->blankFiles[$i].'/blank.png'; |
|
196 | 196 | $utilityClass::copyFile($file, $dest); |
197 | 197 | } |
198 | 198 | } |
199 | 199 | |
200 | 200 | //delete .html entries from the tpl table |
201 | - $sql = 'DELETE FROM ' . $GLOBALS['xoopsDB']->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . '\' AND `tpl_file` LIKE \'%.html%\''; |
|
201 | + $sql = 'DELETE FROM '.$GLOBALS['xoopsDB']->prefix('tplfile')." WHERE `tpl_module` = '".$module->getVar('dirname', 'n').'\' AND `tpl_file` LIKE \'%.html%\''; |
|
202 | 202 | $GLOBALS['xoopsDB']->queryF($sql); |
203 | 203 | |
204 | 204 | /** @var XoopsGroupPermHandler $gpermHandler */ |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | $moduleDirName = basename(dirname(__DIR__)); |
32 | 32 | /** @var ContactUtility $utilityClass */ |
33 | - $utilityClass = ucfirst($moduleDirName) . 'Utility'; |
|
33 | + $utilityClass = ucfirst($moduleDirName).'Utility'; |
|
34 | 34 | if (!class_exists($utilityClass)) { |
35 | 35 | xoops_load('utility', $moduleDirName); |
36 | 36 | } |
@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | $xoopsSuccess = $utilityClass::checkVerXoops($module); |
39 | 39 | $phpSuccess = $utilityClass::checkVerPhp($module); |
40 | 40 | |
41 | - if (false !== $xoopsSuccess && false !== $phpSuccess) { |
|
42 | - $mod_tables =& $module->getInfo('tables'); |
|
41 | + if (false !== $xoopsSuccess && false !== $phpSuccess) { |
|
42 | + $mod_tables = & $module->getInfo('tables'); |
|
43 | 43 | foreach ($mod_tables as $table) { |
44 | - $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';'); |
|
44 | + $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS '.$GLOBALS['xoopsDB']->prefix($table).';'); |
|
45 | 45 | } |
46 | 46 | } |
47 | 47 | return $xoopsSuccess && $phpSuccess; |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | */ |
57 | 57 | function xoops_module_install_contact(XoopsModule $module) |
58 | 58 | { |
59 | - require_once __DIR__ . '/../../../mainfile.php'; |
|
60 | - require_once __DIR__ . '/../include/config.php'; |
|
59 | + require_once __DIR__.'/../../../mainfile.php'; |
|
60 | + require_once __DIR__.'/../include/config.php'; |
|
61 | 61 | |
62 | 62 | $moduleDirName = basename(dirname(__DIR__)); |
63 | 63 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | $configurator = new ContactConfigurator(); |
75 | 75 | /** @var ContactUtility $utilityClass */ |
76 | - $utilityClass = ucfirst($moduleDirName) . 'Utility'; |
|
76 | + $utilityClass = ucfirst($moduleDirName).'Utility'; |
|
77 | 77 | if (!class_exists($utilityClass)) { |
78 | 78 | xoops_load('utility', $moduleDirName); |
79 | 79 | } |
@@ -85,11 +85,11 @@ discard block |
||
85 | 85 | /** @var \XoopsGroupPermHandler $gpermHandler */ |
86 | 86 | $gpermHandler = xoops_getHandler('groupperm'); |
87 | 87 | // access rights ------------------------------------------ |
88 | - $gpermHandler->addRight($moduleDirName . '_approve', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
89 | - $gpermHandler->addRight($moduleDirName . '_submit', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
90 | - $gpermHandler->addRight($moduleDirName . '_view', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
91 | - $gpermHandler->addRight($moduleDirName . '_view', 1, XOOPS_GROUP_USERS, $moduleId); |
|
92 | - $gpermHandler->addRight($moduleDirName . '_view', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
88 | + $gpermHandler->addRight($moduleDirName.'_approve', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
89 | + $gpermHandler->addRight($moduleDirName.'_submit', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
90 | + $gpermHandler->addRight($moduleDirName.'_view', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
91 | + $gpermHandler->addRight($moduleDirName.'_view', 1, XOOPS_GROUP_USERS, $moduleId); |
|
92 | + $gpermHandler->addRight($moduleDirName.'_view', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
93 | 93 | |
94 | 94 | // --- CREATE FOLDERS --------------- |
95 | 95 | if (count($configurator->uploadFolders) > 0) { |
@@ -101,9 +101,9 @@ discard block |
||
101 | 101 | |
102 | 102 | // --- COPY blank.png FILES --------------- |
103 | 103 | if (count($configurator->blankFiles) > 0) { |
104 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
104 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
105 | 105 | foreach (array_keys($configurator->blankFiles) as $i) { |
106 | - $dest = $configurator->blankFiles[$i] . '/blank.png'; |
|
106 | + $dest = $configurator->blankFiles[$i].'/blank.png'; |
|
107 | 107 | $utilityClass::copyFile($file, $dest); |
108 | 108 | } |
109 | 109 | } |
@@ -29,34 +29,34 @@ |
||
29 | 29 | $adminmenu[] = [ |
30 | 30 | 'title' => _MI_CONTACT_MENU_HOME, |
31 | 31 | 'desc' => _MI_CONTACT_MENU_HOME_DESC, |
32 | - 'icon' => $pathIcon32 . '/home.png', |
|
32 | + 'icon' => $pathIcon32.'/home.png', |
|
33 | 33 | 'link' => 'admin/index.php' |
34 | 34 | ]; |
35 | 35 | |
36 | 36 | $adminmenu[] = [ |
37 | 37 | 'title' => _MI_CONTACT_MENU_CONTACT, |
38 | 38 | 'desc' => _MI_CONTACT_MENU_CONTACT_DESC, |
39 | - 'icon' => $pathIcon32 . '/content.png', |
|
39 | + 'icon' => $pathIcon32.'/content.png', |
|
40 | 40 | 'link' => 'admin/main.php' |
41 | 41 | ]; |
42 | 42 | |
43 | 43 | $adminmenu[] = [ |
44 | 44 | 'title' => _MI_CONTACT_MENU_LOGS, |
45 | 45 | 'desc' => _MI_CONTACT_MENU_LOGS_DESC, |
46 | - 'icon' => $pathIcon32 . '/identity.png', |
|
46 | + 'icon' => $pathIcon32.'/identity.png', |
|
47 | 47 | 'link' => 'admin/log.php' |
48 | 48 | ]; |
49 | 49 | |
50 | 50 | $adminmenu[] = [ |
51 | 51 | 'title' => _MI_CONTACT_MENU_TOOLS, |
52 | 52 | 'desc' => _MI_CONTACT_MENU_TOOLS_DESC, |
53 | - 'icon' => $pathIcon32 . '/delete.png', |
|
53 | + 'icon' => $pathIcon32.'/delete.png', |
|
54 | 54 | 'link' => 'admin/tools.php' |
55 | 55 | ]; |
56 | 56 | |
57 | 57 | $adminmenu[] = [ |
58 | 58 | 'title' => _MI_CONTACT_MENU_ABOUT, |
59 | 59 | 'desc' => _MI_CONTACT_MENU_ABOUT_DESC, |
60 | - 'icon' => $pathIcon32 . '/about.png', |
|
60 | + 'icon' => $pathIcon32.'/about.png', |
|
61 | 61 | 'link' => 'admin/about.php' |
62 | 62 | ]; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $form->addElement(new XoopsFormLabel(_AM_CONTACT_TO, '', '')); |
80 | 80 | $form->addElement(new XoopsFormText(_AM_CONTACT_NAMETO, 'contact_nameto', 50, 255, $this->getVar('contact_name')), true); |
81 | 81 | $form->addElement(new XoopsFormText(_AM_CONTACT_MAILTO, 'contact_mailto', 50, 255, $this->getVar('contact_mail')), true); |
82 | - $form->addElement(new XoopsFormText(_AM_CONTACT_SUBJECT, 'contact_subject', 50, 255, _RE . $this->getVar('contact_subject')), true); |
|
82 | + $form->addElement(new XoopsFormText(_AM_CONTACT_SUBJECT, 'contact_subject', 50, 255, _RE.$this->getVar('contact_subject')), true); |
|
83 | 83 | $form->addElement(new XoopsFormTextArea(_AM_CONTACT_MESSAGE, 'contact_message', '', 5, 60), true); |
84 | 84 | $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); |
85 | 85 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | public function toArray() |
95 | 95 | { |
96 | 96 | $ret = []; |
97 | - $vars =& $this->getVars(); |
|
97 | + $vars = & $this->getVars(); |
|
98 | 98 | foreach (array_keys($vars) as $i) { |
99 | 99 | $ret [$i] = $this->getVar($i); |
100 | 100 | } |
@@ -216,9 +216,9 @@ discard block |
||
216 | 216 | |
217 | 217 | $subjectPrefix = ''; |
218 | 218 | if ($GLOBALS['xoopsModuleConfig']['form_dept'] && $GLOBALS['xoopsModuleConfig']['subject_prefix'] && $GLOBALS['xoopsModuleConfig']['contact_dept']) { |
219 | - $subjectPrefix = '[' . $GLOBALS['xoopsModuleConfig']['prefix_text'] . ' ' . $contact['contact_department'] . ']: '; |
|
219 | + $subjectPrefix = '['.$GLOBALS['xoopsModuleConfig']['prefix_text'].' '.$contact['contact_department'].']: '; |
|
220 | 220 | } |
221 | - $xoopsMailer->setSubject($subjectPrefix . html_entity_decode($contact['contact_subject'], ENT_QUOTES, 'UTF-8')); |
|
221 | + $xoopsMailer->setSubject($subjectPrefix.html_entity_decode($contact['contact_subject'], ENT_QUOTES, 'UTF-8')); |
|
222 | 222 | $xoopsMailer->setBody(html_entity_decode($contact['contact_message'], ENT_QUOTES, 'UTF-8')); |
223 | 223 | if ($xoopsMailer->send()) { |
224 | 224 | $message = _MD_CONTACT_MES_SEND; |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | $criteria = new CriteriaCompo(); |
325 | 325 | $criteria->add(new Criteria('contact_cid', $contact_id)); |
326 | 326 | $criteria->add(new Criteria('contact_type', 'Contact')); |
327 | - $contacts =& $this->getObjects($criteria, false); |
|
327 | + $contacts = & $this->getObjects($criteria, false); |
|
328 | 328 | if ($contacts) { |
329 | 329 | $ret = []; |
330 | 330 | /** @var Contact $root */ |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | $criteria->setOrder($contact['order']); |
356 | 356 | $criteria->setStart($contact['start']); |
357 | 357 | $criteria->setLimit($contact['limit']); |
358 | - $contacts =& $this->getObjects($criteria, false); |
|
358 | + $contacts = & $this->getObjects($criteria, false); |
|
359 | 359 | if ($contacts) { |
360 | 360 | /** @var Contact $root */ |
361 | 361 | foreach ($contacts as $root) { |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | } |
496 | 496 | $criteria->setSort('contact_create'); |
497 | 497 | $criteria->setOrder('DESC'); |
498 | - $contacts =& $this->getObjects($criteria, false); |
|
498 | + $contacts = & $this->getObjects($criteria, false); |
|
499 | 499 | if ($contacts) { |
500 | 500 | /** @var Contact $root */ |
501 | 501 | foreach ($contacts as $root) { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * @author Trabis <[email protected]> |
19 | 19 | * @author Hossein Azizabadi (AKA Voltan) |
20 | 20 | * @author Mirza (AKA Bleekk) |
21 | - */ |
|
21 | + */ |
|
22 | 22 | |
23 | 23 | require __DIR__ . '/../../mainfile.php'; |
24 | 24 | require_once __DIR__ . '/header.php'; |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | * @author Mirza (AKA Bleekk) |
21 | 21 | */ |
22 | 22 | |
23 | -require __DIR__ . '/../../mainfile.php'; |
|
24 | -require_once __DIR__ . '/header.php'; |
|
23 | +require __DIR__.'/../../mainfile.php'; |
|
24 | +require_once __DIR__.'/header.php'; |
|
25 | 25 | $GLOBALS['xoopsOption']['template_main'] = 'contact_index.tpl'; |
26 | 26 | //unset($_SESSION); |
27 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
27 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
28 | 28 | global $xoopsModuleConfig, $xoopsModule; |
29 | 29 | /*Modules Options*/ |
30 | 30 | if ($xoopsModuleConfig['form_dept'] == 1) { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $GLOBALS['xoopsTpl']->assign('map', $xoopsModuleConfig['embed_maps']); |
52 | 52 | /*end Modules options*/ |
53 | 53 | |
54 | -$GLOBALS['xoopsTpl']->assign('breadcrumb', '<li><a href="' . XOOPS_URL . '">' . _YOURHOME . '</a></li> <li class="active">' . $xoopsModule->name().'</li>'); |
|
54 | +$GLOBALS['xoopsTpl']->assign('breadcrumb', '<li><a href="'.XOOPS_URL.'">'._YOURHOME.'</a></li> <li class="active">'.$xoopsModule->name().'</li>'); |
|
55 | 55 | $GLOBALS['xoopsTpl']->assign('info', xoops_getModuleOption('contact_info', 'contact')); |
56 | 56 | $GLOBALS['xoopsTpl']->assign('contact_default', xoops_getModuleOption('contact_default', 'contact')); |
57 | 57 | |
@@ -82,4 +82,4 @@ discard block |
||
82 | 82 | $GLOBALS['xoopsTpl']->assign('lng_subject_info', _MD_CONTACT_SUBJECT_INFO); |
83 | 83 | $GLOBALS['xoopsTpl']->assign('lng_message_info', _MD_CONTACT_MESSAGE_INFO); |
84 | 84 | |
85 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
85 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -20,9 +20,9 @@ |
||
20 | 20 | */ |
21 | 21 | |
22 | 22 | $moduleDirName = basename(__DIR__); |
23 | -include __DIR__ . '/../../mainfile.php'; |
|
24 | -include __DIR__ . '/class/contact.php'; |
|
25 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
23 | +include __DIR__.'/../../mainfile.php'; |
|
24 | +include __DIR__.'/class/contact.php'; |
|
25 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
26 | 26 | |
27 | 27 | /** @var ContactContactHandler $contactHandler*/ |
28 | 28 | $contactHandler = xoops_getModuleHandler('contact', $moduleDirName); |
@@ -43,10 +43,10 @@ discard block |
||
43 | 43 | 'help' => 'page=help', |
44 | 44 | // ------------------- Folders & Files ------------------- |
45 | 45 | 'release_info' => 'Changelog', |
46 | - 'release_file' => XOOPS_URL . "/modules/$moduleDirName/docs/changelog.txt", |
|
46 | + 'release_file' => XOOPS_URL."/modules/$moduleDirName/docs/changelog.txt", |
|
47 | 47 | // |
48 | 48 | 'manual' => 'link to manual file', |
49 | - 'manual_file' => XOOPS_URL . "/modules/$moduleDirName/docs/install.txt", |
|
49 | + 'manual_file' => XOOPS_URL."/modules/$moduleDirName/docs/install.txt", |
|
50 | 50 | // images |
51 | 51 | 'image' => 'assets/images/logoModule.png', |
52 | 52 | 'dirname' => $moduleDirName, |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | // ------------------- PayPal --------------------------- |
80 | 80 | 'paypal' => [ |
81 | 81 | 'business' => '[email protected]', |
82 | - 'item_name' => 'Donation : ' . _MI_CONTACT_NAME, |
|
82 | + 'item_name' => 'Donation : '._MI_CONTACT_NAME, |
|
83 | 83 | 'amount' => 0, |
84 | 84 | 'currency_code' => 'USD' |
85 | 85 | ], |
@@ -100,35 +100,35 @@ discard block |
||
100 | 100 | // Templates |
101 | 101 | $modversion['templates'] = [ |
102 | 102 | [ |
103 | - 'file' => $moduleDirName . '_index.tpl', |
|
103 | + 'file' => $moduleDirName.'_index.tpl', |
|
104 | 104 | 'description' => '_MI_CONTACT_TEMPLATES' |
105 | 105 | ], |
106 | 106 | ]; |
107 | 107 | |
108 | 108 | // Blocks |
109 | 109 | $modversion['blocks'][] = [ |
110 | - 'file' => 'block_' . $moduleDirName . '_form_map.php', |
|
110 | + 'file' => 'block_'.$moduleDirName.'_form_map.php', |
|
111 | 111 | 'name' => _MI_B_CONTACT_FORM, |
112 | 112 | 'description' => _MI_B_CONTACT_FORM_DESC, |
113 | - 'show_func' => 'block_' . $moduleDirName . '_form_show', |
|
113 | + 'show_func' => 'block_'.$moduleDirName.'_form_show', |
|
114 | 114 | 'options' => '', |
115 | - 'template' => 'block_' . $moduleDirName . '_form.tpl' |
|
115 | + 'template' => 'block_'.$moduleDirName.'_form.tpl' |
|
116 | 116 | ]; |
117 | 117 | $modversion['blocks'][] = [ |
118 | - 'file' => 'block_' . $moduleDirName . '_form_map.php', |
|
118 | + 'file' => 'block_'.$moduleDirName.'_form_map.php', |
|
119 | 119 | 'name' => _MI_B_CONTACT_MAP, |
120 | 120 | 'description' => _MI_B_CONTACT_MAP_DESC, |
121 | - 'show_func' => 'block_' . $moduleDirName . '_map_show', |
|
121 | + 'show_func' => 'block_'.$moduleDirName.'_map_show', |
|
122 | 122 | 'options' => '', |
123 | - 'template' => 'block_' . $moduleDirName . '_map.tpl' |
|
123 | + 'template' => 'block_'.$moduleDirName.'_map.tpl' |
|
124 | 124 | ]; |
125 | 125 | $modversion['blocks'][] = [ |
126 | - 'file' => 'block_' . $moduleDirName . '_form_map.php', |
|
126 | + 'file' => 'block_'.$moduleDirName.'_form_map.php', |
|
127 | 127 | 'name' => _MI_B_CONTACT_FORM_MAP, |
128 | 128 | 'description' => _MI_B_CONTACT_FORM_MAP_DESC, |
129 | - 'show_func' => 'block_' . $moduleDirName . '_form_map_show', |
|
129 | + 'show_func' => 'block_'.$moduleDirName.'_form_map_show', |
|
130 | 130 | 'options' => '', |
131 | - 'template' => 'block_' . $moduleDirName . '_form_map.tpl' |
|
131 | + 'template' => 'block_'.$moduleDirName.'_form_map.tpl' |
|
132 | 132 | ]; |
133 | 133 | |
134 | 134 | // Settings |