@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * create a new category |
271 | 271 | * |
272 | 272 | * @param bool $isNew flag the new objects as "new"? |
273 | - * @return object sfCategory |
|
273 | + * @return sfCategory sfCategory |
|
274 | 274 | */ |
275 | 275 | public function create($isNew = true) |
276 | 276 | { |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | /** |
313 | 313 | * insert a new category in the database |
314 | 314 | * |
315 | - * @param XoopsObject $category reference to the {@link sfCategory} object |
|
315 | + * @param sfCategory $category reference to the {@link sfCategory} object |
|
316 | 316 | * @param bool $force |
317 | 317 | * @return bool FALSE if failed, TRUE if already present and unchanged or successful |
318 | 318 | */ |
@@ -334,10 +334,10 @@ |
||
334 | 334 | |
335 | 335 | if ($category->isNew()) { |
336 | 336 | $sql = sprintf('INSERT INTO %s (categoryid, parentid, name, description, total, weight, created) VALUES (NULL, %u, %s, %s, %u, %u, %u)', $this->db->prefix('smartfaq_categories'), |
337 | - $parentid, $this->db->quoteString($name), $this->db->quoteString($description), $total, $weight, time()); |
|
337 | + $parentid, $this->db->quoteString($name), $this->db->quoteString($description), $total, $weight, time()); |
|
338 | 338 | } else { |
339 | 339 | $sql = sprintf('UPDATE %s SET parentid = %u, name = %s, description = %s, total = %s, weight = %u, created = %u WHERE categoryid = %u', $this->db->prefix('smartfaq_categories'), $parentid, |
340 | - $this->db->quoteString($name), $this->db->quoteString($description), $total, $weight, $created, $categoryid); |
|
340 | + $this->db->quoteString($name), $this->db->quoteString($description), $total, $weight, $created, $categoryid); |
|
341 | 341 | } |
342 | 342 | if (false !== $force) { |
343 | 343 | $result = $this->db->queryF($sql); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $this->assignVars($id); |
49 | 49 | } else { |
50 | 50 | $categoryHandler = new sfCategoryHandler($this->db); |
51 | - $category =& $categoryHandler->get($id); |
|
51 | + $category = & $categoryHandler->get($id); |
|
52 | 52 | foreach ($category->vars as $k => $v) { |
53 | 53 | $this->assignVar($k, $v['value']); |
54 | 54 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function checkPermission() |
83 | 83 | { |
84 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
84 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
85 | 85 | |
86 | 86 | $userIsAdmin = sf_userIsAdmin(); |
87 | 87 | if ($userIsAdmin) { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $filename = 'open_category.php'; |
159 | 159 | } |
160 | 160 | if ($withAllLink) { |
161 | - $ret = "<a href='" . XOOPS_URL . '/modules/smartfaq/' . $filename . '?categoryid=' . $this->categoryid() . "'>" . $this->name() . '</a>'; |
|
161 | + $ret = "<a href='".XOOPS_URL.'/modules/smartfaq/'.$filename.'?categoryid='.$this->categoryid()."'>".$this->name().'</a>'; |
|
162 | 162 | } else { |
163 | 163 | $ret = $this->name(); |
164 | 164 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | exit; |
171 | 171 | } |
172 | 172 | $parentid = $parentObj->parentid(); |
173 | - $ret = $parentObj->getCategoryPath(true, $open) . ' > ' . $ret; |
|
173 | + $ret = $parentObj->getCategoryPath(true, $open).' > '.$ret; |
|
174 | 174 | } |
175 | 175 | |
176 | 176 | return $ret; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | $tags = array(); |
225 | 225 | $tags['MODULE_NAME'] = $myts->htmlSpecialChars($smartModule->getVar('name')); |
226 | 226 | $tags['CATEGORY_NAME'] = $this->name(); |
227 | - $tags['CATEGORY_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/category.php?categoryid=' . $this->categoryid(); |
|
227 | + $tags['CATEGORY_URL'] = XOOPS_URL.'/modules/'.$smartModule->getVar('dirname').'/category.php?categoryid='.$this->categoryid(); |
|
228 | 228 | |
229 | 229 | $notificationHandler = xoops_getHandler('notification'); |
230 | 230 | $notificationHandler->triggerEvent('global_faq', 0, 'category_created', $tags); |
@@ -240,9 +240,9 @@ discard block |
||
240 | 240 | $category['categoryid'] = $this->categoryid(); |
241 | 241 | $category['name'] = $this->name(); |
242 | 242 | if ($open !== false) { |
243 | - $category['categorylink'] = "<a href='" . XOOPS_URL . '/modules/smartfaq/open_category.php?categoryid=' . $this->categoryid() . "'>" . $this->name() . '</a>'; |
|
243 | + $category['categorylink'] = "<a href='".XOOPS_URL.'/modules/smartfaq/open_category.php?categoryid='.$this->categoryid()."'>".$this->name().'</a>'; |
|
244 | 244 | } else { |
245 | - $category['categorylink'] = "<a href='" . XOOPS_URL . '/modules/smartfaq/category.php?categoryid=' . $this->categoryid() . "'>" . $this->name() . '</a>'; |
|
245 | + $category['categorylink'] = "<a href='".XOOPS_URL.'/modules/smartfaq/category.php?categoryid='.$this->categoryid()."'>".$this->name().'</a>'; |
|
246 | 246 | } |
247 | 247 | $category['total'] = $this->getVar('faqcount'); |
248 | 248 | $category['description'] = $this->description(); |
@@ -291,8 +291,8 @@ discard block |
||
291 | 291 | public function get($id) |
292 | 292 | { |
293 | 293 | $false = false; |
294 | - if ((int)$id > 0) { |
|
295 | - $sql = 'SELECT * FROM ' . $this->db->prefix('smartfaq_categories') . ' WHERE categoryid=' . $id; |
|
294 | + if ((int) $id > 0) { |
|
295 | + $sql = 'SELECT * FROM '.$this->db->prefix('smartfaq_categories').' WHERE categoryid='.$id; |
|
296 | 296 | if (!$result = $this->db->query($sql)) { |
297 | 297 | return $false; |
298 | 298 | } |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | } |
377 | 377 | |
378 | 378 | // Deleteing the sub categories |
379 | - $subcats =& $this->getCategories(0, 0, $category->categoryid()); |
|
379 | + $subcats = & $this->getCategories(0, 0, $category->categoryid()); |
|
380 | 380 | foreach ($subcats as $subcat) { |
381 | 381 | $this->delete($subcat); |
382 | 382 | } |
@@ -413,11 +413,11 @@ discard block |
||
413 | 413 | { |
414 | 414 | $ret = array(); |
415 | 415 | $limit = $start = 0; |
416 | - $sql = 'SELECT * FROM ' . $this->db->prefix('smartfaq_categories'); |
|
416 | + $sql = 'SELECT * FROM '.$this->db->prefix('smartfaq_categories'); |
|
417 | 417 | if (null !== $criteria && is_subclass_of($criteria, 'criteriaelement')) { |
418 | - $sql .= ' ' . $criteria->renderWhere(); |
|
418 | + $sql .= ' '.$criteria->renderWhere(); |
|
419 | 419 | if ($criteria->getSort() != '') { |
420 | - $sql .= ' ORDER BY ' . $criteria->getSort() . ' ' . $criteria->getOrder(); |
|
420 | + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); |
|
421 | 421 | } |
422 | 422 | $limit = $criteria->getLimit(); |
423 | 423 | $start = $criteria->getStart(); |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | $order = 'ASC', |
460 | 460 | $id_as_key = true |
461 | 461 | ) { |
462 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
462 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
463 | 463 | |
464 | 464 | $criteria = new CriteriaCompo(); |
465 | 465 | |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | $smartPermHandler = xoops_getModuleHandler('permission', 'smartfaq'); |
474 | 474 | |
475 | 475 | $categoriesGranted = $smartPermHandler->getPermissions('category'); |
476 | - $criteria->add(new Criteria('categoryid', '(' . implode(',', $categoriesGranted) . ')', 'IN')); |
|
476 | + $criteria->add(new Criteria('categoryid', '('.implode(',', $categoriesGranted).')', 'IN')); |
|
477 | 477 | } |
478 | 478 | $criteria->setStart($start); |
479 | 479 | $criteria->setLimit($limit); |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | $sort = 'weight', |
498 | 498 | $order = 'ASC' |
499 | 499 | ) { |
500 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
500 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
501 | 501 | |
502 | 502 | $criteria = new CriteriaCompo(); |
503 | 503 | |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | $smartPermHandler = xoops_getModuleHandler('permission', 'smartfaq'); |
512 | 512 | |
513 | 513 | $categoriesGranted = $smartPermHandler->getPermissions('category'); |
514 | - $criteria->add(new Criteria('categoryid', '(' . implode(',', $categoriesGranted) . ')', 'IN')); |
|
514 | + $criteria->add(new Criteria('categoryid', '('.implode(',', $categoriesGranted).')', 'IN')); |
|
515 | 515 | } |
516 | 516 | |
517 | 517 | $criteria->add(new Criteria('f.status', _SF_STATUS_OPENED)); |
@@ -520,11 +520,11 @@ discard block |
||
520 | 520 | |
521 | 521 | $ret = array(); |
522 | 522 | $limit = $start = 0; |
523 | - $sql = 'SELECT DISTINCT c.categoryid, c.parentid, c.name, c.description, c.total, c.weight, c.created FROM ' . $this->db->prefix('smartfaq_categories') . ' AS c INNER JOIN ' . $this->db->prefix('smartfaq_faq') . ' AS f ON c.categoryid = f.categoryid'; |
|
523 | + $sql = 'SELECT DISTINCT c.categoryid, c.parentid, c.name, c.description, c.total, c.weight, c.created FROM '.$this->db->prefix('smartfaq_categories').' AS c INNER JOIN '.$this->db->prefix('smartfaq_faq').' AS f ON c.categoryid = f.categoryid'; |
|
524 | 524 | if (null !== ($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
525 | - $sql .= ' ' . $criteria->renderWhere(); |
|
525 | + $sql .= ' '.$criteria->renderWhere(); |
|
526 | 526 | if ($criteria->getSort() != '') { |
527 | - $sql .= ' ORDER BY ' . $criteria->getSort() . ' ' . $criteria->getOrder(); |
|
527 | + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); |
|
528 | 528 | } |
529 | 529 | $limit = $criteria->getLimit(); |
530 | 530 | $start = $criteria->getStart(); |
@@ -553,9 +553,9 @@ discard block |
||
553 | 553 | */ |
554 | 554 | public function getCount($criteria = null) |
555 | 555 | { |
556 | - $sql = 'SELECT COUNT(*) FROM ' . $this->db->prefix('smartfaq_categories'); |
|
556 | + $sql = 'SELECT COUNT(*) FROM '.$this->db->prefix('smartfaq_categories'); |
|
557 | 557 | if (null !== ($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
558 | - $sql .= ' ' . $criteria->renderWhere(); |
|
558 | + $sql .= ' '.$criteria->renderWhere(); |
|
559 | 559 | } |
560 | 560 | $result = $this->db->query($sql); |
561 | 561 | if (!$result) { |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | $smartPermHandler = xoops_getModuleHandler('permission', 'smartfaq'); |
583 | 583 | |
584 | 584 | $categoriesGranted = $smartPermHandler->getPermissions('category'); |
585 | - $criteria->add(new Criteria('categoryid', '(' . implode(',', $categoriesGranted) . ')', 'IN')); |
|
585 | + $criteria->add(new Criteria('categoryid', '('.implode(',', $categoriesGranted).')', 'IN')); |
|
586 | 586 | } |
587 | 587 | } |
588 | 588 | |
@@ -605,16 +605,16 @@ discard block |
||
605 | 605 | $smartPermHandler = xoops_getModuleHandler('permission', 'smartfaq'); |
606 | 606 | |
607 | 607 | $categoriesGranted = $smartPermHandler->getPermissions('category'); |
608 | - $criteria->add(new Criteria('categoryid', '(' . implode(',', $categoriesGranted) . ')', 'IN')); |
|
608 | + $criteria->add(new Criteria('categoryid', '('.implode(',', $categoriesGranted).')', 'IN')); |
|
609 | 609 | } |
610 | 610 | } |
611 | 611 | |
612 | 612 | $criteria->add(new Criteria('f.status', _SF_STATUS_OPENED)); |
613 | 613 | |
614 | - $sql = 'SELECT COUNT(c.categoryid) FROM ' . $this->db->prefix('smartfaq_categories') . ' AS c INNER JOIN ' . $this->db->prefix('smartfaq_faq') . ' AS f ON c.categoryid = f.categoryid'; |
|
614 | + $sql = 'SELECT COUNT(c.categoryid) FROM '.$this->db->prefix('smartfaq_categories').' AS c INNER JOIN '.$this->db->prefix('smartfaq_faq').' AS f ON c.categoryid = f.categoryid'; |
|
615 | 615 | |
616 | 616 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
617 | - $sql .= ' ' . $criteria->renderWhere(); |
|
617 | + $sql .= ' '.$criteria->renderWhere(); |
|
618 | 618 | } |
619 | 619 | |
620 | 620 | $result = $this->db->query($sql); |
@@ -632,13 +632,13 @@ discard block |
||
632 | 632 | */ |
633 | 633 | public function getSubCats($categories) |
634 | 634 | { |
635 | - $criteria = new CriteriaCompo(new Criteria('parentid', '(' . implode(',', array_keys($categories)) . ')'), 'IN'); |
|
635 | + $criteria = new CriteriaCompo(new Criteria('parentid', '('.implode(',', array_keys($categories)).')'), 'IN'); |
|
636 | 636 | $ret = array(); |
637 | 637 | if (!sf_userIsAdmin()) { |
638 | 638 | $smartPermHandler = xoops_getModuleHandler('permission', 'smartfaq'); |
639 | 639 | |
640 | 640 | $categoriesGranted = $smartPermHandler->getPermissions('category'); |
641 | - $criteria->add(new Criteria('categoryid', '(' . implode(',', $categoriesGranted) . ')', 'IN')); |
|
641 | + $criteria->add(new Criteria('categoryid', '('.implode(',', $categoriesGranted).')', 'IN')); |
|
642 | 642 | } |
643 | 643 | $subcats = $this->getObjects($criteria, true); |
644 | 644 | foreach ($subcats as $subcat_id => $subcat) { |
@@ -656,9 +656,9 @@ discard block |
||
656 | 656 | */ |
657 | 657 | public function deleteAll($criteria = null) |
658 | 658 | { |
659 | - $sql = 'DELETE FROM ' . $this->db->prefix('smartfaq_categories'); |
|
659 | + $sql = 'DELETE FROM '.$this->db->prefix('smartfaq_categories'); |
|
660 | 660 | if (null !== ($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
661 | - $sql .= ' ' . $criteria->renderWhere(); |
|
661 | + $sql .= ' '.$criteria->renderWhere(); |
|
662 | 662 | } |
663 | 663 | if (!$this->db->query($sql)) { |
664 | 664 | return false; |
@@ -680,10 +680,10 @@ discard block |
||
680 | 680 | **/ |
681 | 681 | public function updateAll($fieldname, $fieldvalue, CriteriaElement $criteria = null) |
682 | 682 | { |
683 | - $set_clause = is_numeric($fieldvalue) ? $fieldname . ' = ' . $fieldvalue : $fieldname . ' = ' . $this->db->quoteString($fieldvalue); |
|
684 | - $sql = 'UPDATE ' . $this->db->prefix('smartfaq_categories') . ' SET ' . $set_clause; |
|
683 | + $set_clause = is_numeric($fieldvalue) ? $fieldname.' = '.$fieldvalue : $fieldname.' = '.$this->db->quoteString($fieldvalue); |
|
684 | + $sql = 'UPDATE '.$this->db->prefix('smartfaq_categories').' SET '.$set_clause; |
|
685 | 685 | if (null !== ($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
686 | - $sql .= ' ' . $criteria->renderWhere(); |
|
686 | + $sql .= ' '.$criteria->renderWhere(); |
|
687 | 687 | } |
688 | 688 | if (!$this->db->queryF($sql)) { |
689 | 689 | return false; |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | public function faqsCount($cat_id = 0, $status = '') |
710 | 710 | { |
711 | 711 | global $xoopsUser; |
712 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
712 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
713 | 713 | |
714 | 714 | $faqHandler = sf_gethandler('faq'); |
715 | 715 |
@@ -649,7 +649,7 @@ |
||
649 | 649 | |
650 | 650 | /** |
651 | 651 | * @param string $url |
652 | - * @return mixed|string |
|
652 | + * @return string |
|
653 | 653 | */ |
654 | 654 | public static function sf_getxoopslink($url = '') |
655 | 655 | { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | if (!mkdir($folder) && !is_dir($folder)) { |
30 | 30 | throw new \RuntimeException(sprintf('Unable to create the %s directory', $folder)); |
31 | 31 | } else { |
32 | - file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>'); |
|
32 | + file_put_contents($folder.'/index.html', '<script>history.go(-1);</script>'); |
|
33 | 33 | } |
34 | 34 | } |
35 | 35 | } catch (Exception $e) { |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | // @mkdir($dst); |
68 | 68 | while (false !== ($file = readdir($dir))) { |
69 | 69 | if (($file !== '.') && ($file !== '..')) { |
70 | - if (is_dir($src . '/' . $file)) { |
|
71 | - self::recurseCopy($src . '/' . $file, $dst . '/' . $file); |
|
70 | + if (is_dir($src.'/'.$file)) { |
|
71 | + self::recurseCopy($src.'/'.$file, $dst.'/'.$file); |
|
72 | 72 | } else { |
73 | - copy($src . '/' . $file, $dst . '/' . $file); |
|
73 | + copy($src.'/'.$file, $dst.'/'.$file); |
|
74 | 74 | } |
75 | 75 | } |
76 | 76 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $currentVer = substr(XOOPS_VERSION, 6); // get the numeric part of string |
98 | 98 | $currArray = explode('.', $currentVer); |
99 | 99 | if (null === $requiredVer) { |
100 | - $requiredVer = '' . $module->getInfo('min_xoops'); //making sure it's a string |
|
100 | + $requiredVer = ''.$module->getInfo('min_xoops'); //making sure it's a string |
|
101 | 101 | } |
102 | 102 | $reqArray = explode('.', $requiredVer); |
103 | 103 | $success = true; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | break; |
113 | 113 | } |
114 | 114 | } else { |
115 | - if ((int)$v > 0) { // handles versions like x.x.x.0_RC2 |
|
115 | + if ((int) $v > 0) { // handles versions like x.x.x.0_RC2 |
|
116 | 116 | $success = false; |
117 | 117 | break; |
118 | 118 | } |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | break; |
204 | 204 | |
205 | 205 | case 'inside': |
206 | - return XOOPS_URL . '/modules/smartfaq/doc/'; |
|
206 | + return XOOPS_URL.'/modules/smartfaq/doc/'; |
|
207 | 207 | break; |
208 | 208 | |
209 | 209 | case 'custom': |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | { |
221 | 221 | $ret = ''; |
222 | 222 | foreach ($errors as $key => $value) { |
223 | - $ret .= '<br> - ' . $value; |
|
223 | + $ret .= '<br> - '.$value; |
|
224 | 224 | } |
225 | 225 | |
226 | 226 | return $ret; |
@@ -243,11 +243,11 @@ discard block |
||
243 | 243 | $spaces .= '--'; |
244 | 244 | } |
245 | 245 | |
246 | - $ret .= "<option value='" . $categoryObj->categoryid() . "'"; |
|
246 | + $ret .= "<option value='".$categoryObj->categoryid()."'"; |
|
247 | 247 | if ($selectedid == $categoryObj->categoryid()) { |
248 | 248 | $ret .= ' selected'; |
249 | 249 | } |
250 | - $ret .= '>' . $spaces . $categoryObj->name() . "</option>\n"; |
|
250 | + $ret .= '>'.$spaces.$categoryObj->name()."</option>\n"; |
|
251 | 251 | |
252 | 252 | $subCategoriesObj = $categoryHandler->getCategories(0, 0, $categoryObj->categoryid()); |
253 | 253 | if (count($subCategoriesObj) > 0) { |
@@ -268,10 +268,10 @@ discard block |
||
268 | 268 | */ |
269 | 269 | public static function sf_createCategorySelect($selectedid = 0, $parentcategory = 0, $allCatOption = true) |
270 | 270 | { |
271 | - $ret = '' . _MB_SF_SELECTCAT . " <select name='options[]'>"; |
|
271 | + $ret = ''._MB_SF_SELECTCAT." <select name='options[]'>"; |
|
272 | 272 | if ($allCatOption) { |
273 | 273 | $ret .= "<option value='0'"; |
274 | - $ret .= '>' . _MB_SF_ALLCAT . "</option>\n"; |
|
274 | + $ret .= '>'._MB_SF_ALLCAT."</option>\n"; |
|
275 | 275 | } |
276 | 276 | |
277 | 277 | // Creating the category handler object |
@@ -339,9 +339,9 @@ discard block |
||
339 | 339 | { |
340 | 340 | $smartModule = sf_getModuleInfo(); |
341 | 341 | |
342 | - $modfootertxt = 'Module ' . $smartModule->getInfo('name') . ' - Version ' . $smartModule->getInfo('version') . ''; |
|
342 | + $modfootertxt = 'Module '.$smartModule->getInfo('name').' - Version '.$smartModule->getInfo('version').''; |
|
343 | 343 | |
344 | - $modfooter = "<a href='" . $smartModule->getInfo('support_site_url') . "' target='_blank'><img src='" . XOOPS_URL . "/modules/smartfaq/assets/images/sfcssbutton.gif' title='" . $modfootertxt . "' alt='" . $modfootertxt . "'></a>"; |
|
344 | + $modfooter = "<a href='".$smartModule->getInfo('support_site_url')."' target='_blank'><img src='".XOOPS_URL."/modules/smartfaq/assets/images/sfcssbutton.gif' title='".$modfootertxt."' alt='".$modfootertxt."'></a>"; |
|
345 | 345 | |
346 | 346 | return $modfooter; |
347 | 347 | } |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | |
438 | 438 | $gpermHandler = xoops_getHandler('groupperm'); |
439 | 439 | |
440 | - $sql = 'SELECT faqid FROM ' . $xoopsDB->prefix('smartfaq_faq') . " WHERE categoryid = '$categoryid' "; |
|
440 | + $sql = 'SELECT faqid FROM '.$xoopsDB->prefix('smartfaq_faq')." WHERE categoryid = '$categoryid' "; |
|
441 | 441 | $result = $xoopsDB->queryF($sql); |
442 | 442 | |
443 | 443 | if (count($result) > 0) { |
@@ -552,7 +552,7 @@ discard block |
||
552 | 552 | $ret = array(); |
553 | 553 | global $xoopsDB; |
554 | 554 | |
555 | - $result = $xoopsDB->queryF('SELECT * FROM ' . $xoopsDB->prefix('smartfaq_faq') . " WHERE faqid = '$faqid'"); |
|
555 | + $result = $xoopsDB->queryF('SELECT * FROM '.$xoopsDB->prefix('smartfaq_faq')." WHERE faqid = '$faqid'"); |
|
556 | 556 | $ret = $xoopsDB->fetcharray($result); |
557 | 557 | |
558 | 558 | return $ret; |
@@ -571,26 +571,26 @@ discard block |
||
571 | 571 | { |
572 | 572 | global $xoopsUser, $xoopsModule, $xoopsModuleConfig, $xoopsConfig; |
573 | 573 | $adminLinks = ''; |
574 | - $modulePath = XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/'; |
|
574 | + $modulePath = XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/'; |
|
575 | 575 | $page = $open ? 'question.php' : 'faq.php'; |
576 | 576 | if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { |
577 | 577 | // Edit button |
578 | - $adminLinks .= "<a href='" . $modulePath . "admin/$page?op=mod&faqid=" . $faqid . "'><img src='" . $modulePath . "assets/images/links/edit.gif'" . " title='" . _MD_SF_EDIT . "' alt='" . _MD_SF_EDIT . "'></a>"; |
|
578 | + $adminLinks .= "<a href='".$modulePath."admin/$page?op=mod&faqid=".$faqid."'><img src='".$modulePath."assets/images/links/edit.gif'"." title='"._MD_SF_EDIT."' alt='"._MD_SF_EDIT."'></a>"; |
|
579 | 579 | $adminLinks .= ' '; |
580 | 580 | // Delete button |
581 | - $adminLinks .= "<a href='" . $modulePath . "admin/$page?op=del&faqid=" . $faqid . "'><img src='" . $modulePath . "assets/images/links/delete.gif'" . " title='" . _MD_SF_DELETE . "' alt='" . _MD_SF_DELETE . "'></a>"; |
|
581 | + $adminLinks .= "<a href='".$modulePath."admin/$page?op=del&faqid=".$faqid."'><img src='".$modulePath."assets/images/links/delete.gif'"." title='"._MD_SF_DELETE."' alt='"._MD_SF_DELETE."'></a>"; |
|
582 | 582 | $adminLinks .= ' '; |
583 | 583 | } |
584 | 584 | // Print button |
585 | - $adminLinks .= "<a href='" . $modulePath . 'print.php?faqid=' . $faqid . "'><img src='" . $modulePath . "assets/images/links/print.gif' title='" . _MD_SF_PRINT . "' alt='" . _MD_SF_PRINT . "'></a>"; |
|
585 | + $adminLinks .= "<a href='".$modulePath.'print.php?faqid='.$faqid."'><img src='".$modulePath."assets/images/links/print.gif' title='"._MD_SF_PRINT."' alt='"._MD_SF_PRINT."'></a>"; |
|
586 | 586 | $adminLinks .= ' '; |
587 | 587 | // Email button |
588 | - $maillink = 'mailto:?subject=' . sprintf(_MD_SF_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_MD_SF_INTARTFOUND, $xoopsConfig['sitename']) . ': ' . $modulePath . 'faq.php?faqid=' . $faqid; |
|
589 | - $adminLinks .= '<a href="' . $maillink . "\"><img src='" . $modulePath . "assets/images/links/friend.gif' title='" . _MD_SF_MAIL . "' alt='" . _MD_SF_MAIL . "'></a>"; |
|
588 | + $maillink = 'mailto:?subject='.sprintf(_MD_SF_INTARTICLE, $xoopsConfig['sitename']).'&body='.sprintf(_MD_SF_INTARTFOUND, $xoopsConfig['sitename']).': '.$modulePath.'faq.php?faqid='.$faqid; |
|
589 | + $adminLinks .= '<a href="'.$maillink."\"><img src='".$modulePath."assets/images/links/friend.gif' title='"._MD_SF_MAIL."' alt='"._MD_SF_MAIL."'></a>"; |
|
590 | 590 | $adminLinks .= ' '; |
591 | 591 | // Submit New Answer button |
592 | 592 | if ($xoopsModuleConfig['allownewanswer'] && (is_object($xoopsUser) || $xoopsModuleConfig['anonpost'])) { |
593 | - $adminLinks .= "<a href='" . $modulePath . 'answer.php?faqid=' . $faqid . "'><img src='" . $modulePath . "assets/images/links/newanswer.gif' title='" . _MD_SF_SUBMITANSWER . "' alt='" . _MD_SF_SUBMITANSWER . "'></a>"; |
|
593 | + $adminLinks .= "<a href='".$modulePath.'answer.php?faqid='.$faqid."'><img src='".$modulePath."assets/images/links/newanswer.gif' title='"._MD_SF_SUBMITANSWER."' alt='"._MD_SF_SUBMITANSWER."'></a>"; |
|
594 | 594 | $adminLinks .= ' '; |
595 | 595 | } |
596 | 596 | |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | return $userid; |
612 | 612 | } |
613 | 613 | |
614 | - $userid = (int)$userid; |
|
614 | + $userid = (int) $userid; |
|
615 | 615 | if ($userid > 0) { |
616 | 616 | if ($users == array()) { |
617 | 617 | //fetching users |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | if (!isset($users[$userid])) { |
622 | 622 | return $GLOBALS['xoopsConfig']['anonymous']; |
623 | 623 | } |
624 | - $user =& $users[$userid]; |
|
624 | + $user = & $users[$userid]; |
|
625 | 625 | } |
626 | 626 | |
627 | 627 | if (is_object($user)) { |
@@ -635,9 +635,9 @@ discard block |
||
635 | 635 | $fullname = $user->getVar('name'); |
636 | 636 | } |
637 | 637 | if (!empty($fullname)) { |
638 | - $linkeduser = "$fullname [<a href='" . XOOPS_URL . '/userinfo.php?uid=' . $userid . "'>" . $ts->htmlSpecialChars($username) . '</a>]'; |
|
638 | + $linkeduser = "$fullname [<a href='".XOOPS_URL.'/userinfo.php?uid='.$userid."'>".$ts->htmlSpecialChars($username).'</a>]'; |
|
639 | 639 | } else { |
640 | - $linkeduser = "<a href='" . XOOPS_URL . '/userinfo.php?uid=' . $userid . "'>" . ucwords($ts->htmlSpecialChars($username)) . '</a>'; |
|
640 | + $linkeduser = "<a href='".XOOPS_URL.'/userinfo.php?uid='.$userid."'>".ucwords($ts->htmlSpecialChars($username)).'</a>'; |
|
641 | 641 | } |
642 | 642 | |
643 | 643 | return $linkeduser; |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | //--> |
720 | 720 | </script> |
721 | 721 | <?php |
722 | - echo "<h3 style=\"color: #2F5376; margin: 6px 0 0 0; \"><a href='#' onClick=\"toggle('" . $tablename . "'); toggleIcon('" . $iconname . "');\">"; |
|
722 | + echo "<h3 style=\"color: #2F5376; margin: 6px 0 0 0; \"><a href='#' onClick=\"toggle('".$tablename."'); toggleIcon('".$iconname."');\">"; |
|
723 | 723 | } |
724 | 724 | |
725 | 725 | /** |
@@ -732,16 +732,16 @@ discard block |
||
732 | 732 | static $handlers; |
733 | 733 | $name = strtolower(trim($name)); |
734 | 734 | if (!isset($handlers[$name])) { |
735 | - if (file_exists($hnd_file = XOOPS_ROOT_PATH . '/modules/smartfaq/class/' . $name . '.php')) { |
|
735 | + if (file_exists($hnd_file = XOOPS_ROOT_PATH.'/modules/smartfaq/class/'.$name.'.php')) { |
|
736 | 736 | require_once $hnd_file; |
737 | 737 | } |
738 | - $class = 'sf' . ucfirst($name) . 'Handler'; |
|
738 | + $class = 'sf'.ucfirst($name).'Handler'; |
|
739 | 739 | if (class_exists($class)) { |
740 | 740 | $handlers[$name] = new $class($GLOBALS['xoopsDB']); |
741 | 741 | } |
742 | 742 | } |
743 | 743 | if (!$optional && !isset($handlers[$name])) { |
744 | - trigger_error('Class <b>' . $class . '</b> does not exist<br>Handler Name: ' . $name, E_USER_ERROR); |
|
744 | + trigger_error('Class <b>'.$class.'</b> does not exist<br>Handler Name: '.$name, E_USER_ERROR); |
|
745 | 745 | } |
746 | 746 | $false = false; |
747 | 747 |
@@ -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_reply.php'; |
|
9 | +include __DIR__.'/../../mainfile.php'; |
|
10 | +require_once XOOPS_ROOT_PATH.'/include/comment_reply.php'; |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | function b_faqs_recent_questions_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 | |
@@ -60,44 +60,44 @@ discard block |
||
60 | 60 | */ |
61 | 61 | function b_faqs_recent_questions_edit($options) |
62 | 62 | { |
63 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
63 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
64 | 64 | |
65 | 65 | $form = sf_createCategorySelect($options[0]); |
66 | 66 | |
67 | - $form .= ' <br>' . _MB_SF_ORDER . " <select name='options[]'>"; |
|
67 | + $form .= ' <br>'._MB_SF_ORDER." <select name='options[]'>"; |
|
68 | 68 | |
69 | 69 | $form .= "<option value='datesub'"; |
70 | 70 | if ($options[1] === 'datesub') { |
71 | 71 | $form .= ' selected'; |
72 | 72 | } |
73 | - $form .= '>' . _MB_SF_DATE . "</option>\n"; |
|
73 | + $form .= '>'._MB_SF_DATE."</option>\n"; |
|
74 | 74 | |
75 | 75 | $form .= "<option value='counter'"; |
76 | 76 | if ($options[1] === 'counter') { |
77 | 77 | $form .= ' selected'; |
78 | 78 | } |
79 | - $form .= '>' . _MB_SF_HITS . "</option>\n"; |
|
79 | + $form .= '>'._MB_SF_HITS."</option>\n"; |
|
80 | 80 | |
81 | 81 | $form .= "<option value='weight'"; |
82 | 82 | if ($options[1] === 'weight') { |
83 | 83 | $form .= ' selected'; |
84 | 84 | } |
85 | - $form .= '>' . _MB_SF_WEIGHT . "</option>\n"; |
|
85 | + $form .= '>'._MB_SF_WEIGHT."</option>\n"; |
|
86 | 86 | |
87 | 87 | $form .= "</select>\n"; |
88 | 88 | |
89 | - $form .= ' ' . _MB_SF_DISP . " <input type='text' name='options[]' value='" . $options[2] . "'> " . _MB_SF_QUESTIONS . ''; |
|
90 | - $form .= ' <br>' . _MB_SF_CHARS . " <input type='text' name='options[]' value='" . $options[3] . "'> " . _MB_SF_LENGTH . ''; |
|
89 | + $form .= ' '._MB_SF_DISP." <input type='text' name='options[]' value='".$options[2]."'> "._MB_SF_QUESTIONS.''; |
|
90 | + $form .= ' <br>'._MB_SF_CHARS." <input type='text' name='options[]' value='".$options[3]."'> "._MB_SF_LENGTH.''; |
|
91 | 91 | |
92 | - $form .= '<br>' . _MB_SF_SHOW_DATE . " <input type='radio' id='options[]' name='options[]' value='1'"; |
|
92 | + $form .= '<br>'._MB_SF_SHOW_DATE." <input type='radio' id='options[]' name='options[]' value='1'"; |
|
93 | 93 | if ($options[4] == 1) { |
94 | 94 | $form .= ' checked'; |
95 | 95 | } |
96 | - $form .= '> ' . _YES . "<input type='radio' id='options[]' name='options[]' value='0'"; |
|
96 | + $form .= '> '._YES."<input type='radio' id='options[]' name='options[]' value='0'"; |
|
97 | 97 | if ($options[4] == 0) { |
98 | 98 | $form .= ' checked'; |
99 | 99 | } |
100 | - $form .= '> ' . _NO . ''; |
|
100 | + $form .= '> '._NO.''; |
|
101 | 101 | |
102 | 102 | return $form; |
103 | 103 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | function b_faqs_recent_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 | $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 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
89 | + require_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_new_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 | |
@@ -57,44 +57,44 @@ discard block |
||
57 | 57 | function b_faqs_new_edit($options) |
58 | 58 | { |
59 | 59 | global $xoopsDB, $xoopsModule, $xoopsUser; |
60 | - require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
60 | + require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
61 | 61 | |
62 | 62 | $form = sf_createCategorySelect($options[0]); |
63 | 63 | |
64 | - $form .= ' <br>' . _MB_SF_ORDER . " <select name='options[]'>"; |
|
64 | + $form .= ' <br>'._MB_SF_ORDER." <select name='options[]'>"; |
|
65 | 65 | |
66 | 66 | $form .= "<option value='datesub'"; |
67 | 67 | if ($options[1] === 'datesub') { |
68 | 68 | $form .= ' selected'; |
69 | 69 | } |
70 | - $form .= '>' . _MB_SF_DATE . "</option>\n"; |
|
70 | + $form .= '>'._MB_SF_DATE."</option>\n"; |
|
71 | 71 | |
72 | 72 | $form .= "<option value='counter'"; |
73 | 73 | if ($options[1] === 'counter') { |
74 | 74 | $form .= ' selected'; |
75 | 75 | } |
76 | - $form .= '>' . _MB_SF_HITS . "</option>\n"; |
|
76 | + $form .= '>'._MB_SF_HITS."</option>\n"; |
|
77 | 77 | |
78 | 78 | $form .= "<option value='weight'"; |
79 | 79 | if ($options[1] === 'weight') { |
80 | 80 | $form .= ' selected'; |
81 | 81 | } |
82 | - $form .= '>' . _MB_SF_WEIGHT . "</option>\n"; |
|
82 | + $form .= '>'._MB_SF_WEIGHT."</option>\n"; |
|
83 | 83 | |
84 | 84 | $form .= "</select>\n"; |
85 | 85 | |
86 | - $form .= ' ' . _MB_SF_DISP . " <input type='text' name='options[]' value='" . $options[2] . "'> " . _MB_SF_FAQS . ''; |
|
87 | - $form .= ' <br>' . _MB_SF_CHARS . " <input type='text' name='options[]' value='" . $options[3] . "'> " . _MB_SF_LENGTH . ''; |
|
86 | + $form .= ' '._MB_SF_DISP." <input type='text' name='options[]' value='".$options[2]."'> "._MB_SF_FAQS.''; |
|
87 | + $form .= ' <br>'._MB_SF_CHARS." <input type='text' name='options[]' value='".$options[3]."'> "._MB_SF_LENGTH.''; |
|
88 | 88 | |
89 | - $form .= '<br>' . _MB_SF_SHOW_DATE . " <input type='radio' id='options[]' name='options[]' value='1'"; |
|
89 | + $form .= '<br>'._MB_SF_SHOW_DATE." <input type='radio' id='options[]' name='options[]' value='1'"; |
|
90 | 90 | if ($options[4] == 1) { |
91 | 91 | $form .= ' checked'; |
92 | 92 | } |
93 | - $form .= '> ' . _YES . "<input type='radio' id='options[]' name='options[]' value='0'"; |
|
93 | + $form .= '> '._YES."<input type='radio' id='options[]' name='options[]' value='0'"; |
|
94 | 94 | if ($options[4] == 0) { |
95 | 95 | $form .= ' checked'; |
96 | 96 | } |
97 | - $form .= '> ' . _NO . ''; |
|
97 | + $form .= '> '._NO.''; |
|
98 | 98 | |
99 | 99 | return $form; |
100 | 100 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | function b_faqs_context_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 | |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | */ |
49 | 49 | function b_faqs_context_edit($options) |
50 | 50 | { |
51 | - $form = '' . _MB_SF_DISP . ' '; |
|
52 | - $form .= "<input type='text' name='options[]' value='" . $options[0] . "'> " . _MB_SF_FAQS . ''; |
|
51 | + $form = ''._MB_SF_DISP.' '; |
|
52 | + $form .= "<input type='text' name='options[]' value='".$options[0]."'> "._MB_SF_FAQS.''; |
|
53 | 53 | |
54 | 54 | return $form; |
55 | 55 | } |
@@ -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 |