@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function __construct() |
| 46 | 46 | { |
| 47 | - $config = include dirname(dirname(__DIR__)) . '/config/config.php'; |
|
| 47 | + $config = include dirname(dirname(__DIR__)).'/config/config.php'; |
|
| 48 | 48 | |
| 49 | 49 | $this->name = $config->name; |
| 50 | 50 | $this->paths = $config->paths; |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | require $GLOBALS['xoops']->path('class/template.php'); |
| 72 | 72 | $breadcrumbTpl = new \XoopsTpl(); |
| 73 | 73 | $breadcrumbTpl->assign('breadcrumb', $this->bread); |
| 74 | - $html = $breadcrumbTpl->fetch('db:' . $this->dirname . '_common_breadcrumb.tpl'); |
|
| 74 | + $html = $breadcrumbTpl->fetch('db:'.$this->dirname.'_common_breadcrumb.tpl'); |
|
| 75 | 75 | unset($breadcrumbTpl); |
| 76 | 76 | |
| 77 | 77 | return $html; |
@@ -23,21 +23,21 @@ |
||
| 23 | 23 | $moduleDirName = basename(dirname(dirname(__DIR__))); |
| 24 | 24 | $moduleDirNameUpper = mb_strtoupper($moduleDirName); |
| 25 | 25 | |
| 26 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_FORM_TITLE', 'Send a feedback'); |
|
| 27 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_RECIPIENT', 'Recipient'); |
|
| 28 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME', 'Name'); |
|
| 29 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME_PLACEHOLER', 'Please enter your name'); |
|
| 30 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE', 'Website'); |
|
| 31 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE_PLACEHOLER', 'Please enter your website'); |
|
| 32 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL', 'Email'); |
|
| 33 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL_PLACEHOLER', 'Please enter your email'); |
|
| 34 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE', 'Type of feedback'); |
|
| 35 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_SUGGESTION', 'Suggestions'); |
|
| 36 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_BUGS', 'Bugs'); |
|
| 37 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_TESTIMONIAL', 'Testimonials'); |
|
| 38 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_FEATURES', 'Features'); |
|
| 39 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_OTHERS', 'Misc'); |
|
| 40 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_CONTENT', 'Feedback content'); |
|
| 41 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_FOR', 'Feedback for module '); |
|
| 42 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_SUCCESS', 'Feedback successfully sent'); |
|
| 43 | -define('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_ERROR', 'An errror occured when feedback was sent!'); |
|
| 26 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_FORM_TITLE', 'Send a feedback'); |
|
| 27 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_RECIPIENT', 'Recipient'); |
|
| 28 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_NAME', 'Name'); |
|
| 29 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_NAME_PLACEHOLER', 'Please enter your name'); |
|
| 30 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_SITE', 'Website'); |
|
| 31 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_SITE_PLACEHOLER', 'Please enter your website'); |
|
| 32 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL', 'Email'); |
|
| 33 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL_PLACEHOLER', 'Please enter your email'); |
|
| 34 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE', 'Type of feedback'); |
|
| 35 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_SUGGESTION', 'Suggestions'); |
|
| 36 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_BUGS', 'Bugs'); |
|
| 37 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_TESTIMONIAL', 'Testimonials'); |
|
| 38 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_FEATURES', 'Features'); |
|
| 39 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_OTHERS', 'Misc'); |
|
| 40 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_CONTENT', 'Feedback content'); |
|
| 41 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_FOR', 'Feedback for module '); |
|
| 42 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_SUCCESS', 'Feedback successfully sent'); |
|
| 43 | +define('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_ERROR', 'An errror occured when feedback was sent!'); |
|
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_morefiles.tpl'; |
| 25 | 25 | |
| 26 | -include __DIR__ . '/header.php'; |
|
| 26 | +include __DIR__.'/header.php'; |
|
| 27 | 27 | // Recovered value of argument op in the URL $ |
| 28 | 28 | $op = \Xmf\Request::getString('op', 'list'); |
| 29 | 29 | |
@@ -60,8 +60,8 @@ discard block |
||
| 60 | 60 | unset($files); |
| 61 | 61 | } |
| 62 | 62 | if ($morefilesCount > $limit) { |
| 63 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 64 | - $pagenav = new \XoopsPageNav($morefilesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 63 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 64 | + $pagenav = new \XoopsPageNav($morefilesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 65 | 65 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 66 | 66 | } |
| 67 | 67 | } else { |
@@ -139,4 +139,4 @@ discard block |
||
| 139 | 139 | break; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | -include __DIR__ . '/footer.php'; |
|
| 142 | +include __DIR__.'/footer.php'; |
|
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_addfiles.tpl'; |
| 25 | 25 | |
| 26 | -include __DIR__ . '/header.php'; |
|
| 26 | +include __DIR__.'/header.php'; |
|
| 27 | 27 | // Recovered value of argument op in the URL $ |
| 28 | 28 | $op = \Xmf\Request::getString('op', 'list'); |
| 29 | 29 | |
@@ -60,8 +60,8 @@ discard block |
||
| 60 | 60 | unset($files); |
| 61 | 61 | } |
| 62 | 62 | if ($addfilesCount > $limit) { |
| 63 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 64 | - $pagenav = new \XoopsPageNav($addfilesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 63 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 64 | + $pagenav = new \XoopsPageNav($addfilesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 65 | 65 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 66 | 66 | } |
| 67 | 67 | } else { |
@@ -139,4 +139,4 @@ discard block |
||
| 139 | 139 | break; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | -include __DIR__ . '/footer.php'; |
|
| 142 | +include __DIR__.'/footer.php'; |
|
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @author Txmod Xoops http://www.txmodxoops.org |
| 21 | 21 | */ |
| 22 | -include __DIR__ . '/header.php'; |
|
| 22 | +include __DIR__.'/header.php'; |
|
| 23 | 23 | |
| 24 | 24 | $adminObject->displayNavigation(basename(__FILE__)); |
| 25 | 25 | $adminObject::setPaypal('[email protected]'); |
| 26 | 26 | $adminObject->displayAbout(false); |
| 27 | 27 | |
| 28 | -include __DIR__ . '/footer.php'; |
|
| 28 | +include __DIR__.'/footer.php'; |
|
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_fields.tpl'; |
| 34 | 34 | |
| 35 | -include __DIR__ . '/header.php'; |
|
| 35 | +include __DIR__.'/header.php'; |
|
| 36 | 36 | // Recovered value of arguments op in the URL $ |
| 37 | 37 | $op = \Xmf\Request::getString('op', 'list'); |
| 38 | 38 | // Get fields Variables |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation('fields.php')); |
| 56 | 56 | $adminObject->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add'); |
| 57 | 57 | $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left')); |
| 58 | - $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16); |
|
| 58 | + $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16); |
|
| 59 | 59 | // Redirect if there aren't modules |
| 60 | 60 | $modulesCount = $helper->getHandler('Modules')->getCountModules(); |
| 61 | 61 | if (0 == $modulesCount) { |
@@ -100,8 +100,8 @@ discard block |
||
| 100 | 100 | unset($tlid); |
| 101 | 101 | unset($fields); |
| 102 | 102 | if ($tablesCount > $limit) { |
| 103 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 104 | - $pagenav = new \XoopsPageNav($tablesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 103 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 104 | + $pagenav = new \XoopsPageNav($tablesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 105 | 105 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 106 | 106 | } |
| 107 | 107 | } else { |
@@ -238,9 +238,9 @@ discard block |
||
| 238 | 238 | if ($fieldId > 0) { |
| 239 | 239 | $fieldsObj = $helper->getHandler('Fields')->get($fieldId); |
| 240 | 240 | foreach ($fieldsArray as $field) { |
| 241 | - if (isset($_POST['field_' . $field])) { |
|
| 242 | - $fldField = $fieldsObj->getVar('field_' . $field); |
|
| 243 | - $fieldsObj->setVar('field_' . $field, !$fldField); |
|
| 241 | + if (isset($_POST['field_'.$field])) { |
|
| 242 | + $fldField = $fieldsObj->getVar('field_'.$field); |
|
| 243 | + $fieldsObj->setVar('field_'.$field, !$fldField); |
|
| 244 | 244 | } |
| 245 | 245 | } |
| 246 | 246 | if ($helper->getHandler('Fields')->insert($fieldsObj)) { |
@@ -250,4 +250,4 @@ discard block |
||
| 250 | 250 | } |
| 251 | 251 | break; |
| 252 | 252 | } |
| 253 | -include __DIR__ . '/footer.php'; |
|
| 253 | +include __DIR__.'/footer.php'; |
|
@@ -21,10 +21,10 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @version $Id: header.php 12258 2014-01-02 09:33:29Z timgno $ |
| 23 | 23 | */ |
| 24 | -include dirname(__DIR__) . '/preloads/autoloader.php'; |
|
| 24 | +include dirname(__DIR__).'/preloads/autoloader.php'; |
|
| 25 | 25 | |
| 26 | -include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
| 27 | -include_once dirname(__DIR__) . '/include/common.php'; |
|
| 26 | +include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
|
| 27 | +include_once dirname(__DIR__).'/include/common.php'; |
|
| 28 | 28 | |
| 29 | 29 | $thisDirname = $GLOBALS['xoopsModule']->getVar('dirname'); |
| 30 | 30 | // Link System Icons |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | // MyTextSanitizer |
| 42 | 42 | $myts = MyTextSanitizer::getInstance(); |
| 43 | 43 | if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { |
| 44 | - include_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
| 44 | + include_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
| 45 | 45 | $xoopsTpl = new \XoopsTpl(); |
| 46 | 46 | } |
| 47 | 47 | // System Icons |
@@ -24,36 +24,36 @@ |
||
| 24 | 24 | $dirname = $GLOBALS['xoopsModule']->getVar('dirname'); |
| 25 | 25 | // Root Frameworks icons 32x32 directory |
| 26 | 26 | if (!defined('XOOPS_ICONS32_PATH')) { |
| 27 | - define('XOOPS_ICONS32_PATH', XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32'); |
|
| 27 | + define('XOOPS_ICONS32_PATH', XOOPS_ROOT_PATH.'/Frameworks/moduleclasses/icons/32'); |
|
| 28 | 28 | } |
| 29 | 29 | if (!defined('XOOPS_ICONS32_URL')) { |
| 30 | - define('XOOPS_ICONS32_URL', XOOPS_URL . '/Frameworks/moduleclasses/icons/32'); |
|
| 30 | + define('XOOPS_ICONS32_URL', XOOPS_URL.'/Frameworks/moduleclasses/icons/32'); |
|
| 31 | 31 | } |
| 32 | 32 | // Local Directories |
| 33 | -define('TDMC_PATH', XOOPS_ROOT_PATH . '/modules/' . $dirname); |
|
| 34 | -define('TDMC_URL', XOOPS_URL . '/modules/' . $dirname); |
|
| 35 | -define('TDMC_CLASS_PATH', TDMC_PATH . '/class'); |
|
| 36 | -define('TDMC_CLASS_URL', TDMC_URL . '/class'); |
|
| 37 | -define('TDMC_DOCS_PATH', TDMC_PATH . '/docs'); |
|
| 38 | -define('TDMC_DOCS_URL', TDMC_URL . '/docs'); |
|
| 39 | -define('TDMC_FONTS_PATH', TDMC_PATH . '/assets/fonts'); |
|
| 40 | -define('TDMC_FONTS_URL', TDMC_URL . '/assets/fonts'); |
|
| 41 | -define('TDMC_IMAGE_PATH', TDMC_PATH . '/assets/images'); |
|
| 42 | -define('TDMC_IMAGE_URL', TDMC_URL . '/assets/images'); |
|
| 43 | -define('TDMC_IMAGES_LOGOS_PATH', TDMC_PATH . '/assets/images/logos'); |
|
| 44 | -define('TDMC_IMAGES_LOGOS_URL', TDMC_URL . '/assets/images/logos'); |
|
| 45 | -define('TDMC_ICONS_PATH', TDMC_PATH . '/assets/icons'); |
|
| 46 | -define('TDMC_ICONS_URL', TDMC_URL . '/assets/icons'); |
|
| 33 | +define('TDMC_PATH', XOOPS_ROOT_PATH.'/modules/'.$dirname); |
|
| 34 | +define('TDMC_URL', XOOPS_URL.'/modules/'.$dirname); |
|
| 35 | +define('TDMC_CLASS_PATH', TDMC_PATH.'/class'); |
|
| 36 | +define('TDMC_CLASS_URL', TDMC_URL.'/class'); |
|
| 37 | +define('TDMC_DOCS_PATH', TDMC_PATH.'/docs'); |
|
| 38 | +define('TDMC_DOCS_URL', TDMC_URL.'/docs'); |
|
| 39 | +define('TDMC_FONTS_PATH', TDMC_PATH.'/assets/fonts'); |
|
| 40 | +define('TDMC_FONTS_URL', TDMC_URL.'/assets/fonts'); |
|
| 41 | +define('TDMC_IMAGE_PATH', TDMC_PATH.'/assets/images'); |
|
| 42 | +define('TDMC_IMAGE_URL', TDMC_URL.'/assets/images'); |
|
| 43 | +define('TDMC_IMAGES_LOGOS_PATH', TDMC_PATH.'/assets/images/logos'); |
|
| 44 | +define('TDMC_IMAGES_LOGOS_URL', TDMC_URL.'/assets/images/logos'); |
|
| 45 | +define('TDMC_ICONS_PATH', TDMC_PATH.'/assets/icons'); |
|
| 46 | +define('TDMC_ICONS_URL', TDMC_URL.'/assets/icons'); |
|
| 47 | 47 | // Uploads Directories |
| 48 | -define('TDMC_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . $dirname); |
|
| 49 | -define('TDMC_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . $dirname); |
|
| 50 | -define('TDMC_UPLOAD_REPOSITORY_PATH', TDMC_UPLOAD_PATH . '/repository'); |
|
| 51 | -define('TDMC_UPLOAD_REPOSITORY_URL', TDMC_UPLOAD_URL . '/repository'); |
|
| 52 | -define('TDMC_UPLOAD_IMGMOD_PATH', TDMC_UPLOAD_PATH . '/images/modules'); |
|
| 53 | -define('TDMC_UPLOAD_IMGMOD_URL', TDMC_UPLOAD_URL . '/images/modules'); |
|
| 54 | -define('TDMC_UPLOAD_IMGTAB_PATH', TDMC_UPLOAD_PATH . '/images/tables'); |
|
| 55 | -define('TDMC_UPLOAD_IMGTAB_URL', TDMC_UPLOAD_URL . '/images/tables'); |
|
| 48 | +define('TDMC_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.$dirname); |
|
| 49 | +define('TDMC_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.$dirname); |
|
| 50 | +define('TDMC_UPLOAD_REPOSITORY_PATH', TDMC_UPLOAD_PATH.'/repository'); |
|
| 51 | +define('TDMC_UPLOAD_REPOSITORY_URL', TDMC_UPLOAD_URL.'/repository'); |
|
| 52 | +define('TDMC_UPLOAD_IMGMOD_PATH', TDMC_UPLOAD_PATH.'/images/modules'); |
|
| 53 | +define('TDMC_UPLOAD_IMGMOD_URL', TDMC_UPLOAD_URL.'/images/modules'); |
|
| 54 | +define('TDMC_UPLOAD_IMGTAB_PATH', TDMC_UPLOAD_PATH.'/images/tables'); |
|
| 55 | +define('TDMC_UPLOAD_IMGTAB_URL', TDMC_UPLOAD_URL.'/images/tables'); |
|
| 56 | 56 | // Xoops Request |
| 57 | -include_once XOOPS_ROOT_PATH . '/class/xoopsrequest.php'; |
|
| 58 | -include_once TDMC_PATH . '/include/functions.php'; |
|
| 59 | -include_once TDMC_PATH . '/class/helper.php'; |
|
| 57 | +include_once XOOPS_ROOT_PATH.'/class/xoopsrequest.php'; |
|
| 58 | +include_once TDMC_PATH.'/include/functions.php'; |
|
| 59 | +include_once TDMC_PATH.'/class/helper.php'; |
|