@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -require_once __DIR__ . '/admin_header.php'; |
|
9 | +require_once __DIR__.'/admin_header.php'; |
|
10 | 10 | |
11 | 11 | $op = 'none'; |
12 | 12 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | case 'importExecute': |
24 | 24 | |
25 | 25 | $importfile = isset($_POST['importfile']) ? $_POST['importfile'] : 'nonselected'; |
26 | - $importfile_path = XOOPS_ROOT_PATH . '/modules/smartfaq/admin/' . $importfile . '.php'; |
|
26 | + $importfile_path = XOOPS_ROOT_PATH.'/modules/smartfaq/admin/'.$importfile.'.php'; |
|
27 | 27 | if (!file_exists($importfile_path)) { |
28 | 28 | $errs[] = sprintf(_AM_SF_IMPORT_FILE_NOT_FOUND, $importfile_path); |
29 | 29 | $error = true; |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | require_once $importfile_path; |
32 | 32 | } |
33 | 33 | foreach ($msgs as $m) { |
34 | - echo $m . '<br>'; |
|
34 | + echo $m.'<br>'; |
|
35 | 35 | } |
36 | 36 | echo '<br>'; |
37 | 37 | $endMsg = _AM_SF_IMPORT_SUCCESS; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | echo $endMsg; |
43 | 43 | echo '<br><br>'; |
44 | - echo "<a href='import.php'>" . _AM_SF_IMPORT_BACK . '</a>'; |
|
44 | + echo "<a href='import.php'>"._AM_SF_IMPORT_BACK.'</a>'; |
|
45 | 45 | echo '<br><br>'; |
46 | 46 | break; |
47 | 47 | |
@@ -53,13 +53,13 @@ discard block |
||
53 | 53 | xoops_cp_header(); |
54 | 54 | |
55 | 55 | sf_collapsableBar('bottomtable', 'bottomtableicon'); |
56 | - echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . _AM_SF_IMPORT_TITLE . '</h3>'; |
|
56 | + echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> "._AM_SF_IMPORT_TITLE.'</h3>'; |
|
57 | 57 | echo "<div id='bottomtable'>"; |
58 | - echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_IMPORT_INFO . '</span>'; |
|
58 | + echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_IMPORT_INFO.'</span>'; |
|
59 | 59 | |
60 | 60 | global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts; |
61 | 61 | |
62 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
62 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
63 | 63 | |
64 | 64 | /** @var XoopsModuleHandler $moduleHandler */ |
65 | 65 | $moduleHandler = xoops_getHandler('module'); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $sform->display(); |
100 | 100 | unset($hidden); |
101 | 101 | } else { |
102 | - echo '<span style="color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; ">' . _AM_SF_IMPORT_NO_MODULE . '</span>'; |
|
102 | + echo '<span style="color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; ">'._AM_SF_IMPORT_NO_MODULE.'</span>'; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | // End of collapsable bar |
@@ -108,4 +108,4 @@ discard block |
||
108 | 108 | break; |
109 | 109 | } |
110 | 110 | |
111 | -require_once __DIR__ . '/admin_footer.php'; |
|
111 | +require_once __DIR__.'/admin_footer.php'; |
@@ -17,11 +17,11 @@ |
||
17 | 17 | * @author XOOPS Development Team |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/admin_header.php'; |
|
20 | +require_once __DIR__.'/admin_header.php'; |
|
21 | 21 | xoops_cp_header(); |
22 | 22 | |
23 | 23 | $adminObject->displayNavigation(basename(__FILE__)); |
24 | 24 | $adminObject->setPaypal('[email protected]'); |
25 | 25 | $adminObject->displayAbout(false); |
26 | 26 | |
27 | -require_once __DIR__ . '/admin_footer.php'; |
|
27 | +require_once __DIR__.'/admin_footer.php'; |
@@ -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 | |
@@ -72,34 +72,34 @@ discard block |
||
72 | 72 | $adminObject->addInfoBox(_AM_SF_INVENTORY); |
73 | 73 | |
74 | 74 | if ($totalcategories > 0) { |
75 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . '<a href="category.php">' . _AM_SF_TOTALCAT . '</a><b>' . '</infolabel>', $totalcategories), '', 'Green'); |
|
75 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'.'<a href="category.php">'._AM_SF_TOTALCAT.'</a><b>'.'</infolabel>', $totalcategories), '', 'Green'); |
|
76 | 76 | } else { |
77 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_SF_TOTALCAT . '</infolabel>', $totalcategories), '', 'Green'); |
|
77 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_SF_TOTALCAT.'</infolabel>', $totalcategories), '', 'Green'); |
|
78 | 78 | } |
79 | 79 | if ($totalasked > 0) { |
80 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . '<a href="main.php">' . _AM_SF_TOTALASKED . '</a><b>' . '</infolabel>', $totalasked), '', 'Green'); |
|
80 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'.'<a href="main.php">'._AM_SF_TOTALASKED.'</a><b>'.'</infolabel>', $totalasked), '', 'Green'); |
|
81 | 81 | } else { |
82 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_SF_TOTALASKED . '</infolabel>', $totalasked), '', 'Green'); |
|
82 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_SF_TOTALASKED.'</infolabel>', $totalasked), '', 'Green'); |
|
83 | 83 | } |
84 | 84 | if ($totalopened > 0) { |
85 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . '<a href="question.php">' . _AM_SF_TOTALOPENED . '</a><b>' . '</infolabel>', $totalopened), '', 'Red'); |
|
85 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'.'<a href="question.php">'._AM_SF_TOTALOPENED.'</a><b>'.'</infolabel>', $totalopened), '', 'Red'); |
|
86 | 86 | } else { |
87 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_SF_TOTALOPENED . '</infolabel>', $totalopened), '', 'Green'); |
|
87 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_SF_TOTALOPENED.'</infolabel>', $totalopened), '', 'Green'); |
|
88 | 88 | } |
89 | 89 | if ($totalsubmitted > 0) { |
90 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . '<a href="category.php">' . _AM_SF_TOTALSUBMITTED . '</a><b>' . '</infolabel>', $totalsubmitted), '', 'Green'); |
|
90 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'.'<a href="category.php">'._AM_SF_TOTALSUBMITTED.'</a><b>'.'</infolabel>', $totalsubmitted), '', 'Green'); |
|
91 | 91 | } else { |
92 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_SF_TOTALSUBMITTED . '</infolabel>', $totalsubmitted), '', 'Green'); |
|
92 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_SF_TOTALSUBMITTED.'</infolabel>', $totalsubmitted), '', 'Green'); |
|
93 | 93 | } |
94 | 94 | if ($totalpublished > 0) { |
95 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . '<a href="faq.php">' . _AM_SF_TOTALPUBLISHED . '</a><b>' . '</infolabel>', $totalpublished), '', 'Green'); |
|
95 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'.'<a href="faq.php">'._AM_SF_TOTALPUBLISHED.'</a><b>'.'</infolabel>', $totalpublished), '', 'Green'); |
|
96 | 96 | } else { |
97 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_SF_TOTALPUBLISHED . '</infolabel>', $totalpublished), '', 'Green'); |
|
97 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_SF_TOTALPUBLISHED.'</infolabel>', $totalpublished), '', 'Green'); |
|
98 | 98 | } |
99 | 99 | if ($totalnewanswers > 0) { |
100 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . '<a href="main.php">' . _AM_SF_TOTALNEWANSWERS . '</a><b>' . '</infolabel>', $totalnewanswers), '', 'Red'); |
|
100 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'.'<a href="main.php">'._AM_SF_TOTALNEWANSWERS.'</a><b>'.'</infolabel>', $totalnewanswers), '', 'Red'); |
|
101 | 101 | } else { |
102 | - $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_SF_TOTALNEWANSWERS . '</infolabel>', $totalnewanswers), '', 'Green'); |
|
102 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_SF_TOTALNEWANSWERS.'</infolabel>', $totalnewanswers), '', 'Green'); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | //---------------------- |
@@ -107,4 +107,4 @@ discard block |
||
107 | 107 | $adminObject->displayNavigation(basename(__FILE__)); |
108 | 108 | $adminObject->displayIndex(); |
109 | 109 | |
110 | -require_once __DIR__ . '/admin_footer.php'; |
|
110 | +require_once __DIR__.'/admin_footer.php'; |
@@ -6,8 +6,8 @@ discard block |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -require_once __DIR__ . '/admin_header.php'; |
|
10 | -require_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php'; |
|
9 | +require_once __DIR__.'/admin_header.php'; |
|
10 | +require_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php'; |
|
11 | 11 | |
12 | 12 | if (!sf_userIsAdmin()) { |
13 | 13 | redirect_header('javascript:history.go(-1)', 1, _NOPERM); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | // echo "<h3 style='color: #2F5376; '>"._AM_SF_PERMISSIONSADMIN."</h3>\n" ; |
38 | 38 | sf_collapsableBar('toptable', 'toptableicon'); |
39 | 39 | |
40 | - $result_view = $xoopsDB->query('SELECT categoryid, name FROM ' . $xoopsDB->prefix('smartfaq_categories') . ' '); |
|
40 | + $result_view = $xoopsDB->query('SELECT categoryid, name FROM '.$xoopsDB->prefix('smartfaq_categories').' '); |
|
41 | 41 | if ($xoopsDB->getRowsNum($result_view)) { |
42 | 42 | while ($myrow_view = $xoopsDB->fetcharray($result_view)) { |
43 | 43 | $item_list_view['cid'] = $myrow_view['categoryid']; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
52 | 52 | . _AM_SF_VIEW_CATS |
53 | 53 | . '</span>', 'admin/permissions.php'); |
54 | - $block_view[] = $item_list_view; |
|
54 | + $block_view[] = $item_list_view; |
|
55 | 55 | foreach ($block_view as $itemlists) { |
56 | 56 | $form_view->addItem($itemlists['cid'], $myts->displayTarea($itemlists['title'])); |
57 | 57 | } |
@@ -73,4 +73,4 @@ discard block |
||
73 | 73 | echo "<br>\n"; |
74 | 74 | } |
75 | 75 | |
76 | -require_once __DIR__ . '/admin_footer.php'; |
|
76 | +require_once __DIR__.'/admin_footer.php'; |
@@ -6,5 +6,5 @@ |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -include __DIR__ . '/../../mainfile.php'; |
|
10 | -require_once XOOPS_ROOT_PATH . '/include/comment_post.php'; |
|
9 | +include __DIR__.'/../../mainfile.php'; |
|
10 | +require_once XOOPS_ROOT_PATH.'/include/comment_post.php'; |
@@ -9,9 +9,9 @@ |
||
9 | 9 | |
10 | 10 | global $_POST; |
11 | 11 | |
12 | -require_once XOOPS_ROOT_PATH . '/class/xoopstree.php'; |
|
13 | -require_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; |
|
14 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
12 | +require_once XOOPS_ROOT_PATH.'/class/xoopstree.php'; |
|
13 | +require_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
14 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
15 | 15 | |
16 | 16 | $form = new XoopsThemeForm(_MD_SF_REQUEST, 'form', xoops_getenv('PHP_SELF'), 'post', true); |
17 | 17 | // CATEGORY |
@@ -9,9 +9,9 @@ |
||
9 | 9 | |
10 | 10 | global $_POST; |
11 | 11 | |
12 | -require_once XOOPS_ROOT_PATH . '/class/xoopstree.php'; |
|
13 | -require_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; |
|
14 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
12 | +require_once XOOPS_ROOT_PATH.'/class/xoopstree.php'; |
|
13 | +require_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
14 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
15 | 15 | //require_once __DIR__ . '/functions.php'; |
16 | 16 | |
17 | 17 | $mytree = new XoopsTree($xoopsDB->prefix('smartfaq_categories'), 'categoryid', 'parentid'); |
@@ -6,8 +6,8 @@ discard block |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -$categoryID = isset($categoryID) ? (int)$categoryID : 0; |
|
10 | -$type = isset($type) ? (int)$type : 3; |
|
9 | +$categoryID = isset($categoryID) ? (int) $categoryID : 0; |
|
10 | +$type = isset($type) ? (int) $type : 3; |
|
11 | 11 | $term = isset($term) ? $type : ''; |
12 | 12 | |
13 | 13 | $sform = new XoopsThemeForm(_MD_WB_SEARCHFORM, 'searchform', 'search.php'); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $searchcat = new XoopsFormSelect(_MD_WB_CATEGORY, 'categoryID', $categoryID); |
22 | 22 | $searchcat->addOption('0', _MD_WB_ALLOFTHEM); |
23 | 23 | |
24 | - $resultcat = $xoopsDB->queryF('SELECT categoryID, name FROM ' . $xoopsDB->prefix('wbcategories') . ' ORDER BY categoryID'); |
|
24 | + $resultcat = $xoopsDB->queryF('SELECT categoryID, name FROM '.$xoopsDB->prefix('wbcategories').' ORDER BY categoryID'); |
|
25 | 25 | |
26 | 26 | while (list($categoryID, $name) = $xoopsDB->fetchRow($resultcat)) { |
27 | 27 | $searchcat->addOption('categoryID', "$categoryID : $name"); |
@@ -9,9 +9,9 @@ discard block |
||
9 | 9 | function xoops_module_update_smartfaq($module) |
10 | 10 | { |
11 | 11 | // Load SmartDbUpdater from the SmartObject Framework if present |
12 | - $smartdbupdater = XOOPS_ROOT_PATH . '/modules/smartobject/class/smartdbupdater.php'; |
|
12 | + $smartdbupdater = XOOPS_ROOT_PATH.'/modules/smartobject/class/smartdbupdater.php'; |
|
13 | 13 | if (!file_exists($smartdbupdater)) { |
14 | - $smartdbupdater = XOOPS_ROOT_PATH . '/modules/smartfaq/class/smartdbupdater.php'; |
|
14 | + $smartdbupdater = XOOPS_ROOT_PATH.'/modules/smartfaq/class/smartdbupdater.php'; |
|
15 | 15 | } |
16 | 16 | require_once $smartdbupdater; |
17 | 17 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | ob_start(); |
21 | 21 | |
22 | - echo '<code>' . _SDU_UPDATE_UPDATING_DATABASE . '<br>'; |
|
22 | + echo '<code>'._SDU_UPDATE_UPDATING_DATABASE.'<br>'; |
|
23 | 23 | |
24 | 24 | // Adding partialview field |
25 | 25 | $table = new SmartDbTable('smartfaq_faq'); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Check for items with categoryid=0 |
72 | 72 | */ |
73 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
73 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
74 | 74 | $smartfaq_faqHandler = $answerHandler = sf_gethandler('faq'); |
75 | 75 | $smartfaq_categoryHandler = $answerHandler = sf_gethandler('category'); |
76 | 76 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | { |
105 | 105 | ob_start(); |
106 | 106 | |
107 | - require_once XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname') . '/include/functions.php'; |
|
107 | + require_once XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname').'/include/functions.php'; |
|
108 | 108 | |
109 | 109 | $feedback = ob_get_clean(); |
110 | 110 | if (method_exists($module, 'setMessage')) { |