@@ -27,7 +27,7 @@ |
||
| 27 | 27 | define('CONTACT_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.CONTACT_DIRNAME); |
| 28 | 28 | define('CONTACT_IMAGE_PATH', CONTACT_PATH.'/assets/images'); |
| 29 | 29 | define('CONTACT_IMAGE_URL', CONTACT_URL.'/assets/images/'); |
| 30 | - define('CONTACT_ADMIN', CONTACT_URL . '/admin/index.php'); |
|
| 30 | + define('CONTACT_ADMIN', CONTACT_URL.'/admin/index.php'); |
|
| 31 | 31 | } |
| 32 | 32 | // module information |
| 33 | 33 | $copyright = "<a href='http://xoops.wedega.com' title='WEDEGA Webdesign Gabor' target='_blank'> |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * @author Hossein Azizabadi (AKA Voltan) |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -include __DIR__ . '/header.php'; |
|
| 22 | +include __DIR__.'/header.php'; |
|
| 23 | 23 | |
| 24 | 24 | if (!empty($_POST)) { |
| 25 | 25 | // Info Processing |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | use Xmf\Request; |
| 23 | 23 | |
| 24 | 24 | // Call header |
| 25 | -require __DIR__ . '/admin_header.php'; |
|
| 25 | +require __DIR__.'/admin_header.php'; |
|
| 26 | 26 | // Display Admin header |
| 27 | 27 | xoops_cp_header(); |
| 28 | 28 | // Define default value |
@@ -55,6 +55,6 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation(basename(__FILE__))); |
| 57 | 57 | // Call template file |
| 58 | -$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH . '/modules/contact/templates/admin/contact_tools.tpl'); |
|
| 58 | +$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH.'/modules/contact/templates/admin/contact_tools.tpl'); |
|
| 59 | 59 | // Call footer |
| 60 | -require __DIR__ . '/admin_footer.php'; |
|
| 60 | +require __DIR__.'/admin_footer.php'; |
|
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | use Xmf\Request; |
| 23 | 23 | |
| 24 | 24 | // Call header |
| 25 | -require __DIR__ . '/admin_header.php'; |
|
| 25 | +require __DIR__.'/admin_header.php'; |
|
| 26 | 26 | // Display Admin header |
| 27 | 27 | xoops_cp_header(); |
| 28 | 28 | // Define default value |
@@ -51,6 +51,6 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation(basename(__FILE__))); |
| 53 | 53 | // Call template file |
| 54 | -$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH . '/modules/contact/templates/admin/contact_logs.tpl'); |
|
| 54 | +$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH.'/modules/contact/templates/admin/contact_logs.tpl'); |
|
| 55 | 55 | // Call footer |
| 56 | -require __DIR__ . '/admin_footer.php'; |
|
| 56 | +require __DIR__.'/admin_footer.php'; |
|
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | 22 | // Call header |
| 23 | -require __DIR__ . '/admin_header.php'; |
|
| 23 | +require __DIR__.'/admin_header.php'; |
|
| 24 | 24 | // Display Admin header |
| 25 | 25 | xoops_cp_header(); |
| 26 | 26 | |
@@ -32,6 +32,6 @@ discard block |
||
| 32 | 32 | $adminObject->displayIndex(); |
| 33 | 33 | |
| 34 | 34 | // Call template file |
| 35 | -$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH . '/modules/contact/templates/admin/contact_index.tpl'); |
|
| 35 | +$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH.'/modules/contact/templates/admin/contact_index.tpl'); |
|
| 36 | 36 | // Call footer |
| 37 | -require __DIR__ . '/admin_footer.php'; |
|
| 37 | +require __DIR__.'/admin_footer.php'; |
|
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | xoops_loadLanguage('main', 'contact'); |
| 72 | 72 | |
| 73 | - require_once XOOPS_ROOT_PATH . '/modules/contact/class/contact.php'; |
|
| 73 | + require_once XOOPS_ROOT_PATH.'/modules/contact/class/contact.php'; |
|
| 74 | 74 | |
| 75 | 75 | $block['lng_username'] = 'name'; |
| 76 | 76 | |
@@ -17,27 +17,27 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../../../mainfile.php'; |
|
| 20 | +require_once __DIR__.'/../../../mainfile.php'; |
|
| 21 | 21 | |
| 22 | 22 | $moduleDirName = basename(dirname(__DIR__)); |
| 23 | 23 | $capsDirName = strtoupper($moduleDirName); |
| 24 | 24 | |
| 25 | -if (!defined($capsDirName . '_DIRNAME')) { |
|
| 25 | +if (!defined($capsDirName.'_DIRNAME')) { |
|
| 26 | 26 | //if (!defined(constant($capsDirName . '_DIRNAME'))) { |
| 27 | - define($capsDirName . '_DIRNAME', $GLOBALS['xoopsModule']->dirname()); |
|
| 28 | - define($capsDirName . '_PATH', XOOPS_ROOT_PATH . '/modules/' . constant($capsDirName . '_DIRNAME')); |
|
| 29 | - define($capsDirName . '_URL', XOOPS_URL . '/modules/' . constant($capsDirName . '_DIRNAME')); |
|
| 30 | - define($capsDirName . '_ADMIN', constant($capsDirName . '_URL') . '/admin/index.php'); |
|
| 31 | - define($capsDirName . '_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . constant($capsDirName . '_DIRNAME')); |
|
| 32 | - define($capsDirName . '_AUTHOR_LOGOIMG', constant($capsDirName . '_URL') . '/assets/images/logoModule.png'); |
|
| 27 | + define($capsDirName.'_DIRNAME', $GLOBALS['xoopsModule']->dirname()); |
|
| 28 | + define($capsDirName.'_PATH', XOOPS_ROOT_PATH.'/modules/'.constant($capsDirName.'_DIRNAME')); |
|
| 29 | + define($capsDirName.'_URL', XOOPS_URL.'/modules/'.constant($capsDirName.'_DIRNAME')); |
|
| 30 | + define($capsDirName.'_ADMIN', constant($capsDirName.'_URL').'/admin/index.php'); |
|
| 31 | + define($capsDirName.'_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/'.constant($capsDirName.'_DIRNAME')); |
|
| 32 | + define($capsDirName.'_AUTHOR_LOGOIMG', constant($capsDirName.'_URL').'/assets/images/logoModule.png'); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // Define here the place where main upload path |
| 36 | 36 | |
| 37 | 37 | //$img_dir = $GLOBALS['xoopsModuleConfig']['uploaddir']; |
| 38 | 38 | |
| 39 | -define($capsDirName . '_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . $moduleDirName); // WITHOUT Trailing slash |
|
| 40 | -define($capsDirName . '_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . $moduleDirName); // WITHOUT Trailing slash |
|
| 39 | +define($capsDirName.'_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.$moduleDirName); // WITHOUT Trailing slash |
|
| 40 | +define($capsDirName.'_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.$moduleDirName); // WITHOUT Trailing slash |
|
| 41 | 41 | |
| 42 | 42 | //constant($cloned_lang . '_CATEGORY_NOTIFY') |
| 43 | 43 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | // constant($capsDirName . '_UPLOAD_PATH') . '/midsize', |
| 85 | 85 | // constant($capsDirName . '_UPLOAD_PATH') . '/thumbs', |
| 86 | 86 | ]; |
| 87 | - $this->blankFiles = [ |
|
| 87 | + $this->blankFiles = [ |
|
| 88 | 88 | // constant($capsDirName . '_UPLOAD_PATH'), |
| 89 | 89 | // constant($capsDirName . '_UPLOAD_PATH') . '/midsize', |
| 90 | 90 | // constant($capsDirName . '_UPLOAD_PATH') . '/thumbs', |
@@ -96,13 +96,13 @@ discard block |
||
| 96 | 96 | '/templates/admin/' |
| 97 | 97 | |
| 98 | 98 | ]; |
| 99 | - $this->oldFiles = [ |
|
| 99 | + $this->oldFiles = [ |
|
| 100 | 100 | '/include/functions.php', |
| 101 | 101 | '/include/functions_update.php', |
| 102 | 102 | '/LICENSE', |
| 103 | 103 | '/readme.html', |
| 104 | 104 | ]; |
| 105 | - $this->oldFolders = [ |
|
| 105 | + $this->oldFolders = [ |
|
| 106 | 106 | '/images', |
| 107 | 107 | '/css', |
| 108 | 108 | '/js', |
@@ -112,4 +112,4 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | // module information |
| 114 | 114 | $modCopyright = "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
| 115 | - <img src='" . constant($capsDirName . '_AUTHOR_LOGOIMG') . '\' alt=\'XOOPS Project\' /></a>'; |
|
| 115 | + <img src='" . constant($capsDirName.'_AUTHOR_LOGOIMG').'\' alt=\'XOOPS Project\' /></a>'; |
|
@@ -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 | ]; |
@@ -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 | use XoopsModules\Contact; |
| 24 | 24 | /** @var Contact\Helper $helper */ |
@@ -24,11 +24,11 @@ discard block |
||
| 24 | 24 | /** @var Contact\Helper $helper */ |
| 25 | 25 | $helper = Contact\Helper::getInstance(); |
| 26 | 26 | |
| 27 | -require __DIR__ . '/../../mainfile.php'; |
|
| 28 | -require_once __DIR__ . '/header.php'; |
|
| 27 | +require __DIR__.'/../../mainfile.php'; |
|
| 28 | +require_once __DIR__.'/header.php'; |
|
| 29 | 29 | $GLOBALS['xoopsOption']['template_main'] = 'contact_index.tpl'; |
| 30 | 30 | //unset($_SESSION); |
| 31 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
| 31 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
| 32 | 32 | global $xoopsModuleConfig, $xoopsModule; |
| 33 | 33 | /*Modules Options*/ |
| 34 | 34 | if (1 == $helper->getConfig('form_dept')) { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $GLOBALS['xoopsTpl']->assign('map', $helper->getConfig('embed_maps')); |
| 56 | 56 | /*end Modules options*/ |
| 57 | 57 | |
| 58 | -$GLOBALS['xoopsTpl']->assign('breadcrumb', '<li><a href="' . XOOPS_URL . '">' . _YOURHOME . '</a></li> <li class="active">' . $xoopsModule->name().'</li>'); |
|
| 58 | +$GLOBALS['xoopsTpl']->assign('breadcrumb', '<li><a href="'.XOOPS_URL.'">'._YOURHOME.'</a></li> <li class="active">'.$xoopsModule->name().'</li>'); |
|
| 59 | 59 | $GLOBALS['xoopsTpl']->assign('info', xoops_getModuleOption('contact_info', 'contact')); |
| 60 | 60 | $GLOBALS['xoopsTpl']->assign('contact_default', xoops_getModuleOption('contact_default', 'contact')); |
| 61 | 61 | |
@@ -86,4 +86,4 @@ discard block |
||
| 86 | 86 | $GLOBALS['xoopsTpl']->assign('lng_subject_info', _MD_CONTACT_SUBJECT_INFO); |
| 87 | 87 | $GLOBALS['xoopsTpl']->assign('lng_message_info', _MD_CONTACT_MESSAGE_INFO); |
| 88 | 88 | |
| 89 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 89 | +include XOOPS_ROOT_PATH.'/footer.php'; |
|