@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
| 20 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
| 21 | 21 | //require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php'); |
| 22 | 22 | |
| 23 | 23 | //require_once __DIR__ . '/../class/utility.php'; |
@@ -26,16 +26,16 @@ discard block |
||
| 26 | 26 | $moduleDirName = basename(dirname(__DIR__)); |
| 27 | 27 | |
| 28 | 28 | $path = dirname(dirname(dirname(__DIR__))); |
| 29 | -require_once $path . '/kernel/module.php'; |
|
| 30 | -require_once $path . '/class/xoopstree.php'; |
|
| 31 | -require_once $path . '/class/xoopslists.php'; |
|
| 32 | -require_once $path . '/class/pagenav.php'; |
|
| 33 | -require_once $path . '/class/xoopsformloader.php'; |
|
| 34 | - |
|
| 35 | -require_once __DIR__ . '/../include/functions.php'; |
|
| 36 | -require_once __DIR__ . '/../class/category.php'; |
|
| 37 | -require_once __DIR__ . '/../class/faq.php'; |
|
| 38 | -require_once __DIR__ . '/../class/answer.php'; |
|
| 29 | +require_once $path.'/kernel/module.php'; |
|
| 30 | +require_once $path.'/class/xoopstree.php'; |
|
| 31 | +require_once $path.'/class/xoopslists.php'; |
|
| 32 | +require_once $path.'/class/pagenav.php'; |
|
| 33 | +require_once $path.'/class/xoopsformloader.php'; |
|
| 34 | + |
|
| 35 | +require_once __DIR__.'/../include/functions.php'; |
|
| 36 | +require_once __DIR__.'/../class/category.php'; |
|
| 37 | +require_once __DIR__.'/../class/faq.php'; |
|
| 38 | +require_once __DIR__.'/../class/answer.php'; |
|
| 39 | 39 | //require_once __DIR__ . '/../class/utility.php'; |
| 40 | 40 | //require_once __DIR__ . '/../include/common.php'; |
| 41 | 41 | |
@@ -28,46 +28,46 @@ 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 | -require_once XOOPS_ROOT_PATH . '/kernel/module.php'; |
|
| 34 | +require_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 | -require_once XOOPS_ROOT_PATH . '/modules/system/constants.php'; |
|
| 49 | +require_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 | - require_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 | + require_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 | if (file_exists("../include/{$fct}.inc.php")) { |
| 70 | - require_once __DIR__ . "/../include/{$fct}.inc.php"; |
|
| 70 | + require_once __DIR__."/../include/{$fct}.inc.php"; |
|
| 71 | 71 | } else { |
| 72 | 72 | $error = true; |
| 73 | 73 | } |
@@ -75,8 +75,8 @@ discard block |
||
| 75 | 75 | $error = true; |
| 76 | 76 | } |
| 77 | 77 | } elseif ($fct === 'version') { |
| 78 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php')) { |
|
| 79 | - require_once XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php'; |
|
| 78 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php')) { |
|
| 79 | + require_once XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php'; |
|
| 80 | 80 | } else { |
| 81 | 81 | $error = true; |
| 82 | 82 | } |
@@ -100,22 +100,22 @@ discard block |
||
| 100 | 100 | $all_ok = false; |
| 101 | 101 | if (!in_array(XOOPS_GROUP_ADMIN, $groups)) { |
| 102 | 102 | $syspermHandler = xoops_getHandler('groupperm'); |
| 103 | - $ok_syscats =& $syspermHandler->getItemIds('system_admin', $groups); |
|
| 103 | + $ok_syscats = & $syspermHandler->getItemIds('system_admin', $groups); |
|
| 104 | 104 | } else { |
| 105 | 105 | $all_ok = true; |
| 106 | 106 | } |
| 107 | - $admin_dir = XOOPS_ROOT_PATH . '/modules/system/admin'; |
|
| 107 | + $admin_dir = XOOPS_ROOT_PATH.'/modules/system/admin'; |
|
| 108 | 108 | $handle = opendir($admin_dir); |
| 109 | 109 | $counter = 0; |
| 110 | 110 | $class = 'even'; |
| 111 | 111 | while ($file = readdir($handle)) { |
| 112 | - if (strtolower($file) !== 'cvs' && !preg_match('/[.]/', $file) && is_dir($admin_dir . '/' . $file)) { |
|
| 113 | - include $admin_dir . '/' . $file . '/xoops_version.php'; |
|
| 112 | + if (strtolower($file) !== 'cvs' && !preg_match('/[.]/', $file) && is_dir($admin_dir.'/'.$file)) { |
|
| 113 | + include $admin_dir.'/'.$file.'/xoops_version.php'; |
|
| 114 | 114 | if ($modversion['hasAdmin']) { |
| 115 | - $category = isset($modversion['category']) ? (int)$modversion['category'] : 0; |
|
| 115 | + $category = isset($modversion['category']) ? (int) $modversion['category'] : 0; |
|
| 116 | 116 | if (false !== $all_ok || in_array($modversion['category'], $ok_syscats)) { |
| 117 | 117 | echo "<td class='$class' align='center' valign='bottom' width='19%'>"; |
| 118 | - echo "<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=' . $file . "'><b>" . trim($modversion['name']) . "</b></a>\n"; |
|
| 118 | + echo "<a href='".XOOPS_URL.'/modules/system/admin.php?fct='.$file."'><b>".trim($modversion['name'])."</b></a>\n"; |
|
| 119 | 119 | echo '</td>'; |
| 120 | 120 | ++$counter; |
| 121 | 121 | $class = ($class === 'even') ? 'odd' : 'even'; |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | while ($counter < 5) { |
| 133 | - echo '<td class="' . $class . '"> </td>'; |
|
| 133 | + echo '<td class="'.$class.'"> </td>'; |
|
| 134 | 134 | $class = ($class === 'even') ? 'odd' : 'even'; |
| 135 | 135 | ++$counter; |
| 136 | 136 | } |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * Licence: GNU |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -require_once __DIR__ . '/admin_header.php'; |
|
| 9 | +require_once __DIR__.'/admin_header.php'; |
|
| 10 | 10 | $myts = MyTextSanitizer::getInstance(); |
| 11 | 11 | |
| 12 | 12 | global $xoopsModule; |
@@ -39,46 +39,46 @@ discard block |
||
| 39 | 39 | echo "</table>"; |
| 40 | 40 | */ |
| 41 | 41 | // Left headings... |
| 42 | -echo "<img src='" . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $versioninfo->getInfo('image') . "' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'></a>"; |
|
| 43 | -echo "<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>" . $versioninfo->getInfo('name') . ' version ' . $versioninfo->getInfo('version') . ' (' . $versioninfo->getInfo('status_version') . ')</div>'; |
|
| 42 | +echo "<img src='".XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/'.$versioninfo->getInfo('image')."' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'></a>"; |
|
| 43 | +echo "<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>".$versioninfo->getInfo('name').' version '.$versioninfo->getInfo('version').' ('.$versioninfo->getInfo('status_version').')</div>'; |
|
| 44 | 44 | if ($versioninfo->getInfo('author_realname') != '') { |
| 45 | - $author_name = $versioninfo->getInfo('author') . ' (' . $versioninfo->getInfo('author_realname') . ')'; |
|
| 45 | + $author_name = $versioninfo->getInfo('author').' ('.$versioninfo->getInfo('author_realname').')'; |
|
| 46 | 46 | } else { |
| 47 | 47 | $author_name = $versioninfo->getInfo('author'); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | -echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>" . _AM_SF_BY . ' ' . $author_name; |
|
| 50 | +echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>"._AM_SF_BY.' '.$author_name; |
|
| 51 | 51 | echo '</div>'; |
| 52 | -echo "<div style = 'line-height: 16px; display: block;'>" . $versioninfo->getInfo('license') . "</div>\n"; |
|
| 52 | +echo "<div style = 'line-height: 16px; display: block;'>".$versioninfo->getInfo('license')."</div>\n"; |
|
| 53 | 53 | |
| 54 | 54 | // Developers Information |
| 55 | 55 | echo "<br><table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 56 | 56 | echo '<tr>'; |
| 57 | -echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_AUTHOR_INFO . '</b></td>'; |
|
| 57 | +echo "<td colspan='2' class='bg3' align='left'><b>"._MI_SF_AUTHOR_INFO.'</b></td>'; |
|
| 58 | 58 | echo '</tr>'; |
| 59 | 59 | |
| 60 | 60 | if ($versioninfo->getInfo('developer_lead') != '') { |
| 61 | 61 | echo '<tr>'; |
| 62 | - echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_LEAD . '</td>'; |
|
| 63 | - echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_lead') . '</td>'; |
|
| 62 | + echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_LEAD.'</td>'; |
|
| 63 | + echo "<td class='even' align='left'>".$versioninfo->getInfo('developer_lead').'</td>'; |
|
| 64 | 64 | echo '</tr>'; |
| 65 | 65 | } |
| 66 | 66 | if ($versioninfo->getInfo('developer_contributor') != '') { |
| 67 | 67 | echo '<tr>'; |
| 68 | - echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_CONTRIBUTOR . '</td>'; |
|
| 69 | - echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_contributor') . '</td>'; |
|
| 68 | + echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_CONTRIBUTOR.'</td>'; |
|
| 69 | + echo "<td class='even' align='left'>".$versioninfo->getInfo('developer_contributor').'</td>'; |
|
| 70 | 70 | echo '</tr>'; |
| 71 | 71 | } |
| 72 | 72 | if ($versioninfo->getInfo('developer_website_url') != '') { |
| 73 | 73 | echo '<tr>'; |
| 74 | - echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_WEBSITE . '</td>'; |
|
| 75 | - echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('developer_website_url') . "' target='blank'>" . $versioninfo->getInfo('developer_website_name') . '</a></td>'; |
|
| 74 | + echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_WEBSITE.'</td>'; |
|
| 75 | + echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('developer_website_url')."' target='blank'>".$versioninfo->getInfo('developer_website_name').'</a></td>'; |
|
| 76 | 76 | echo '</tr>'; |
| 77 | 77 | } |
| 78 | 78 | if ($versioninfo->getInfo('developer_email') != '') { |
| 79 | 79 | echo '<tr>'; |
| 80 | - echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_EMAIL . '</td>'; |
|
| 81 | - echo "<td class='even' align='left'><a href='mailto:" . $versioninfo->getInfo('developer_email') . "'>" . $versioninfo->getInfo('developer_email') . '</a></td>'; |
|
| 80 | + echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_EMAIL.'</td>'; |
|
| 81 | + echo "<td class='even' align='left'><a href='mailto:".$versioninfo->getInfo('developer_email')."'>".$versioninfo->getInfo('developer_email').'</a></td>'; |
|
| 82 | 82 | echo '</tr>'; |
| 83 | 83 | } |
| 84 | 84 | |
@@ -87,47 +87,47 @@ discard block |
||
| 87 | 87 | // Module Developpment information |
| 88 | 88 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 89 | 89 | echo '<tr>'; |
| 90 | -echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_MODULE_INFO . '</b></td>'; |
|
| 90 | +echo "<td colspan='2' class='bg3' align='left'><b>"._MI_SF_MODULE_INFO.'</b></td>'; |
|
| 91 | 91 | echo '</tr>'; |
| 92 | 92 | |
| 93 | 93 | if ($versioninfo->getInfo('date') != '') { |
| 94 | 94 | echo '<tr>'; |
| 95 | - echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_RELEASE_DATE . '</td>'; |
|
| 96 | - echo "<td class='even' align='left'>" . $versioninfo->getInfo('date') . '</td>'; |
|
| 95 | + echo "<td class='head' width = '200' align='left'>"._MI_SF_MODULE_RELEASE_DATE.'</td>'; |
|
| 96 | + echo "<td class='even' align='left'>".$versioninfo->getInfo('date').'</td>'; |
|
| 97 | 97 | echo '</tr>'; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | if ($versioninfo->getInfo('status') != '') { |
| 101 | 101 | echo '<tr>'; |
| 102 | - echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_STATUS . '</td>'; |
|
| 103 | - echo "<td class='even' align='left'>" . $versioninfo->getInfo('status') . '</td>'; |
|
| 102 | + echo "<td class='head' width = '200' align='left'>"._MI_SF_MODULE_STATUS.'</td>'; |
|
| 103 | + echo "<td class='even' align='left'>".$versioninfo->getInfo('status').'</td>'; |
|
| 104 | 104 | echo '</tr>'; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | if ($versioninfo->getInfo('demo_site_url') != '') { |
| 108 | 108 | echo '<tr>'; |
| 109 | - echo "<td class='head' align='left'>" . _MI_SF_MODULE_DEMO . '</td>'; |
|
| 110 | - echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('demo_site_url') . "' target='blank'>" . $versioninfo->getInfo('demo_site_name') . '</a></td>'; |
|
| 109 | + echo "<td class='head' align='left'>"._MI_SF_MODULE_DEMO.'</td>'; |
|
| 110 | + echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('demo_site_url')."' target='blank'>".$versioninfo->getInfo('demo_site_name').'</a></td>'; |
|
| 111 | 111 | echo '</tr>'; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | if ($versioninfo->getInfo('support_site_url') != '') { |
| 115 | 115 | echo '<tr>'; |
| 116 | - echo "<td class='head' align='left'>" . _MI_SF_MODULE_SUPPORT . '</td>'; |
|
| 117 | - echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('support_site_url') . "' target='blank'>" . $versioninfo->getInfo('support_site_name') . '</a></td>'; |
|
| 116 | + echo "<td class='head' align='left'>"._MI_SF_MODULE_SUPPORT.'</td>'; |
|
| 117 | + echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('support_site_url')."' target='blank'>".$versioninfo->getInfo('support_site_name').'</a></td>'; |
|
| 118 | 118 | echo '</tr>'; |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | if ($versioninfo->getInfo('submit_bug') != '') { |
| 122 | 122 | echo '<tr>'; |
| 123 | - echo "<td class='head' align='left'>" . _MI_SF_MODULE_BUG . '</td>'; |
|
| 124 | - echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_bug') . "' target='blank'>" . 'Submit a Bug in SmartFAQ Bug Tracker' . '</a></td>'; |
|
| 123 | + echo "<td class='head' align='left'>"._MI_SF_MODULE_BUG.'</td>'; |
|
| 124 | + echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('submit_bug')."' target='blank'>".'Submit a Bug in SmartFAQ Bug Tracker'.'</a></td>'; |
|
| 125 | 125 | echo '</tr>'; |
| 126 | 126 | } |
| 127 | 127 | if ($versioninfo->getInfo('submit_feature') != '') { |
| 128 | 128 | echo '<tr>'; |
| 129 | - echo "<td class='head' align='left'>" . _MI_SF_MODULE_FEATURE . '</td>'; |
|
| 130 | - echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_feature') . "' target='blank'>" . 'Request a feature in the SmartFAQ Feature Tracker' . '</a></td>'; |
|
| 129 | + echo "<td class='head' align='left'>"._MI_SF_MODULE_FEATURE.'</td>'; |
|
| 130 | + echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('submit_feature')."' target='blank'>".'Request a feature in the SmartFAQ Feature Tracker'.'</a></td>'; |
|
| 131 | 131 | echo '</tr>'; |
| 132 | 132 | } |
| 133 | 133 | |
@@ -137,11 +137,11 @@ discard block |
||
| 137 | 137 | echo "<br>\n"; |
| 138 | 138 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 139 | 139 | echo '<tr>'; |
| 140 | - echo "<td class='bg3' align='left'><b>" . _MI_SF_MODULE_DISCLAIMER . '</b></td>'; |
|
| 140 | + echo "<td class='bg3' align='left'><b>"._MI_SF_MODULE_DISCLAIMER.'</b></td>'; |
|
| 141 | 141 | echo '</tr>'; |
| 142 | 142 | |
| 143 | 143 | echo '<tr>'; |
| 144 | - echo "<td class='even' align='left'>" . $versioninfo->getInfo('warning') . '</td>'; |
|
| 144 | + echo "<td class='even' align='left'>".$versioninfo->getInfo('warning').'</td>'; |
|
| 145 | 145 | echo '</tr>'; |
| 146 | 146 | |
| 147 | 147 | echo '</table>'; |
@@ -151,11 +151,11 @@ discard block |
||
| 151 | 151 | echo "<br>\n"; |
| 152 | 152 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 153 | 153 | echo '<tr>'; |
| 154 | - echo "<td class='bg3' align='left'><b>" . _MI_SF_AUTHOR_WORD . '</b></td>'; |
|
| 154 | + echo "<td class='bg3' align='left'><b>"._MI_SF_AUTHOR_WORD.'</b></td>'; |
|
| 155 | 155 | echo '</tr>'; |
| 156 | 156 | |
| 157 | 157 | echo '<tr>'; |
| 158 | - echo "<td class='even' align='left'>" . $versioninfo->getInfo('author_word') . '</td>'; |
|
| 158 | + echo "<td class='even' align='left'>".$versioninfo->getInfo('author_word').'</td>'; |
|
| 159 | 159 | echo '</tr>'; |
| 160 | 160 | |
| 161 | 161 | echo '</table>'; |
@@ -166,11 +166,11 @@ discard block |
||
| 166 | 166 | echo "<br>\n"; |
| 167 | 167 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 168 | 168 | echo '<tr>'; |
| 169 | - echo "<td class='bg3' align='left'><b>" . _MI_SF_VERSION_HISTORY . '</b></td>'; |
|
| 169 | + echo "<td class='bg3' align='left'><b>"._MI_SF_VERSION_HISTORY.'</b></td>'; |
|
| 170 | 170 | echo '</tr>'; |
| 171 | 171 | |
| 172 | 172 | echo '<tr>'; |
| 173 | - echo "<td class='even' align='left'>" . $versioninfo->getInfo('version_history') . '</td>'; |
|
| 173 | + echo "<td class='even' align='left'>".$versioninfo->getInfo('version_history').'</td>'; |
|
| 174 | 174 | echo '</tr>'; |
| 175 | 175 | |
| 176 | 176 | echo '</table>'; |
@@ -180,4 +180,4 @@ discard block |
||
| 180 | 180 | //$modfooter = sf_modFooter(); |
| 181 | 181 | //echo "<div align='center'>" . $modfooter . "</div>"; |
| 182 | 182 | //xoops_cp_footer(); |
| 183 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 183 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -18,6 +18,6 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32); |
| 21 | -echo "<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . " </div>\n" . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>'; |
|
| 21 | +echo "<div class='adminfooter'>\n"." <div style='text-align: center;'>\n"." <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"." </div>\n".' '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>'; |
|
| 22 | 22 | |
| 23 | 23 | xoops_cp_footer(); |
@@ -110,18 +110,18 @@ |
||
| 110 | 110 | foreach ($proposed_answers as $proposed_answer) { |
| 111 | 111 | if ($faqObj->status() == _SF_STATUS_NEW_ANSWER) { |
| 112 | 112 | $merge = "<a href='faq.php?op=merge&faqid=" |
| 113 | - . $faqObj->faqid() |
|
| 114 | - . '&answerid=' |
|
| 115 | - . $proposed_answer->answerid() |
|
| 116 | - . "'><img src='" |
|
| 117 | - . XOOPS_URL |
|
| 118 | - . '/modules/' |
|
| 119 | - . $xoopsModule->dirname() |
|
| 120 | - . "/assets/images/icon/merge.gif' title='" |
|
| 121 | - . _AM_SF_FAQ_MERGE |
|
| 122 | - . "' alt='" |
|
| 123 | - . _AM_SF_FAQ_MERGE |
|
| 124 | - . "'></a> "; |
|
| 113 | + . $faqObj->faqid() |
|
| 114 | + . '&answerid=' |
|
| 115 | + . $proposed_answer->answerid() |
|
| 116 | + . "'><img src='" |
|
| 117 | + . XOOPS_URL |
|
| 118 | + . '/modules/' |
|
| 119 | + . $xoopsModule->dirname() |
|
| 120 | + . "/assets/images/icon/merge.gif' title='" |
|
| 121 | + . _AM_SF_FAQ_MERGE |
|
| 122 | + . "' alt='" |
|
| 123 | + . _AM_SF_FAQ_MERGE |
|
| 124 | + . "'></a> "; |
|
| 125 | 125 | $approve = "<a href='answer.php?op=selectanswer&faqid=" . $faqid . '&answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/on.png' . "' title='" . _AM_SF_FAQ_APPROVE_NEW_ANSWER . "' alt='" . _AM_SF_APPROVESUB . "'></a>"; |
| 126 | 126 | } |
| 127 | 127 | $modify = "<a href='faq.php?op=mod&faqid=" . $faqObj->faqid() . '&answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_FAQ_REVIEW . "' alt='" . _AM_SF_FAQ_REVIEW . "'></a> "; |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * Licence: GNU |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -require_once __DIR__ . '/admin_header.php'; |
|
| 9 | +require_once __DIR__.'/admin_header.php'; |
|
| 10 | 10 | |
| 11 | 11 | $op = ''; |
| 12 | 12 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | global $answerHandler, $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts, $pathIcon16, $smartModuleConfig; |
| 30 | 30 | |
| 31 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 31 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 32 | 32 | |
| 33 | 33 | // Creating the FAQ object |
| 34 | 34 | $faqObj = new sfFaq($faqid); |
@@ -65,9 +65,9 @@ discard block |
||
| 65 | 65 | $official_answer = $faqObj->answer(); |
| 66 | 66 | |
| 67 | 67 | sf_collapsableBar('bottomtable', 'bottomtableicon'); |
| 68 | - echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . _AM_SF_SUBMITTED_ANSWER . '</h3>'; |
|
| 68 | + echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> "._AM_SF_SUBMITTED_ANSWER.'</h3>'; |
|
| 69 | 69 | echo "<div id='bottomtable'>"; |
| 70 | - echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_SUBMITTED_ANSWER_INFO . '</span>'; |
|
| 70 | + echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_SUBMITTED_ANSWER_INFO.'</span>'; |
|
| 71 | 71 | |
| 72 | 72 | $proposed_answers = $answerHandler->getAllAnswers($faqid, _SF_AN_STATUS_PROPOSED); |
| 73 | 73 | |
@@ -77,31 +77,31 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer> |
| 79 | 79 | <tr> |
| 80 | - <td class='head' width='100px'>" . _AM_SF_CATEGORY . "</td> |
|
| 81 | - <td class='even'>" . $categoryObj->name() . "</td> |
|
| 80 | + <td class='head' width='100px'>" . _AM_SF_CATEGORY."</td> |
|
| 81 | + <td class='even'>" . $categoryObj->name()."</td> |
|
| 82 | 82 | </tr> |
| 83 | 83 | <tr> |
| 84 | - <td class='head' width='100px'>" . _AM_SF_QUESTION . "</td> |
|
| 85 | - <td class='even'>" . $faqObj->question() . '</td> |
|
| 84 | + <td class='head' width='100px'>" . _AM_SF_QUESTION."</td> |
|
| 85 | + <td class='even'>" . $faqObj->question().'</td> |
|
| 86 | 86 | </tr>'; |
| 87 | 87 | if ($official_answer) { |
| 88 | 88 | echo " |
| 89 | 89 | <tr> |
| 90 | - <td class='head' width='100px'>" . _AM_SF_ANSWER_OFFICIAL . "</td> |
|
| 91 | - <td class='even'>" . $official_answer->answer() . '</td> |
|
| 90 | + <td class='head' width='100px'>" . _AM_SF_ANSWER_OFFICIAL."</td> |
|
| 91 | + <td class='even'>" . $official_answer->answer().'</td> |
|
| 92 | 92 | </tr>'; |
| 93 | 93 | } |
| 94 | 94 | echo "</table><br>\n"; |
| 95 | 95 | |
| 96 | 96 | echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; |
| 97 | 97 | echo '<tr>'; |
| 98 | - echo "<th width='40' class='bg3' align='center'><b>" . _AM_SF_ARTID . '</b></td>'; |
|
| 99 | - echo "<th class='bg3' class='bg3' align='center'><b>" . _AM_SF_ANSWER . '</b></td>'; |
|
| 98 | + echo "<th width='40' class='bg3' align='center'><b>"._AM_SF_ARTID.'</b></td>'; |
|
| 99 | + echo "<th class='bg3' class='bg3' align='center'><b>"._AM_SF_ANSWER.'</b></td>'; |
|
| 100 | 100 | |
| 101 | - echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_ANSWERED . '</b></td>'; |
|
| 101 | + echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_ANSWERED.'</b></td>'; |
|
| 102 | 102 | |
| 103 | - echo "<th width='180' class='bg3' align='center'><b>" . _AM_SF_CREATED . '</b></td>'; |
|
| 104 | - echo "<th width='120' class='bg3' align='center'><b>" . _AM_SF_ACTION . '</b></td>'; |
|
| 103 | + echo "<th width='180' class='bg3' align='center'><b>"._AM_SF_CREATED.'</b></td>'; |
|
| 104 | + echo "<th width='120' class='bg3' align='center'><b>"._AM_SF_ACTION.'</b></td>'; |
|
| 105 | 105 | echo '</tr>'; |
| 106 | 106 | |
| 107 | 107 | $merge = ''; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $approve = ''; |
| 110 | 110 | foreach ($proposed_answers as $proposed_answer) { |
| 111 | 111 | if ($faqObj->status() == _SF_STATUS_NEW_ANSWER) { |
| 112 | - $merge = "<a href='faq.php?op=merge&faqid=" |
|
| 112 | + $merge = "<a href='faq.php?op=merge&faqid=" |
|
| 113 | 113 | . $faqObj->faqid() |
| 114 | 114 | . '&answerid=' |
| 115 | 115 | . $proposed_answer->answerid() |
@@ -122,19 +122,19 @@ discard block |
||
| 122 | 122 | . "' alt='" |
| 123 | 123 | . _AM_SF_FAQ_MERGE |
| 124 | 124 | . "'></a> "; |
| 125 | - $approve = "<a href='answer.php?op=selectanswer&faqid=" . $faqid . '&answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/on.png' . "' title='" . _AM_SF_FAQ_APPROVE_NEW_ANSWER . "' alt='" . _AM_SF_APPROVESUB . "'></a>"; |
|
| 125 | + $approve = "<a href='answer.php?op=selectanswer&faqid=".$faqid.'&answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/on.png'."' title='"._AM_SF_FAQ_APPROVE_NEW_ANSWER."' alt='"._AM_SF_APPROVESUB."'></a>"; |
|
| 126 | 126 | } |
| 127 | - $modify = "<a href='faq.php?op=mod&faqid=" . $faqObj->faqid() . '&answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_FAQ_REVIEW . "' alt='" . _AM_SF_FAQ_REVIEW . "'></a> "; |
|
| 128 | - $delete = "<a href='answer.php?op=del&faqid=" . $faqObj->faqid() . '&answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/delete.png' . "' title='" . _AM_SF_DELETESUBM . "' alt='" . _AM_SF_DELETESUBM . "'></a>"; |
|
| 127 | + $modify = "<a href='faq.php?op=mod&faqid=".$faqObj->faqid().'&answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/edit.png'."' title='"._AM_SF_FAQ_REVIEW."' alt='"._AM_SF_FAQ_REVIEW."'></a> "; |
|
| 128 | + $delete = "<a href='answer.php?op=del&faqid=".$faqObj->faqid().'&answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/delete.png'."' title='"._AM_SF_DELETESUBM."' alt='"._AM_SF_DELETESUBM."'></a>"; |
|
| 129 | 129 | echo '<tr>'; |
| 130 | - echo "<td class='head' align='center'>" . $proposed_answer->answerid() . '</td>'; |
|
| 131 | - echo "<td class='even' align='left'>" . $proposed_answer->answer() . '</td>'; |
|
| 130 | + echo "<td class='head' align='center'>".$proposed_answer->answerid().'</td>'; |
|
| 131 | + echo "<td class='even' align='left'>".$proposed_answer->answer().'</td>'; |
|
| 132 | 132 | |
| 133 | 133 | //show name of the answer submitter |
| 134 | 134 | $submitter = sf_getLinkedUnameFromId($proposed_answer->uid(), $smartModuleConfig['userealname']); |
| 135 | - echo "<td class='even' align='center'>" . $submitter . '</td>'; |
|
| 135 | + echo "<td class='even' align='center'>".$submitter.'</td>'; |
|
| 136 | 136 | |
| 137 | - echo "<td class='even' align='center'>" . $proposed_answer->datesub() . '</td>'; |
|
| 137 | + echo "<td class='even' align='center'>".$proposed_answer->datesub().'</td>'; |
|
| 138 | 138 | echo "<td class='even' align='center'> $merge $modify $approve $delete </td>"; |
| 139 | 139 | echo '</tr>'; |
| 140 | 140 | } |
@@ -146,17 +146,17 @@ discard block |
||
| 146 | 146 | switch ($op) { |
| 147 | 147 | case 'mod': |
| 148 | 148 | xoops_cp_header(); |
| 149 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 149 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 150 | 150 | global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $modify, $myts; |
| 151 | - $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0; |
|
| 151 | + $faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0; |
|
| 152 | 152 | editfaq($faqid); |
| 153 | 153 | break; |
| 154 | 154 | |
| 155 | 155 | case 'selectanswer': |
| 156 | 156 | global $xoopsUser, $_GET, $xoopsModuleConfig; |
| 157 | 157 | |
| 158 | - $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0; |
|
| 159 | - $answerid = isset($_GET['answerid']) ? (int)$_GET['answerid'] : 0; |
|
| 158 | + $faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0; |
|
| 159 | + $answerid = isset($_GET['answerid']) ? (int) $_GET['answerid'] : 0; |
|
| 160 | 160 | |
| 161 | 161 | // Creating the FAQ object |
| 162 | 162 | $faqObj = new sfFaq($faqid); |
@@ -230,11 +230,11 @@ discard block |
||
| 230 | 230 | case 'del': |
| 231 | 231 | global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB; |
| 232 | 232 | |
| 233 | - $faqid = isset($_POST['faqid']) ? (int)$_POST['faqid'] : 0; |
|
| 234 | - $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : $faqid; |
|
| 235 | - $answerid = isset($_POST['answerid']) ? (int)$_POST['answerid'] : 0; |
|
| 236 | - $answerid = isset($_GET['answerid']) ? (int)$_GET['answerid'] : $answerid; |
|
| 237 | - $confirm = isset($_POST['confirm']) ? (int)$_POST['confirm'] : 0; |
|
| 233 | + $faqid = isset($_POST['faqid']) ? (int) $_POST['faqid'] : 0; |
|
| 234 | + $faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : $faqid; |
|
| 235 | + $answerid = isset($_POST['answerid']) ? (int) $_POST['answerid'] : 0; |
|
| 236 | + $answerid = isset($_GET['answerid']) ? (int) $_GET['answerid'] : $answerid; |
|
| 237 | + $confirm = isset($_POST['confirm']) ? (int) $_POST['confirm'] : 0; |
|
| 238 | 238 | $faqObj = new sfFaq($faqid); |
| 239 | 239 | $answerObj = new sfAnswer($answerid); |
| 240 | 240 | if ($confirm) { |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | $proposed_answers = $answerHandler->getAllAnswers($faqid, _SF_AN_STATUS_PROPOSED); |
| 254 | 254 | if (count($proposed_answers) > 0) { |
| 255 | 255 | // This question has other proposed answer |
| 256 | - $redirect_page = 'answer.php?op=mod&faqid=' . $faqid; |
|
| 256 | + $redirect_page = 'answer.php?op=mod&faqid='.$faqid; |
|
| 257 | 257 | $redirect_msg = _AM_SF_ANSWER_REJECTED; |
| 258 | 258 | } else { |
| 259 | 259 | // The question has no other proposed answer |
@@ -277,11 +277,11 @@ discard block |
||
| 277 | 277 | default: |
| 278 | 278 | xoops_cp_header(); |
| 279 | 279 | |
| 280 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 280 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 281 | 281 | global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule; |
| 282 | 282 | |
| 283 | 283 | editfaq(); |
| 284 | 284 | break; |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 287 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -171,22 +171,22 @@ discard block |
||
| 171 | 171 | </td> |
| 172 | 172 | <td class='$class' align='center' nowrap='nowrap'> |
| 173 | 173 | <input type='radio' name='side[$bid]' value='" |
| 174 | - . XOOPS_SIDEBLOCK_LEFT |
|
| 175 | - . "'$ssel0>-<input type='radio' name='side[$bid]' value='" |
|
| 176 | - . XOOPS_CENTERBLOCK_LEFT |
|
| 177 | - . "'$ssel2><input type='radio' name='side[$bid]' value='" |
|
| 178 | - . XOOPS_CENTERBLOCK_CENTER |
|
| 179 | - . "'$ssel3><input type='radio' name='side[$bid]' value='" |
|
| 180 | - . XOOPS_CENTERBLOCK_RIGHT |
|
| 181 | - . "'$ssel4>-<input type='radio' name='side[$bid]' value='" |
|
| 182 | - . XOOPS_SIDEBLOCK_RIGHT |
|
| 183 | - . "'$ssel1> |
|
| 174 | + . XOOPS_SIDEBLOCK_LEFT |
|
| 175 | + . "'$ssel0>-<input type='radio' name='side[$bid]' value='" |
|
| 176 | + . XOOPS_CENTERBLOCK_LEFT |
|
| 177 | + . "'$ssel2><input type='radio' name='side[$bid]' value='" |
|
| 178 | + . XOOPS_CENTERBLOCK_CENTER |
|
| 179 | + . "'$ssel3><input type='radio' name='side[$bid]' value='" |
|
| 180 | + . XOOPS_CENTERBLOCK_RIGHT |
|
| 181 | + . "'$ssel4>-<input type='radio' name='side[$bid]' value='" |
|
| 182 | + . XOOPS_SIDEBLOCK_RIGHT |
|
| 183 | + . "'$ssel1> |
|
| 184 | 184 | <br> |
| 185 | 185 | <br> |
| 186 | 186 | <input type='radio' name='side[$bid]' value='-1'$sseln> |
| 187 | 187 | " |
| 188 | - . _NONE |
|
| 189 | - . " |
|
| 188 | + . _NONE |
|
| 189 | + . " |
|
| 190 | 190 | </td> |
| 191 | 191 | <td class='$class' align='center'> |
| 192 | 192 | <input type='text' name=weight[$bid] value='$weight' size='5' maxlength='5' style='text-align:right;'> |
@@ -203,8 +203,8 @@ discard block |
||
| 203 | 203 | </td> |
| 204 | 204 | <td class='$class' align='center'> |
| 205 | 205 | <a href='admin.php?fct=blocksadmin&op=edit&bid=$bid'>" |
| 206 | - . _EDIT |
|
| 207 | - . "</a> |
|
| 206 | + . _EDIT |
|
| 207 | + . "</a> |
|
| 208 | 208 | <input type='hidden' name='bid[$bid]' value='$bid'> |
| 209 | 209 | </td> |
| 210 | 210 | </tr>\n"; |
@@ -237,14 +237,14 @@ discard block |
||
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | $form = new MyXoopsGroupPermForm('', 1, 'block_read', "<img id='bottomtableicon' src=" |
| 240 | - . XOOPS_URL |
|
| 241 | - . '/modules/' |
|
| 242 | - . $xoopsModule->dirname() |
|
| 243 | - . "/assets/images/icon/close12.gif alt=''></a> " |
|
| 244 | - . _AM_SF_GROUPS |
|
| 245 | - . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
|
| 246 | - . _AM_SF_GROUPSINFO |
|
| 247 | - . '</span>'); |
|
| 240 | + . XOOPS_URL |
|
| 241 | + . '/modules/' |
|
| 242 | + . $xoopsModule->dirname() |
|
| 243 | + . "/assets/images/icon/close12.gif alt=''></a> " |
|
| 244 | + . _AM_SF_GROUPS |
|
| 245 | + . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
|
| 246 | + . _AM_SF_GROUPSINFO |
|
| 247 | + . '</span>'); |
|
| 248 | 248 | $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACTIVERIGHTS); |
| 249 | 249 | $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACCESSRIGHTS); |
| 250 | 250 | foreach ($item_list as $item_id => $item_name) { |
@@ -12,12 +12,12 @@ discard block |
||
| 12 | 12 | // GIJOE <http://www.peak.ne.jp> // |
| 13 | 13 | // ------------------------------------------------------------------------- // |
| 14 | 14 | |
| 15 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
| 16 | -require_once __DIR__ . '/mygrouppermform.php'; |
|
| 17 | -require_once XOOPS_ROOT_PATH . '/class/xoopsblock.php'; |
|
| 18 | -require_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/include/functions.php'; |
|
| 15 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
| 16 | +require_once __DIR__.'/mygrouppermform.php'; |
|
| 17 | +require_once XOOPS_ROOT_PATH.'/class/xoopsblock.php'; |
|
| 18 | +require_once XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->dirname().'/include/functions.php'; |
|
| 19 | 19 | |
| 20 | -$xoops_system_path = XOOPS_ROOT_PATH . '/modules/system'; |
|
| 20 | +$xoops_system_path = XOOPS_ROOT_PATH.'/modules/system'; |
|
| 21 | 21 | |
| 22 | 22 | // language files |
| 23 | 23 | $language = $xoopsConfig['language']; |
@@ -27,10 +27,10 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | // to prevent from notice that constants already defined |
| 29 | 29 | $error_reporting_level = error_reporting(0); |
| 30 | -require_once __DIR__ . '/../../system/constants.php'; |
|
| 31 | -require_once __DIR__ . "/../../language/$language/admin.php"; |
|
| 32 | -require_once __DIR__ . "/../../language/$language/admin/blocksadmin.php"; |
|
| 33 | -require_once __DIR__ . '/../include/functions.php'; |
|
| 30 | +require_once __DIR__.'/../../system/constants.php'; |
|
| 31 | +require_once __DIR__."/../../language/$language/admin.php"; |
|
| 32 | +require_once __DIR__."/../../language/$language/admin/blocksadmin.php"; |
|
| 33 | +require_once __DIR__.'/../include/functions.php'; |
|
| 34 | 34 | error_reporting($error_reporting_level); |
| 35 | 35 | |
| 36 | 36 | $group_defs = file("$xoops_system_path/language/$language/admin/groups.php"); |
@@ -42,13 +42,13 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | // check $xoopsModule |
| 44 | 44 | if (!is_object($xoopsModule)) { |
| 45 | - redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM); |
|
| 45 | + redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | // check access right (needs system_admin of BLOCK) |
| 49 | 49 | $syspermHandler = xoops_getHandler('groupperm'); |
| 50 | 50 | if (!$syspermHandler->checkRight('system_admin', XOOPS_SYSTEM_BLOCK, $xoopsUser->getGroups())) { |
| 51 | - redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM); |
|
| 51 | + redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | // get blocks owned by the module |
@@ -75,20 +75,20 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | // displaying TH |
| 77 | 77 | sf_collapsableBar('toptable', 'toptableicon'); |
| 78 | - echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . _AM_SF_BLOCKS . '</h3>'; |
|
| 78 | + echo "<img id='toptableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> "._AM_SF_BLOCKS.'</h3>'; |
|
| 79 | 79 | echo "<div id='toptable'>"; |
| 80 | - echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_BLOCKSTXT . '</span>'; |
|
| 80 | + echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_BLOCKSTXT.'</span>'; |
|
| 81 | 81 | |
| 82 | 82 | echo " |
| 83 | 83 | <form action='admin.php' name='blockadmin' method='post'> |
| 84 | 84 | <table width='100%' class='outer' cellpadding='4' cellspacing='1'> |
| 85 | 85 | <tr valign='middle'> |
| 86 | - <th>" . _AM_TITLE . "</th> |
|
| 87 | - <th align='center' nowrap='nowrap'>" . _AM_SF_POSITION . "</th> |
|
| 88 | - <th align='center'>" . _AM_WEIGHT . "</th> |
|
| 89 | - <th align='center'>" . _AM_VISIBLEIN . "</th> |
|
| 90 | - <th align='center'>" . _AM_BCACHETIME . "</th> |
|
| 91 | - <th align='center'>" . _AM_ACTION . "</th> |
|
| 86 | + <th>" . _AM_TITLE."</th> |
|
| 87 | + <th align='center' nowrap='nowrap'>" . _AM_SF_POSITION."</th> |
|
| 88 | + <th align='center'>" . _AM_WEIGHT."</th> |
|
| 89 | + <th align='center'>" . _AM_VISIBLEIN."</th> |
|
| 90 | + <th align='center'>" . _AM_BCACHETIME."</th> |
|
| 91 | + <th align='center'>" . _AM_ACTION."</th> |
|
| 92 | 92 | </tr>\n"; |
| 93 | 93 | |
| 94 | 94 | // blocks displaying loop |
@@ -138,10 +138,10 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | // target modules |
| 140 | 140 | $db = XoopsDatabaseFactory::getDatabaseConnection(); |
| 141 | - $result = $db->query('SELECT module_id FROM ' . $db->prefix('block_module_link') . " WHERE block_id='$bid'"); |
|
| 141 | + $result = $db->query('SELECT module_id FROM '.$db->prefix('block_module_link')." WHERE block_id='$bid'"); |
|
| 142 | 142 | $selected_mids = []; |
| 143 | 143 | while (list($selected_mid) = $db->fetchRow($result)) { |
| 144 | - $selected_mids[] = (int)$selected_mid; |
|
| 144 | + $selected_mids[] = (int) $selected_mid; |
|
| 145 | 145 | } |
| 146 | 146 | /** @var XoopsModuleHandler $moduleHandler */ |
| 147 | 147 | $moduleHandler = xoops_getHandler('module'); |
@@ -155,9 +155,9 @@ discard block |
||
| 155 | 155 | $myts = MyTextSanitizer::getInstance(); |
| 156 | 156 | foreach ($module_list as $mid => $mname) { |
| 157 | 157 | if (in_array($mid, $selected_mids)) { |
| 158 | - $module_options .= "<option value='$mid' selected>" . $myts->displayTarea($mname) . "</option>\n"; |
|
| 158 | + $module_options .= "<option value='$mid' selected>".$myts->displayTarea($mname)."</option>\n"; |
|
| 159 | 159 | } else { |
| 160 | - $module_options .= "<option value='$mid'>" . $myts->displayTarea($mname) . "</option>\n"; |
|
| 160 | + $module_options .= "<option value='$mid'>".$myts->displayTarea($mname)."</option>\n"; |
|
| 161 | 161 | } |
| 162 | 162 | } |
| 163 | 163 | |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | <td class='foot' align='center' colspan='6'> |
| 218 | 218 | <input type='hidden' name='fct' value='blocksadmin'> |
| 219 | 219 | <input type='hidden' name='op' value='order'> |
| 220 | - <input type='submit' name='submit' value='" . _SUBMIT . "'> |
|
| 220 | + <input type='submit' name='submit' value='" . _SUBMIT."'> |
|
| 221 | 221 | </td> |
| 222 | 222 | </tr> |
| 223 | 223 | </table> |
@@ -245,8 +245,8 @@ discard block |
||
| 245 | 245 | . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
| 246 | 246 | . _AM_SF_GROUPSINFO |
| 247 | 247 | . '</span>'); |
| 248 | - $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACTIVERIGHTS); |
|
| 249 | - $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACCESSRIGHTS); |
|
| 248 | + $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name().' '._AM_ACTIVERIGHTS); |
|
| 249 | + $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name().' '._AM_ACCESSRIGHTS); |
|
| 250 | 250 | foreach ($item_list as $item_id => $item_name) { |
| 251 | 251 | $form->addItem($item_id, $myts->displayTarea($item_name)); |
| 252 | 252 | } |
@@ -255,14 +255,14 @@ discard block |
||
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | if (!empty($_POST['submit'])) { |
| 258 | - include __DIR__ . '/mygroupperm.php'; |
|
| 258 | + include __DIR__.'/mygroupperm.php'; |
|
| 259 | 259 | require_once "$xoops_system_path/language/$language/admin.php"; |
| 260 | - redirect_header(XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/admin/myblocksadmin.php', 1, _AM_DBUPDATED); |
|
| 260 | + redirect_header(XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/admin/myblocksadmin.php', 1, _AM_DBUPDATED); |
|
| 261 | 261 | } |
| 262 | 262 | |
| 263 | 263 | xoops_cp_header(); |
| 264 | 264 | if (file_exists('./mymenu.php')) { |
| 265 | - include __DIR__ . '/mymenu.php'; |
|
| 265 | + include __DIR__.'/mymenu.php'; |
|
| 266 | 266 | } |
| 267 | 267 | |
| 268 | 268 | list_blocks(); |
@@ -6,17 +6,17 @@ |
||
| 6 | 6 | * Licence: GNU |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -require_once __DIR__ . '/../../../mainfile.php'; |
|
| 10 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
| 11 | -require_once XOOPS_ROOT_PATH . '/kernel/module.php'; |
|
| 12 | -require_once XOOPS_ROOT_PATH . '/class/xoopstree.php'; |
|
| 13 | -require_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; |
|
| 14 | -require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 15 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 9 | +require_once __DIR__.'/../../../mainfile.php'; |
|
| 10 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
| 11 | +require_once XOOPS_ROOT_PATH.'/kernel/module.php'; |
|
| 12 | +require_once XOOPS_ROOT_PATH.'/class/xoopstree.php'; |
|
| 13 | +require_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; |
|
| 14 | +require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 15 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 16 | 16 | |
| 17 | -require_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
|
| 18 | -require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/category.php'; |
|
| 19 | -require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/faq.php'; |
|
| 20 | -require_once XOOPS_ROOT_PATH . '/modules/smartfaq/class/answer.php'; |
|
| 17 | +require_once XOOPS_ROOT_PATH.'/modules/smartfaq/include/functions.php'; |
|
| 18 | +require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/category.php'; |
|
| 19 | +require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/faq.php'; |
|
| 20 | +require_once XOOPS_ROOT_PATH.'/modules/smartfaq/class/answer.php'; |
|
| 21 | 21 | |
| 22 | 22 | $myts = MyTextSanitizer::getInstance(); |
@@ -23,36 +23,36 @@ |
||
| 23 | 23 | $i = 0; |
| 24 | 24 | $adminmenu[$i]['title'] = _AM_MODULEADMIN_HOME; |
| 25 | 25 | $adminmenu[$i]['link'] = 'admin/index.php'; |
| 26 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/home.png'; |
|
| 26 | +$adminmenu[$i]['icon'] = $pathIcon32.'/home.png'; |
|
| 27 | 27 | ++$i; |
| 28 | 28 | $adminmenu[$i]['title'] = _MI_SF_ADMENU1; |
| 29 | 29 | $adminmenu[$i]['link'] = 'admin/main.php'; |
| 30 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/manage.png'; |
|
| 30 | +$adminmenu[$i]['icon'] = $pathIcon32.'/manage.png'; |
|
| 31 | 31 | |
| 32 | 32 | ++$i; |
| 33 | 33 | $adminmenu[$i]['title'] = _MI_SF_ADMENU2; |
| 34 | 34 | $adminmenu[$i]['link'] = 'admin/category.php'; |
| 35 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/category.png'; |
|
| 35 | +$adminmenu[$i]['icon'] = $pathIcon32.'/category.png'; |
|
| 36 | 36 | ++$i; |
| 37 | 37 | $adminmenu[$i]['title'] = _MI_SF_ADMENU3; |
| 38 | 38 | $adminmenu[$i]['link'] = 'admin/faq.php'; |
| 39 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/search.png'; |
|
| 39 | +$adminmenu[$i]['icon'] = $pathIcon32.'/search.png'; |
|
| 40 | 40 | ++$i; |
| 41 | 41 | $adminmenu[$i]['title'] = _MI_SF_ADMENU4; |
| 42 | 42 | $adminmenu[$i]['link'] = 'admin/question.php'; |
| 43 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/faq.png'; |
|
| 43 | +$adminmenu[$i]['icon'] = $pathIcon32.'/faq.png'; |
|
| 44 | 44 | ++$i; |
| 45 | 45 | $adminmenu[$i]['title'] = _MI_SF_ADMENU5; |
| 46 | 46 | $adminmenu[$i]['link'] = 'admin/permissions.php'; |
| 47 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/permissions.png'; |
|
| 47 | +$adminmenu[$i]['icon'] = $pathIcon32.'/permissions.png'; |
|
| 48 | 48 | ++$i; |
| 49 | 49 | $adminmenu[$i]['title'] = _MI_SF_ADMENU8; |
| 50 | 50 | $adminmenu[$i]['link'] = 'admin/import.php'; |
| 51 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/download.png'; |
|
| 51 | +$adminmenu[$i]['icon'] = $pathIcon32.'/download.png'; |
|
| 52 | 52 | ++$i; |
| 53 | 53 | $adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT; |
| 54 | 54 | $adminmenu[$i]['link'] = 'admin/about.php'; |
| 55 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/about.png'; |
|
| 55 | +$adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; |
|
| 56 | 56 | //++$i; |
| 57 | 57 | //$adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT; |
| 58 | 58 | //$adminmenu[$i]["link"] = "admin/about2.php"; |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * Licence: GNU |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -require_once __DIR__ . '/admin_header.php'; |
|
| 9 | +require_once __DIR__.'/admin_header.php'; |
|
| 10 | 10 | |
| 11 | 11 | $op = 'none'; |
| 12 | 12 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | case 'importExecute': |
| 24 | 24 | |
| 25 | 25 | $importfile = isset($_POST['importfile']) ? $_POST['importfile'] : 'nonselected'; |
| 26 | - $importfile_path = XOOPS_ROOT_PATH . '/modules/smartfaq/admin/' . $importfile . '.php'; |
|
| 26 | + $importfile_path = XOOPS_ROOT_PATH.'/modules/smartfaq/admin/'.$importfile.'.php'; |
|
| 27 | 27 | if (!file_exists($importfile_path)) { |
| 28 | 28 | $errs[] = sprintf(_AM_SF_IMPORT_FILE_NOT_FOUND, $importfile_path); |
| 29 | 29 | $error = true; |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | require_once $importfile_path; |
| 32 | 32 | } |
| 33 | 33 | foreach ($msgs as $m) { |
| 34 | - echo $m . '<br>'; |
|
| 34 | + echo $m.'<br>'; |
|
| 35 | 35 | } |
| 36 | 36 | echo '<br>'; |
| 37 | 37 | $endMsg = _AM_SF_IMPORT_SUCCESS; |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | echo $endMsg; |
| 43 | 43 | echo '<br><br>'; |
| 44 | - echo "<a href='import.php'>" . _AM_SF_IMPORT_BACK . '</a>'; |
|
| 44 | + echo "<a href='import.php'>"._AM_SF_IMPORT_BACK.'</a>'; |
|
| 45 | 45 | echo '<br><br>'; |
| 46 | 46 | break; |
| 47 | 47 | |
@@ -53,13 +53,13 @@ discard block |
||
| 53 | 53 | xoops_cp_header(); |
| 54 | 54 | |
| 55 | 55 | sf_collapsableBar('bottomtable', 'bottomtableicon'); |
| 56 | - echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt=''></a> " . _AM_SF_IMPORT_TITLE . '</h3>'; |
|
| 56 | + echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt=''></a> "._AM_SF_IMPORT_TITLE.'</h3>'; |
|
| 57 | 57 | echo "<div id='bottomtable'>"; |
| 58 | - echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . _AM_SF_IMPORT_INFO . '</span>'; |
|
| 58 | + echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">'._AM_SF_IMPORT_INFO.'</span>'; |
|
| 59 | 59 | |
| 60 | 60 | global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts; |
| 61 | 61 | |
| 62 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 62 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 63 | 63 | |
| 64 | 64 | /** @var XoopsModuleHandler $moduleHandler */ |
| 65 | 65 | $moduleHandler = xoops_getHandler('module'); |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $sform->display(); |
| 100 | 100 | unset($hidden); |
| 101 | 101 | } else { |
| 102 | - echo '<span style="color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; ">' . _AM_SF_IMPORT_NO_MODULE . '</span>'; |
|
| 102 | + echo '<span style="color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; ">'._AM_SF_IMPORT_NO_MODULE.'</span>'; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | // End of collapsable bar |
@@ -108,4 +108,4 @@ discard block |
||
| 108 | 108 | break; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 111 | +require_once __DIR__.'/admin_footer.php'; |
|