@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | function b_faqs_random_faq_show() |
11 | 11 | { |
12 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
12 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
13 | 13 | |
14 | 14 | $block = array(); |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | function b_faqs_random_diduno_show() |
11 | 11 | { |
12 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
12 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
13 | 13 | |
14 | 14 | $block = array(); |
15 | 15 |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | function b_faqs_most_viewed_show($options) |
13 | 13 | { |
14 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
14 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
15 | 15 | |
16 | 16 | $block = array(); |
17 | 17 | if ($options[0] == 0) { |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | function b_faqs_most_viewed_edit($options) |
49 | 49 | { |
50 | 50 | global $xoopsDB, $xoopsModule, $xoopsUser; |
51 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
51 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
52 | 52 | |
53 | 53 | $form = sf_createCategorySelect($options[0]); |
54 | 54 | |
55 | - $form .= ' <br>' . _MB_SF_DISP . " <input type='text' name='options[]' value='" . $options[1] . "'> " . _MB_SF_FAQS . ''; |
|
56 | - $form .= ' <br>' . _MB_SF_CHARS . " <input type='text' name='options[]' value='" . $options[2] . "'> " . _MB_SF_LENGTH . ''; |
|
55 | + $form .= ' <br>'._MB_SF_DISP." <input type='text' name='options[]' value='".$options[1]."'> "._MB_SF_FAQS.''; |
|
56 | + $form .= ' <br>'._MB_SF_CHARS." <input type='text' name='options[]' value='".$options[2]."'> "._MB_SF_LENGTH.''; |
|
57 | 57 | |
58 | 58 | return $form; |
59 | 59 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | function b_faqs_random_how_show() |
11 | 11 | { |
12 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
12 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
13 | 13 | |
14 | 14 | $block = array(); |
15 | 15 |
@@ -6,9 +6,9 @@ discard block |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -require_once __DIR__ . '/header.php'; |
|
9 | +require_once __DIR__.'/header.php'; |
|
10 | 10 | |
11 | -$faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0; |
|
11 | +$faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0; |
|
12 | 12 | |
13 | 13 | if ($faqid == 0) { |
14 | 14 | redirect_header('javascript:history.go(-1)', 1, _MD_SF_NOFAQSELECTED); |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | $faqObj->updateCounter(); |
45 | 45 | } |
46 | 46 | $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_faq.tpl'; |
47 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
48 | -require_once __DIR__ . '/footer.php'; |
|
47 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
48 | +require_once __DIR__.'/footer.php'; |
|
49 | 49 | |
50 | 50 | $faq = $faqObj->toArray(null, $categoryObj, false); |
51 | 51 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $xoopsTpl->assign('display_categoryname', false); |
81 | 81 | |
82 | 82 | $xoopsTpl->assign('xcodes', $faqObj->getVar('xcodes')); |
83 | -$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')); |
|
83 | +$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')); |
|
84 | 84 | $xoopsTpl->assign('lang_printerpage', _MD_SF_PRINTERFRIENDLY); |
85 | 85 | $xoopsTpl->assign('lang_sendstory', _MD_SF_SENDSTORY); |
86 | 86 | $xoopsTpl->assign('faqid', $faqObj->getVar('faqid')); |
@@ -96,19 +96,19 @@ discard block |
||
96 | 96 | |
97 | 97 | // Page Title Hack by marcan |
98 | 98 | $module_name = $myts->htmlSpecialChars($xoopsModule->getVar('name')); |
99 | -$xoopsTpl->assign('xoops_pagetitle', $module_name . ' - ' . $categoryObj->name() . ' - ' . $faq['question']); |
|
99 | +$xoopsTpl->assign('xoops_pagetitle', $module_name.' - '.$categoryObj->name().' - '.$faq['question']); |
|
100 | 100 | // End Page Title Hack by marcan |
101 | 101 | |
102 | 102 | // Include the comments if the selected FAQ supports comments |
103 | 103 | if ($faqObj->cancomment() == 1) { |
104 | - require_once XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
104 | + require_once XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | //code to include smartie |
108 | -if (file_exists(XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php')) { |
|
109 | - require_once XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php'; |
|
108 | +if (file_exists(XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php')) { |
|
109 | + require_once XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php'; |
|
110 | 110 | $xoopsTpl->assign('smarttie', 1); |
111 | 111 | } |
112 | 112 | //end code for smarttie |
113 | 113 | |
114 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
114 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
@@ -6,11 +6,11 @@ |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -include __DIR__ . '/../../mainfile.php'; |
|
9 | +include __DIR__.'/../../mainfile.php'; |
|
10 | 10 | |
11 | -require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
12 | -require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/category.php'; |
|
13 | -require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/faq.php'; |
|
14 | -require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/answer.php'; |
|
11 | +require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
12 | +require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/category.php'; |
|
13 | +require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/faq.php'; |
|
14 | +require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/answer.php'; |
|
15 | 15 | |
16 | 16 | $myts = MyTextSanitizer::getInstance(); |
@@ -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_edit.php'; |
|
9 | +include __DIR__.'/../../mainfile.php'; |
|
10 | +require_once XOOPS_ROOT_PATH.'/include/comment_edit.php'; |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | use Xmf\Request; |
10 | 10 | |
11 | -require_once __DIR__ . '/header.php'; |
|
11 | +require_once __DIR__.'/header.php'; |
|
12 | 12 | |
13 | 13 | global $xoopsUser, $xoopsConfig, $xoopsModuleConfig, $xoopsModule; |
14 | 14 | |
@@ -129,12 +129,12 @@ discard block |
||
129 | 129 | |
130 | 130 | // Storing the FAQ object in the database |
131 | 131 | if (!$faqObj->store()) { |
132 | - redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR . sf_formatErrors($faqObj->getErrors())); |
|
132 | + redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR.sf_formatErrors($faqObj->getErrors())); |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | // Storing the answer object in the database |
136 | 136 | if (!$newAnswerObj->store()) { |
137 | - redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR . sf_formatErrors($newAnswerObj->getErrors())); |
|
137 | + redirect_header('javascript:history.go(-1)', 3, _MD_SF_SUBMIT_ERROR.sf_formatErrors($newAnswerObj->getErrors())); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | $notificationHandler = xoops_getHandler('notification'); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | case 2: |
151 | 151 | // Answer for an open question submitted, auto-approved; became Q&A, need approbation |
152 | 152 | if (isset($_POST['notifypub']) && $_POST['notifypub'] == 1) { |
153 | - require_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; |
|
153 | + require_once XOOPS_ROOT_PATH.'/include/notification_constants.php'; |
|
154 | 154 | $notificationHandler->subscribe('faq', $faqObj->faqid(), 'approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE); |
155 | 155 | } |
156 | 156 | // Send notifications |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | case 3: |
161 | 161 | // Answer submitted, needs approbation |
162 | 162 | if (isset($_POST['notifypub']) && $_POST['notifypub'] == 1) { |
163 | - require_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; |
|
163 | + require_once XOOPS_ROOT_PATH.'/include/notification_constants.php'; |
|
164 | 164 | $notificationHandler->subscribe('question', $newAnswerObj->answerid(), 'approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE); |
165 | 165 | } |
166 | 166 | // Send notifications |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | // New answer submitted for a published Q&A, need approbation |
176 | 176 | // Send notifications |
177 | 177 | if (isset($_POST['notifypub']) && $_POST['notifypub'] == 1) { |
178 | - require_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; |
|
178 | + require_once XOOPS_ROOT_PATH.'/include/notification_constants.php'; |
|
179 | 179 | $notificationHandler->subscribe('faq', $newAnswerObj->answerid(), 'answer_approved', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE); |
180 | 180 | } |
181 | 181 | |
@@ -212,20 +212,20 @@ discard block |
||
212 | 212 | } |
213 | 213 | |
214 | 214 | $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_submit.tpl'; |
215 | - require_once XOOPS_ROOT_PATH . '/header.php'; |
|
216 | - require_once __DIR__ . '/footer.php'; |
|
215 | + require_once XOOPS_ROOT_PATH.'/header.php'; |
|
216 | + require_once __DIR__.'/footer.php'; |
|
217 | 217 | |
218 | 218 | $name = $xoopsUser ? ucwords($xoopsUser->getVar('uname')) : 'Anonymous'; |
219 | 219 | |
220 | - $moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
|
220 | + $moduleName = & $myts->displayTarea($xoopsModule->getVar('name')); |
|
221 | 221 | $xoopsTpl->assign('whereInSection', $moduleName); |
222 | 222 | $xoopsTpl->assign('lang_submit', _MD_SF_SUBMITANSWER); |
223 | 223 | |
224 | 224 | $xoopsTpl->assign('lang_intro_title', sprintf(_MD_SF_SUBMITANSWERTO, ucwords($xoopsModule->name()))); |
225 | - $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY . "<b>$name</b>, " . _MD_SF_SUBMITANSWER_INTRO); |
|
225 | + $xoopsTpl->assign('lang_intro_text', _MD_SF_GOODDAY."<b>$name</b>, "._MD_SF_SUBMITANSWER_INTRO); |
|
226 | 226 | |
227 | - require_once __DIR__ . '/include/answer.inc.php'; |
|
227 | + require_once __DIR__.'/include/answer.inc.php'; |
|
228 | 228 | |
229 | - require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
229 | + require_once XOOPS_ROOT_PATH.'/footer.php'; |
|
230 | 230 | break; |
231 | 231 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | //$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; |
27 | 27 | $modversion['modicons16'] = 'assets/images/icons/16'; |
28 | 28 | $modversion['modicons32'] = 'assets/images/icons/32'; |
29 | -$modversion['release_file'] = XOOPS_URL . '/modules/' . $modversion['dirname'] . '/docs/changelog.txt'; |
|
29 | +$modversion['release_file'] = XOOPS_URL.'/modules/'.$modversion['dirname'].'/docs/changelog.txt'; |
|
30 | 30 | $modversion['module_website_url'] = 'www.xoops.org'; |
31 | 31 | $modversion['module_website_name'] = 'XOOPS'; |
32 | 32 | $modversion['min_php'] = '5.5'; |
@@ -96,9 +96,9 @@ discard block |
||
96 | 96 | |
97 | 97 | // Tables created by sql file (without prefix!) |
98 | 98 | $modversion['tables'] = [ |
99 | - $moduleDirName . '_' . 'categories', |
|
100 | - $moduleDirName . '_' . 'faq', |
|
101 | - $moduleDirName . '_' . 'answers' |
|
99 | + $moduleDirName.'_'.'categories', |
|
100 | + $moduleDirName.'_'.'faq', |
|
101 | + $moduleDirName.'_'.'answers' |
|
102 | 102 | ]; |
103 | 103 | |
104 | 104 | // Search |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $modversion['sub'][2]['url'] = 'request.php?op=add'; |
151 | 151 | } |
152 | 152 | |
153 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
153 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
154 | 154 | |
155 | 155 | // Creating the FAQ handler object |
156 | 156 | $faqHandler = sf_gethandler('faq'); |