@@ -29,7 +29,7 @@ |
||
29 | 29 | $startfaq = isset($_GET['startfaq']) ? (int)$_GET['startfaq'] : 0; |
30 | 30 | |
31 | 31 | /** |
32 | - * @param bool $showmenu |
|
32 | + * @param string $showmenu |
|
33 | 33 | * @param int $faqid |
34 | 34 | * @param int $answerid |
35 | 35 | * @param bool $merge |
@@ -562,11 +562,11 @@ |
||
562 | 562 | $faqid = Request::getInt('faqid', 0, 'POST'); |
563 | 563 | xoops_cp_header(); |
564 | 564 | xoops_confirm([ |
565 | - 'op' => 'del', |
|
566 | - 'faqid' => $faqObj->faqid(), |
|
567 | - 'confirm' => 1, |
|
568 | - 'name' => $faqObj->question() |
|
569 | - ], 'faq.php', _AM_SF_DELETETHISARTICLE . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
565 | + 'op' => 'del', |
|
566 | + 'faqid' => $faqObj->faqid(), |
|
567 | + 'confirm' => 1, |
|
568 | + 'name' => $faqObj->question() |
|
569 | + ], 'faq.php', _AM_SF_DELETETHISARTICLE . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
570 | 570 | xoops_cp_footer(); |
571 | 571 | } |
572 | 572 |
@@ -120,9 +120,9 @@ discard block |
||
120 | 120 | * Add appendix |
121 | 121 | * |
122 | 122 | * @access public |
123 | - * @param $permName |
|
123 | + * @param string $permName |
|
124 | 124 | * @param $itemId |
125 | - * @param $itemName |
|
125 | + * @param string $itemName |
|
126 | 126 | */ |
127 | 127 | public function addAppendix($permName, $itemId, $itemName) |
128 | 128 | { |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | /** |
257 | 257 | * Constructor |
258 | 258 | * @param $caption |
259 | - * @param $name |
|
259 | + * @param string $name |
|
260 | 260 | * @param $groupId |
261 | 261 | * @param null $values |
262 | 262 | */ |
@@ -379,20 +379,20 @@ |
||
379 | 379 | $tree .= ' checked'; |
380 | 380 | } |
381 | 381 | $tree .= '>' |
382 | - . $option['name'] |
|
383 | - . '<input type="hidden" name="' |
|
384 | - . $this->getName() |
|
385 | - . '[parents][' |
|
386 | - . $option['id'] |
|
387 | - . ']" value="' |
|
388 | - . implode(':', $parentIds) |
|
389 | - . '"><input type="hidden" name="' |
|
390 | - . $this->getName() |
|
391 | - . '[itemname][' |
|
392 | - . $option['id'] |
|
393 | - . ']" value="' |
|
394 | - . htmlspecialchars($option['name'], ENT_QUOTES) |
|
395 | - . "\"><br>\n"; |
|
382 | + . $option['name'] |
|
383 | + . '<input type="hidden" name="' |
|
384 | + . $this->getName() |
|
385 | + . '[parents][' |
|
386 | + . $option['id'] |
|
387 | + . ']" value="' |
|
388 | + . implode(':', $parentIds) |
|
389 | + . '"><input type="hidden" name="' |
|
390 | + . $this->getName() |
|
391 | + . '[itemname][' |
|
392 | + . $option['id'] |
|
393 | + . ']" value="' |
|
394 | + . htmlspecialchars($option['name'], ENT_QUOTES) |
|
395 | + . "\"><br>\n"; |
|
396 | 396 | if (isset($option['children'])) { |
397 | 397 | foreach ($option['children'] as $child) { |
398 | 398 | array_push($parentIds, $option['id']); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $startfaq = isset($_GET['startfaq']) ? (int)$_GET['startfaq'] : 0; |
27 | 27 | |
28 | 28 | /** |
29 | - * @param bool $showmenu |
|
29 | + * @param string $showmenu |
|
30 | 30 | * @param int $faqid |
31 | 31 | */ |
32 | 32 | function editfaq($showmenu = false, $faqid = -1) |
@@ -284,11 +284,11 @@ |
||
284 | 284 | $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0; |
285 | 285 | xoops_cp_header(); |
286 | 286 | xoops_confirm([ |
287 | - 'op' => 'del', |
|
288 | - 'faqid' => $faqObj->faqid(), |
|
289 | - 'confirm' => 1, |
|
290 | - 'name' => $faqObj->question() |
|
291 | - ], 'question.php', _AM_SF_DELETETHISQUESTION . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
287 | + 'op' => 'del', |
|
288 | + 'faqid' => $faqObj->faqid(), |
|
289 | + 'confirm' => 1, |
|
290 | + 'name' => $faqObj->question() |
|
291 | + ], 'question.php', _AM_SF_DELETETHISQUESTION . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
292 | 292 | xoops_cp_footer(); |
293 | 293 | } |
294 | 294 |
@@ -59,14 +59,14 @@ |
||
59 | 59 | echo $form_view->render(); |
60 | 60 | } else { |
61 | 61 | echo "<img id='toptableicon' src=" |
62 | - . XOOPS_URL |
|
63 | - . '/modules/' |
|
64 | - . $xoopsModule->dirname() |
|
65 | - . "/assets/images/icon/close12.gif alt=''></a> " |
|
66 | - . _AM_SF_PERMISSIONSVIEWMAN |
|
67 | - . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
|
68 | - . _AM_SF_NOPERMSSET |
|
69 | - . '</span>'; |
|
62 | + . XOOPS_URL |
|
63 | + . '/modules/' |
|
64 | + . $xoopsModule->dirname() |
|
65 | + . "/assets/images/icon/close12.gif alt=''></a> " |
|
66 | + . _AM_SF_PERMISSIONSVIEWMAN |
|
67 | + . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
|
68 | + . _AM_SF_NOPERMSSET |
|
69 | + . '</span>'; |
|
70 | 70 | } |
71 | 71 | echo '</div>'; |
72 | 72 |
@@ -70,18 +70,18 @@ |
||
70 | 70 | $myblock->setVar('title', $myts->stripSlashesGPC($btitle)); |
71 | 71 | $myblock->setVar('content', $myts->stripSlashesGPC($bcontent)); |
72 | 72 | $dummyhtml = '<html><head><meta http-equiv="content-type" content="text/html; charset=' |
73 | - . _CHARSET |
|
74 | - . '"><meta http-equiv="content-language" content="' |
|
75 | - . _LANGCODE |
|
76 | - . '"><title>' |
|
77 | - . $xoopsConfig['sitename'] |
|
78 | - . '</title><link rel="stylesheet" type="text/css" media="all" href="' |
|
79 | - . getcss($xoopsConfig['theme_set']) |
|
80 | - . '"></head><body><table><tr><th>' |
|
81 | - . $myblock->getVar('title') |
|
82 | - . '</th></tr><tr><td>' |
|
83 | - . $myblock->getContent('S', $bctype) |
|
84 | - . '</td></tr></table></body></html>'; |
|
73 | + . _CHARSET |
|
74 | + . '"><meta http-equiv="content-language" content="' |
|
75 | + . _LANGCODE |
|
76 | + . '"><title>' |
|
77 | + . $xoopsConfig['sitename'] |
|
78 | + . '</title><link rel="stylesheet" type="text/css" media="all" href="' |
|
79 | + . getcss($xoopsConfig['theme_set']) |
|
80 | + . '"></head><body><table><tr><th>' |
|
81 | + . $myblock->getVar('title') |
|
82 | + . '</th></tr><tr><td>' |
|
83 | + . $myblock->getContent('S', $bctype) |
|
84 | + . '</td></tr></table></body></html>'; |
|
85 | 85 | |
86 | 86 | $dummyfile = '_dummyfile_' . time() . '.html'; |
87 | 87 | $fp = fopen(XOOPS_CACHE_PATH . '/' . $dummyfile, 'w'); |
@@ -116,13 +116,13 @@ |
||
116 | 116 | // Language constants |
117 | 117 | $moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
118 | 118 | $xoopsTpl->assign([ |
119 | - 'lang_on' => _MD_SF_ON, |
|
120 | - 'lang_postedby' => _MD_SF_POSTEDBY, |
|
121 | - 'lang_total' => $totalQnasOnPage, |
|
122 | - 'lang_faq' => _MD_SF_FAQ, |
|
123 | - 'lang_datesub' => _MD_SF_DATESUB, |
|
124 | - 'lang_hits' => _MD_SF_HITS |
|
125 | - ]); |
|
119 | + 'lang_on' => _MD_SF_ON, |
|
120 | + 'lang_postedby' => _MD_SF_POSTEDBY, |
|
121 | + 'lang_total' => $totalQnasOnPage, |
|
122 | + 'lang_faq' => _MD_SF_FAQ, |
|
123 | + 'lang_datesub' => _MD_SF_DATESUB, |
|
124 | + 'lang_hits' => _MD_SF_HITS |
|
125 | + ]); |
|
126 | 126 | |
127 | 127 | $moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
128 | 128 | $xoopsTpl->assign('lang_mainhead', sprintf(_MD_SF_OPEN_WELCOME, $xoopsConfig['sitename'])); |
@@ -15,12 +15,12 @@ |
||
15 | 15 | $xoopsTpl->assign('isAdmin', $isAdmin); |
16 | 16 | |
17 | 17 | $xoopsTpl->assign([ |
18 | - 'lang_on' => _MD_SF_ON, |
|
19 | - 'lang_postedby' => _MD_SF_POSTEDBY, |
|
20 | - 'lang_faq' => _MD_SF_QUESTION, |
|
21 | - 'lang_datesub' => _MD_SF_DATESUB, |
|
22 | - 'lang_hits' => _MD_SF_HITS |
|
23 | - ]); |
|
18 | + 'lang_on' => _MD_SF_ON, |
|
19 | + 'lang_postedby' => _MD_SF_POSTEDBY, |
|
20 | + 'lang_faq' => _MD_SF_QUESTION, |
|
21 | + 'lang_datesub' => _MD_SF_DATESUB, |
|
22 | + 'lang_hits' => _MD_SF_HITS |
|
23 | + ]); |
|
24 | 24 | $xoopsTpl->assign('sectionname', $myts->displayTarea($xoopsModule->getVar('name'))); |
25 | 25 | |
26 | 26 | $xoopsTpl->assign('modulename', $xoopsModule->dirname()); |
@@ -46,18 +46,18 @@ discard block |
||
46 | 46 | |
47 | 47 | echo '<tr>'; |
48 | 48 | echo "<td class='even' align='lefet'>" |
49 | - . $spaces |
|
50 | - . "<a href='" |
|
51 | - . XOOPS_URL |
|
52 | - . '/modules/' |
|
53 | - . $xoopsModule->dirname() |
|
54 | - . '/category.php?categoryid=' |
|
55 | - . $categoryObj->categoryid() |
|
56 | - . "'><img src='" |
|
57 | - . XOOPS_URL |
|
58 | - . "/modules/smartfaq/assets/images/icon/subcat.gif' alt=''> " |
|
59 | - . $categoryObj->name() |
|
60 | - . '</a></td>'; |
|
49 | + . $spaces |
|
50 | + . "<a href='" |
|
51 | + . XOOPS_URL |
|
52 | + . '/modules/' |
|
53 | + . $xoopsModule->dirname() |
|
54 | + . '/category.php?categoryid=' |
|
55 | + . $categoryObj->categoryid() |
|
56 | + . "'><img src='" |
|
57 | + . XOOPS_URL |
|
58 | + . "/modules/smartfaq/assets/images/icon/subcat.gif' alt=''> " |
|
59 | + . $categoryObj->name() |
|
60 | + . '</a></td>'; |
|
61 | 61 | echo "<td class='even' align='left'>" . $description . '</td>'; |
62 | 62 | echo "<td class='even' align='center'>" . $categoryObj->weight() . '</td>'; |
63 | 63 | echo "<td class='even' align='center'> $modify $delete </td>"; |
@@ -314,11 +314,11 @@ discard block |
||
314 | 314 | $categoryid = isset($_GET['categoryid']) ? (int)$_GET['categoryid'] : 0; |
315 | 315 | xoops_cp_header(); |
316 | 316 | xoops_confirm([ |
317 | - 'op' => 'del', |
|
318 | - 'categoryid' => $categoryObj->categoryid(), |
|
319 | - 'confirm' => 1, |
|
320 | - 'name' => $categoryObj->name() |
|
321 | - ], 'category.php', _AM_SF_DELETECOL . " '" . $categoryObj->name() . "'. <br> <br>" . _AM_SF_DELETE_CAT_CONFIRM, _AM_SF_DELETE); |
|
317 | + 'op' => 'del', |
|
318 | + 'categoryid' => $categoryObj->categoryid(), |
|
319 | + 'confirm' => 1, |
|
320 | + 'name' => $categoryObj->name() |
|
321 | + ], 'category.php', _AM_SF_DELETECOL . " '" . $categoryObj->name() . "'. <br> <br>" . _AM_SF_DELETE_CAT_CONFIRM, _AM_SF_DELETE); |
|
322 | 322 | xoops_cp_footer(); |
323 | 323 | } |
324 | 324 | exit(); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | define('_MI_SF_REQUESTINTROMSGDSC', 'Introduction message to be displayed in the Request a Q&A page of the module.'); |
116 | 116 | define( |
117 | 117 | '_MI_SF_REQUESTINTROMSGDEF', |
118 | - 'You did not find the answer to the question you were looking for? No problem! Simply fill the following form in order to request the answer for a new question. The site administrator will review your request and publish this new question in the Open Questions section for someone to answer it!' |
|
118 | + 'You did not find the answer to the question you were looking for? No problem! Simply fill the following form in order to request the answer for a new question. The site administrator will review your request and publish this new question in the Open Questions section for someone to answer it!' |
|
119 | 119 | ); |
120 | 120 | |
121 | 121 | define('_MI_SF_OPENINTROMSG', 'Open Questions section introduction message:'); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | define('_MI_SF_HELP_PATH_SELECT', "Path of SmartFAQ's help files"); |
129 | 129 | define( |
130 | 130 | '_MI_SF_HELP_PATH_SELECT_DSC', |
131 | - "SELECT FROM where you would LIKE TO access SmartFAQ's help files. If you downloaded the 'SmartFAQ's Help Package' AND uploaded it IN 'modules/smartfaq/doc/', you can SELECT 'Inside the module'. Alternatively, you can access the module's help file directly from docs.xoops.org by chosing this in the selector. You can also select 'Custom Path' and specify yourself the path of the help files in the next config option 'Custom path of SmartFAQ's help files'" |
|
131 | + "SELECT FROM where you would LIKE TO access SmartFAQ's help files. If you downloaded the 'SmartFAQ's Help Package' AND uploaded it IN 'modules/smartfaq/doc/', you can SELECT 'Inside the module'. Alternatively, you can access the module's help file directly from docs.xoops.org by chosing this in the selector. You can also select 'Custom Path' and specify yourself the path of the help files in the next config option 'Custom path of SmartFAQ's help files'" |
|
132 | 132 | ); |
133 | 133 | |
134 | 134 | define('_MI_SF_HELP_PATH_CUSTOM', "Custom path of SmartFAQ's help files"); |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | define('_MI_SF_DIR_ATTACHMENT', 'Attachments physical path.'); |
352 | 352 | define( |
353 | 353 | '_MI_SF_DIR_ATTACHMENT_DESC', |
354 | - "Physical path only needs to be set from your xoops root and not before, for example you may have attachments uploaded to www.yoururl.com/uploads/newbb the path entered would then be '/uploads/newbb' never include a trailing slash '/' the thumbnails path becomes '/uploads/newbb/thumbs'" |
|
354 | + "Physical path only needs to be set from your xoops root and not before, for example you may have attachments uploaded to www.yoururl.com/uploads/newbb the path entered would then be '/uploads/newbb' never include a trailing slash '/' the thumbnails path becomes '/uploads/newbb/thumbs'" |
|
355 | 355 | ); |
356 | 356 | define('_MI_SF_PATH_MAGICK', 'Path for ImageMagick'); |
357 | 357 | define('_MI_SF_PATH_MAGICK_DESC', "Usually it is '/usr/bin/X11'. Leave it BLANK if you do not have ImageMagicK installed or for autodetecting."); |