@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | if (!wfdownloads_TableExists('wfdownloads_meta')) { |
26 | 26 | // Create table wfdownloads_meta |
27 | 27 | $table = new WfdownloadsTable('wfdownloads_meta'); |
28 | - $table->setStructure( "CREATE TABLE %s ( |
|
28 | + $table->setStructure("CREATE TABLE %s ( |
|
29 | 29 | metakey varchar(50) NOT NULL default '', |
30 | 30 | metavalue varchar(255) NOT NULL default '', |
31 | 31 | PRIMARY KEY (metakey)) |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $ret = array(); |
206 | 206 | global $xoopsDB; |
207 | 207 | $cat_handler = xoops_getmodulehandler('category', 'wfdownloads'); |
208 | - $result = $xoopsDB->query("SHOW COLUMNS FROM ".$cat_handler->table); |
|
208 | + $result = $xoopsDB->query("SHOW COLUMNS FROM " . $cat_handler->table); |
|
209 | 209 | while ($existing_field = $xoopsDB->fetchArray($result)) { |
210 | 210 | $fields[$existing_field['field']] = $existing_field['type']; |
211 | 211 | } |
@@ -225,21 +225,21 @@ discard block |
||
225 | 225 | // avoid putting everithing to same value |
226 | 226 | // if you change 1 to 0, then 0 to one, |
227 | 227 | // every value will be 1, follow me? |
228 | - $table->addUpdatedWhere('dohtml', 2,'=1'); |
|
229 | - $table->addUpdatedWhere('dohtml', 1,'=0'); |
|
230 | - $table->addUpdatedWhere('dohtml', 0,'=2'); |
|
228 | + $table->addUpdatedWhere('dohtml', 2, '=1'); |
|
229 | + $table->addUpdatedWhere('dohtml', 1, '=0'); |
|
230 | + $table->addUpdatedWhere('dohtml', 0, '=2'); |
|
231 | 231 | |
232 | - $table->addUpdatedWhere('dosmiley', 2,'=1'); |
|
233 | - $table->addUpdatedWhere('dosmiley', 1,'=0'); |
|
234 | - $table->addUpdatedWhere('dosmiley', 0,'=2'); |
|
232 | + $table->addUpdatedWhere('dosmiley', 2, '=1'); |
|
233 | + $table->addUpdatedWhere('dosmiley', 1, '=0'); |
|
234 | + $table->addUpdatedWhere('dosmiley', 0, '=2'); |
|
235 | 235 | |
236 | - $table->addUpdatedWhere('doxcode', 2,'=1'); |
|
237 | - $table->addUpdatedWhere('doxcode', 1,'=0'); |
|
238 | - $table->addUpdatedWhere('doxcode', 0,'=2'); |
|
236 | + $table->addUpdatedWhere('doxcode', 2, '=1'); |
|
237 | + $table->addUpdatedWhere('doxcode', 1, '=0'); |
|
238 | + $table->addUpdatedWhere('doxcode', 0, '=2'); |
|
239 | 239 | |
240 | - $table->addUpdatedWhere('doimage', 2,'=1'); |
|
241 | - $table->addUpdatedWhere('doimage', 1,'=0'); |
|
242 | - $table->addUpdatedWhere('doimage', 0,'=2'); |
|
240 | + $table->addUpdatedWhere('doimage', 2, '=1'); |
|
241 | + $table->addUpdatedWhere('doimage', 1, '=0'); |
|
242 | + $table->addUpdatedWhere('doimage', 0, '=2'); |
|
243 | 243 | $ret = $dbupdater->updateTable($table); |
244 | 244 | } |
245 | 245 | return $ret; |
@@ -256,14 +256,14 @@ discard block |
||
256 | 256 | function update_table($new_fields, $existing_fields, &$table) { |
257 | 257 | foreach ($new_fields as $field => $fieldinfo) { |
258 | 258 | $type = $fieldinfo["Type"]; |
259 | - if (!in_array($field, array_keys($existing_fields) ) ) { |
|
259 | + if (!in_array($field, array_keys($existing_fields))) { |
|
260 | 260 | //Add field as it is missing |
261 | 261 | $table->addNewField($field, $type); |
262 | 262 | //$xoopsDB->query("ALTER TABLE ".$table." ADD ".$field." ".$type); |
263 | 263 | //echo $field."(".$type.") <FONT COLOR='##22DD51'>Added</FONT><br />"; |
264 | 264 | } |
265 | 265 | elseif ($existing_fields[$field] != $type) { |
266 | - $table->addAlteredField($field, $field." ".$type); |
|
266 | + $table->addAlteredField($field, $field . " " . $type); |
|
267 | 267 | // check $fields[$field]['type'] for things like "int(10) unsigned" |
268 | 268 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$field." ".$type); |
269 | 269 | //echo $field." <FONT COLOR='#FF6600'>Changed to</FONT> ".$type."<br />"; |
@@ -284,17 +284,17 @@ discard block |
||
284 | 284 | */ |
285 | 285 | function get_table_info($table, $default_fields) { |
286 | 286 | global $xoopsDB; |
287 | - $result = $xoopsDB->query("SHOW COLUMNS FROM ".$table); |
|
287 | + $result = $xoopsDB->query("SHOW COLUMNS FROM " . $table); |
|
288 | 288 | while ($existing_field = $xoopsDB->fetchArray($result)) { |
289 | 289 | $fields[$existing_field['Field']] = $existing_field['Type']; |
290 | 290 | if ($existing_field['Null'] != "YES") { |
291 | 291 | $fields[$existing_field['Field']] .= " NOT NULL"; |
292 | 292 | } |
293 | 293 | if ($existing_field['Extra']) { |
294 | - $fields[$existing_field['Field']] .= " ".$existing_field['Extra']; |
|
294 | + $fields[$existing_field['Field']] .= " " . $existing_field['Extra']; |
|
295 | 295 | } |
296 | 296 | if ($default_fields[$existing_field['Field']]['Default']) { |
297 | - $fields[$existing_field['Field']] .= " default '".$existing_field['Default']."'"; |
|
297 | + $fields[$existing_field['Field']] .= " default '" . $existing_field['Default'] . "'"; |
|
298 | 298 | } |
299 | 299 | } |
300 | 300 | return $fields; |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | if (in_array($field, array_keys($renamed_fields))) { |
315 | 315 | $new_field_name = $renamed_fields[$field]; |
316 | 316 | $new_field_type = $new_fields[$new_field_name]["Type"]; |
317 | - $table->addAltered($field, $new_field_name." ".$new_field_type); |
|
317 | + $table->addAltered($field, $new_field_name . " " . $new_field_type); |
|
318 | 318 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$new_field_name." ".$new_field_type); |
319 | 319 | //echo $field." Renamed to ".$new_field_name."<br />"; |
320 | 320 | $fields[$new_field_name] = $new_field_type; |
@@ -342,8 +342,8 @@ discard block |
||
342 | 342 | |
343 | 343 | default: |
344 | 344 | //ask what to do |
345 | - include XOOPS_ROOT_PATH."/class/xoopsformloader.php"; |
|
346 | - $form = new XoopsThemeForm('Upgrade WF-Downloads',"form", $_SERVER['REQUEST_URI']); |
|
345 | + include XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; |
|
346 | + $form = new XoopsThemeForm('Upgrade WF-Downloads', "form", $_SERVER['REQUEST_URI']); |
|
347 | 347 | |
348 | 348 | //Is MyDownloads installed? |
349 | 349 | $module_handler = xoops_gethandler('module'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | $ratingObj = $smartobject_rating_handler->get($ratingid); |
15 | 15 | |
16 | - if (!$ratingObj->isNew()){ |
|
16 | + if (!$ratingObj->isNew()) { |
|
17 | 17 | |
18 | 18 | if ($showmenu) { |
19 | 19 | //smart_adminMenu(4, _AM_SOBJECT_RATINGS . " > " . _AM_SOBJECT_EDITING); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $controller->postDataToObject($ratingObj); |
32 | 32 | |
33 | 33 | if ($_POST['op'] == 'changedField') { |
34 | - switch($_POST['changedField']) { |
|
34 | + switch ($_POST['changedField']) { |
|
35 | 35 | case 'dirname' : |
36 | 36 | $ratingObj->showFieldOnForm(array('item', 'itemid', 'uid', 'date', 'rate')); |
37 | 37 | break; |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | include_once("admin_header.php"); |
56 | -include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php"; |
|
57 | -include_once SMARTOBJECT_ROOT_PATH."class/rating.php"; |
|
56 | +include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; |
|
57 | +include_once SMARTOBJECT_ROOT_PATH . "class/rating.php"; |
|
58 | 58 | $smartobject_rating_handler = xoops_getmodulehandler('rating'); |
59 | 59 | $indexAdmin = new ModuleAdmin(); |
60 | 60 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | case "mod": |
68 | 68 | case "changedField"; |
69 | 69 | |
70 | - $ratingid = isset($_GET['ratingid']) ? intval($_GET['ratingid']) : 0 ; |
|
70 | + $ratingid = isset($_GET['ratingid']) ? intval($_GET['ratingid']) : 0; |
|
71 | 71 | |
72 | 72 | smart_xoops_cp_header(); |
73 | 73 | echo $indexAdmin->addNavigation('rating.php'); |
@@ -76,14 +76,14 @@ discard block |
||
76 | 76 | break; |
77 | 77 | |
78 | 78 | case "addrating": |
79 | - include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php"; |
|
79 | + include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; |
|
80 | 80 | $controller = new SmartObjectController($smartobject_rating_handler); |
81 | 81 | $controller->storeFromDefaultForm(_AM_SOBJECT_RATINGS_CREATED, _AM_SOBJECT_RATINGS_MODIFIED, SMARTOBJECT_URL . 'admin/rating.php'); |
82 | 82 | |
83 | 83 | break; |
84 | 84 | |
85 | 85 | case "del": |
86 | - include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php"; |
|
86 | + include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; |
|
87 | 87 | $controller = new SmartObjectController($smartobject_rating_handler); |
88 | 88 | $controller->handleObjectDeletion(); |
89 | 89 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | smart_collapsableBar('createdratings', _AM_SOBJECT_RATINGS, _AM_SOBJECT_RATINGS_DSC); |
100 | 100 | |
101 | - include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php"; |
|
101 | + include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; |
|
102 | 102 | $objectTable = new SmartObjectTable($smartobject_rating_handler); |
103 | 103 | $objectTable->addColumn(new SmartObjectColumn('name', 'left')); |
104 | 104 | $objectTable->addColumn(new SmartObjectColumn('dirname', 'left')); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | include_once $fileinc; |
27 | 27 | |
28 | 28 | $adminmenu = array(); |
29 | -$i=0; |
|
29 | +$i = 0; |
|
30 | 30 | $adminmenu[$i]["title"] = _AM_MODULEADMIN_HOME; |
31 | 31 | $adminmenu[$i]['link'] = "admin/index.php"; |
32 | 32 | $adminmenu[$i]["icon"] = $pathIcon32 . '/home.png'; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $i++; |
72 | 72 | $adminmenu[$i]['title'] = _MI_SOBJECT_CURRENCIES; |
73 | 73 | $adminmenu[$i]['link'] = "admin/currency.php"; |
74 | - $adminmenu[$i]["icon"] = $pathIcon32 . '/cash_stack.png'; |
|
74 | + $adminmenu[$i]["icon"] = $pathIcon32 . '/cash_stack.png'; |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | |
@@ -81,24 +81,24 @@ discard block |
||
81 | 81 | |
82 | 82 | // --- for XCL --- |
83 | 83 | // $headermenu[$i]['link'] = '../../system/admin.php?fct=preferences&op=showmod&mod=' . $xoopsModule->getVar('mid'); |
84 | - $mid = $xoopsModule->getVar('mid') ; |
|
85 | - if ( defined( 'XOOPS_CUBE_LEGACY' ) ) { |
|
86 | - $link_pref = XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id='.$mid; |
|
84 | + $mid = $xoopsModule->getVar('mid'); |
|
85 | + if (defined('XOOPS_CUBE_LEGACY')) { |
|
86 | + $link_pref = XOOPS_URL . '/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $mid; |
|
87 | 87 | } else { |
88 | - $link_pref = XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$mid ; |
|
88 | + $link_pref = XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mid; |
|
89 | 89 | } |
90 | - $headermenu[$i]['link'] = $link_pref ; |
|
90 | + $headermenu[$i]['link'] = $link_pref; |
|
91 | 91 | // ----- |
92 | 92 | |
93 | 93 | // --- for XCL --- |
94 | 94 | // $headermenu[$i]['link'] = XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin&op=update&module=" . $xoopsModule->getVar('dirname'); |
95 | - $dirname = $xoopsModule->getVar('dirname') ; |
|
96 | - if ( defined( 'XOOPS_CUBE_LEGACY' ) ) { |
|
97 | - $link_module = XOOPS_URL.'/modules/legacy/admin/index.php?action=ModuleUpdate&dirname='.$dirname; |
|
95 | + $dirname = $xoopsModule->getVar('dirname'); |
|
96 | + if (defined('XOOPS_CUBE_LEGACY')) { |
|
97 | + $link_module = XOOPS_URL . '/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=' . $dirname; |
|
98 | 98 | } else { |
99 | - $link_module = XOOPS_URL.'/modules/system/admin.php?fct=modulesadmin&op=update&module='.$dirname; |
|
99 | + $link_module = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=update&module=' . $dirname; |
|
100 | 100 | } |
101 | - $headermenu[$i]['link'] = $link_module ; |
|
101 | + $headermenu[$i]['link'] = $link_module; |
|
102 | 102 | // ----- |
103 | 103 | |
104 | 104 | $i++; |
@@ -12,8 +12,8 @@ discard block |
||
12 | 12 | */ |
13 | 13 | |
14 | 14 | include_once("admin_header.php"); |
15 | -include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php"; |
|
16 | -include_once SMARTOBJECT_ROOT_PATH."class/smartobjectlink.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 | $smartobject_link_handler = xoops_getmodulehandler('link'); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | switch ($op) { |
27 | 27 | |
28 | 28 | case "del": |
29 | - include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php"; |
|
29 | + include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; |
|
30 | 30 | $controller = new SmartObjectController($smartobject_link_handler); |
31 | 31 | $controller->handleObjectDeletion(_AM_SOBJECT_SENT_LINK_DELETE_CONFIRM); |
32 | 32 | |
@@ -51,11 +51,11 @@ discard block |
||
51 | 51 | // --- |
52 | 52 | // 2012-01-01 PHP 5.3 : Assigning the return value of new by reference is now deprecated. |
53 | 53 | // $xoopsTpl =& new XoopsTpl(); |
54 | - $xoopsTpl = new XoopsTpl(); |
|
54 | + $xoopsTpl = new XoopsTpl(); |
|
55 | 55 | //--- |
56 | 56 | |
57 | 57 | $xoopsTpl->assign('link', $linkObj->toArray()); |
58 | - $xoopsTpl->display( 'db:smartobject_sentlink_display.html' ); |
|
58 | + $xoopsTpl->display('db:smartobject_sentlink_display.html'); |
|
59 | 59 | |
60 | 60 | echo "<br />"; |
61 | 61 | smart_close_collapsable('sentlinks'); |
@@ -75,11 +75,11 @@ discard block |
||
75 | 75 | |
76 | 76 | smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINKS, _AM_SOBJECT_SENT_LINKS_INFO); |
77 | 77 | |
78 | - include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php"; |
|
78 | + include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; |
|
79 | 79 | $objectTable = new SmartObjectTable($smartobject_link_handler, null, array('delete')); |
80 | 80 | $objectTable->addColumn(new SmartObjectColumn('date')); |
81 | - $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_SENT_LINKS_FROM, $align='left', $width=false, 'getFromInfo')); |
|
82 | - $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_SENT_LINKS_TO, $align='left', $width=false, 'getToInfo')); |
|
81 | + $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_SENT_LINKS_FROM, $align = 'left', $width = false, 'getFromInfo')); |
|
82 | + $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_SENT_LINKS_TO, $align = 'left', $width = false, 'getToInfo')); |
|
83 | 83 | $objectTable->addColumn(new SmartObjectColumn('link')); |
84 | 84 | |
85 | 85 | $objectTable->addCustomAction("getViewItemLink"); |
@@ -36,12 +36,12 @@ |
||
36 | 36 | xoops_loadLanguage('modinfo', $thisModuleDir); |
37 | 37 | xoops_loadLanguage('main', $thisModuleDir); |
38 | 38 | |
39 | -$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); |
|
40 | -$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); |
|
39 | +$pathIcon16 = '../' . $xoopsModule->getInfo('icons16'); |
|
40 | +$pathIcon32 = '../' . $xoopsModule->getInfo('icons32'); |
|
41 | 41 | $pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); |
42 | 42 | |
43 | -if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ |
|
44 | - include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); |
|
45 | - }else{ |
|
43 | +if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'))) { |
|
44 | + include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'); |
|
45 | + } else { |
|
46 | 46 | redirect_header("../../../admin.php", 5, _AM_BIRTHDAY_MODULEADMIN_MISSING, false); |
47 | 47 | } |
48 | 48 | \ No newline at end of file |
@@ -7,13 +7,13 @@ discard block |
||
7 | 7 | * Licence: GNU |
8 | 8 | */ |
9 | 9 | |
10 | -function editclass($showmenu = false, $adsenseid = 0, $clone=false) |
|
10 | +function editclass($showmenu = false, $adsenseid = 0, $clone = false) |
|
11 | 11 | { |
12 | 12 | global $smartobject_adsense_handler; |
13 | 13 | |
14 | 14 | $adsenseObj = $smartobject_adsense_handler->get($adsenseid); |
15 | 15 | |
16 | - if (!$clone && !$adsenseObj->isNew()){ |
|
16 | + if (!$clone && !$adsenseObj->isNew()) { |
|
17 | 17 | |
18 | 18 | if ($showmenu) { |
19 | 19 | //smart_adminMenu(3, _AM_SOBJECT_ADSENSES . " > " . _AM_SOBJECT_EDITING); |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | include_once("admin_header.php"); |
42 | -include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php"; |
|
43 | -include_once SMARTOBJECT_ROOT_PATH."class/adsense.php"; |
|
42 | +include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; |
|
43 | +include_once SMARTOBJECT_ROOT_PATH . "class/adsense.php"; |
|
44 | 44 | $smartobject_adsense_handler = xoops_getmodulehandler('adsense'); |
45 | 45 | smart_loadLanguageFile('smartobject', 'adsense'); |
46 | 46 | $indexAdmin = new ModuleAdmin(); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | switch ($op) { |
54 | 54 | case "mod": |
55 | 55 | |
56 | - $adsenseid = isset($_GET['adsenseid']) ? intval($_GET['adsenseid']) : 0 ; |
|
56 | + $adsenseid = isset($_GET['adsenseid']) ? intval($_GET['adsenseid']) : 0; |
|
57 | 57 | |
58 | 58 | smart_xoops_cp_header(); |
59 | 59 | echo $indexAdmin->addNavigation('adsense.php'); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | case "clone": |
65 | 65 | |
66 | - $adsenseid = isset($_GET['adsenseid']) ? intval($_GET['adsenseid']) : 0 ; |
|
66 | + $adsenseid = isset($_GET['adsenseid']) ? intval($_GET['adsenseid']) : 0; |
|
67 | 67 | |
68 | 68 | smart_xoops_cp_header(); |
69 | 69 | echo $indexAdmin->addNavigation('adsense.php'); |
@@ -72,21 +72,21 @@ discard block |
||
72 | 72 | break; |
73 | 73 | |
74 | 74 | case "addadsense": |
75 | - if(@include_once SMARTOBJECT_ROOT_PATH . "include/captcha/captcha.php") { |
|
75 | + if (@include_once SMARTOBJECT_ROOT_PATH . "include/captcha/captcha.php") { |
|
76 | 76 | $xoopsCaptcha = XoopsCaptcha::instance(); |
77 | - if(! $xoopsCaptcha->verify() ) { |
|
77 | + if (!$xoopsCaptcha->verify()) { |
|
78 | 78 | redirect_header('javascript:history.go(-1);', 3, $xoopsCaptcha->getMessage()); |
79 | 79 | exit; |
80 | 80 | } |
81 | 81 | } |
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($smartobject_adsense_handler); |
84 | 84 | $controller->storeFromDefaultForm(_AM_SOBJECT_ADSENSES_CREATED, _AM_SOBJECT_ADSENSES_MODIFIED); |
85 | 85 | break; |
86 | 86 | |
87 | 87 | case "del": |
88 | 88 | |
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($smartobject_adsense_handler); |
91 | 91 | $controller->handleObjectDeletion(); |
92 | 92 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | smart_collapsableBar('createdadsenses', _AM_SOBJECT_ADSENSES, _AM_SOBJECT_ADSENSES_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($smartobject_adsense_handler); |
106 | 106 | $objectTable->addColumn(new SmartObjectColumn('description', 'left')); |
107 | 107 | $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_ADSENSE_TAG, 'center', 200, 'getXoopsCode')); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | $currencyObj = $smartobject_currency_handler->get($currencyid); |
15 | 15 | |
16 | - if (!$currencyObj->isNew()){ |
|
16 | + if (!$currencyObj->isNew()) { |
|
17 | 17 | |
18 | 18 | if ($showmenu) { |
19 | 19 | //smart_adminMenu(5, _AM_SOBJECT_CURRENCIES . " > " . _AM_SOBJECT_EDITING); |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | include_once("admin_header.php"); |
39 | -include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php"; |
|
40 | -include_once SMARTOBJECT_ROOT_PATH."class/currency.php"; |
|
39 | +include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; |
|
40 | +include_once SMARTOBJECT_ROOT_PATH . "class/currency.php"; |
|
41 | 41 | $smartobject_currency_handler = xoops_getmodulehandler('currency'); |
42 | 42 | |
43 | 43 | $op = ''; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | switch ($op) { |
49 | 49 | case "mod": |
50 | - $currencyid = isset($_GET['currencyid']) ? intval($_GET['currencyid']) : 0 ; |
|
50 | + $currencyid = isset($_GET['currencyid']) ? intval($_GET['currencyid']) : 0; |
|
51 | 51 | |
52 | 52 | smart_xoops_cp_header(); |
53 | 53 | |
@@ -85,14 +85,14 @@ discard block |
||
85 | 85 | break; |
86 | 86 | |
87 | 87 | case "addcurrency": |
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($smartobject_currency_handler); |
90 | 90 | $controller->storeFromDefaultForm(_AM_SOBJECT_CURRENCIES_CREATED, _AM_SOBJECT_CURRENCIES_MODIFIED, SMARTOBJECT_URL . 'admin/currency.php'); |
91 | 91 | |
92 | 92 | break; |
93 | 93 | |
94 | 94 | case "del": |
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($smartobject_currency_handler); |
97 | 97 | $controller->handleObjectDeletion(); |
98 | 98 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | smart_collapsableBar('createdcurrencies', _AM_SOBJECT_CURRENCIES, _AM_SOBJECT_CURRENCIES_DSC); |
108 | 108 | |
109 | - include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php"; |
|
109 | + include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; |
|
110 | 110 | $objectTable = new SmartObjectTable($smartobject_currency_handler); |
111 | 111 | $objectTable->addColumn(new SmartObjectColumn('name', 'left', false, 'getCurrencyLink')); |
112 | 112 | $objectTable->addColumn(new SmartObjectColumn('rate', 'center', 150)); |
@@ -7,13 +7,13 @@ discard block |
||
7 | 7 | * Licence: GNU |
8 | 8 | */ |
9 | 9 | |
10 | -function edittag($tagid = 0, $language=false, $fct=false) |
|
10 | +function edittag($tagid = 0, $language = false, $fct = false) |
|
11 | 11 | { |
12 | 12 | global $smartobject_tag_handler; |
13 | 13 | |
14 | 14 | $tagObj = $smartobject_tag_handler->get($tagid); |
15 | 15 | |
16 | - if ($tagObj->isNew()){ |
|
16 | + if ($tagObj->isNew()) { |
|
17 | 17 | $breadcrumb = _AM_SOBJECT_TAGS . " > " . _AM_SOBJECT_TAG_CREATE; |
18 | 18 | $title = _AM_SOBJECT_TAG_CREATE; |
19 | 19 | $info = _AM_SOBJECT_TAG_CREATE_INFO; |
@@ -45,14 +45,14 @@ discard block |
||
45 | 45 | |
46 | 46 | smart_collapsableBar($collaps_name, $title, $info); |
47 | 47 | |
48 | - $sform = $tagObj->getForm($form_name, 'addtag', false, $submit_button_caption); |
|
48 | + $sform = $tagObj->getForm($form_name, 'addtag', false, $submit_button_caption); |
|
49 | 49 | $sform->display(); |
50 | 50 | smart_close_collapsable($collaps_name); |
51 | 51 | } |
52 | 52 | |
53 | 53 | include_once("admin_header.php"); |
54 | -include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php"; |
|
55 | -include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttag.php"; |
|
54 | +include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; |
|
55 | +include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttag.php"; |
|
56 | 56 | |
57 | 57 | $smartobject_tag_handler = xoops_getmodulehandler('tag'); |
58 | 58 | |
@@ -61,21 +61,21 @@ discard block |
||
61 | 61 | if (isset($_GET['op'])) $op = $_GET['op']; |
62 | 62 | if (isset($_POST['op'])) $op = $_POST['op']; |
63 | 63 | |
64 | -$tagid = isset($_GET['tagid']) ? $_GET['tagid'] : 0 ; |
|
65 | -$fct = isset($_GET['fct']) ? $_GET['fct'] :'' ; |
|
66 | -$language = isset($_GET['language']) ? $_GET['language'] : false ; |
|
64 | +$tagid = isset($_GET['tagid']) ? $_GET['tagid'] : 0; |
|
65 | +$fct = isset($_GET['fct']) ? $_GET['fct'] : ''; |
|
66 | +$language = isset($_GET['language']) ? $_GET['language'] : false; |
|
67 | 67 | |
68 | 68 | switch ($op) { |
69 | 69 | |
70 | 70 | case "del": |
71 | - include_once XOOPS_ROOT_PATH."/modules/smartobject/class/smartobjectcontroller.php"; |
|
71 | + include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; |
|
72 | 72 | $controller = new SmartObjectController($smartobject_tag_handler); |
73 | 73 | $controller->handleObjectDeletion(_AM_SOBJECT_TAG_DELETE_CONFIRM); |
74 | 74 | |
75 | 75 | break; |
76 | 76 | |
77 | 77 | case "addtag": |
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($smartobject_tag_handler); |
80 | 80 | $tagObj = $controller->storeSmartObject(); |
81 | 81 | if ($tagObj->hasError()) { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | smart_collapsableBar('tags', _AM_SOBJECT_TAGS, _AM_SOBJECT_TAGS_INFO); |
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($smartobject_tag_handler, false, array('delete')); |
109 | 109 | $objectTable->addColumn(new SmartObjectColumn('name')); |
110 | 110 | $objectTable->addColumn(new SmartObjectColumn('language')); |
@@ -7,13 +7,13 @@ discard block |
||
7 | 7 | * Licence: GNU |
8 | 8 | */ |
9 | 9 | |
10 | -function editcustomtag($showmenu = false, $customtagid = 0, $clone=false) |
|
10 | +function editcustomtag($showmenu = false, $customtagid = 0, $clone = false) |
|
11 | 11 | { |
12 | 12 | global $smartobject_customtag_handler; |
13 | 13 | |
14 | 14 | $customtagObj = $smartobject_customtag_handler->get($customtagid); |
15 | 15 | |
16 | - if (!$clone && !$customtagObj->isNew()){ |
|
16 | + if (!$clone && !$customtagObj->isNew()) { |
|
17 | 17 | |
18 | 18 | if ($showmenu) { |
19 | 19 | //smart_adminMenu(2, _AM_SOBJECT_CUSTOMTAGS . " > " . _AM_SOBJECT_EDITING); |
@@ -41,8 +41,8 @@ discard block |
||
41 | 41 | include_once("admin_header.php"); |
42 | 42 | smart_loadLanguageFile('smartobject', 'customtag'); |
43 | 43 | |
44 | -include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php"; |
|
45 | -include_once SMARTOBJECT_ROOT_PATH."class/customtag.php"; |
|
44 | +include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; |
|
45 | +include_once SMARTOBJECT_ROOT_PATH . "class/customtag.php"; |
|
46 | 46 | $smartobject_customtag_handler = xoops_getmodulehandler('customtag'); |
47 | 47 | |
48 | 48 | $indexAdmin = new ModuleAdmin(); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | switch ($op) { |
57 | 57 | case "mod": |
58 | 58 | |
59 | - $customtagid = isset($_GET['customtagid']) ? intval($_GET['customtagid']) : 0 ; |
|
59 | + $customtagid = isset($_GET['customtagid']) ? intval($_GET['customtagid']) : 0; |
|
60 | 60 | |
61 | 61 | smart_xoops_cp_header(); |
62 | 62 | echo $indexAdmin->addNavigation('customtag.php'); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | case "clone": |
68 | 68 | |
69 | - $customtagid = isset($_GET['customtagid']) ? intval($_GET['customtagid']) : 0 ; |
|
69 | + $customtagid = isset($_GET['customtagid']) ? intval($_GET['customtagid']) : 0; |
|
70 | 70 | |
71 | 71 | smart_xoops_cp_header(); |
72 | 72 | echo $indexAdmin->addNavigation('customtag.php'); |
@@ -75,14 +75,14 @@ discard block |
||
75 | 75 | break; |
76 | 76 | |
77 | 77 | case "addcustomtag": |
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($smartobject_customtag_handler); |
80 | 80 | $controller->storeFromDefaultForm(_AM_SOBJECT_CUSTOMTAGS_CREATED, _AM_SOBJECT_CUSTOMTAGS_MODIFIED); |
81 | 81 | break; |
82 | 82 | |
83 | 83 | case "del": |
84 | 84 | |
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($smartobject_customtag_handler); |
87 | 87 | $controller->handleObjectDeletion(); |
88 | 88 | |
@@ -92,14 +92,14 @@ discard block |
||
92 | 92 | |
93 | 93 | smart_xoops_cp_header(); |
94 | 94 | echo $indexAdmin->addNavigation('customtag.php'); |
95 | - $indexAdmin->addItemButton(_AM_SOBJECT_CUSTOMTAGS_CREATE, 'customtag.php?op=mod', 'add' , ''); |
|
95 | + $indexAdmin->addItemButton(_AM_SOBJECT_CUSTOMTAGS_CREATE, 'customtag.php?op=mod', 'add', ''); |
|
96 | 96 | echo $indexAdmin->renderButton('left', ''); |
97 | 97 | |
98 | 98 | //smart_adminMenu(2, _AM_SOBJECT_CUSTOMTAGS); |
99 | 99 | |
100 | 100 | smart_collapsableBar('createdcustomtags', _AM_SOBJECT_CUSTOMTAGS, _AM_SOBJECT_CUSTOMTAGS_DSC); |
101 | 101 | |
102 | - include_once SMARTOBJECT_ROOT_PATH."class/smartobjecttable.php"; |
|
102 | + include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; |
|
103 | 103 | $objectTable = new SmartObjectTable($smartobject_customtag_handler); |
104 | 104 | $objectTable->addColumn(new SmartObjectColumn('name', 'left', 150, 'getCustomtagName')); |
105 | 105 | $objectTable->addColumn(new SmartObjectColumn('description', 'left')); |