@@ -25,16 +25,16 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_building.tpl'; |
| 27 | 27 | |
| 28 | -include __DIR__ . '/header.php'; |
|
| 28 | +include __DIR__.'/header.php'; |
|
| 29 | 29 | $op = \Xmf\Request::getString('op', 'default'); |
| 30 | 30 | $mid = \Xmf\Request::getInt('mod_id'); |
| 31 | 31 | $moduleObj = $helper->getHandler('Modules')->get($mid); |
| 32 | -$cachePath = XOOPS_VAR_PATH . '/caches/tdmcreate_cache'; |
|
| 32 | +$cachePath = XOOPS_VAR_PATH.'/caches/tdmcreate_cache'; |
|
| 33 | 33 | // Clear cache |
| 34 | -if (file_exists($cache = $cachePath . '/classpaths.cache')) { |
|
| 34 | +if (file_exists($cache = $cachePath.'/classpaths.cache')) { |
|
| 35 | 35 | unlink($cache); |
| 36 | 36 | } |
| 37 | -if (!file_exists($indexFile = $cachePath . '/index.html')) { |
|
| 37 | +if (!file_exists($indexFile = $cachePath.'/index.html')) { |
|
| 38 | 38 | copy('index.html', $indexFile); |
| 39 | 39 | } |
| 40 | 40 | // Switch option |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | // Get var module dirname |
| 46 | 46 | $moduleDirname = $moduleObj->getVar('mod_dirname'); |
| 47 | 47 | // Directories for copy from to |
| 48 | - $fromDir = TDMC_UPLOAD_REPOSITORY_PATH . '/' . mb_strtolower($moduleDirname); |
|
| 49 | - $toDir = XOOPS_ROOT_PATH . '/modules/' . mb_strtolower($moduleDirname); |
|
| 48 | + $fromDir = TDMC_UPLOAD_REPOSITORY_PATH.'/'.mb_strtolower($moduleDirname); |
|
| 49 | + $toDir = XOOPS_ROOT_PATH.'/modules/'.mb_strtolower($moduleDirname); |
|
| 50 | 50 | // include_once TDMC_CLASS_PATH . '/building.php'; |
| 51 | 51 | if (isset($moduleDirname)) { |
| 52 | 52 | // Clear this module if it's in repository |
@@ -108,4 +108,4 @@ discard block |
||
| 108 | 108 | $GLOBALS['xoopsTpl']->assign('form', $form->render()); |
| 109 | 109 | break; |
| 110 | 110 | } |
| 111 | -include __DIR__ . '/footer.php'; |
|
| 111 | +include __DIR__.'/footer.php'; |
|
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_tables.tpl'; |
| 26 | 26 | |
| 27 | -include __DIR__ . '/header.php'; |
|
| 27 | +include __DIR__.'/header.php'; |
|
| 28 | 28 | // Recovered value of arguments op in the URL $ |
| 29 | 29 | $op = \Xmf\Request::getString('op', 'list'); |
| 30 | 30 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $adminObject->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add'); |
| 52 | 52 | $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left')); |
| 53 | 53 | $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL); |
| 54 | - $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16); |
|
| 54 | + $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16); |
|
| 55 | 55 | // Get the list of modules |
| 56 | 56 | $modulesCount = $helper->getHandler('Modules')->getCountModules(); |
| 57 | 57 | // Redirect if there aren't modules |
@@ -90,8 +90,8 @@ discard block |
||
| 90 | 90 | unset($module); |
| 91 | 91 | } |
| 92 | 92 | if ($modulesCount > $limit) { |
| 93 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 94 | - $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 93 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 94 | + $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 95 | 95 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 96 | 96 | } |
| 97 | 97 | } else { |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | ] |
| 146 | 146 | ); |
| 147 | 147 | //Form table_image |
| 148 | - include_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
|
| 148 | + include_once XOOPS_ROOT_PATH.'/class/uploader.php'; |
|
| 149 | 149 | $uploaddir = is_dir(XOOPS_ICONS32_PATH) ? XOOPS_ICONS32_PATH : TDMC_UPLOAD_IMGTAB_PATH; |
| 150 | 150 | $uploader = new \XoopsMediaUploader( |
| 151 | 151 | $uploaddir, $helper->getConfig('mimetypes'), $helper->getConfig('maxsize'), null, null |
@@ -187,18 +187,18 @@ discard block |
||
| 187 | 187 | if ($tables->insert($tablesObj)) { |
| 188 | 188 | if ($tablesObj->isNew()) { |
| 189 | 189 | $tableTid = $GLOBALS['xoopsDB']->getInsertId(); |
| 190 | - $tableAction = '&field_mid=' . $tableMid . '&field_tid=' . $tableTid . '&field_numb=' . $tableNumbFields . '&field_name=' . $tableFieldname; |
|
| 190 | + $tableAction = '&field_mid='.$tableMid.'&field_tid='.$tableTid.'&field_numb='.$tableNumbFields.'&field_name='.$tableFieldname; |
|
| 191 | 191 | // Fields Elements Handler |
| 192 | 192 | $fieldelementObj = $helper->getHandler('Fieldelements')->create(); |
| 193 | 193 | $fieldelementObj->setVar('fieldelement_mid', $tableMid); |
| 194 | 194 | $fieldelementObj->setVar('fieldelement_tid', $tableTid); |
| 195 | - $fieldelementObj->setVar('fieldelement_name', 'Table : ' . ucfirst($_POST['table_name'])); |
|
| 196 | - $fieldelementObj->setVar('fieldelement_value', 'XoopsFormTables-' . ucfirst($_POST['table_name'])); |
|
| 195 | + $fieldelementObj->setVar('fieldelement_name', 'Table : '.ucfirst($_POST['table_name'])); |
|
| 196 | + $fieldelementObj->setVar('fieldelement_value', 'XoopsFormTables-'.ucfirst($_POST['table_name'])); |
|
| 197 | 197 | // Insert new field element id for table name |
| 198 | 198 | if (!$helper->getHandler('Fieldelements')->insert($fieldelementObj)) { |
| 199 | - $GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors() . ' Field element'); |
|
| 199 | + $GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors().' Field element'); |
|
| 200 | 200 | } |
| 201 | - redirect_header('fields.php?op=new' . $tableAction, 5, sprintf(_AM_TDMCREATE_TABLE_FORM_CREATED_OK, $_POST['table_name'])); |
|
| 201 | + redirect_header('fields.php?op=new'.$tableAction, 5, sprintf(_AM_TDMCREATE_TABLE_FORM_CREATED_OK, $_POST['table_name'])); |
|
| 202 | 202 | } else { |
| 203 | 203 | redirect_header('tables.php', 5, sprintf(_AM_TDMCREATE_TABLE_FORM_UPDATED_OK, $_POST['table_name'])); |
| 204 | 204 | } |
@@ -270,9 +270,9 @@ discard block |
||
| 270 | 270 | if ($mid > 0) { |
| 271 | 271 | $modulesObj = $helper->getHandler('Modules')->get($mid); |
| 272 | 272 | foreach ($modArray as $modField) { |
| 273 | - if (isset($_POST['mod_' . $modField])) { |
|
| 274 | - $mField = $modulesObj->getVar('mod_' . $modField); |
|
| 275 | - $modulesObj->setVar('mod_' . $modField, !$mField); |
|
| 273 | + if (isset($_POST['mod_'.$modField])) { |
|
| 274 | + $mField = $modulesObj->getVar('mod_'.$modField); |
|
| 275 | + $modulesObj->setVar('mod_'.$modField, !$mField); |
|
| 276 | 276 | } |
| 277 | 277 | } |
| 278 | 278 | if ($helper->getHandler('Modules')->insert($modulesObj)) { |
@@ -285,9 +285,9 @@ discard block |
||
| 285 | 285 | if ($tid > 0) { |
| 286 | 286 | $tablesObj = $helper->getHandler('Tables')->get($tid); |
| 287 | 287 | foreach ($tableArray as $tableField) { |
| 288 | - if (isset($_POST['table_' . $tableField])) { |
|
| 289 | - $tblField = $tablesObj->getVar('table_' . $tableField); |
|
| 290 | - $tablesObj->setVar('table_' . $tableField, !$tblField); |
|
| 288 | + if (isset($_POST['table_'.$tableField])) { |
|
| 289 | + $tblField = $tablesObj->getVar('table_'.$tableField); |
|
| 290 | + $tablesObj->setVar('table_'.$tableField, !$tblField); |
|
| 291 | 291 | } |
| 292 | 292 | } |
| 293 | 293 | if ($helper->getHandler('Tables')->insert($tablesObj)) { |
@@ -297,4 +297,4 @@ discard block |
||
| 297 | 297 | } |
| 298 | 298 | break; |
| 299 | 299 | } |
| 300 | -include __DIR__ . '/footer.php'; |
|
| 300 | +include __DIR__.'/footer.php'; |
|
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | use Xmf\Request; |
| 23 | 23 | |
| 24 | -include __DIR__ . '/header.php'; |
|
| 24 | +include __DIR__.'/header.php'; |
|
| 25 | 25 | |
| 26 | 26 | $adminObject = \Xmf\Module\Admin::getInstance(); |
| 27 | 27 | |
@@ -60,12 +60,12 @@ discard block |
||
| 60 | 60 | $fb_content = Request::getText('fb_content', ''); |
| 61 | 61 | $fb_content = str_replace(["\r\n", "\n", "\r"], '<br>', $fb_content); //clean line break from dhtmltextarea |
| 62 | 62 | |
| 63 | - $title = constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_FOR') . $GLOBALS['xoopsModule']->getVar('dirname'); |
|
| 64 | - $body = constant('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME') . ': ' . $your_name . '<br>'; |
|
| 65 | - $body .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL') . ': ' . $your_mail . '<br>'; |
|
| 66 | - $body .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE') . ': ' . $your_site . '<br>'; |
|
| 67 | - $body .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE') . ': ' . $fb_type . '<br><br>'; |
|
| 68 | - $body .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_CONTENT') . ':<br>'; |
|
| 63 | + $title = constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_FOR').$GLOBALS['xoopsModule']->getVar('dirname'); |
|
| 64 | + $body = constant('CO_'.$moduleDirNameUpper.'_'.'FB_NAME').': '.$your_name.'<br>'; |
|
| 65 | + $body .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL').': '.$your_mail.'<br>'; |
|
| 66 | + $body .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_SITE').': '.$your_site.'<br>'; |
|
| 67 | + $body .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE').': '.$fb_type.'<br><br>'; |
|
| 68 | + $body .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_CONTENT').':<br>'; |
|
| 69 | 69 | $body .= $fb_content; |
| 70 | 70 | $xoopsMailer = xoops_getMailer(); |
| 71 | 71 | $xoopsMailer->useMail(); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $xoopsMailer->setBody($body); |
| 78 | 78 | $ret = $xoopsMailer->send(); |
| 79 | 79 | if ($ret) { |
| 80 | - redirect_header('index.php', 3, constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_SUCCESS')); |
|
| 80 | + redirect_header('index.php', 3, constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_SUCCESS')); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | // show form with content again |
@@ -87,11 +87,11 @@ discard block |
||
| 87 | 87 | $feedback->type = $fb_type; |
| 88 | 88 | $feedback->content = $fb_content; |
| 89 | 89 | echo '<div align="center" style="width: 80%; padding: 10px; border: 2px solid #ff0000; color: #ff0000; margin-right:auto;margin-left:auto;"> |
| 90 | - <h3>' . constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_ERROR') . '</h3> |
|
| 90 | + <h3>' . constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_ERROR').'</h3> |
|
| 91 | 91 | </div>'; |
| 92 | 92 | $form = $feedback->getFormFeedback(); |
| 93 | 93 | $form->display(); |
| 94 | 94 | |
| 95 | 95 | break; |
| 96 | 96 | } |
| 97 | -require __DIR__ . '/footer.php'; |
|
| 97 | +require __DIR__.'/footer.php'; |
|
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_modules.tpl'; |
| 26 | 26 | |
| 27 | -include __DIR__ . '/header.php'; |
|
| 27 | +include __DIR__.'/header.php'; |
|
| 28 | 28 | // Recovered value of argument op in the URL $ |
| 29 | 29 | $op = \Xmf\Request::getString('op', 'list'); |
| 30 | 30 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left')); |
| 45 | 45 | $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL); |
| 46 | 46 | $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL); |
| 47 | - $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16); |
|
| 47 | + $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16); |
|
| 48 | 48 | $modulesCount = $helper->getHandler('Modules')->getCountModules(); |
| 49 | 49 | $modulesAll = $helper->getHandler('Modules')->getAllModules($start, $limit); |
| 50 | 50 | // Redirect if there aren't modules |
@@ -59,8 +59,8 @@ discard block |
||
| 59 | 59 | unset($module); |
| 60 | 60 | } |
| 61 | 61 | if ($modulesCount > $limit) { |
| 62 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 63 | - $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 62 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 63 | + $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 64 | 64 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 65 | 65 | } |
| 66 | 66 | } else { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | ] |
| 115 | 115 | ); |
| 116 | 116 | //Form mod_image |
| 117 | - include_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
|
| 117 | + include_once XOOPS_ROOT_PATH.'/class/uploader.php'; |
|
| 118 | 118 | $uploader = new \XoopsMediaUploader( |
| 119 | 119 | TDMC_UPLOAD_IMGMOD_PATH, $helper->getConfig('mimetypes'), $helper->getConfig('maxsize'), null, null |
| 120 | 120 | ); |
@@ -200,9 +200,9 @@ discard block |
||
| 200 | 200 | if ($id > 0) { |
| 201 | 201 | $modulesObj = $helper->getHandler('Modules')->get($id); |
| 202 | 202 | foreach ($modFieldArray as $moduleField) { |
| 203 | - if (isset($_POST['mod_' . $moduleField])) { |
|
| 204 | - $modField = $modulesObj->getVar('mod_' . $moduleField); |
|
| 205 | - $modulesObj->setVar('mod_' . $moduleField, !$modField); |
|
| 203 | + if (isset($_POST['mod_'.$moduleField])) { |
|
| 204 | + $modField = $modulesObj->getVar('mod_'.$moduleField); |
|
| 205 | + $modulesObj->setVar('mod_'.$moduleField, !$modField); |
|
| 206 | 206 | } |
| 207 | 207 | } |
| 208 | 208 | if ($helper->getHandler('Modules')->insert($modulesObj)) { |
@@ -213,4 +213,4 @@ discard block |
||
| 213 | 213 | break; |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | -include __DIR__ . '/footer.php'; |
|
| 216 | +include __DIR__.'/footer.php'; |
|
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_settings.tpl'; |
| 26 | 26 | |
| 27 | -include __DIR__ . '/header.php'; |
|
| 27 | +include __DIR__.'/header.php'; |
|
| 28 | 28 | |
| 29 | 29 | // Recovered value of argument op in the URL $ |
| 30 | 30 | $op = \Xmf\Request::getString('op', 'list'); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left')); |
| 46 | 46 | $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL); |
| 47 | 47 | $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL); |
| 48 | - $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16); |
|
| 48 | + $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16); |
|
| 49 | 49 | $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32); |
| 50 | 50 | $settingsCount = $helper->getHandler('Settings')->getCountSettings(); |
| 51 | 51 | $settingsAll = $helper->getHandler('Settings')->getAllSettings($start, $limit); |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | unset($setting); |
| 58 | 58 | } |
| 59 | 59 | if ($settingsCount > $limit) { |
| 60 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 61 | - $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 60 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 61 | + $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 62 | 62 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 63 | 63 | } |
| 64 | 64 | } else { |
@@ -187,4 +187,4 @@ discard block |
||
| 187 | 187 | } |
| 188 | 188 | break; |
| 189 | 189 | } |
| 190 | -include __DIR__ . '/footer.php'; |
|
| 190 | +include __DIR__.'/footer.php'; |
|
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @version $Id: menu.php 11084 2013-02-23 15:44:20Z timgno $ |
| 24 | 24 | */ |
| 25 | -include dirname(__DIR__) . '/preloads/autoloader.php'; |
|
| 25 | +include dirname(__DIR__).'/preloads/autoloader.php'; |
|
| 26 | 26 | |
| 27 | 27 | $moduleDirName = basename(dirname(__DIR__)); |
| 28 | 28 | $moduleDirNameUpper = mb_strtoupper($moduleDirName); |
@@ -46,62 +46,62 @@ discard block |
||
| 46 | 46 | $adminmenu[] = [ |
| 47 | 47 | 'title' => _MI_TDMCREATE_ADMENU1, |
| 48 | 48 | 'link' => 'admin/index.php', |
| 49 | - 'icon' => $pathIcon32 . '/dashboard.png', |
|
| 49 | + 'icon' => $pathIcon32.'/dashboard.png', |
|
| 50 | 50 | ]; |
| 51 | 51 | |
| 52 | 52 | $adminmenu[] = [ |
| 53 | 53 | 'title' => _MI_TDMCREATE_ADMENU2, |
| 54 | 54 | 'link' => 'admin/settings.php', |
| 55 | - 'icon' => $modPathIcon32 . '/settings.png', |
|
| 55 | + 'icon' => $modPathIcon32.'/settings.png', |
|
| 56 | 56 | ]; |
| 57 | 57 | |
| 58 | 58 | $adminmenu[] = [ |
| 59 | 59 | 'title' => _MI_TDMCREATE_ADMENU3, |
| 60 | 60 | 'link' => 'admin/modules.php', |
| 61 | - 'icon' => $modPathIcon32 . '/addmodule.png', |
|
| 61 | + 'icon' => $modPathIcon32.'/addmodule.png', |
|
| 62 | 62 | ]; |
| 63 | 63 | |
| 64 | 64 | $adminmenu[] = [ |
| 65 | 65 | 'title' => _MI_TDMCREATE_ADMENU4, |
| 66 | 66 | 'link' => 'admin/tables.php', |
| 67 | - 'icon' => $modPathIcon32 . '/addtable.png', |
|
| 67 | + 'icon' => $modPathIcon32.'/addtable.png', |
|
| 68 | 68 | ]; |
| 69 | 69 | |
| 70 | 70 | $adminmenu[] = [ |
| 71 | 71 | 'title' => _MI_TDMCREATE_ADMENU5, |
| 72 | 72 | 'link' => 'admin/fields.php', |
| 73 | - 'icon' => $modPathIcon32 . '/fields.png', |
|
| 73 | + 'icon' => $modPathIcon32.'/fields.png', |
|
| 74 | 74 | ]; |
| 75 | 75 | |
| 76 | 76 | $adminmenu[] = [ |
| 77 | 77 | 'title' => _MI_TDMCREATE_ADMENU6, |
| 78 | 78 | 'link' => 'admin/morefiles.php', |
| 79 | - 'icon' => $modPathIcon32 . '/files.png', |
|
| 79 | + 'icon' => $modPathIcon32.'/files.png', |
|
| 80 | 80 | ]; |
| 81 | 81 | |
| 82 | 82 | $adminmenu[] = [ |
| 83 | 83 | 'title' => _MI_TDMCREATE_ADMENU7, |
| 84 | 84 | 'link' => 'admin/building.php', |
| 85 | - 'icon' => $modPathIcon32 . '/builder.png', |
|
| 85 | + 'icon' => $modPathIcon32.'/builder.png', |
|
| 86 | 86 | ]; |
| 87 | 87 | |
| 88 | 88 | //Feedback |
| 89 | 89 | $adminmenu[] = [ |
| 90 | - 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK'), |
|
| 90 | + 'title' => constant('CO_'.$moduleDirNameUpper.'_'.'ADMENU_FEEDBACK'), |
|
| 91 | 91 | 'link' => 'admin/feedback.php', |
| 92 | - 'icon' => $pathIcon32 . 'mail_foward.png', |
|
| 92 | + 'icon' => $pathIcon32.'mail_foward.png', |
|
| 93 | 93 | ]; |
| 94 | 94 | |
| 95 | 95 | if ($helper->getConfig('displayDeveloperTools')) { |
| 96 | 96 | $adminmenu[] = [ |
| 97 | - 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE'), |
|
| 97 | + 'title' => constant('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE'), |
|
| 98 | 98 | 'link' => 'admin/migrate.php', |
| 99 | - 'icon' => $pathIcon32 . 'database_go.png', |
|
| 99 | + 'icon' => $pathIcon32.'database_go.png', |
|
| 100 | 100 | ]; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | $adminmenu[] = [ |
| 104 | 104 | 'title' => _MI_TDMCREATE_ABOUT, |
| 105 | 105 | 'link' => 'admin/about.php', |
| 106 | - 'icon' => $pathIcon32 . 'about.png', |
|
| 106 | + 'icon' => $pathIcon32.'about.png', |
|
| 107 | 107 | ]; |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_index.tpl'; |
| 26 | 26 | |
| 27 | -include __DIR__ . '/header.php'; |
|
| 27 | +include __DIR__.'/header.php'; |
|
| 28 | 28 | $countSettings = $helper->getHandler('Settings')->getCount(); |
| 29 | 29 | $countModules = $helper->getHandler('Modules')->getCount(); |
| 30 | 30 | $countTables = $helper->getHandler('Tables')->getCount(); |
@@ -34,11 +34,11 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | //$templateMain = 'tdmcreate_index.tpl'; |
| 36 | 36 | $adminObject->addInfoBox(_AM_TDMCREATE_ADMIN_NUMMODULES); |
| 37 | -$adminObject->addInfoBoxLine(sprintf('<label>' . _AM_TDMCREATE_THEREARE_NUMSETTINGS . '</label>', $countSettings), 'Blue'); |
|
| 38 | -$adminObject->addInfoBoxLine(sprintf('<label>' . _AM_TDMCREATE_THEREARE_NUMMODULES . '</label>', $countModules), 'Green'); |
|
| 39 | -$adminObject->addInfoBoxLine(sprintf('<label>' . _AM_TDMCREATE_THEREARE_NUMTABLES . '</label>', $countTables), 'Orange'); |
|
| 40 | -$adminObject->addInfoBoxLine(sprintf('<label>' . _AM_TDMCREATE_THEREARE_NUMFIELDS . '</label>', $countFields), 'Gray'); |
|
| 41 | -$adminObject->addInfoBoxLine(sprintf('<label>' . _AM_TDMCREATE_THEREARE_NUMFILES . '</label>', $countFiles), 'Red'); |
|
| 37 | +$adminObject->addInfoBoxLine(sprintf('<label>'._AM_TDMCREATE_THEREARE_NUMSETTINGS.'</label>', $countSettings), 'Blue'); |
|
| 38 | +$adminObject->addInfoBoxLine(sprintf('<label>'._AM_TDMCREATE_THEREARE_NUMMODULES.'</label>', $countModules), 'Green'); |
|
| 39 | +$adminObject->addInfoBoxLine(sprintf('<label>'._AM_TDMCREATE_THEREARE_NUMTABLES.'</label>', $countTables), 'Orange'); |
|
| 40 | +$adminObject->addInfoBoxLine(sprintf('<label>'._AM_TDMCREATE_THEREARE_NUMFIELDS.'</label>', $countFields), 'Gray'); |
|
| 41 | +$adminObject->addInfoBoxLine(sprintf('<label>'._AM_TDMCREATE_THEREARE_NUMFILES.'</label>', $countFiles), 'Red'); |
|
| 42 | 42 | // Upload Folders |
| 43 | 43 | $folder = [ |
| 44 | 44 | TDMC_UPLOAD_PATH, |
@@ -56,4 +56,4 @@ discard block |
||
| 56 | 56 | $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation('index.php')); |
| 57 | 57 | $GLOBALS['xoopsTpl']->assign('index', $adminObject->displayIndex()); |
| 58 | 58 | |
| 59 | -include __DIR__ . '/footer.php'; |
|
| 59 | +include __DIR__.'/footer.php'; |
|
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * |
| 24 | 24 | * @version $Id: 1.59 logo.php 11297 2013-03-24 10:58:10Z timgno $ |
| 25 | 25 | */ |
| 26 | -include __DIR__ . '/header.php'; |
|
| 26 | +include __DIR__.'/header.php'; |
|
| 27 | 27 | $funct = \Xmf\Request::getString('funct', '', 'GET'); |
| 28 | 28 | $iconName = \Xmf\Request::getString('iconName', '', 'GET'); |
| 29 | 29 | $caption = \Xmf\Request::getString('caption', '', 'GET'); |
@@ -24,6 +24,6 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | $pathIcon32 = Xmf\Module\Admin::iconUrl('', 32); |
| 26 | 26 | |
| 27 | -echo "<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . " </div>\n" . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>'; |
|
| 27 | +echo "<div class='adminfooter'>\n"." <div style='text-align: center;'>\n"." <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"." </div>\n".' '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>'; |
|
| 28 | 28 | |
| 29 | 29 | xoops_cp_footer(); |