@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | //about |
| 37 | 37 | $modversion['module_status'] = 'RC 1'; |
| 38 | 38 | $modversion['release_date'] = '2016/03/28'; |
| 39 | -$modversion['release_file'] = XOOPS_URL . '/modules/' . $modversion['dirname'] . '/docs/changelog.txt'; |
|
| 39 | +$modversion['release_file'] = XOOPS_URL.'/modules/'.$modversion['dirname'].'/docs/changelog.txt'; |
|
| 40 | 40 | $modversion['module_website_url'] = 'www.xoops.org'; |
| 41 | 41 | $modversion['module_website_name'] = 'XOOPS'; |
| 42 | 42 | $modversion['min_php'] = '5.5'; |
@@ -72,12 +72,12 @@ discard block |
||
| 72 | 72 | // ----- BUG: not read other language file ----- |
| 73 | 73 | //include_once(XOOPS_ROOT_PATH.'/modules/smartobject/language/english/common.php'); |
| 74 | 74 | global $xoopsConfig; |
| 75 | -$common_file = XOOPS_ROOT_PATH . '/modules/smartobject/language/' . $xoopsConfig['language'] . '/common.php'; |
|
| 75 | +$common_file = XOOPS_ROOT_PATH.'/modules/smartobject/language/'.$xoopsConfig['language'].'/common.php'; |
|
| 76 | 76 | if (file_exists($common_file)) { |
| 77 | 77 | $flag_common = true; |
| 78 | 78 | include_once $common_file; |
| 79 | 79 | } else { |
| 80 | - include_once(XOOPS_ROOT_PATH . '/modules/smartobject/language/english/common.php'); |
|
| 80 | + include_once(XOOPS_ROOT_PATH.'/modules/smartobject/language/english/common.php'); |
|
| 81 | 81 | } |
| 82 | 82 | // ----- |
| 83 | 83 | |
@@ -35,9 +35,9 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | -include_once __DIR__ . '/admin_header.php'; |
|
| 39 | -include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 40 | -include_once SMARTOBJECT_ROOT_PATH . 'class/currency.php'; |
|
| 38 | +include_once __DIR__.'/admin_header.php'; |
|
| 39 | +include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 40 | +include_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 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 89 | + include_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 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 96 | + include_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 | - include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 110 | + include_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 | -include_once __DIR__ . '/admin_footer.php'; |
|
| 132 | +include_once __DIR__.'/admin_footer.php'; |
|
@@ -17,13 +17,13 @@ |
||
| 17 | 17 | * @author XOOPS Development Team |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -echo "<div class='adminfooter'>\n" . |
|
| 21 | - " <div style='text-align: center;'>\n" . |
|
| 22 | - " <a href='http://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . |
|
| 23 | - " </div>\n" . |
|
| 24 | - ' ' . |
|
| 25 | - _AM_MODULEADMIN_ADMIN_FOOTER . |
|
| 26 | - "\n" . |
|
| 20 | +echo "<div class='adminfooter'>\n". |
|
| 21 | + " <div style='text-align: center;'>\n". |
|
| 22 | + " <a href='http://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n". |
|
| 23 | + " </div>\n". |
|
| 24 | + ' '. |
|
| 25 | + _AM_MODULEADMIN_ADMIN_FOOTER. |
|
| 26 | + "\n". |
|
| 27 | 27 | '</div>'; |
| 28 | 28 | |
| 29 | 29 | xoops_cp_footer(); |
@@ -18,10 +18,10 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | $path = dirname(dirname(dirname(__DIR__))); |
| 21 | -include_once $path . '/mainfile.php'; |
|
| 22 | -include_once $path . '/include/cp_functions.php'; |
|
| 23 | -require_once $path . '/include/cp_header.php'; |
|
| 24 | -include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'); |
|
| 21 | +include_once $path.'/mainfile.php'; |
|
| 22 | +include_once $path.'/include/cp_functions.php'; |
|
| 23 | +require_once $path.'/include/cp_header.php'; |
|
| 24 | +include_once(XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'); |
|
| 25 | 25 | |
| 26 | 26 | global $xoopsModule; |
| 27 | 27 | |
@@ -35,8 +35,8 @@ discard block |
||
| 35 | 35 | xoops_loadLanguage('modinfo', $moduleDirName); |
| 36 | 36 | xoops_loadLanguage('main', $moduleDirName); |
| 37 | 37 | |
| 38 | -$pathIcon16 = '../' . $xoopsModule->getInfo('icons16'); |
|
| 39 | -$pathIcon32 = '../' . $xoopsModule->getInfo('icons32'); |
|
| 40 | -$pathModuleAdmin =& $xoopsModule->getInfo('dirmoduleadmin'); |
|
| 38 | +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); |
|
| 39 | +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); |
|
| 40 | +$pathModuleAdmin = & $xoopsModule->getInfo('dirmoduleadmin'); |
|
| 41 | 41 | |
| 42 | -include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'); |
|
| 42 | +include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); |
|
@@ -40,11 +40,11 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | -include_once __DIR__ . '/admin_header.php'; |
|
| 43 | +include_once __DIR__.'/admin_header.php'; |
|
| 44 | 44 | smart_loadLanguageFile('smartobject', 'customtag'); |
| 45 | 45 | |
| 46 | -include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 47 | -include_once SMARTOBJECT_ROOT_PATH . 'class/customtag.php'; |
|
| 46 | +include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 47 | +include_once SMARTOBJECT_ROOT_PATH.'class/customtag.php'; |
|
| 48 | 48 | $smartobjectCustomtagHandler = xoops_getModuleHandler('customtag'); |
| 49 | 49 | |
| 50 | 50 | $indexAdmin = new ModuleAdmin(); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | switch ($op) { |
| 62 | 62 | case 'mod': |
| 63 | 63 | |
| 64 | - $customtagid = isset($_GET['customtagid']) ? (int)$_GET['customtagid'] : 0; |
|
| 64 | + $customtagid = isset($_GET['customtagid']) ? (int) $_GET['customtagid'] : 0; |
|
| 65 | 65 | |
| 66 | 66 | smart_xoops_cp_header(); |
| 67 | 67 | echo $indexAdmin->addNavigation(basename(__FILE__)); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | case 'clone': |
| 73 | 73 | |
| 74 | - $customtagid = isset($_GET['customtagid']) ? (int)$_GET['customtagid'] : 0; |
|
| 74 | + $customtagid = isset($_GET['customtagid']) ? (int) $_GET['customtagid'] : 0; |
|
| 75 | 75 | |
| 76 | 76 | smart_xoops_cp_header(); |
| 77 | 77 | echo $indexAdmin->addNavigation(basename(__FILE__)); |
@@ -80,14 +80,14 @@ discard block |
||
| 80 | 80 | break; |
| 81 | 81 | |
| 82 | 82 | case 'addcustomtag': |
| 83 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 83 | + include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 84 | 84 | $controller = new SmartObjectController($smartobjectCustomtagHandler); |
| 85 | 85 | $controller->storeFromDefaultForm(_AM_SOBJECT_CUSTOMTAGS_CREATED, _AM_SOBJECT_CUSTOMTAGS_MODIFIED); |
| 86 | 86 | break; |
| 87 | 87 | |
| 88 | 88 | case 'del': |
| 89 | 89 | |
| 90 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 90 | + include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 91 | 91 | $controller = new SmartObjectController($smartobjectCustomtagHandler); |
| 92 | 92 | $controller->handleObjectDeletion(); |
| 93 | 93 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | smart_collapsableBar('createdcustomtags', _AM_SOBJECT_CUSTOMTAGS, _AM_SOBJECT_CUSTOMTAGS_DSC); |
| 106 | 106 | |
| 107 | - include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 107 | + include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 108 | 108 | $objectTable = new SmartObjectTable($smartobjectCustomtagHandler); |
| 109 | 109 | $objectTable->addColumn(new SmartObjectColumn('name', 'left', 150, 'getCustomtagName')); |
| 110 | 110 | $objectTable->addColumn(new SmartObjectColumn('description', 'left')); |
@@ -153,4 +153,4 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | //smart_modFooter(); |
| 155 | 155 | //xoops_cp_footer(); |
| 156 | -include_once __DIR__ . '/admin_footer.php'; |
|
| 156 | +include_once __DIR__.'/admin_footer.php'; |
|
@@ -7,8 +7,8 @@ discard block |
||
| 7 | 7 | * Licence: GNU |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -include_once __DIR__ . '/admin_header.php'; |
|
| 11 | -include_once(SMARTCONTENT_ROOT_PATH . 'class/dbupdater.php'); |
|
| 10 | +include_once __DIR__.'/admin_header.php'; |
|
| 11 | +include_once(SMARTCONTENT_ROOT_PATH.'class/dbupdater.php'); |
|
| 12 | 12 | |
| 13 | 13 | smartcontent_xoops_cp_header(); |
| 14 | 14 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $ret = array(); |
| 208 | 208 | global $xoopsDB; |
| 209 | 209 | $catHandler = xoops_getModuleHandler('category', 'wfdownloads'); |
| 210 | - $result = $xoopsDB->query('SHOW COLUMNS FROM ' . $catHandler->table); |
|
| 210 | + $result = $xoopsDB->query('SHOW COLUMNS FROM '.$catHandler->table); |
|
| 211 | 211 | while ($existing_field = $xoopsDB->fetchArray($result)) { |
| 212 | 212 | $fields[$existing_field['field']] = $existing_field['type']; |
| 213 | 213 | } |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | //$xoopsDB->query("ALTER TABLE ".$table." ADD ".$field." ".$type); |
| 267 | 267 | //echo $field."(".$type.") <FONT COLOR='##22DD51'>Added</FONT><br>"; |
| 268 | 268 | } elseif ($existing_fields[$field] != $type) { |
| 269 | - $table->addAlteredField($field, $field . ' ' . $type); |
|
| 269 | + $table->addAlteredField($field, $field.' '.$type); |
|
| 270 | 270 | // check $fields[$field]['type'] for things like "int(10) unsigned" |
| 271 | 271 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$field." ".$type); |
| 272 | 272 | //echo $field." <FONT COLOR='#FF6600'>Changed to</FONT> ".$type."<br>"; |
@@ -287,17 +287,17 @@ discard block |
||
| 287 | 287 | function get_table_info($table, $default_fields) |
| 288 | 288 | { |
| 289 | 289 | global $xoopsDB; |
| 290 | - $result = $xoopsDB->query('SHOW COLUMNS FROM ' . $table); |
|
| 290 | + $result = $xoopsDB->query('SHOW COLUMNS FROM '.$table); |
|
| 291 | 291 | while ($existing_field = $xoopsDB->fetchArray($result)) { |
| 292 | 292 | $fields[$existing_field['Field']] = $existing_field['Type']; |
| 293 | 293 | if ($existing_field['Null'] !== 'YES') { |
| 294 | 294 | $fields[$existing_field['Field']] .= ' NOT NULL'; |
| 295 | 295 | } |
| 296 | 296 | if ($existing_field['Extra']) { |
| 297 | - $fields[$existing_field['Field']] .= ' ' . $existing_field['Extra']; |
|
| 297 | + $fields[$existing_field['Field']] .= ' '.$existing_field['Extra']; |
|
| 298 | 298 | } |
| 299 | 299 | if ($default_fields[$existing_field['Field']]['Default']) { |
| 300 | - $fields[$existing_field['Field']] .= " default '" . $existing_field['Default'] . "'"; |
|
| 300 | + $fields[$existing_field['Field']] .= " default '".$existing_field['Default']."'"; |
|
| 301 | 301 | } |
| 302 | 302 | } |
| 303 | 303 | |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | if (in_array($field, array_keys($renamed_fields))) { |
| 320 | 320 | $new_field_name = $renamed_fields[$field]; |
| 321 | 321 | $new_field_type = $new_fields[$new_field_name]['Type']; |
| 322 | - $table->addAltered($field, $new_field_name . ' ' . $new_field_type); |
|
| 322 | + $table->addAltered($field, $new_field_name.' '.$new_field_type); |
|
| 323 | 323 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$new_field_name." ".$new_field_type); |
| 324 | 324 | //echo $field." Renamed to ".$new_field_name."<br>"; |
| 325 | 325 | $fields[$new_field_name] = $new_field_type; |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | //return $fields; |
| 329 | 329 | } |
| 330 | 330 | |
| 331 | -$op = isset($_REQUEST['op']) ? (int)$_REQUEST['op'] : 0; |
|
| 331 | +$op = isset($_REQUEST['op']) ? (int) $_REQUEST['op'] : 0; |
|
| 332 | 332 | switch ($op) { |
| 333 | 333 | case 1: |
| 334 | 334 | // Make sure that nohtml is properly changed to dohtml |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | |
| 348 | 348 | default: |
| 349 | 349 | //ask what to do |
| 350 | - include XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 350 | + include XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 351 | 351 | $form = new XoopsThemeForm('Upgrade WF-Downloads', 'form', $_SERVER['REQUEST_URI']); |
| 352 | 352 | |
| 353 | 353 | //Is MyDownloads installed? |
@@ -371,4 +371,4 @@ discard block |
||
| 371 | 371 | } |
| 372 | 372 | //wfdownloads_modFooter(); |
| 373 | 373 | //xoops_cp_footer(); |
| 374 | -include_once __DIR__ . '/admin_footer.php'; |
|
| 374 | +include_once __DIR__.'/admin_footer.php'; |
|
@@ -51,9 +51,9 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | -include_once __DIR__ . '/admin_header.php'; |
|
| 55 | -include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 56 | -include_once SMARTOBJECT_ROOT_PATH . 'class/rating.php'; |
|
| 54 | +include_once __DIR__.'/admin_header.php'; |
|
| 55 | +include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 56 | +include_once SMARTOBJECT_ROOT_PATH.'class/rating.php'; |
|
| 57 | 57 | $smartobjectRatingHandler = xoops_getModuleHandler('rating'); |
| 58 | 58 | $indexAdmin = new ModuleAdmin(); |
| 59 | 59 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | case 'mod': |
| 71 | 71 | case 'changedField'; |
| 72 | 72 | |
| 73 | - $ratingid = isset($_GET['ratingid']) ? (int)$_GET['ratingid'] : 0; |
|
| 73 | + $ratingid = isset($_GET['ratingid']) ? (int) $_GET['ratingid'] : 0; |
|
| 74 | 74 | |
| 75 | 75 | smart_xoops_cp_header(); |
| 76 | 76 | echo $indexAdmin->addNavigation(basename(__FILE__)); |
@@ -79,14 +79,14 @@ discard block |
||
| 79 | 79 | break; |
| 80 | 80 | |
| 81 | 81 | case 'addrating': |
| 82 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 82 | + include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 83 | 83 | $controller = new SmartObjectController($smartobjectRatingHandler); |
| 84 | - $controller->storeFromDefaultForm(_AM_SOBJECT_RATINGS_CREATED, _AM_SOBJECT_RATINGS_MODIFIED, SMARTOBJECT_URL . 'admin/rating.php'); |
|
| 84 | + $controller->storeFromDefaultForm(_AM_SOBJECT_RATINGS_CREATED, _AM_SOBJECT_RATINGS_MODIFIED, SMARTOBJECT_URL.'admin/rating.php'); |
|
| 85 | 85 | |
| 86 | 86 | break; |
| 87 | 87 | |
| 88 | 88 | case 'del': |
| 89 | - include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 89 | + include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 90 | 90 | $controller = new SmartObjectController($smartobjectRatingHandler); |
| 91 | 91 | $controller->handleObjectDeletion(); |
| 92 | 92 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | smart_collapsableBar('createdratings', _AM_SOBJECT_RATINGS, _AM_SOBJECT_RATINGS_DSC); |
| 103 | 103 | |
| 104 | - include_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 104 | + include_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 105 | 105 | $objectTable = new SmartObjectTable($smartobjectRatingHandler); |
| 106 | 106 | $objectTable->addColumn(new SmartObjectColumn('name', 'left')); |
| 107 | 107 | $objectTable->addColumn(new SmartObjectColumn('dirname', 'left')); |
@@ -149,4 +149,4 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | //smart_modFooter(); |
| 151 | 151 | //xoops_cp_footer(); |
| 152 | -include_once __DIR__ . '/admin_footer.php'; |
|
| 152 | +include_once __DIR__.'/admin_footer.php'; |
|
@@ -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'; |
|