@@ -21,51 +21,51 @@ |
||
21 | 21 | $moduleDirName = basename(dirname(dirname(__DIR__))); |
22 | 22 | $moduleDirNameUpper = strtoupper($moduleDirName); |
23 | 23 | |
24 | -define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: '); |
|
25 | -define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: '); |
|
26 | -define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
27 | -define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
28 | -define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status'); |
|
29 | -define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
30 | -define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
31 | -define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
32 | -define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
33 | -define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
34 | -define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
35 | -define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: '); |
|
36 | -define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
37 | -define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
38 | -define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
24 | +define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: '); |
|
25 | +define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: '); |
|
26 | +define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
27 | +define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
28 | +define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status'); |
|
29 | +define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
30 | +define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
31 | +define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
32 | +define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
33 | +define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
34 | +define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
35 | +define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: '); |
|
36 | +define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
37 | +define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
38 | +define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
39 | 39 | |
40 | -define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
41 | -define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
40 | +define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
41 | +define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
42 | 42 | |
43 | 43 | |
44 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
45 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
46 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
47 | -define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
48 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
49 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
50 | -define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
44 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
45 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
46 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
47 | +define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
48 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
49 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
50 | +define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
51 | 51 | |
52 | -define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
52 | +define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
53 | 53 | |
54 | 54 | // Error Msgs |
55 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
56 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
57 | -define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
55 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
56 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
57 | +define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
58 | 58 | |
59 | 59 | |
60 | 60 | //Help |
61 | -define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(dirname(__DIR__)))); |
|
62 | -define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
63 | -define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of '); |
|
64 | -define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview'); |
|
61 | +define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(dirname(__DIR__)))); |
|
62 | +define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
63 | +define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of '); |
|
64 | +define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview'); |
|
65 | 65 | |
66 | 66 | //define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__); |
67 | 67 | |
68 | 68 | //help multi-page |
69 | -define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer'); |
|
70 | -define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License'); |
|
71 | -define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support'); |
|
69 | +define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer'); |
|
70 | +define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License'); |
|
71 | +define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support'); |
@@ -9,8 +9,8 @@ discard block |
||
9 | 9 | use XoopsModules\Smartfaq; |
10 | 10 | use XoopsModules\Smartfaq\Constants; |
11 | 11 | |
12 | -require_once __DIR__ . '/header.php'; |
|
13 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
12 | +require_once __DIR__.'/header.php'; |
|
13 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
14 | 14 | |
15 | 15 | global $xoopsUser, $xoopsConfig, $xoopsModuleConfig, $xoopsModule; |
16 | 16 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | // Storing the FAQ object in the database |
83 | 83 | if (!$newFaqObj->store()) { |
84 | - redirect_header('javascript:history.go(-1)', 3, _MD_SF_REQUEST_ERROR . Smartfaq\Utility::formatErrors($newFaqObj->getErrors())); |
|
84 | + redirect_header('javascript:history.go(-1)', 3, _MD_SF_REQUEST_ERROR.Smartfaq\Utility::formatErrors($newFaqObj->getErrors())); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | // Get the cateopry object related to that FAQ |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } else { |
97 | 97 | // Subscribe the user to On Published notification, if requested |
98 | 98 | if (1 == $notifypub) { |
99 | - require_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; |
|
99 | + require_once XOOPS_ROOT_PATH.'/include/notification_constants.php'; |
|
100 | 100 | $notificationHandler = xoops_getHandler('notification'); |
101 | 101 | $notificationHandler->subscribe('question', $newFaqObj->faqid(), 'approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE); |
102 | 102 | } |
@@ -116,27 +116,27 @@ discard block |
||
116 | 116 | global $xoopsUser, $myts; |
117 | 117 | |
118 | 118 | $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_submit.tpl'; |
119 | - require_once XOOPS_ROOT_PATH . '/header.php'; |
|
120 | - require_once __DIR__ . '/footer.php'; |
|
119 | + require_once XOOPS_ROOT_PATH.'/header.php'; |
|
120 | + require_once __DIR__.'/footer.php'; |
|
121 | 121 | |
122 | 122 | $name = $xoopsUser ? ucwords($xoopsUser->getVar('uname')) : 'Anonymous'; |
123 | 123 | |
124 | - $moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
|
124 | + $moduleName = & $myts->displayTarea($xoopsModule->getVar('name')); |
|
125 | 125 | $xoopsTpl->assign('whereInSection', $moduleName); |
126 | 126 | $xoopsTpl->assign('lang_submit', _MD_SF_REQUEST); |
127 | 127 | |
128 | 128 | $xoopsTpl->assign('lang_intro_title', _MD_SF_REQUEST); |
129 | - $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY . "<b>$name</b>, " . $myts->displayTarea($xoopsModuleConfig['requestintromsg'])); |
|
129 | + $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY."<b>$name</b>, ".$myts->displayTarea($xoopsModuleConfig['requestintromsg'])); |
|
130 | 130 | |
131 | - require_once __DIR__ . '/include/request.inc.php'; |
|
131 | + require_once __DIR__.'/include/request.inc.php'; |
|
132 | 132 | |
133 | 133 | $name = $xoopsUser ? ucwords($xoopsUser->getVar('uname')) : 'Anonymous'; |
134 | 134 | |
135 | 135 | $sectionname = $myts->htmlSpecialChars($xoopsModule->getVar('name')); |
136 | 136 | |
137 | - require_once __DIR__ . '/include/request.inc.php'; |
|
137 | + require_once __DIR__.'/include/request.inc.php'; |
|
138 | 138 | |
139 | - require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
139 | + require_once XOOPS_ROOT_PATH.'/footer.php'; |
|
140 | 140 | |
141 | 141 | break; |
142 | 142 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | use XoopsModules\Smartfaq; |
21 | 21 | |
22 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
22 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
23 | 23 | //require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php'); |
24 | 24 | |
25 | 25 | // require_once __DIR__ . '/../class/Utility.php'; |
@@ -28,18 +28,18 @@ discard block |
||
28 | 28 | $moduleDirName = basename(dirname(__DIR__)); |
29 | 29 | |
30 | 30 | $path = dirname(dirname(dirname(__DIR__))); |
31 | -require_once $path . '/kernel/module.php'; |
|
32 | -require_once $path . '/class/xoopstree.php'; |
|
33 | -require_once $path . '/class/xoopslists.php'; |
|
34 | -require_once $path . '/class/pagenav.php'; |
|
35 | -require_once $path . '/class/xoopsformloader.php'; |
|
31 | +require_once $path.'/kernel/module.php'; |
|
32 | +require_once $path.'/class/xoopstree.php'; |
|
33 | +require_once $path.'/class/xoopslists.php'; |
|
34 | +require_once $path.'/class/pagenav.php'; |
|
35 | +require_once $path.'/class/xoopsformloader.php'; |
|
36 | 36 | |
37 | 37 | //require_once __DIR__ . '/../include/functions.php'; |
38 | 38 | // require_once __DIR__ . '/../class/category.php'; |
39 | 39 | // require_once __DIR__ . '/../class/faq.php'; |
40 | 40 | // require_once __DIR__ . '/../class/answer.php'; |
41 | 41 | // require_once __DIR__ . '/../class/Utility.php'; |
42 | -require_once __DIR__ . '/../include/common.php'; |
|
42 | +require_once __DIR__.'/../include/common.php'; |
|
43 | 43 | /** @var Smartfaq\Helper $helper */ |
44 | 44 | $helper = Smartfaq\Helper::getInstance(); |
45 | 45 | $adminObject = \Xmf\Module\Admin::getInstance(); |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | use XoopsModules\Smartfaq; |
10 | 10 | |
11 | -require_once __DIR__ . '/header.php'; |
|
11 | +require_once __DIR__.'/header.php'; |
|
12 | 12 | |
13 | 13 | $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0; |
14 | 14 | |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | $faqObj->updateCounter(); |
48 | 48 | } |
49 | 49 | $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_faq.tpl'; |
50 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
51 | -require_once __DIR__ . '/footer.php'; |
|
50 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
51 | +require_once __DIR__.'/footer.php'; |
|
52 | 52 | |
53 | 53 | $faq = $faqObj->toArray(null, $categoryObj, false); |
54 | 54 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $xoopsTpl->assign('display_categoryname', false); |
84 | 84 | |
85 | 85 | $xoopsTpl->assign('xcodes', $faqObj->getVar('xcodes')); |
86 | -$xoopsTpl->assign('mail_link', 'mailto:?subject=' . sprintf(_MD_SF_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_MD_SF_INTARTFOUND, $xoopsConfig['sitename']) . ': ' . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/faq.php?faqid=' . $faqObj->getVar('faqid')); |
|
86 | +$xoopsTpl->assign('mail_link', 'mailto:?subject='.sprintf(_MD_SF_INTARTICLE, $xoopsConfig['sitename']).'&body='.sprintf(_MD_SF_INTARTFOUND, $xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/faq.php?faqid='.$faqObj->getVar('faqid')); |
|
87 | 87 | $xoopsTpl->assign('lang_printerpage', _MD_SF_PRINTERFRIENDLY); |
88 | 88 | $xoopsTpl->assign('lang_sendstory', _MD_SF_SENDSTORY); |
89 | 89 | $xoopsTpl->assign('faqid', $faqObj->getVar('faqid')); |
@@ -99,19 +99,19 @@ discard block |
||
99 | 99 | |
100 | 100 | // Page Title Hack by marcan |
101 | 101 | $module_name = $myts->htmlSpecialChars($xoopsModule->getVar('name')); |
102 | -$xoopsTpl->assign('xoops_pagetitle', $module_name . ' - ' . $categoryObj->name() . ' - ' . $faq['question']); |
|
102 | +$xoopsTpl->assign('xoops_pagetitle', $module_name.' - '.$categoryObj->name().' - '.$faq['question']); |
|
103 | 103 | // End Page Title Hack by marcan |
104 | 104 | |
105 | 105 | // Include the comments if the selected FAQ supports comments |
106 | 106 | if (1 == $faqObj->cancomment()) { |
107 | - require_once XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
107 | + require_once XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | //code to include smartie |
111 | -if (file_exists(XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php')) { |
|
112 | - require_once XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php'; |
|
111 | +if (file_exists(XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php')) { |
|
112 | + require_once XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php'; |
|
113 | 113 | $xoopsTpl->assign('smarttie', 1); |
114 | 114 | } |
115 | 115 | //end code for smarttie |
116 | 116 | |
117 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
117 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | use XoopsModules\Smartfaq; |
10 | 10 | use XoopsModules\Smartfaq\Constants; |
11 | 11 | |
12 | -require_once __DIR__ . '/header.php'; |
|
12 | +require_once __DIR__.'/header.php'; |
|
13 | 13 | |
14 | 14 | // At which record shall we start for the Categories |
15 | 15 | $catstart = isset($_GET['catstart']) ? (int)$_GET['catstart'] : 0; |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | |
43 | 43 | $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_index.tpl'; |
44 | 44 | |
45 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
46 | -require_once __DIR__ . '/footer.php'; |
|
45 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
46 | +require_once __DIR__.'/footer.php'; |
|
47 | 47 | |
48 | 48 | // Creating the categories objects |
49 | -$categoriesObj =& $categoryHandler->getCategories($xoopsModuleConfig['catperpage'], $catstart); |
|
49 | +$categoriesObj = & $categoryHandler->getCategories($xoopsModuleConfig['catperpage'], $catstart); |
|
50 | 50 | // If no categories are found, exit |
51 | 51 | $totalCategoriesOnPage = count($categoriesObj); |
52 | 52 | if (0 == $totalCategoriesOnPage) { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | if (isset($totalQnas[$subcat_id]) && $totalQnas[$subcat_id] > 0) { |
77 | 77 | if (isset($last_qnaObj[$subcat_id])) { |
78 | 78 | $subcat->setVar('last_faqid', $last_qnaObj[$subcat_id]->getVar('faqid')); |
79 | - $subcat->setVar('last_question_link', "<a href='faq.php?faqid=" . $last_qnaObj[$subcat_id]->getVar('faqid') . "'>" . $last_qnaObj[$subcat_id]->question($lastfaqsize) . '</a>'); |
|
79 | + $subcat->setVar('last_question_link', "<a href='faq.php?faqid=".$last_qnaObj[$subcat_id]->getVar('faqid')."'>".$last_qnaObj[$subcat_id]->question($lastfaqsize).'</a>'); |
|
80 | 80 | } |
81 | 81 | $subcat->setVar('faqcount', $totalQnas[$subcat_id]); |
82 | 82 | if ($xoopsModuleConfig['displaysubcatonindex']) { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | if ($total > 0) { |
95 | 95 | if (isset($last_qnaObj[$cat_id])) { |
96 | 96 | $category->setVar('last_faqid', $last_qnaObj[$cat_id]->getVar('faqid')); |
97 | - $category->setVar('last_question_link', "<a href='faq.php?faqid=" . $last_qnaObj[$cat_id]->getVar('faqid') . "'>" . $last_qnaObj[$cat_id]->question($lastfaqsize) . '</a>'); |
|
97 | + $category->setVar('last_question_link', "<a href='faq.php?faqid=".$last_qnaObj[$cat_id]->getVar('faqid')."'>".$last_qnaObj[$cat_id]->question($lastfaqsize).'</a>'); |
|
98 | 98 | } |
99 | 99 | $category->setVar('faqcount', $total); |
100 | 100 | if (!isset($categories[$cat_id])) { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | $memberHandler = xoops_getHandler('member'); |
136 | - $users = $memberHandler->getUsers(new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'), true); |
|
136 | + $users = $memberHandler->getUsers(new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'), true); |
|
137 | 137 | for ($i = 0; $i < $totalQnasOnPage; ++$i) { |
138 | 138 | $faq = $faqsObj[$i]->toArray(null, $allcategories); |
139 | 139 | |
@@ -159,14 +159,14 @@ discard block |
||
159 | 159 | } |
160 | 160 | |
161 | 161 | // Language constants |
162 | -$moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
|
162 | +$moduleName = & $myts->displayTarea($xoopsModule->getVar('name')); |
|
163 | 163 | $xoopsTpl->assign('whereInSection', $moduleName); |
164 | 164 | $xoopsTpl->assign('displaysubcatonindex', $xoopsModuleConfig['displaysubcatonindex']); |
165 | 165 | $xoopsTpl->assign('displaylastfaqs', $xoopsModuleConfig['displaylastfaqs']); |
166 | 166 | $xoopsTpl->assign('display_categoryname', true); |
167 | 167 | $xoopsTpl->assign('displayFull', 'full' === $xoopsModuleConfig['displaytype']); |
168 | 168 | |
169 | -$xoopsTpl->assign('lang_mainhead', _MD_SF_MAINHEAD . ' ' . $moduleName); |
|
169 | +$xoopsTpl->assign('lang_mainhead', _MD_SF_MAINHEAD.' '.$moduleName); |
|
170 | 170 | $xoopsTpl->assign('lang_mainintro', $myts->displayTarea($xoopsModuleConfig['indexwelcomemsg'], 1)); |
171 | 171 | $xoopsTpl->assign('lang_total', _MD_SF_TOTAL_SMARTFAQS); |
172 | 172 | $xoopsTpl->assign('lang_home', _MD_SF_HOME); |
@@ -185,20 +185,20 @@ discard block |
||
185 | 185 | $xoopsTpl->assign('lang_comments', _MD_SF_COMMENTS); |
186 | 186 | |
187 | 187 | // Category Navigation Bar |
188 | -require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
188 | +require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
189 | 189 | $pagenav = new \XoopsPageNav($totalCategories, $xoopsModuleConfig['catperpage'], $catstart, 'catstart', ''); |
190 | 190 | if (1 == $xoopsModuleConfig['useimagenavpage']) { |
191 | - $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>'); |
|
191 | + $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>'); |
|
192 | 192 | } else { |
193 | - $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'); |
|
193 | + $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'); |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | // FAQ Navigation Bar |
197 | 197 | $pagenav = new \XoopsPageNav($totalFaqs, $xoopsModuleConfig['indexperpage'], $start, 'start', ''); |
198 | 198 | if (1 == $xoopsModuleConfig['useimagenavpage']) { |
199 | - $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>'); |
|
199 | + $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>'); |
|
200 | 200 | } else { |
201 | - $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'); |
|
201 | + $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'); |
|
202 | 202 | } |
203 | 203 | |
204 | 204 | // Page Title Hack by marcan |
@@ -206,4 +206,4 @@ discard block |
||
206 | 206 | $xoopsTpl->assign('xoops_pagetitle', $module_name); |
207 | 207 | // End Page Title Hack by marcan |
208 | 208 | |
209 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
209 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | use XoopsModules\Smartfaq; |
10 | 10 | use XoopsModules\Smartfaq\Constants; |
11 | 11 | |
12 | -require_once __DIR__ . '/admin_header.php'; |
|
12 | +require_once __DIR__.'/admin_header.php'; |
|
13 | 13 | |
14 | 14 | global $xoopsUser; |
15 | 15 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | global $faqHandler, $categoryHandler, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts; |
42 | 42 | |
43 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
43 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
44 | 44 | // If there is a parameter, and the id exists, retrieve data: we're editing a faq |
45 | 45 | if (-1 != $faqid) { |
46 | 46 | // Creating the FAQ object |
@@ -72,9 +72,9 @@ discard block |
||
72 | 72 | |
73 | 73 | echo "<br>\n"; |
74 | 74 | Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon'); |
75 | - echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . $collapsableBar_title . '</h3>'; |
|
75 | + echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> ".$collapsableBar_title.'</h3>'; |
|
76 | 76 | echo "<div id='bottomtable'>"; |
77 | - echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . $collapsableBar_info . '</span>'; |
|
77 | + echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'.$collapsableBar_info.'</span>'; |
|
78 | 78 | } else { |
79 | 79 | // there's no parameter, so we're adding a faq |
80 | 80 | $faqObj = $faqHandler->create(); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $button_caption = _AM_SF_CREATE; |
86 | 86 | |
87 | 87 | Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon'); |
88 | - echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . _AM_SF_CREATEQUESTION . '</h3>'; |
|
88 | + echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> "._AM_SF_CREATEQUESTION.'</h3>'; |
|
89 | 89 | echo "<div id='bottomtable'>"; |
90 | 90 | } |
91 | 91 | $sform = new \XoopsThemeForm(_AM_SF_OPEN_QUESTION, 'op', xoops_getenv('PHP_SELF'), 'post', true); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | $button_tray->addElement($butt_create); |
160 | 160 | |
161 | 161 | $butt_edit = new \XoopsFormButton('', '', _AM_SF_OPEN_QUESTION_EDIT, 'button'); |
162 | - $butt_edit->setExtra("onclick=\"location='faq.php?op=mod&faqid=" . $faqid . "'\""); |
|
162 | + $butt_edit->setExtra("onclick=\"location='faq.php?op=mod&faqid=".$faqid."'\""); |
|
163 | 163 | $button_tray->addElement($butt_edit); |
164 | 164 | |
165 | 165 | $butt_cancel = new \XoopsFormButton('', '', _AM_SF_CANCEL, 'button'); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | xoops_cp_header(); |
192 | 192 | |
193 | 193 | $adminObject->displayNavigation(basename(__FILE__)); |
194 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
194 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
195 | 195 | |
196 | 196 | editfaq(true, $faqid); |
197 | 197 | break; |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | |
253 | 253 | // Storing the FAQ |
254 | 254 | if (!$faqObj->store()) { |
255 | - redirect_header('javascript:history.go(-1)', 3, _AM_SF_ERROR . Smartfaq\Utility::formatErrors($faqObj->getErrors())); |
|
255 | + redirect_header('javascript:history.go(-1)', 3, _AM_SF_ERROR.Smartfaq\Utility::formatErrors($faqObj->getErrors())); |
|
256 | 256 | } |
257 | 257 | |
258 | 258 | // Send notifications |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | 'faqid' => $faqObj->faqid(), |
294 | 294 | 'confirm' => 1, |
295 | 295 | 'name' => $faqObj->question() |
296 | - ], 'question.php', _AM_SF_DELETETHISQUESTION . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
296 | + ], 'question.php', _AM_SF_DELETETHISQUESTION." <br>'".$faqObj->question()."'. <br> <br>", _AM_SF_DELETE); |
|
297 | 297 | xoops_cp_footer(); |
298 | 298 | } |
299 | 299 | |
@@ -306,8 +306,8 @@ discard block |
||
306 | 306 | xoops_cp_header(); |
307 | 307 | $adminObject->displayNavigation(basename(__FILE__)); |
308 | 308 | |
309 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
310 | - require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
309 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
310 | + require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
311 | 311 | |
312 | 312 | global $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $smartModuleConfig; |
313 | 313 | |
@@ -315,9 +315,9 @@ discard block |
||
315 | 315 | |
316 | 316 | Smartfaq\Utility::collapsableBar('toptable', 'toptableicon'); |
317 | 317 | |
318 | - echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . _AM_SF_OPENED_TITLE . '</h3>'; |
|
318 | + echo "<img id='toptableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> "._AM_SF_OPENED_TITLE.'</h3>'; |
|
319 | 319 | echo "<div id='toptable'>"; |
320 | - echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_OPENED_DSC . '</span>'; |
|
320 | + echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_OPENED_DSC.'</span>'; |
|
321 | 321 | |
322 | 322 | // Get the total number of published FAQs |
323 | 323 | $totalfaqs = $faqHandler->getFaqsCount(-1, [Constants::SF_STATUS_OPENED]); |
@@ -327,14 +327,14 @@ discard block |
||
327 | 327 | $allCats = $categoryHandler->getObjects(null, true); |
328 | 328 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
329 | 329 | echo '<tr>'; |
330 | - echo "<th width='40' class='bg3' align='center'><b>" . _AM_SF_ARTID . '</b></td>'; |
|
331 | - echo "<th width='20%' class='bg3' align='left'><b>" . _AM_SF_ARTCOLNAME . '</b></td>'; |
|
332 | - echo "<th class='bg3' align='left'><b>" . _AM_SF_QUESTION . '</b></td>'; |
|
330 | + echo "<th width='40' class='bg3' align='center'><b>"._AM_SF_ARTID.'</b></td>'; |
|
331 | + echo "<th width='20%' class='bg3' align='left'><b>"._AM_SF_ARTCOLNAME.'</b></td>'; |
|
332 | + echo "<th class='bg3' align='left'><b>"._AM_SF_QUESTION.'</b></td>'; |
|
333 | 333 | |
334 | - echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_ASKED . '</b></td>'; |
|
334 | + echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_ASKED.'</b></td>'; |
|
335 | 335 | |
336 | - echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_CREATED . '</b></td>'; |
|
337 | - echo "<th width='60' class='bg3' align='center'><b>" . _AM_SF_ACTION . '</b></td>'; |
|
336 | + echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_CREATED.'</b></td>'; |
|
337 | + echo "<th width='60' class='bg3' align='center'><b>"._AM_SF_ACTION.'</b></td>'; |
|
338 | 338 | echo '</tr>'; |
339 | 339 | //var_dump( $faqsObj); |
340 | 340 | if ($totalfaqs > 0) { |
@@ -342,33 +342,33 @@ discard block |
||
342 | 342 | foreach (array_keys($faqsObj) as $i) { |
343 | 343 | $categoryObj = $allCats[$faqsObj[$i]->categoryid()]; |
344 | 344 | |
345 | - $modify = "<a href='question.php?op=mod&faqid=" . $faqsObj[$i]->faqid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_EDITART . "' alt='" . _AM_SF_EDITART . "'></a>"; |
|
346 | - $delete = "<a href='question.php?op=del&faqid=" . $faqsObj[$i]->faqid() . "'><img src='" . $pathIcon16 . '/delete.png' . "' title='" . _AM_SF_DELETEART . "' alt='" . _AM_SF_DELETEART . "'></a>"; |
|
345 | + $modify = "<a href='question.php?op=mod&faqid=".$faqsObj[$i]->faqid()."'><img src='".$pathIcon16.'/edit.png'."' title='"._AM_SF_EDITART."' alt='"._AM_SF_EDITART."'></a>"; |
|
346 | + $delete = "<a href='question.php?op=del&faqid=".$faqsObj[$i]->faqid()."'><img src='".$pathIcon16.'/delete.png'."' title='"._AM_SF_DELETEART."' alt='"._AM_SF_DELETEART."'></a>"; |
|
347 | 347 | |
348 | 348 | $requester = Smartfaq\Utility::getLinkedUnameFromId($faqsObj[$i]->uid(), $smartModuleConfig['userealname']); |
349 | 349 | |
350 | 350 | echo '<tr>'; |
351 | - echo "<td class='head' align='center'>" . $faqsObj[$i]->faqid() . '</td>'; |
|
352 | - echo "<td class='even' align='left'>" . $categoryObj->name() . '</td>'; |
|
353 | - echo "<td class='even' align='left'><a href='" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/answer.php?faqid=' . $faqsObj[$i]->faqid() . "'>" . $faqsObj[$i]->question(100) . '</a></td>'; |
|
351 | + echo "<td class='head' align='center'>".$faqsObj[$i]->faqid().'</td>'; |
|
352 | + echo "<td class='even' align='left'>".$categoryObj->name().'</td>'; |
|
353 | + echo "<td class='even' align='left'><a href='".XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/answer.php?faqid='.$faqsObj[$i]->faqid()."'>".$faqsObj[$i]->question(100).'</a></td>'; |
|
354 | 354 | |
355 | - echo "<td class='even' align='center'>" . $requester . '</td>'; |
|
355 | + echo "<td class='even' align='center'>".$requester.'</td>'; |
|
356 | 356 | |
357 | - echo "<td class='even' align='center'>" . $faqsObj[$i]->datesub('s') . '</td>'; |
|
357 | + echo "<td class='even' align='center'>".$faqsObj[$i]->datesub('s').'</td>'; |
|
358 | 358 | echo "<td class='even' align='center'> $modify $delete </td>"; |
359 | 359 | echo '</tr>'; |
360 | 360 | } |
361 | 361 | } else { |
362 | 362 | $faqid = -1; |
363 | 363 | echo '<tr>'; |
364 | - echo "<td class='head' align='center' colspan= '7'>" . _AM_SF_NOQUEUED . '</td>'; |
|
364 | + echo "<td class='head' align='center' colspan= '7'>"._AM_SF_NOQUEUED.'</td>'; |
|
365 | 365 | echo '</tr>'; |
366 | 366 | } |
367 | 367 | echo "</table>\n"; |
368 | 368 | echo "<br>\n"; |
369 | 369 | |
370 | 370 | $pagenav = new \XoopsPageNav($totalfaqs, $xoopsModuleConfig['perpage'], $startfaq, 'startfaq'); |
371 | - echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; |
|
371 | + echo '<div style="text-align:right;">'.$pagenav->renderNav().'</div>'; |
|
372 | 372 | echo '</div>'; |
373 | 373 | |
374 | 374 | $totalcategories = $categoryHandler->getCategoriesCount(-1); |
@@ -379,4 +379,4 @@ discard block |
||
379 | 379 | break; |
380 | 380 | } |
381 | 381 | |
382 | -require_once __DIR__ . '/admin_footer.php'; |
|
382 | +require_once __DIR__.'/admin_footer.php'; |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | use XoopsModules\Smartfaq; |
10 | 10 | use XoopsModules\Smartfaq\Constants; |
11 | 11 | |
12 | -require_once __DIR__ . '/admin_header.php'; |
|
12 | +require_once __DIR__.'/admin_header.php'; |
|
13 | 13 | |
14 | 14 | $op = ''; |
15 | 15 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | global $answerHandler, $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts, $pathIcon16, $smartModuleConfig; |
34 | 34 | |
35 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
35 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
36 | 36 | |
37 | 37 | // Creating the FAQ object |
38 | 38 | $faqObj = new Smartfaq\Faq($faqid); |
@@ -69,9 +69,9 @@ discard block |
||
69 | 69 | $official_answer = $faqObj->answer(); |
70 | 70 | |
71 | 71 | Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon'); |
72 | - echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . _AM_SF_SUBMITTED_ANSWER . '</h3>'; |
|
72 | + echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> "._AM_SF_SUBMITTED_ANSWER.'</h3>'; |
|
73 | 73 | echo "<div id='bottomtable'>"; |
74 | - echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_SUBMITTED_ANSWER_INFO . '</span>'; |
|
74 | + echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_SUBMITTED_ANSWER_INFO.'</span>'; |
|
75 | 75 | |
76 | 76 | $proposed_answers = $answerHandler->getAllAnswers($faqid, Constants::SF_AN_STATUS_PROPOSED); |
77 | 77 | |
@@ -81,31 +81,31 @@ discard block |
||
81 | 81 | |
82 | 82 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer> |
83 | 83 | <tr> |
84 | - <td class='head' width='100px'>" . _AM_SF_CATEGORY . "</td> |
|
85 | - <td class='even'>" . $categoryObj->name() . "</td> |
|
84 | + <td class='head' width='100px'>" . _AM_SF_CATEGORY."</td> |
|
85 | + <td class='even'>" . $categoryObj->name()."</td> |
|
86 | 86 | </tr> |
87 | 87 | <tr> |
88 | - <td class='head' width='100px'>" . _AM_SF_QUESTION . "</td> |
|
89 | - <td class='even'>" . $faqObj->question() . '</td> |
|
88 | + <td class='head' width='100px'>" . _AM_SF_QUESTION."</td> |
|
89 | + <td class='even'>" . $faqObj->question().'</td> |
|
90 | 90 | </tr>'; |
91 | 91 | if ($official_answer) { |
92 | 92 | echo " |
93 | 93 | <tr> |
94 | - <td class='head' width='100px'>" . _AM_SF_ANSWER_OFFICIAL . "</td> |
|
95 | - <td class='even'>" . $official_answer->answer() . '</td> |
|
94 | + <td class='head' width='100px'>" . _AM_SF_ANSWER_OFFICIAL."</td> |
|
95 | + <td class='even'>" . $official_answer->answer().'</td> |
|
96 | 96 | </tr>'; |
97 | 97 | } |
98 | 98 | echo "</table><br>\n"; |
99 | 99 | |
100 | 100 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
101 | 101 | echo '<tr>'; |
102 | - echo "<th width='40' class='bg3' align='center'><b>" . _AM_SF_ARTID . '</b></td>'; |
|
103 | - echo "<th class='bg3' class='bg3' align='center'><b>" . _AM_SF_ANSWER . '</b></td>'; |
|
102 | + echo "<th width='40' class='bg3' align='center'><b>"._AM_SF_ARTID.'</b></td>'; |
|
103 | + echo "<th class='bg3' class='bg3' align='center'><b>"._AM_SF_ANSWER.'</b></td>'; |
|
104 | 104 | |
105 | - echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_ANSWERED . '</b></td>'; |
|
105 | + echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_ANSWERED.'</b></td>'; |
|
106 | 106 | |
107 | - echo "<th width='180' class='bg3' align='center'><b>" . _AM_SF_CREATED . '</b></td>'; |
|
108 | - echo "<th width='120' class='bg3' align='center'><b>" . _AM_SF_ACTION . '</b></td>'; |
|
107 | + echo "<th width='180' class='bg3' align='center'><b>"._AM_SF_CREATED.'</b></td>'; |
|
108 | + echo "<th width='120' class='bg3' align='center'><b>"._AM_SF_ACTION.'</b></td>'; |
|
109 | 109 | echo '</tr>'; |
110 | 110 | |
111 | 111 | $merge = ''; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $approve = ''; |
114 | 114 | foreach ($proposed_answers as $proposed_answer) { |
115 | 115 | if (Constants::SF_STATUS_NEW_ANSWER == $faqObj->status()) { |
116 | - $merge = "<a href='faq.php?op=merge&faqid=" |
|
116 | + $merge = "<a href='faq.php?op=merge&faqid=" |
|
117 | 117 | . $faqObj->faqid() |
118 | 118 | . '&answerid=' |
119 | 119 | . $proposed_answer->answerid() |
@@ -126,19 +126,19 @@ discard block |
||
126 | 126 | . "' alt='" |
127 | 127 | . _AM_SF_FAQ_MERGE |
128 | 128 | . "'></a> "; |
129 | - $approve = "<a href='answer.php?op=selectanswer&faqid=" . $faqid . '&answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/on.png' . "' title='" . _AM_SF_FAQ_APPROVE_NEW_ANSWER . "' alt='" . _AM_SF_APPROVESUB . "'></a>"; |
|
129 | + $approve = "<a href='answer.php?op=selectanswer&faqid=".$faqid.'&answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/on.png'."' title='"._AM_SF_FAQ_APPROVE_NEW_ANSWER."' alt='"._AM_SF_APPROVESUB."'></a>"; |
|
130 | 130 | } |
131 | - $modify = "<a href='faq.php?op=mod&faqid=" . $faqObj->faqid() . '&answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_FAQ_REVIEW . "' alt='" . _AM_SF_FAQ_REVIEW . "'></a> "; |
|
132 | - $delete = "<a href='answer.php?op=del&faqid=" . $faqObj->faqid() . '&answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/delete.png' . "' title='" . _AM_SF_DELETESUBM . "' alt='" . _AM_SF_DELETESUBM . "'></a>"; |
|
131 | + $modify = "<a href='faq.php?op=mod&faqid=".$faqObj->faqid().'&answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/edit.png'."' title='"._AM_SF_FAQ_REVIEW."' alt='"._AM_SF_FAQ_REVIEW."'></a> "; |
|
132 | + $delete = "<a href='answer.php?op=del&faqid=".$faqObj->faqid().'&answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/delete.png'."' title='"._AM_SF_DELETESUBM."' alt='"._AM_SF_DELETESUBM."'></a>"; |
|
133 | 133 | echo '<tr>'; |
134 | - echo "<td class='head' align='center'>" . $proposed_answer->answerid() . '</td>'; |
|
135 | - echo "<td class='even' align='left'>" . $proposed_answer->answer() . '</td>'; |
|
134 | + echo "<td class='head' align='center'>".$proposed_answer->answerid().'</td>'; |
|
135 | + echo "<td class='even' align='left'>".$proposed_answer->answer().'</td>'; |
|
136 | 136 | |
137 | 137 | //show name of the answer submitter |
138 | 138 | $submitter = Smartfaq\Utility::getLinkedUnameFromId($proposed_answer->uid(), $smartModuleConfig['userealname']); |
139 | - echo "<td class='even' align='center'>" . $submitter . '</td>'; |
|
139 | + echo "<td class='even' align='center'>".$submitter.'</td>'; |
|
140 | 140 | |
141 | - echo "<td class='even' align='center'>" . $proposed_answer->datesub() . '</td>'; |
|
141 | + echo "<td class='even' align='center'>".$proposed_answer->datesub().'</td>'; |
|
142 | 142 | echo "<td class='even' align='center'> $merge $modify $approve $delete </td>"; |
143 | 143 | echo '</tr>'; |
144 | 144 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | switch ($op) { |
151 | 151 | case 'mod': |
152 | 152 | xoops_cp_header(); |
153 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
153 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
154 | 154 | global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $modify, $myts; |
155 | 155 | $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0; |
156 | 156 | editfaq($faqid); |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | $proposed_answers = $answerHandler->getAllAnswers($faqid, Constants::SF_AN_STATUS_PROPOSED); |
258 | 258 | if (count($proposed_answers) > 0) { |
259 | 259 | // This question has other proposed answer |
260 | - $redirect_page = 'answer.php?op=mod&faqid=' . $faqid; |
|
260 | + $redirect_page = 'answer.php?op=mod&faqid='.$faqid; |
|
261 | 261 | $redirect_msg = _AM_SF_ANSWER_REJECTED; |
262 | 262 | } else { |
263 | 263 | // The question has no other proposed answer |
@@ -281,11 +281,11 @@ discard block |
||
281 | 281 | default: |
282 | 282 | xoops_cp_header(); |
283 | 283 | |
284 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
284 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
285 | 285 | global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule; |
286 | 286 | |
287 | 287 | editfaq(); |
288 | 288 | break; |
289 | 289 | } |
290 | 290 | |
291 | -require_once __DIR__ . '/admin_footer.php'; |
|
291 | +require_once __DIR__.'/admin_footer.php'; |
@@ -28,42 +28,42 @@ discard block |
||
28 | 28 | if (empty($fct)) { |
29 | 29 | $fct = 'preferences'; |
30 | 30 | } |
31 | -include __DIR__ . '/../../../mainfile.php'; |
|
32 | -include XOOPS_ROOT_PATH . '/include/cp_functions.php'; |
|
31 | +include __DIR__.'/../../../mainfile.php'; |
|
32 | +include XOOPS_ROOT_PATH.'/include/cp_functions.php'; |
|
33 | 33 | |
34 | -require_once XOOPS_ROOT_PATH . '/kernel/module.php'; |
|
34 | +require_once XOOPS_ROOT_PATH.'/kernel/module.php'; |
|
35 | 35 | |
36 | 36 | $admintest = 0; |
37 | 37 | |
38 | 38 | if (is_object($xoopsUser)) { |
39 | 39 | $xoopsModule = XoopsModule::getByDirname('system'); |
40 | 40 | if (!$xoopsUser->isAdmin($xoopsModule->mid())) { |
41 | - redirect_header(XOOPS_URL . '/user.php', 3, _NOPERM); |
|
41 | + redirect_header(XOOPS_URL.'/user.php', 3, _NOPERM); |
|
42 | 42 | } |
43 | 43 | $admintest = 1; |
44 | 44 | } else { |
45 | - redirect_header(XOOPS_URL . '/user.php', 3, _NOPERM); |
|
45 | + redirect_header(XOOPS_URL.'/user.php', 3, _NOPERM); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | // include system category definitions |
49 | -require_once XOOPS_ROOT_PATH . '/modules/system/constants.php'; |
|
49 | +require_once XOOPS_ROOT_PATH.'/modules/system/constants.php'; |
|
50 | 50 | $error = false; |
51 | 51 | if (0 != $admintest) { |
52 | 52 | if (isset($fct) && '' != $fct) { |
53 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/' . $fct . '/xoops_version.php')) { |
|
53 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/'.$fct.'/xoops_version.php')) { |
|
54 | 54 | xoops_loadLanguage('admin', 'system'); |
55 | - xoops_loadLanguage('admin/' . $fct, 'system'); |
|
55 | + xoops_loadLanguage('admin/'.$fct, 'system'); |
|
56 | 56 | |
57 | - include XOOPS_ROOT_PATH . '/modules/system/admin/' . $fct . '/xoops_version.php'; |
|
57 | + include XOOPS_ROOT_PATH.'/modules/system/admin/'.$fct.'/xoops_version.php'; |
|
58 | 58 | $syspermHandler = xoops_getHandler('groupperm'); |
59 | 59 | $category = !empty($modversion['category']) ? (int)$modversion['category'] : 0; |
60 | 60 | unset($modversion); |
61 | 61 | if ($category > 0) { |
62 | - $groups =& $xoopsUser->getGroups(); |
|
62 | + $groups = & $xoopsUser->getGroups(); |
|
63 | 63 | if (in_array(XOOPS_GROUP_ADMIN, $groups) |
64 | 64 | || false !== $syspermHandler->checkRight('system_admin', $category, $groups, $xoopsModule->getVar('mid'))) { |
65 | 65 | if (file_exists("../include/{$fct}.inc.php")) { |
66 | - require_once __DIR__ . "/../include/{$fct}.inc.php"; |
|
66 | + require_once __DIR__."/../include/{$fct}.inc.php"; |
|
67 | 67 | } else { |
68 | 68 | $error = true; |
69 | 69 | } |
@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | $error = true; |
72 | 72 | } |
73 | 73 | } elseif ('version' === $fct) { |
74 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php')) { |
|
75 | - require_once XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php'; |
|
74 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php')) { |
|
75 | + require_once XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php'; |
|
76 | 76 | } else { |
77 | 77 | $error = true; |
78 | 78 | } |
@@ -92,26 +92,26 @@ discard block |
||
92 | 92 | echo '<h4>System Configuration</h4>'; |
93 | 93 | echo '<table class="outer" cellpadding="4" cellspacing="1">'; |
94 | 94 | echo '<tr>'; |
95 | - $groups =& $xoopsUser->getGroups(); |
|
95 | + $groups = & $xoopsUser->getGroups(); |
|
96 | 96 | $all_ok = false; |
97 | 97 | if (!in_array(XOOPS_GROUP_ADMIN, $groups)) { |
98 | 98 | $syspermHandler = xoops_getHandler('groupperm'); |
99 | - $ok_syscats =& $syspermHandler->getItemIds('system_admin', $groups); |
|
99 | + $ok_syscats = & $syspermHandler->getItemIds('system_admin', $groups); |
|
100 | 100 | } else { |
101 | 101 | $all_ok = true; |
102 | 102 | } |
103 | - $admin_dir = XOOPS_ROOT_PATH . '/modules/system/admin'; |
|
103 | + $admin_dir = XOOPS_ROOT_PATH.'/modules/system/admin'; |
|
104 | 104 | $handle = opendir($admin_dir); |
105 | 105 | $counter = 0; |
106 | 106 | $class = 'even'; |
107 | 107 | while ($file = readdir($handle)) { |
108 | - if ('cvs' !== strtolower($file) && !preg_match('/[.]/', $file) && is_dir($admin_dir . '/' . $file)) { |
|
109 | - include $admin_dir . '/' . $file . '/xoops_version.php'; |
|
108 | + if ('cvs' !== strtolower($file) && !preg_match('/[.]/', $file) && is_dir($admin_dir.'/'.$file)) { |
|
109 | + include $admin_dir.'/'.$file.'/xoops_version.php'; |
|
110 | 110 | if ($modversion['hasAdmin']) { |
111 | 111 | $category = isset($modversion['category']) ? (int)$modversion['category'] : 0; |
112 | 112 | if (false !== $all_ok || in_array($modversion['category'], $ok_syscats)) { |
113 | 113 | echo "<td class='$class' align='center' valign='bottom' width='19%'>"; |
114 | - echo "<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=' . $file . "'><b>" . trim($modversion['name']) . "</b></a>\n"; |
|
114 | + echo "<a href='".XOOPS_URL.'/modules/system/admin.php?fct='.$file."'><b>".trim($modversion['name'])."</b></a>\n"; |
|
115 | 115 | echo '</td>'; |
116 | 116 | ++$counter; |
117 | 117 | $class = ('even' === $class) ? 'odd' : 'even'; |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | } |
127 | 127 | } |
128 | 128 | while ($counter < 5) { |
129 | - echo '<td class="' . $class . '"> </td>'; |
|
129 | + echo '<td class="'.$class.'"> </td>'; |
|
130 | 130 | $class = ('even' === $class) ? 'odd' : 'even'; |
131 | 131 | ++$counter; |
132 | 132 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | use XoopsModules\Smartfaq; |
11 | 11 | use XoopsModules\Smartfaq\Constants; |
12 | 12 | |
13 | -require_once __DIR__ . '/admin_header.php'; |
|
13 | +require_once __DIR__.'/admin_header.php'; |
|
14 | 14 | |
15 | 15 | // Creating the faq handler object |
16 | 16 | /** @var \XoopsModules\Smartfaq\FaqHandler $faqHandler */ |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | { |
46 | 46 | global $answerHandler, $faqHandler, $categoryHandler, $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts; |
47 | 47 | |
48 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
48 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
49 | 49 | // If there is a parameter, and the id exists, retrieve data: we're editing a faq |
50 | 50 | if (-1 != $faqid) { |
51 | 51 | // Creating the FAQ object |
@@ -147,9 +147,9 @@ discard block |
||
147 | 147 | |
148 | 148 | echo "<br>\n"; |
149 | 149 | Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon'); |
150 | - echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . $collapsableBar_title . '</h3>'; |
|
150 | + echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> ".$collapsableBar_title.'</h3>'; |
|
151 | 151 | echo "<div id='bottomtable'>"; |
152 | - echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . $collapsableBar_info . '</span>'; |
|
152 | + echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'.$collapsableBar_info.'</span>'; |
|
153 | 153 | } else { |
154 | 154 | // there's no parameter, so we're adding a faq |
155 | 155 | $faqObj = $faqHandler->create(); |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $button_caption = _AM_SF_CREATE; |
164 | 164 | |
165 | 165 | Smartfaq\Utility::collapsableBar('bottomtable', 'bottomtableicon'); |
166 | - echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . _AM_SF_CREATESMARTFAQ . '</h3>'; |
|
166 | + echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> "._AM_SF_CREATESMARTFAQ.'</h3>'; |
|
167 | 167 | echo "<div id='bottomtable'>"; |
168 | 168 | } |
169 | 169 | $sform = new \XoopsThemeForm(_AM_SF_SMARTFAQ, 'op', xoops_getenv('PHP_SELF'), 'post', true); |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | |
195 | 195 | // ANSWER |
196 | 196 | if ($merge) { |
197 | - $theanswer = $originalAnswerObj->answer('e') . "\n\n" . sprintf(_AM_SF_NEW_CONTRIBUTION, Smartfaq\Utility::getLinkedUnameFromId($answerObj->uid(), $xoopsModuleConfig['userealname']), $answerObj->datesub(), $answerObj->answer('e')); |
|
197 | + $theanswer = $originalAnswerObj->answer('e')."\n\n".sprintf(_AM_SF_NEW_CONTRIBUTION, Smartfaq\Utility::getLinkedUnameFromId($answerObj->uid(), $xoopsModuleConfig['userealname']), $answerObj->datesub(), $answerObj->answer('e')); |
|
198 | 198 | } else { |
199 | 199 | $theanswer = $answerObj->answer('e'); |
200 | 200 | } |
@@ -243,14 +243,14 @@ discard block |
||
243 | 243 | $sform->addElement(new \XoopsFormText(_AM_SF_SPECIFIC_URL, 'contextpage', 50, 60, $faqObj->contextpage()), false); |
244 | 244 | |
245 | 245 | // EXACT URL? |
246 | - $excaturl_radio = new \XoopsFormRadioYN(_AM_SF_EXACTURL, 'exacturl', $faqObj->exacturl(), ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . ''); |
|
246 | + $excaturl_radio = new \XoopsFormRadioYN(_AM_SF_EXACTURL, 'exacturl', $faqObj->exacturl(), ' '._AM_SF_YES.'', ' '._AM_SF_NO.''); |
|
247 | 247 | $sform->addElement($excaturl_radio); |
248 | 248 | // WEIGHT |
249 | 249 | $sform->addElement(new \XoopsFormText(_AM_SF_WEIGHT, 'weight', 5, 5, $faqObj->weight()), true); |
250 | 250 | |
251 | 251 | // COMMENTS |
252 | 252 | // Code to allow comments |
253 | - $addcomments_radio = new \XoopsFormRadioYN(_AM_SF_ALLOWCOMMENTS, 'cancomment', $faqObj->cancomment(), ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . ''); |
|
253 | + $addcomments_radio = new \XoopsFormRadioYN(_AM_SF_ALLOWCOMMENTS, 'cancomment', $faqObj->cancomment(), ' '._AM_SF_YES.'', ' '._AM_SF_NO.''); |
|
254 | 254 | $sform->addElement($addcomments_radio); |
255 | 255 | |
256 | 256 | // PER ITEM PERMISSIONS |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | } |
265 | 265 | $sform->addElement($groups_checkbox); |
266 | 266 | |
267 | - $partial_view = new \XoopsFormRadioYN(_AM_SF_PARTIALVIEW, 'partialview', $faqObj->partialview(), ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . ''); |
|
267 | + $partial_view = new \XoopsFormRadioYN(_AM_SF_PARTIALVIEW, 'partialview', $faqObj->partialview(), ' '._AM_SF_YES.'', ' '._AM_SF_NO.''); |
|
268 | 268 | $sform->addElement($partial_view); |
269 | 269 | |
270 | 270 | // VARIOUS OPTIONS |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | // OFFLINE |
288 | 288 | if (Constants::SF_STATUS_OFFLINE == $faqObj->status()) { |
289 | 289 | // Back OnLine |
290 | - $offline_radio = new \XoopsFormRadioYN(_AM_SF_OFFLINE_FIELD, 'offline', 1, ' ' . _AM_SF_YES . '', ' ' . _AM_SF_NO . ''); |
|
290 | + $offline_radio = new \XoopsFormRadioYN(_AM_SF_OFFLINE_FIELD, 'offline', 1, ' '._AM_SF_YES.'', ' '._AM_SF_NO.''); |
|
291 | 291 | $sform->addElement($offline_radio); |
292 | 292 | } |
293 | 293 | |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | } |
362 | 362 | |
363 | 363 | xoops_cp_header(); |
364 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
364 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
365 | 365 | |
366 | 366 | editfaq(true, $faqid, $answerid, true); |
367 | 367 | break; |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | xoops_cp_header(); |
383 | 383 | |
384 | 384 | $adminObject->displayNavigation(basename(__FILE__)); |
385 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
385 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
386 | 386 | |
387 | 387 | editfaq(true, $faqid, $answerid); |
388 | 388 | break; |
@@ -520,13 +520,13 @@ discard block |
||
520 | 520 | |
521 | 521 | // Storing the FAQ |
522 | 522 | if (!$faqObj->store()) { |
523 | - redirect_header('javascript:history.go(-1)', 3, $error_msg . Smartfaq\Utility::formatErrors($faqObj->getErrors())); |
|
523 | + redirect_header('javascript:history.go(-1)', 3, $error_msg.Smartfaq\Utility::formatErrors($faqObj->getErrors())); |
|
524 | 524 | } |
525 | 525 | |
526 | 526 | // Storing the answer |
527 | 527 | $answerObj->setVar('faqid', $faqObj->faqid()); |
528 | 528 | if (!$answerObj->store()) { |
529 | - redirect_header('javascript:history.go(-1)', 3, $error_msg . Smartfaq\Utility::formatErrors($answerObj->getErrors())); |
|
529 | + redirect_header('javascript:history.go(-1)', 3, $error_msg.Smartfaq\Utility::formatErrors($answerObj->getErrors())); |
|
530 | 530 | } |
531 | 531 | |
532 | 532 | // Send notifications |
@@ -553,20 +553,20 @@ discard block |
||
553 | 553 | |
554 | 554 | if ($confirm) { |
555 | 555 | if (!$faqHandler->delete($faqObj)) { |
556 | - redirect_header('faq.php', 2, _AM_SF_FAQ_DELETE_ERROR . Smartfaq\Utility::formatErrors($faqObj->getErrors())); |
|
556 | + redirect_header('faq.php', 2, _AM_SF_FAQ_DELETE_ERROR.Smartfaq\Utility::formatErrors($faqObj->getErrors())); |
|
557 | 557 | } |
558 | 558 | |
559 | 559 | redirect_header('faq.php', 2, sprintf(_AM_SF_ARTISDELETED, $faqObj->question())); |
560 | 560 | } else { |
561 | 561 | // no confirm: show deletion condition |
562 | - $faqid = Request::getInt('faqid', 0, 'POST'); |
|
562 | + $faqid = Request::getInt('faqid', 0, 'POST'); |
|
563 | 563 | xoops_cp_header(); |
564 | 564 | xoops_confirm([ |
565 | 565 | 'op' => 'del', |
566 | 566 | 'faqid' => $faqObj->faqid(), |
567 | 567 | 'confirm' => 1, |
568 | 568 | 'name' => $faqObj->question() |
569 | - ], 'faq.php', _AM_SF_DELETETHISARTICLE . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
569 | + ], 'faq.php', _AM_SF_DELETETHISARTICLE." <br>'".$faqObj->question()."'. <br> <br>", _AM_SF_DELETE); |
|
570 | 570 | xoops_cp_footer(); |
571 | 571 | } |
572 | 572 | |
@@ -580,10 +580,10 @@ discard block |
||
580 | 580 | |
581 | 581 | $adminObject->displayNavigation(basename(__FILE__)); |
582 | 582 | |
583 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
584 | - require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
583 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
584 | + require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
585 | 585 | |
586 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/displayfaqs.php'; |
|
586 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/displayfaqs.php'; |
|
587 | 587 | |
588 | 588 | $totalcategories = $categoryHandler->getCategoriesCount(-1); |
589 | 589 | if ($totalcategories > 0) { |
@@ -593,4 +593,4 @@ discard block |
||
593 | 593 | break; |
594 | 594 | } |
595 | 595 | |
596 | -require_once __DIR__ . '/admin_footer.php'; |
|
596 | +require_once __DIR__.'/admin_footer.php'; |