@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | $tagObj = $smartobjectTagHandler->get($tagid); |
| 18 | 18 | |
| 19 | 19 | if ($tagObj->isNew()) { |
| 20 | - $breadcrumb = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_TAG_CREATE; |
|
| 20 | + $breadcrumb = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_TAG_CREATE; |
|
| 21 | 21 | $title = _AM_SOBJECT_TAG_CREATE; |
| 22 | 22 | $info = _AM_SOBJECT_TAG_CREATE_INFO; |
| 23 | 23 | $collaps_name = 'tagcreate'; |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | //$tagObj->stripMultilanguageFields(); |
| 27 | 27 | } else { |
| 28 | 28 | if ($language) { |
| 29 | - $breadcrumb = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_TAG_EDITING_LANGUAGE; |
|
| 29 | + $breadcrumb = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_TAG_EDITING_LANGUAGE; |
|
| 30 | 30 | $title = _AM_SOBJECT_TAG_EDIT_LANGUAGE; |
| 31 | 31 | $info = _AM_SOBJECT_TAG_EDIT_LANGUAGE_INFO; |
| 32 | 32 | $collaps_name = 'tageditlanguage'; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | $submit_button_caption = null; |
| 35 | 35 | $tagObj->makeNonMLFieldReadOnly(); |
| 36 | 36 | } else { |
| 37 | - $breadcrumb = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_EDITING; |
|
| 37 | + $breadcrumb = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_EDITING; |
|
| 38 | 38 | $title = _AM_SOBJECT_TAG_EDIT; |
| 39 | 39 | $info = _AM_SOBJECT_TAG_EDIT_INFO; |
| 40 | 40 | $collaps_name = 'tagedit'; |
@@ -53,9 +53,9 @@ discard block |
||
| 53 | 53 | smart_close_collapsable($collaps_name); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | -include_once __DIR__ . '/admin_header.php'; |
|
| 57 | -include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 58 | -include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttag.php'; |
|
| 56 | +include_once __DIR__.'/admin_header.php'; |
|
| 57 | +include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 58 | +include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttag.php'; |
|
| 59 | 59 | |
| 60 | 60 | $smartobjectTagHandler = xoops_getModuleHandler('tag'); |
| 61 | 61 | |
@@ -75,23 +75,23 @@ discard block |
||
| 75 | 75 | switch ($op) { |
| 76 | 76 | |
| 77 | 77 | case 'del': |
| 78 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 78 | + include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 79 | 79 | $controller = new SmartObjectController($smartobjectTagHandler); |
| 80 | 80 | $controller->handleObjectDeletion(_AM_SOBJECT_TAG_DELETE_CONFIRM); |
| 81 | 81 | |
| 82 | 82 | break; |
| 83 | 83 | |
| 84 | 84 | case 'addtag': |
| 85 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 85 | + include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 86 | 86 | $controller = new SmartObjectController($smartobjectTagHandler); |
| 87 | 87 | $tagObj = $controller->storeSmartObject(); |
| 88 | 88 | if ($tagObj->hasError()) { |
| 89 | - redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors()); |
|
| 89 | + redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR.$tagObj->getHtmlErrors()); |
|
| 90 | 90 | exit; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | if ($tagObj->hasError()) { |
| 94 | - redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors()); |
|
| 94 | + redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR.$tagObj->getHtmlErrors()); |
|
| 95 | 95 | } else { |
| 96 | 96 | redirect_header(smart_get_page_before_form(), 3, _CO_SOBJECT_SAVE_SUCCESS); |
| 97 | 97 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | smart_collapsableBar('tags', _AM_SOBJECT_TAGS, _AM_SOBJECT_TAGS_INFO); |
| 113 | 113 | |
| 114 | - include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 114 | + include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 115 | 115 | $objectTable = new SmartObjectTable($smartobjectTagHandler, false, array('delete')); |
| 116 | 116 | $objectTable->addColumn(new SmartObjectColumn('name')); |
| 117 | 117 | $objectTable->addColumn(new SmartObjectColumn('language')); |
@@ -138,4 +138,4 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | //smart_modFooter(); |
| 140 | 140 | //xoops_cp_footer(); |
| 141 | -include_once __DIR__ . '/admin_footer.php'; |
|
| 141 | +include_once __DIR__.'/admin_footer.php'; |
|
@@ -11,9 +11,9 @@ discard block |
||
| 11 | 11 | * Licence: GNU |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -include_once __DIR__ . '/admin_header.php'; |
|
| 15 | -include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 16 | -include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectlink.php'; |
|
| 14 | +include_once __DIR__.'/admin_header.php'; |
|
| 15 | +include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 16 | +include_once SMARTOBJECT_ROOT_PATH.'class/smartobjectlink.php'; |
|
| 17 | 17 | $indexAdmin = new ModuleAdmin(); |
| 18 | 18 | |
| 19 | 19 | $smartobjectLinkHandler = xoops_getModuleHandler('link'); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | switch ($op) { |
| 31 | 31 | |
| 32 | 32 | case 'del': |
| 33 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 33 | + include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 34 | 34 | $controller = new SmartObjectController($smartobjectLinkHandler); |
| 35 | 35 | $controller->handleObjectDeletion(_AM_SOBJECT_SENT_LINK_DELETE_CONFIRM); |
| 36 | 36 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $linkObj = $smartobjectLinkHandler->get($linkid); |
| 42 | 42 | |
| 43 | 43 | if ($linkObj->isNew()) { |
| 44 | - redirect_header(SMARTOBJECT_URL . 'admin/link.php', 3, _AM_SOBJECT_LINK_NOT_FOUND); |
|
| 44 | + redirect_header(SMARTOBJECT_URL.'admin/link.php', 3, _AM_SOBJECT_LINK_NOT_FOUND); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | smart_xoops_cp_header(); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINK_DISPLAY, _AM_SOBJECT_SENT_LINK_DISPLAY_INFO); |
| 52 | 52 | |
| 53 | - include_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
| 53 | + include_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
| 54 | 54 | |
| 55 | 55 | // --- |
| 56 | 56 | // 2012-01-01 PHP 5.3: Assigning the return value of new by reference is now deprecated. |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINKS, _AM_SOBJECT_SENT_LINKS_INFO); |
| 79 | 79 | |
| 80 | - include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 80 | + include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 81 | 81 | $objectTable = new SmartObjectTable($smartobjectLinkHandler, null, array('delete')); |
| 82 | 82 | $objectTable->addColumn(new SmartObjectColumn('date')); |
| 83 | 83 | $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_SENT_LINKS_FROM, $align = 'left', $width = false, 'getFromInfo')); |
@@ -100,4 +100,4 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | //smart_modFooter(); |
| 102 | 102 | //xoops_cp_footer(); |
| 103 | -include_once __DIR__ . '/admin_footer.php'; |
|
| 103 | +include_once __DIR__.'/admin_footer.php'; |
|
@@ -40,9 +40,9 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | -include_once __DIR__ . '/admin_header.php'; |
|
| 44 | -include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 45 | -include_once SMARTOBJECT_ROOT_PATH . 'class/adsense.php'; |
|
| 43 | +include_once __DIR__.'/admin_header.php'; |
|
| 44 | +include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 45 | +include_once SMARTOBJECT_ROOT_PATH.'class/adsense.php'; |
|
| 46 | 46 | $smartobjectAdsenseHandler = xoops_getModuleHandler('adsense'); |
| 47 | 47 | smart_loadLanguageFile('smartobject', 'adsense'); |
| 48 | 48 | $indexAdmin = new ModuleAdmin(); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | switch ($op) { |
| 60 | 60 | case 'mod': |
| 61 | 61 | |
| 62 | - $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0; |
|
| 62 | + $adsenseid = isset($_GET['adsenseid']) ? (int) $_GET['adsenseid'] : 0; |
|
| 63 | 63 | |
| 64 | 64 | smart_xoops_cp_header(); |
| 65 | 65 | echo $indexAdmin->addNavigation(basename(__FILE__)); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | case 'clone': |
| 71 | 71 | |
| 72 | - $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0; |
|
| 72 | + $adsenseid = isset($_GET['adsenseid']) ? (int) $_GET['adsenseid'] : 0; |
|
| 73 | 73 | |
| 74 | 74 | smart_xoops_cp_header(); |
| 75 | 75 | echo $indexAdmin->addNavigation(basename(__FILE__)); |
@@ -78,21 +78,21 @@ discard block |
||
| 78 | 78 | break; |
| 79 | 79 | |
| 80 | 80 | case 'addadsense': |
| 81 | - if (@include_once SMARTOBJECT_ROOT_PATH . 'include/captcha/captcha.php') { |
|
| 81 | + if (@include_once SMARTOBJECT_ROOT_PATH.'include/captcha/captcha.php') { |
|
| 82 | 82 | $xoopsCaptcha = XoopsCaptcha::getInstance(); |
| 83 | 83 | if (!$xoopsCaptcha->verify()) { |
| 84 | 84 | redirect_header('javascript:history.go(-1);', 3, $xoopsCaptcha->getMessage()); |
| 85 | 85 | exit; |
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 88 | + include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 89 | 89 | $controller = new SmartObjectController($smartobjectAdsenseHandler); |
| 90 | 90 | $controller->storeFromDefaultForm(_AM_SOBJECT_ADSENSES_CREATED, _AM_SOBJECT_ADSENSES_MODIFIED); |
| 91 | 91 | break; |
| 92 | 92 | |
| 93 | 93 | case 'del': |
| 94 | 94 | |
| 95 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 95 | + include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 96 | 96 | $controller = new SmartObjectController($smartobjectAdsenseHandler); |
| 97 | 97 | $controller->handleObjectDeletion(); |
| 98 | 98 | |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | smart_collapsableBar('createdadsenses', _AM_SOBJECT_ADSENSES, _AM_SOBJECT_ADSENSES_DSC); |
| 109 | 109 | |
| 110 | - include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 110 | + include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 111 | 111 | $objectTable = new SmartObjectTable($smartobjectAdsenseHandler); |
| 112 | 112 | $objectTable->addColumn(new SmartObjectColumn('description', 'left')); |
| 113 | 113 | $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_ADSENSE_TAG, 'center', 200, 'getXoopsCode')); |
@@ -154,4 +154,4 @@ discard block |
||
| 154 | 154 | |
| 155 | 155 | //smart_modFooter(); |
| 156 | 156 | //xoops_cp_footer(); |
| 157 | -include_once __DIR__ . '/admin_footer.php'; |
|
| 157 | +include_once __DIR__.'/admin_footer.php'; |
|
@@ -9,17 +9,17 @@ discard block |
||
| 9 | 9 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
| 10 | 10 | |
| 11 | 11 | $path = dirname(dirname(dirname(__DIR__))); |
| 12 | -include_once $path . '/mainfile.php'; |
|
| 12 | +include_once $path.'/mainfile.php'; |
|
| 13 | 13 | |
| 14 | 14 | $dirname = basename(dirname(__DIR__)); |
| 15 | 15 | $moduleHandler = xoops_getHandler('module'); |
| 16 | 16 | $module = $moduleHandler->getByDirname($dirname); |
| 17 | 17 | $pathIcon32 = $module->getInfo('icons32'); |
| 18 | 18 | $pathModuleAdmin = $module->getInfo('dirmoduleadmin'); |
| 19 | -$pathLanguage = $path . $pathModuleAdmin; |
|
| 19 | +$pathLanguage = $path.$pathModuleAdmin; |
|
| 20 | 20 | |
| 21 | -if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) { |
|
| 22 | - $fileinc = $pathLanguage . '/language/english/main.php'; |
|
| 21 | +if (!file_exists($fileinc = $pathLanguage.'/language/'.$GLOBALS['xoopsConfig']['language'].'/'.'main.php')) { |
|
| 22 | + $fileinc = $pathLanguage.'/language/english/main.php'; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | include_once $fileinc; |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $i = 0; |
| 29 | 29 | $adminmenu[$i]['title'] = _AM_MODULEADMIN_HOME; |
| 30 | 30 | $adminmenu[$i]['link'] = 'admin/index.php'; |
| 31 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/home.png'; |
|
| 31 | +$adminmenu[$i]['icon'] = $pathIcon32.'/home.png'; |
|
| 32 | 32 | //++$i; |
| 33 | 33 | //$adminmenu[$i]['title'] = _MI_SOBJECT_INDEX; |
| 34 | 34 | //$adminmenu[$i]['link'] = "admin/main.php"; |
@@ -37,30 +37,30 @@ discard block |
||
| 37 | 37 | ++$i; |
| 38 | 38 | $adminmenu[$i]['title'] = _MI_SOBJECT_SENT_LINKS; |
| 39 | 39 | $adminmenu[$i]['link'] = 'admin/link.php'; |
| 40 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/addlink.png'; |
|
| 40 | +$adminmenu[$i]['icon'] = $pathIcon32.'/addlink.png'; |
|
| 41 | 41 | |
| 42 | 42 | ++$i; |
| 43 | 43 | $adminmenu[$i]['title'] = _MI_SOBJECT_TAGS; |
| 44 | 44 | $adminmenu[$i]['link'] = 'admin/customtag.php'; |
| 45 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/identity.png'; |
|
| 45 | +$adminmenu[$i]['icon'] = $pathIcon32.'/identity.png'; |
|
| 46 | 46 | |
| 47 | 47 | ++$i; |
| 48 | 48 | $adminmenu[$i]['title'] = _MI_SOBJECT_ADSENSES; |
| 49 | 49 | $adminmenu[$i]['link'] = 'admin/adsense.php'; |
| 50 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/alert.png'; |
|
| 50 | +$adminmenu[$i]['icon'] = $pathIcon32.'/alert.png'; |
|
| 51 | 51 | ++$i; |
| 52 | 52 | $adminmenu[$i]['title'] = _MI_SOBJECT_RATINGS; |
| 53 | 53 | $adminmenu[$i]['link'] = 'admin/rating.php'; |
| 54 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/stats.png'; |
|
| 54 | +$adminmenu[$i]['icon'] = $pathIcon32.'/stats.png'; |
|
| 55 | 55 | |
| 56 | 56 | ++$i; |
| 57 | 57 | $adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT; |
| 58 | 58 | $adminmenu[$i]['link'] = 'admin/about.php'; |
| 59 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/about.png'; |
|
| 59 | +$adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; |
|
| 60 | 60 | //--------------------------------- |
| 61 | 61 | |
| 62 | 62 | if (!defined('SMARTOBJECT_ROOT_PATH')) { |
| 63 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/include/functions.php'; |
|
| 63 | + include_once XOOPS_ROOT_PATH.'/modules/smartobject/include/functions.php'; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | $smartobjectConfig = smart_getModuleConfig('smartobject'); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | ++$i; |
| 70 | 70 | $adminmenu[$i]['title'] = _MI_SOBJECT_CURRENCIES; |
| 71 | 71 | $adminmenu[$i]['link'] = 'admin/currency.php'; |
| 72 | - $adminmenu[$i]['icon'] = $pathIcon32 . '/cash_stack.png'; |
|
| 72 | + $adminmenu[$i]['icon'] = $pathIcon32.'/cash_stack.png'; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | global $xoopsModule; |
@@ -80,9 +80,9 @@ discard block |
||
| 80 | 80 | // $headermenu[$i]['link'] = '../../system/admin.php?fct=preferences&op=showmod&mod=' . $xoopsModule->getVar('mid'); |
| 81 | 81 | $mid = $xoopsModule->getVar('mid'); |
| 82 | 82 | if (defined('XOOPS_CUBE_LEGACY')) { |
| 83 | - $link_pref = XOOPS_URL . '/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $mid; |
|
| 83 | + $link_pref = XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id='.$mid; |
|
| 84 | 84 | } else { |
| 85 | - $link_pref = XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mid; |
|
| 85 | + $link_pref = XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$mid; |
|
| 86 | 86 | } |
| 87 | 87 | $headermenu[$i]['link'] = $link_pref; |
| 88 | 88 | // ----- |
@@ -91,9 +91,9 @@ discard block |
||
| 91 | 91 | // $headermenu[$i]['link'] = XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin&op=update&module=" . $xoopsModule->getVar('dirname'); |
| 92 | 92 | $dirname = $xoopsModule->getVar('dirname'); |
| 93 | 93 | if (defined('XOOPS_CUBE_LEGACY')) { |
| 94 | - $link_module = XOOPS_URL . '/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=' . $dirname; |
|
| 94 | + $link_module = XOOPS_URL.'/modules/legacy/admin/index.php?action=ModuleUpdate&dirname='.$dirname; |
|
| 95 | 95 | } else { |
| 96 | - $link_module = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=update&module=' . $dirname; |
|
| 96 | + $link_module = XOOPS_URL.'/modules/system/admin.php?fct=modulesadmin&op=update&module='.$dirname; |
|
| 97 | 97 | } |
| 98 | 98 | $headermenu[$i]['link'] = $link_module; |
| 99 | 99 | // ----- |