@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | function b_faqs_recent_show($options) |
13 | 13 | { |
14 | - include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
14 | + include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
15 | 15 | $myts = MyTextSanitizer::getInstance(); |
16 | 16 | |
17 | 17 | $smartModule = sf_getModuleInfo(); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | $memberHandler = xoops_getHandler('member'); |
55 | - $users = $memberHandler->getUsers(new Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'), true); |
|
55 | + $users = $memberHandler->getUsers(new Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'), true); |
|
56 | 56 | for ($i = 0, $iMax = count($faqsObj); $i < $iMax; ++$i) { |
57 | 57 | $faqs['categoryid'] = $faqsObj[$i]->categoryid(); |
58 | 58 | $faqs['question'] = $faqsObj[$i]->question($maxQuestionLength); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $block['lang_poster'] = _MB_SF_ANSWEREDBY; |
75 | 75 | $block['lang_date'] = _MB_SF_DATE; |
76 | 76 | $modulename = $myts->htmlSpecialChars($smartModule->getVar('name')); |
77 | - $block['lang_visitfaq'] = _MB_SF_VISITFAQ . ' ' . $modulename; |
|
77 | + $block['lang_visitfaq'] = _MB_SF_VISITFAQ.' '.$modulename; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | return $block; |
@@ -86,34 +86,34 @@ discard block |
||
86 | 86 | */ |
87 | 87 | function b_faqs_recent_edit($options) |
88 | 88 | { |
89 | - include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
89 | + include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
90 | 90 | |
91 | 91 | $form = sf_createCategorySelect($options[0]); |
92 | 92 | |
93 | - $form .= ' <br>' . _MB_SF_ORDER . " <select name='options[]'>"; |
|
93 | + $form .= ' <br>'._MB_SF_ORDER." <select name='options[]'>"; |
|
94 | 94 | |
95 | 95 | $form .= "<option value='datesub'"; |
96 | 96 | if ($options[1] === 'datesub') { |
97 | 97 | $form .= ' selected'; |
98 | 98 | } |
99 | - $form .= '>' . _MB_SF_DATE . "</option>\n"; |
|
99 | + $form .= '>'._MB_SF_DATE."</option>\n"; |
|
100 | 100 | |
101 | 101 | $form .= "<option value='counter'"; |
102 | 102 | if ($options[1] === 'counter') { |
103 | 103 | $form .= ' selected'; |
104 | 104 | } |
105 | - $form .= '>' . _MB_SF_HITS . "</option>\n"; |
|
105 | + $form .= '>'._MB_SF_HITS."</option>\n"; |
|
106 | 106 | |
107 | 107 | $form .= "<option value='weight'"; |
108 | 108 | if ($options[1] === 'weight') { |
109 | 109 | $form .= ' selected'; |
110 | 110 | } |
111 | - $form .= '>' . _MB_SF_WEIGHT . "</option>\n"; |
|
111 | + $form .= '>'._MB_SF_WEIGHT."</option>\n"; |
|
112 | 112 | |
113 | 113 | $form .= "</select>\n"; |
114 | 114 | |
115 | - $form .= ' ' . _MB_SF_DISP . " <input type='text' name='options[]' value='" . $options[2] . "' /> " . _MB_SF_FAQS . ''; |
|
116 | - $form .= ' <br>' . _MB_SF_CHARS . " <input type='text' name='options[]' value='" . $options[3] . "' /> " . _MB_SF_LENGTH . ''; |
|
115 | + $form .= ' '._MB_SF_DISP." <input type='text' name='options[]' value='".$options[2]."' /> "._MB_SF_FAQS.''; |
|
116 | + $form .= ' <br>'._MB_SF_CHARS." <input type='text' name='options[]' value='".$options[3]."' /> "._MB_SF_LENGTH.''; |
|
117 | 117 | |
118 | 118 | return $form; |
119 | 119 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | function b_faqs_most_viewed_show($options) |
13 | 13 | { |
14 | - include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
14 | + include_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 | - include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
51 | + include_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_faq_show() |
11 | 11 | { |
12 | - include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
12 | + include_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_how_show() |
11 | 11 | { |
12 | - include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
12 | + include_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 | - include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
12 | + include_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
13 | 13 | |
14 | 14 | $block = array(); |
15 | 15 |
@@ -6,5 +6,5 @@ |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -include __DIR__ . '/../../mainfile.php'; |
|
10 | -include_once XOOPS_ROOT_PATH . '/include/comment_edit.php'; |
|
9 | +include __DIR__.'/../../mainfile.php'; |
|
10 | +include_once XOOPS_ROOT_PATH.'/include/comment_edit.php'; |
@@ -6,5 +6,5 @@ |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -include __DIR__ . '/../../mainfile.php'; |
|
10 | -include_once XOOPS_ROOT_PATH . '/include/comment_reply.php'; |
|
9 | +include __DIR__.'/../../mainfile.php'; |
|
10 | +include_once XOOPS_ROOT_PATH.'/include/comment_reply.php'; |
@@ -6,5 +6,5 @@ |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -include __DIR__ . '/../../mainfile.php'; |
|
10 | -include XOOPS_ROOT_PATH . '/include/notification_update.php'; |
|
9 | +include __DIR__.'/../../mainfile.php'; |
|
10 | +include XOOPS_ROOT_PATH.'/include/notification_update.php'; |
@@ -82,15 +82,15 @@ |
||
82 | 82 | |
83 | 83 | $xoopsTpl->assign('xcodes', $faqObj->getVar('xcodes')); |
84 | 84 | $xoopsTpl->assign('mail_link', 'mailto:?subject=' |
85 | - . sprintf(_MD_SF_INTARTICLE, $xoopsConfig['sitename']) |
|
86 | - . '&body=' |
|
87 | - . sprintf(_MD_SF_INTARTFOUND, $xoopsConfig['sitename']) |
|
88 | - . ': ' |
|
89 | - . XOOPS_URL |
|
90 | - . '/modules/' |
|
91 | - . $xoopsModule->dirname() |
|
92 | - . '/faq.php?faqid=' |
|
93 | - . $faqObj->getVar('faqid')); |
|
85 | + . sprintf(_MD_SF_INTARTICLE, $xoopsConfig['sitename']) |
|
86 | + . '&body=' |
|
87 | + . sprintf(_MD_SF_INTARTFOUND, $xoopsConfig['sitename']) |
|
88 | + . ': ' |
|
89 | + . XOOPS_URL |
|
90 | + . '/modules/' |
|
91 | + . $xoopsModule->dirname() |
|
92 | + . '/faq.php?faqid=' |
|
93 | + . $faqObj->getVar('faqid')); |
|
94 | 94 | $xoopsTpl->assign('lang_printerpage', _MD_SF_PRINTERFRIENDLY); |
95 | 95 | $xoopsTpl->assign('lang_sendstory', _MD_SF_SENDSTORY); |
96 | 96 | $xoopsTpl->assign('faqid', $faqObj->getVar('faqid')); |
@@ -6,9 +6,9 @@ discard block |
||
6 | 6 | * Licence: GNU |
7 | 7 | */ |
8 | 8 | |
9 | -include_once __DIR__ . '/header.php'; |
|
9 | +include_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); |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | $faqObj->updateCounter(); |
46 | 46 | } |
47 | 47 | $GLOBALS['xoopsOption']['template_main'] = 'smartfaq_faq.tpl'; |
48 | -include_once XOOPS_ROOT_PATH . '/header.php'; |
|
49 | -include_once __DIR__ . '/footer.php'; |
|
48 | +include_once XOOPS_ROOT_PATH.'/header.php'; |
|
49 | +include_once __DIR__.'/footer.php'; |
|
50 | 50 | |
51 | 51 | $faq = $faqObj->toArray(null, $categoryObj, false); |
52 | 52 | |
@@ -106,19 +106,19 @@ discard block |
||
106 | 106 | |
107 | 107 | // Page Title Hack by marcan |
108 | 108 | $module_name = $myts->htmlSpecialChars($xoopsModule->getVar('name')); |
109 | -$xoopsTpl->assign('xoops_pagetitle', $module_name . ' - ' . $categoryObj->name() . ' - ' . $faq['question']); |
|
109 | +$xoopsTpl->assign('xoops_pagetitle', $module_name.' - '.$categoryObj->name().' - '.$faq['question']); |
|
110 | 110 | // End Page Title Hack by marcan |
111 | 111 | |
112 | 112 | // Include the comments if the selected FAQ supports comments |
113 | 113 | if ($faqObj->cancomment() == 1) { |
114 | - include_once XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
114 | + include_once XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | //code to include smartie |
118 | -if (file_exists(XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php')) { |
|
119 | - include_once XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php'; |
|
118 | +if (file_exists(XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php')) { |
|
119 | + include_once XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php'; |
|
120 | 120 | $xoopsTpl->assign('smarttie', 1); |
121 | 121 | } |
122 | 122 | //end code for smarttie |
123 | 123 | |
124 | -include_once XOOPS_ROOT_PATH . '/footer.php'; |
|
124 | +include_once XOOPS_ROOT_PATH.'/footer.php'; |