@@ -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'; |
@@ -28,47 +28,47 @@ 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 | -include_once XOOPS_ROOT_PATH . '/kernel/module.php'; |
|
34 | +include_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 | -include_once XOOPS_ROOT_PATH . '/modules/system/constants.php'; |
|
49 | +include_once XOOPS_ROOT_PATH.'/modules/system/constants.php'; |
|
50 | 50 | $error = false; |
51 | 51 | if ($admintest != 0) { |
52 | 52 | if (isset($fct) && $fct != '') { |
53 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/' . $fct . '/xoops_version.php')) { |
|
54 | - include_once XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin.php'; |
|
53 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/'.$fct.'/xoops_version.php')) { |
|
54 | + include_once XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/admin.php'; |
|
55 | 55 | |
56 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin/' . $fct . '.php')) { |
|
57 | - include XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin/' . $fct . '.php'; |
|
58 | - } elseif (file_exists(XOOPS_ROOT_PATH . '/modules/system/language/english/admin/' . $fct . '.php')) { |
|
59 | - include XOOPS_ROOT_PATH . '/modules/system/language/english/admin/' . $fct . '.php'; |
|
56 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/admin/'.$fct.'.php')) { |
|
57 | + include XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/admin/'.$fct.'.php'; |
|
58 | + } elseif (file_exists(XOOPS_ROOT_PATH.'/modules/system/language/english/admin/'.$fct.'.php')) { |
|
59 | + include XOOPS_ROOT_PATH.'/modules/system/language/english/admin/'.$fct.'.php'; |
|
60 | 60 | } |
61 | - include XOOPS_ROOT_PATH . '/modules/system/admin/' . $fct . '/xoops_version.php'; |
|
61 | + include XOOPS_ROOT_PATH.'/modules/system/admin/'.$fct.'/xoops_version.php'; |
|
62 | 62 | $syspermHandler = xoops_getHandler('groupperm'); |
63 | - $category = !empty($modversion['category']) ? (int)$modversion['category'] : 0; |
|
63 | + $category = !empty($modversion['category']) ? (int) $modversion['category'] : 0; |
|
64 | 64 | unset($modversion); |
65 | 65 | if ($category > 0) { |
66 | - $groups =& $xoopsUser->getGroups(); |
|
66 | + $groups = & $xoopsUser->getGroups(); |
|
67 | 67 | if (in_array(XOOPS_GROUP_ADMIN, $groups) |
68 | 68 | || false !== $syspermHandler->checkRight('system_admin', $category, $groups, $xoopsModule->getVar('mid')) |
69 | 69 | ) { |
70 | 70 | if (file_exists("../include/{$fct}.inc.php")) { |
71 | - include_once __DIR__ . "/../include/{$fct}.inc.php"; |
|
71 | + include_once __DIR__."/../include/{$fct}.inc.php"; |
|
72 | 72 | } else { |
73 | 73 | $error = true; |
74 | 74 | } |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | $error = true; |
77 | 77 | } |
78 | 78 | } elseif ($fct === 'version') { |
79 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php')) { |
|
80 | - include_once XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php'; |
|
79 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php')) { |
|
80 | + include_once XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php'; |
|
81 | 81 | } else { |
82 | 82 | $error = true; |
83 | 83 | } |
@@ -101,22 +101,22 @@ discard block |
||
101 | 101 | $all_ok = false; |
102 | 102 | if (!in_array(XOOPS_GROUP_ADMIN, $groups)) { |
103 | 103 | $syspermHandler = xoops_getHandler('groupperm'); |
104 | - $ok_syscats =& $syspermHandler->getItemIds('system_admin', $groups); |
|
104 | + $ok_syscats = & $syspermHandler->getItemIds('system_admin', $groups); |
|
105 | 105 | } else { |
106 | 106 | $all_ok = true; |
107 | 107 | } |
108 | - $admin_dir = XOOPS_ROOT_PATH . '/modules/system/admin'; |
|
108 | + $admin_dir = XOOPS_ROOT_PATH.'/modules/system/admin'; |
|
109 | 109 | $handle = opendir($admin_dir); |
110 | 110 | $counter = 0; |
111 | 111 | $class = 'even'; |
112 | 112 | while ($file = readdir($handle)) { |
113 | - if (strtolower($file) !== 'cvs' && !preg_match('/[.]/', $file) && is_dir($admin_dir . '/' . $file)) { |
|
114 | - include $admin_dir . '/' . $file . '/xoops_version.php'; |
|
113 | + if (strtolower($file) !== 'cvs' && !preg_match('/[.]/', $file) && is_dir($admin_dir.'/'.$file)) { |
|
114 | + include $admin_dir.'/'.$file.'/xoops_version.php'; |
|
115 | 115 | if ($modversion['hasAdmin']) { |
116 | - $category = isset($modversion['category']) ? (int)$modversion['category'] : 0; |
|
116 | + $category = isset($modversion['category']) ? (int) $modversion['category'] : 0; |
|
117 | 117 | if (false !== $all_ok || in_array($modversion['category'], $ok_syscats)) { |
118 | 118 | echo "<td class='$class' align='center' valign='bottom' width='19%'>"; |
119 | - echo "<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=' . $file . "'><b>" . trim($modversion['name']) . "</b></a>\n"; |
|
119 | + echo "<a href='".XOOPS_URL.'/modules/system/admin.php?fct='.$file."'><b>".trim($modversion['name'])."</b></a>\n"; |
|
120 | 120 | echo '</td>'; |
121 | 121 | ++$counter; |
122 | 122 | $class = ($class === 'even') ? 'odd' : 'even'; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | } |
133 | 133 | while ($counter < 5) { |
134 | - echo '<td class="' . $class . '"> </td>'; |
|
134 | + echo '<td class="'.$class.'"> </td>'; |
|
135 | 135 | $class = ($class === 'even') ? 'odd' : 'even'; |
136 | 136 | ++$counter; |
137 | 137 | } |