@@ -15,7 +15,7 @@ |
||
| 15 | 15 | function xoops_debug_dumbQuery($msg = '') |
| 16 | 16 | { |
| 17 | 17 | global $xoopsDB; |
| 18 | - $xoopsDB->query('SELECT * ' . $msg . ' FROM dudewhereismycar2'); |
|
| 18 | + $xoopsDB->query('SELECT * '.$msg.' FROM dudewhereismycar2'); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | function xoops_debug_initiateQueryCount() |
@@ -178,7 +178,7 @@ |
||
| 178 | 178 | define('_CO_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION2', 'Vertical with icons'); |
| 179 | 179 | define('_CO_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION3', 'Vertical no icon'); |
| 180 | 180 | define('_CO_SOBJECT_CURRENT_FILE', 'Current file: '); |
| 181 | -define('_CO_SOBJECT_URL_FILE_DSC', "Alternatively, you can use an URL. If you select a file via 'Browse' button, URL will be ignored. You can use the tag {XOOPS_URL} to print " . XOOPS_URL); |
|
| 181 | +define('_CO_SOBJECT_URL_FILE_DSC', "Alternatively, you can use an URL. If you select a file via 'Browse' button, URL will be ignored. You can use the tag {XOOPS_URL} to print ".XOOPS_URL); |
|
| 182 | 182 | define('_CO_SOBJECT_URL_FILE', 'URL: '); |
| 183 | 183 | define('_CO_SOBJECT_UPLOAD', 'Select a file to upload: '); |
| 184 | 184 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * Licence: GNU |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -include __DIR__ . '/../../mainfile.php'; |
|
| 10 | -require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'; |
|
| 9 | +include __DIR__.'/../../mainfile.php'; |
|
| 10 | +require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'; |
|
| 11 | 11 | |
| 12 | 12 | smart_loadCommonLanguageFile(); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | * Licence: GNU |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
| 10 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
| 11 | 11 | |
| 12 | -require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'; |
|
| 12 | +require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'; |
|
| 13 | 13 | smart_loadCommonLanguageFile(); |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
| 21 | -require_once __DIR__ . '/admin_header.php'; |
|
| 20 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
| 21 | +require_once __DIR__.'/admin_header.php'; |
|
| 22 | 22 | |
| 23 | 23 | xoops_cp_header(); |
| 24 | 24 | |
@@ -27,4 +27,4 @@ discard block |
||
| 27 | 27 | $adminObject->displayNavigation(basename(__FILE__)); |
| 28 | 28 | $adminObject->displayIndex(); |
| 29 | 29 | |
| 30 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 30 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -35,9 +35,9 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | -require_once __DIR__ . '/admin_header.php'; |
|
| 39 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 40 | -require_once SMARTOBJECT_ROOT_PATH . 'class/currency.php'; |
|
| 38 | +require_once __DIR__.'/admin_header.php'; |
|
| 39 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 40 | +require_once SMARTOBJECT_ROOT_PATH.'class/currency.php'; |
|
| 41 | 41 | $smartobjectCurrencyHandler = xoops_getModuleHandler('currency'); |
| 42 | 42 | |
| 43 | 43 | $op = ''; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | switch ($op) { |
| 53 | 53 | case 'mod': |
| 54 | - $currencyid = isset($_GET['currencyid']) ? (int)$_GET['currencyid'] : 0; |
|
| 54 | + $currencyid = isset($_GET['currencyid']) ? (int) $_GET['currencyid'] : 0; |
|
| 55 | 55 | |
| 56 | 56 | smart_xoops_cp_header(); |
| 57 | 57 | |
@@ -66,9 +66,9 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | if (isset($_POST['default_currency'])) { |
| 68 | 68 | $newDefaultCurrency = $_POST['default_currency']; |
| 69 | - $sql = 'UPDATE ' . $smartobjectCurrencyHandler->table . ' SET default_currency=0'; |
|
| 69 | + $sql = 'UPDATE '.$smartobjectCurrencyHandler->table.' SET default_currency=0'; |
|
| 70 | 70 | $smartobjectCurrencyHandler->query($sql); |
| 71 | - $sql = 'UPDATE ' . $smartobjectCurrencyHandler->table . ' SET default_currency=1 WHERE currencyid=' . $newDefaultCurrency; |
|
| 71 | + $sql = 'UPDATE '.$smartobjectCurrencyHandler->table.' SET default_currency=1 WHERE currencyid='.$newDefaultCurrency; |
|
| 72 | 72 | $smartobjectCurrencyHandler->query($sql); |
| 73 | 73 | } |
| 74 | 74 | |
@@ -86,14 +86,14 @@ discard block |
||
| 86 | 86 | break; |
| 87 | 87 | |
| 88 | 88 | case 'addcurrency': |
| 89 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 89 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 90 | 90 | $controller = new SmartObjectController($smartobjectCurrencyHandler); |
| 91 | - $controller->storeFromDefaultForm(_AM_SOBJECT_CURRENCIES_CREATED, _AM_SOBJECT_CURRENCIES_MODIFIED, SMARTOBJECT_URL . 'admin/currency.php'); |
|
| 91 | + $controller->storeFromDefaultForm(_AM_SOBJECT_CURRENCIES_CREATED, _AM_SOBJECT_CURRENCIES_MODIFIED, SMARTOBJECT_URL.'admin/currency.php'); |
|
| 92 | 92 | |
| 93 | 93 | break; |
| 94 | 94 | |
| 95 | 95 | case 'del': |
| 96 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 96 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 97 | 97 | $controller = new SmartObjectController($smartobjectCurrencyHandler); |
| 98 | 98 | $controller->handleObjectDeletion(); |
| 99 | 99 | |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | smart_collapsableBar('createdcurrencies', _AM_SOBJECT_CURRENCIES, _AM_SOBJECT_CURRENCIES_DSC); |
| 109 | 109 | |
| 110 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 110 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 111 | 111 | $objectTable = new SmartObjectTable($smartobjectCurrencyHandler); |
| 112 | 112 | $objectTable->addColumn(new SmartObjectColumn('name', 'left', false, 'getCurrencyLink')); |
| 113 | 113 | $objectTable->addColumn(new SmartObjectColumn('rate', 'center', 150)); |
@@ -129,4 +129,4 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | //smart_modFooter(); |
| 131 | 131 | //xoops_cp_footer(); |
| 132 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 132 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -18,6 +18,6 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32); |
| 21 | -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>'; |
|
| 21 | +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>'; |
|
| 22 | 22 | |
| 23 | 23 | xoops_cp_footer(); |
@@ -13,17 +13,17 @@ |
||
| 13 | 13 | global $xoopsTpl, $smartobjectAdsenseHandler; |
| 14 | 14 | if (is_object($xoopsTpl)) { |
| 15 | 15 | foreach ($smartobjectAdsenseHandler->objects as $k => $v) { |
| 16 | - $xoopsTpl->assign('adsense_' . $k, $v->render()); |
|
| 16 | + $xoopsTpl->assign('adsense_'.$k, $v->render()); |
|
| 17 | 17 | } |
| 18 | 18 | } |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | if (!defined('SMARTOBJECT_URL')) { |
| 22 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'; |
|
| 22 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | -require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/functions.php'; |
|
| 26 | -require_once SMARTOBJECT_ROOT_PATH . 'class/adsense.php'; |
|
| 25 | +require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/functions.php'; |
|
| 26 | +require_once SMARTOBJECT_ROOT_PATH.'class/adsense.php'; |
|
| 27 | 27 | |
| 28 | 28 | $smartobjectAdsenseHandler = xoops_getModuleHandler('adsense', 'smartobject'); |
| 29 | 29 | $smartobjectAdsensesObj = $smartobjectAdsenseHandler->getAdsensesByTag(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | smart_loadCommonLanguageFile(); |
| 12 | 12 | |
| 13 | -require_once SMARTOBJECT_ROOT_PATH . 'class/currency.php'; |
|
| 13 | +require_once SMARTOBJECT_ROOT_PATH.'class/currency.php'; |
|
| 14 | 14 | |
| 15 | 15 | static $smartobjectCurrenciesObj, $smartobjectCurrenciesArray, $smartobjectDefaultCurrency; |
| 16 | 16 | |