Completed
Push — master ( a7fe76...1b2f30 )
by Michael
04:20
created
category.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include_once __DIR__ . '/header.php';
9
+include_once __DIR__.'/header.php';
10 10
 
11
-$categoryid = isset($_GET['categoryid']) ? (int)$_GET['categoryid'] : 0;
11
+$categoryid = isset($_GET['categoryid']) ? (int) $_GET['categoryid'] : 0;
12 12
 
13 13
 // Creating the category handler object
14 14
 $categoryHandler = sf_gethandler('category');
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 }
33 33
 $xoopsOption['template_main'] = 'smartfaq_category.tpl';
34 34
 
35
-include_once(XOOPS_ROOT_PATH . '/header.php');
36
-include_once __DIR__ . '/footer.php';
35
+include_once(XOOPS_ROOT_PATH.'/header.php');
36
+include_once __DIR__.'/footer.php';
37 37
 
38 38
 // At which record shall we start
39
-$start = isset($_GET['start']) ? (int)$_GET['start'] : 0;
39
+$start = isset($_GET['start']) ? (int) $_GET['start'] : 0;
40 40
 
41 41
 // Creating the faq handler object
42 42
 $faqHandler = sf_gethandler('faq');
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     // Get the last smartfaq
71 71
     $last_qnaObj = $faqHandler->getLastPublishedByCat();
72 72
 }
73
-$lastfaqsize = (int)$xoopsModuleConfig['lastfaqsize'];
73
+$lastfaqsize = (int) $xoopsModuleConfig['lastfaqsize'];
74 74
 // Creating the sub-categories objects that belong to the selected category
75 75
 $subcatsObj    = $categoryHandler->getCategories(0, 0, $categoryid);
76 76
 $total_subcats = count($subcatsObj);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         if (isset($totalQnas[$subcat_id]) && $totalQnas[$subcat_id] > 0) {
83 83
             if (isset($last_qnaObj[$subcat_id])) {
84 84
                 $subcatsObj[$i]->setVar('last_faqid', $last_qnaObj[$subcat_id]->getVar('faqid'));
85
-                $subcatsObj[$i]->setVar('last_question_link', "<a href='faq.php?faqid=" . $last_qnaObj[$subcat_id]->getVar('faqid') . "'>" . $last_qnaObj[$subcat_id]->question($lastfaqsize) . '</a>');
85
+                $subcatsObj[$i]->setVar('last_question_link', "<a href='faq.php?faqid=".$last_qnaObj[$subcat_id]->getVar('faqid')."'>".$last_qnaObj[$subcat_id]->question($lastfaqsize).'</a>');
86 86
             }
87 87
         }
88 88
         $subcatsObj[$i]->setVar('faqcount', $totalQnas[$subcat_id]);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     $xoopsTpl->assign('subcats', $subcats);
94 94
 }
95 95
 $thiscategory_faqcount = isset($totalQnas[$categoryid]) ? $totalQnas[$categoryid] : 0;
96
-$category['total']     = $thiscategory_faqcount + $total_faqs;
96
+$category['total']     = $thiscategory_faqcount+$total_faqs;
97 97
 
98 98
 if (count($faqsObj) > 0) {
99 99
     $userids = array();
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
     }
110 110
 
111 111
     $memberHandler = xoops_getHandler('member');
112
-    $users         = $memberHandler->getUsers(new Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'), true);
112
+    $users         = $memberHandler->getUsers(new Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'), true);
113 113
     // Adding the Q&As of the selected category
114 114
     for ($i = 0; $i < $totalQnasOnPage; ++$i) {
115 115
         $faq = $faqsObj[$i]->toArray(null, $categoryObj);
116 116
 
117 117
         // Creating the answer object
118
-        $answerObj =& $allanswers[$faqsObj[$i]->faqid()];
118
+        $answerObj = & $allanswers[$faqsObj[$i]->faqid()];
119 119
 
120 120
         $answerObj->setVar('dohtml', $faqsObj[$i]->getVar('html'));
121 121
         $answerObj->setVar('doxcode', $faqsObj[$i]->getVar('xcodes'));
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
     if (isset($last_qnaObj) && $last_qnaObj) {
137 137
         $category['last_faqid']         = $last_qnaObj[$categoryObj->getVar('categoryid')]->getVar('faqid');
138
-        $category['last_question_link'] = "<a href='faq.php?faqid=" . $last_qnaObj[$categoryObj->getVar('categoryid')]->getVar('faqid') . "'>" . $last_qnaObj[$categoryObj->getVar('categoryid')]->question($lastfaqsize) . '</a>';
138
+        $category['last_question_link'] = "<a href='faq.php?faqid=".$last_qnaObj[$categoryObj->getVar('categoryid')]->getVar('faqid')."'>".$last_qnaObj[$categoryObj->getVar('categoryid')]->question($lastfaqsize).'</a>';
139 139
     }
140 140
 }
141 141
 
@@ -160,26 +160,26 @@  discard block
 block discarded – undo
160 160
 $xoopsTpl->assign('lang_comments', _MD_SF_COMMENTS);
161 161
 
162 162
 // The Navigation Bar
163
-include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
164
-$pagenav = new XoopsPageNav($thiscategory_faqcount, $xoopsModuleConfig['indexperpage'], $start, 'start', 'categoryid=' . $categoryObj->getVar('categoryid'));
163
+include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
164
+$pagenav = new XoopsPageNav($thiscategory_faqcount, $xoopsModuleConfig['indexperpage'], $start, 'start', 'categoryid='.$categoryObj->getVar('categoryid'));
165 165
 if ($xoopsModuleConfig['useimagenavpage'] == 1) {
166
-    $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>');
166
+    $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderImageNav().'</div>');
167 167
 } else {
168
-    $xoopsTpl->assign('navbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>');
168
+    $xoopsTpl->assign('navbar', '<div style="text-align:right;">'.$pagenav->renderNav().'</div>');
169 169
 }
170 170
 
171 171
 $xoopsTpl->assign('category', $category);
172 172
 
173 173
 // Page Title Hack by marcan
174 174
 $module_name = $myts->htmlSpecialChars($xoopsModule->getVar('name'));
175
-$xoopsTpl->assign('xoops_pagetitle', $module_name . ' - ' . $category['name']);
175
+$xoopsTpl->assign('xoops_pagetitle', $module_name.' - '.$category['name']);
176 176
 // End Page Title Hack by marcan
177 177
 
178 178
 //code to include smartie
179
-if (file_exists(XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php')) {
180
-    include_once XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php';
179
+if (file_exists(XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php')) {
180
+    include_once XOOPS_ROOT_PATH.'/modules/smarttie/smarttie_links.php';
181 181
     $xoopsTpl->assign('smarttie', 1);
182 182
 }
183 183
 //end code for smarttie
184 184
 
185
-include_once(XOOPS_ROOT_PATH . '/footer.php');
185
+include_once(XOOPS_ROOT_PATH.'/footer.php');
Please login to merge, or discard this patch.
admin/admin.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -39,42 +39,42 @@  discard block
 block discarded – undo
39 39
 if (empty($fct)) {
40 40
     $fct = 'preferences';
41 41
 }
42
-include dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
43
-include XOOPS_ROOT_PATH . '/include/cp_functions.php';
42
+include dirname(dirname(dirname(__DIR__))).'/mainfile.php';
43
+include XOOPS_ROOT_PATH.'/include/cp_functions.php';
44 44
 
45
-include_once XOOPS_ROOT_PATH . '/kernel/module.php';
45
+include_once XOOPS_ROOT_PATH.'/kernel/module.php';
46 46
 
47 47
 $admintest = 0;
48 48
 
49 49
 if (is_object($xoopsUser)) {
50 50
     $xoopsModule = XoopsModule::getByDirname('system');
51 51
     if (!$xoopsUser->isAdmin($xoopsModule->mid())) {
52
-        redirect_header(XOOPS_URL . '/user.php', 3, _NOPERM);
52
+        redirect_header(XOOPS_URL.'/user.php', 3, _NOPERM);
53 53
     }
54 54
     $admintest = 1;
55 55
 } else {
56
-    redirect_header(XOOPS_URL . '/user.php', 3, _NOPERM);
56
+    redirect_header(XOOPS_URL.'/user.php', 3, _NOPERM);
57 57
 }
58 58
 
59 59
 // include system category definitions
60
-include_once XOOPS_ROOT_PATH . '/modules/system/constants.php';
60
+include_once XOOPS_ROOT_PATH.'/modules/system/constants.php';
61 61
 $error = false;
62 62
 if ($admintest != 0) {
63 63
     if (isset($fct) && $fct != '') {
64
-        if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/' . $fct . '/xoops_version.php')) {
65
-            include_once(XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin.php');
64
+        if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/'.$fct.'/xoops_version.php')) {
65
+            include_once(XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/admin.php');
66 66
 
67
-            if (file_exists(XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin/' . $fct . '.php')) {
68
-                include XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin/' . $fct . '.php';
69
-            } elseif (file_exists(XOOPS_ROOT_PATH . '/modules/system/language/english/admin/' . $fct . '.php')) {
70
-                include XOOPS_ROOT_PATH . '/modules/system/language/english/admin/' . $fct . '.php';
67
+            if (file_exists(XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/admin/'.$fct.'.php')) {
68
+                include XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/admin/'.$fct.'.php';
69
+            } elseif (file_exists(XOOPS_ROOT_PATH.'/modules/system/language/english/admin/'.$fct.'.php')) {
70
+                include XOOPS_ROOT_PATH.'/modules/system/language/english/admin/'.$fct.'.php';
71 71
             }
72
-            include XOOPS_ROOT_PATH . '/modules/system/admin/' . $fct . '/xoops_version.php';
72
+            include XOOPS_ROOT_PATH.'/modules/system/admin/'.$fct.'/xoops_version.php';
73 73
             $syspermHandler = xoops_getHandler('groupperm');
74
-            $category       = !empty($modversion['category']) ? (int)$modversion['category'] : 0;
74
+            $category       = !empty($modversion['category']) ? (int) $modversion['category'] : 0;
75 75
             unset($modversion);
76 76
             if ($category > 0) {
77
-                $groups =& $xoopsUser->getGroups();
77
+                $groups = & $xoopsUser->getGroups();
78 78
                 if (in_array(XOOPS_GROUP_ADMIN, $groups) || false != $syspermHandler->checkRight('system_admin', $category, $groups, $xoopsModule->getVar('mid'))) {
79 79
                     if (file_exists("../include/{$fct}.inc.php")) {
80 80
                         include_once "../include/{$fct}.inc.php";
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
                     $error = true;
86 86
                 }
87 87
             } elseif ($fct === 'version') {
88
-                if (file_exists(XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php')) {
89
-                    include_once XOOPS_ROOT_PATH . '/modules/system/admin/version/main.php';
88
+                if (file_exists(XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php')) {
89
+                    include_once XOOPS_ROOT_PATH.'/modules/system/admin/version/main.php';
90 90
                 } else {
91 91
                     $error = true;
92 92
                 }
@@ -110,22 +110,22 @@  discard block
 block discarded – undo
110 110
     $all_ok = false;
111 111
     if (!in_array(XOOPS_GROUP_ADMIN, $groups)) {
112 112
         $syspermHandler = xoops_getHandler('groupperm');
113
-        $ok_syscats     =& $syspermHandler->getItemIds('system_admin', $groups);
113
+        $ok_syscats     = & $syspermHandler->getItemIds('system_admin', $groups);
114 114
     } else {
115 115
         $all_ok = true;
116 116
     }
117
-    $admin_dir = XOOPS_ROOT_PATH . '/modules/system/admin';
117
+    $admin_dir = XOOPS_ROOT_PATH.'/modules/system/admin';
118 118
     $handle    = opendir($admin_dir);
119 119
     $counter   = 0;
120 120
     $class     = 'even';
121 121
     while ($file = readdir($handle)) {
122
-        if (strtolower($file) !== 'cvs' && !preg_match('/[.]/', $file) && is_dir($admin_dir . '/' . $file)) {
123
-            include $admin_dir . '/' . $file . '/xoops_version.php';
122
+        if (strtolower($file) !== 'cvs' && !preg_match('/[.]/', $file) && is_dir($admin_dir.'/'.$file)) {
123
+            include $admin_dir.'/'.$file.'/xoops_version.php';
124 124
             if ($modversion['hasAdmin']) {
125
-                $category = isset($modversion['category']) ? (int)$modversion['category'] : 0;
125
+                $category = isset($modversion['category']) ? (int) $modversion['category'] : 0;
126 126
                 if (false != $all_ok || in_array($modversion['category'], $ok_syscats)) {
127 127
                     echo "<td class='$class' align='center' valign='bottom' width='19%'>";
128
-                    echo "<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=' . $file . "'><b>" . trim($modversion['name']) . "</b></a>\n";
128
+                    echo "<a href='".XOOPS_URL.'/modules/system/admin.php?fct='.$file."'><b>".trim($modversion['name'])."</b></a>\n";
129 129
                     echo '</td>';
130 130
                     ++$counter;
131 131
                     $class = ($class === 'even') ? 'odd' : 'even';
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         }
141 141
     }
142 142
     while ($counter < 5) {
143
-        echo '<td class="' . $class . '">&nbsp;</td>';
143
+        echo '<td class="'.$class.'">&nbsp;</td>';
144 144
         $class = ($class === 'even') ? 'odd' : 'even';
145 145
         ++$counter;
146 146
     }
Please login to merge, or discard this patch.
admin/permissions.php 2 patches
Switch Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -24,37 +24,37 @@
 block discarded – undo
24 24
 }
25 25
 
26 26
 switch ($op) {
27
-    case 'default':
28
-    default:
29
-        global $xoopsDB, $xoopsModule;
30
-
31
-        $indexAdmin = new ModuleAdmin();
32
-        xoops_cp_header();
33
-        echo $indexAdmin->addNavigation(basename(__FILE__));
34
-        // View Categories permissions
35
-        $item_list_view = array();
36
-        $block_view     = array();
37
-        // echo "<h3 style='color: #2F5376; '>"._AM_SF_PERMISSIONSADMIN."</h3>\n" ;
38
-        sf_collapsableBar('toptable', 'toptableicon');
39
-
40
-        $result_view = $xoopsDB->query('SELECT categoryid, name FROM ' . $xoopsDB->prefix('smartfaq_categories') . ' ');
41
-        if ($xoopsDB->getRowsNum($result_view)) {
42
-            while ($myrow_view = $xoopsDB->fetcharray($result_view)) {
43
-                $item_list_view['cid']   = $myrow_view['categoryid'];
44
-                $item_list_view['title'] = $myrow_view['name'];
45
-                $form_view               = new XoopsGroupPermForm('', $xoopsModule->getVar('mid'), 'category_read', "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_PERMISSIONSVIEWMAN . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" . _AM_SF_VIEW_CATS . '</span>', 'admin/permissions.php');
46
-                $block_view[]            = $item_list_view;
47
-                foreach ($block_view as $itemlists) {
48
-                    $form_view->addItem($itemlists['cid'], $myts->displayTarea($itemlists['title']));
27
+        case 'default':
28
+        default:
29
+            global $xoopsDB, $xoopsModule;
30
+
31
+            $indexAdmin = new ModuleAdmin();
32
+            xoops_cp_header();
33
+            echo $indexAdmin->addNavigation(basename(__FILE__));
34
+            // View Categories permissions
35
+            $item_list_view = array();
36
+            $block_view     = array();
37
+            // echo "<h3 style='color: #2F5376; '>"._AM_SF_PERMISSIONSADMIN."</h3>\n" ;
38
+            sf_collapsableBar('toptable', 'toptableicon');
39
+
40
+            $result_view = $xoopsDB->query('SELECT categoryid, name FROM ' . $xoopsDB->prefix('smartfaq_categories') . ' ');
41
+            if ($xoopsDB->getRowsNum($result_view)) {
42
+                while ($myrow_view = $xoopsDB->fetcharray($result_view)) {
43
+                    $item_list_view['cid']   = $myrow_view['categoryid'];
44
+                    $item_list_view['title'] = $myrow_view['name'];
45
+                    $form_view               = new XoopsGroupPermForm('', $xoopsModule->getVar('mid'), 'category_read', "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_PERMISSIONSVIEWMAN . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" . _AM_SF_VIEW_CATS . '</span>', 'admin/permissions.php');
46
+                    $block_view[]            = $item_list_view;
47
+                    foreach ($block_view as $itemlists) {
48
+                        $form_view->addItem($itemlists['cid'], $myts->displayTarea($itemlists['title']));
49
+                    }
49 50
                 }
51
+                echo $form_view->render();
52
+            } else {
53
+                echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_PERMISSIONSVIEWMAN . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" . _AM_SF_NOPERMSSET . '</span>';
50 54
             }
51
-            echo $form_view->render();
52
-        } else {
53
-            echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_PERMISSIONSVIEWMAN . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" . _AM_SF_NOPERMSSET . '</span>';
54
-        }
55
-        echo '</div>';
55
+            echo '</div>';
56 56
 
57
-        echo "<br />\n";
57
+            echo "<br />\n";
58 58
 }
59 59
 
60 60
 include_once __DIR__ . '/admin_footer.php';
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include_once __DIR__ . '/admin_header.php';
10
-include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
9
+include_once __DIR__.'/admin_header.php';
10
+include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
11 11
 
12 12
 if (!sf_userIsAdmin()) {
13 13
     redirect_header('javascript:history.go(-1)', 1, _NOPERM);
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
         // echo "<h3 style='color: #2F5376; '>"._AM_SF_PERMISSIONSADMIN."</h3>\n" ;
38 38
         sf_collapsableBar('toptable', 'toptableicon');
39 39
 
40
-        $result_view = $xoopsDB->query('SELECT categoryid, name FROM ' . $xoopsDB->prefix('smartfaq_categories') . ' ');
40
+        $result_view = $xoopsDB->query('SELECT categoryid, name FROM '.$xoopsDB->prefix('smartfaq_categories').' ');
41 41
         if ($xoopsDB->getRowsNum($result_view)) {
42 42
             while ($myrow_view = $xoopsDB->fetcharray($result_view)) {
43 43
                 $item_list_view['cid']   = $myrow_view['categoryid'];
44 44
                 $item_list_view['title'] = $myrow_view['name'];
45
-                $form_view               = new XoopsGroupPermForm('', $xoopsModule->getVar('mid'), 'category_read', "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_PERMISSIONSVIEWMAN . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" . _AM_SF_VIEW_CATS . '</span>', 'admin/permissions.php');
45
+                $form_view               = new XoopsGroupPermForm('', $xoopsModule->getVar('mid'), 'category_read', "<img id='toptableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;"._AM_SF_PERMISSIONSVIEWMAN."</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">"._AM_SF_VIEW_CATS.'</span>', 'admin/permissions.php');
46 46
                 $block_view[]            = $item_list_view;
47 47
                 foreach ($block_view as $itemlists) {
48 48
                     $form_view->addItem($itemlists['cid'], $myts->displayTarea($itemlists['title']));
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
             }
51 51
             echo $form_view->render();
52 52
         } else {
53
-            echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_PERMISSIONSVIEWMAN . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" . _AM_SF_NOPERMSSET . '</span>';
53
+            echo "<img id='toptableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;"._AM_SF_PERMISSIONSVIEWMAN."</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">"._AM_SF_NOPERMSSET.'</span>';
54 54
         }
55 55
         echo '</div>';
56 56
 
57 57
         echo "<br />\n";
58 58
 }
59 59
 
60
-include_once __DIR__ . '/admin_footer.php';
60
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -18,20 +18,20 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 $path = dirname(dirname(dirname(__DIR__)));
21
-include_once $path . '/mainfile.php';
22
-include_once $path . '/include/cp_functions.php';
23
-require_once $path . '/include/cp_header.php';
21
+include_once $path.'/mainfile.php';
22
+include_once $path.'/include/cp_functions.php';
23
+require_once $path.'/include/cp_header.php';
24 24
 
25
-include_once $path . '/kernel/module.php';
26
-include_once $path . '/class/xoopstree.php';
27
-include_once $path . '/class/xoopslists.php';
28
-include_once $path . '/class/pagenav.php';
29
-include_once $path . '/class/xoopsformloader.php';
25
+include_once $path.'/kernel/module.php';
26
+include_once $path.'/class/xoopstree.php';
27
+include_once $path.'/class/xoopslists.php';
28
+include_once $path.'/class/pagenav.php';
29
+include_once $path.'/class/xoopsformloader.php';
30 30
 
31
-include_once $path . '/modules/smartfaq/include/functions.php';
32
-include_once $path . '/modules/smartfaq/class/category.php';
33
-include_once $path . '/modules/smartfaq/class/faq.php';
34
-include_once $path . '/modules/smartfaq/class/answer.php';
31
+include_once $path.'/modules/smartfaq/include/functions.php';
32
+include_once $path.'/modules/smartfaq/class/category.php';
33
+include_once $path.'/modules/smartfaq/class/faq.php';
34
+include_once $path.'/modules/smartfaq/class/answer.php';
35 35
 
36 36
 $myts = MyTextSanitizer::getInstance();
37 37
 
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
 xoops_loadLanguage('modinfo', $moduleDirName);
48 48
 xoops_loadLanguage('main', $moduleDirName);
49 49
 
50
-$pathIcon16      = '../' . $xoopsModule->getInfo('icons16');
51
-$pathIcon32      = '../' . $xoopsModule->getInfo('icons32');
52
-$pathModuleAdmin =& $xoopsModule->getInfo('dirmoduleadmin');
50
+$pathIcon16      = '../'.$xoopsModule->getInfo('icons16');
51
+$pathIcon32      = '../'.$xoopsModule->getInfo('icons32');
52
+$pathModuleAdmin = & $xoopsModule->getInfo('dirmoduleadmin');
53 53
 
54
-include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php');
54
+include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
Please login to merge, or discard this patch.
admin/answer.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include_once __DIR__ . '/admin_header.php';
9
+include_once __DIR__.'/admin_header.php';
10 10
 
11 11
 $op = '';
12 12
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 {
29 29
     global $answerHandler, $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL, $myts, $pathIcon16, $smartModuleConfig;
30 30
 
31
-    include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
31
+    include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
32 32
 
33 33
     // Creating the FAQ object
34 34
     $faqObj = new sfFaq($faqid);
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
     $official_answer = $faqObj->answer();
65 65
 
66 66
     sf_collapsableBar('bottomtable', 'bottomtableicon');
67
-    echo "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_SUBMITTED_ANSWER . '</h3>';
67
+    echo "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;"._AM_SF_SUBMITTED_ANSWER.'</h3>';
68 68
     echo "<div id='bottomtable'>";
69
-    echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_SF_SUBMITTED_ANSWER_INFO . '</span>';
69
+    echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">"._AM_SF_SUBMITTED_ANSWER_INFO.'</span>';
70 70
 
71 71
     $proposed_answers = $answerHandler->getAllAnswers($faqid, _SF_AN_STATUS_PROPOSED);
72 72
 
@@ -76,31 +76,31 @@  discard block
 block discarded – undo
76 76
 
77 77
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>
78 78
             <tr>
79
-              <td class='head' width='100px'>" . _AM_SF_CATEGORY . "</td>
80
-              <td class='even'>" . $categoryObj->name() . "</td>
79
+              <td class='head' width='100px'>" . _AM_SF_CATEGORY."</td>
80
+              <td class='even'>" . $categoryObj->name()."</td>
81 81
             </tr>
82 82
             <tr>
83
-              <td class='head' width='100px'>" . _AM_SF_QUESTION . "</td>
84
-              <td class='even'>" . $faqObj->question() . '</td>
83
+              <td class='head' width='100px'>" . _AM_SF_QUESTION."</td>
84
+              <td class='even'>" . $faqObj->question().'</td>
85 85
             </tr>';
86 86
     if ($official_answer) {
87 87
         echo "
88 88
             <tr>
89
-              <td class='head' width='100px'>" . _AM_SF_ANSWER_OFFICIAL . "</td>
90
-              <td class='even'>" . $official_answer->answer() . '</td>
89
+              <td class='head' width='100px'>" . _AM_SF_ANSWER_OFFICIAL."</td>
90
+              <td class='even'>" . $official_answer->answer().'</td>
91 91
             </tr>';
92 92
     }
93 93
     echo "</table><br />\n";
94 94
 
95 95
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
96 96
     echo '<tr>';
97
-    echo "<th width='40' class='bg3' align='center'><b>" . _AM_SF_ARTID . '</b></td>';
98
-    echo "<th class='bg3' class='bg3' align='center'><b>" . _AM_SF_ANSWER . '</b></td>';
97
+    echo "<th width='40' class='bg3' align='center'><b>"._AM_SF_ARTID.'</b></td>';
98
+    echo "<th class='bg3' class='bg3' align='center'><b>"._AM_SF_ANSWER.'</b></td>';
99 99
 
100
-    echo "<th width='90' class='bg3' align='center'><b>" . _AM_SF_ANSWERED . '</b></td>';
100
+    echo "<th width='90' class='bg3' align='center'><b>"._AM_SF_ANSWERED.'</b></td>';
101 101
 
102
-    echo "<th width='180' class='bg3' align='center'><b>" . _AM_SF_CREATED . '</b></td>';
103
-    echo "<th width='120' class='bg3' align='center'><b>" . _AM_SF_ACTION . '</b></td>';
102
+    echo "<th width='180' class='bg3' align='center'><b>"._AM_SF_CREATED.'</b></td>';
103
+    echo "<th width='120' class='bg3' align='center'><b>"._AM_SF_ACTION.'</b></td>';
104 104
     echo '</tr>';
105 105
 
106 106
     $merge   = '';
@@ -108,20 +108,20 @@  discard block
 block discarded – undo
108 108
     $approve = '';
109 109
     foreach ($proposed_answers as $proposed_answer) {
110 110
         if ($faqObj->status() == _SF_STATUS_NEW_ANSWER) {
111
-            $merge   = "<a href='faq.php?op=merge&amp;faqid=" . $faqObj->faqid() . '&amp;answerid=' . $proposed_answer->answerid() . "'><img src='" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/merge.gif' title='" . _AM_SF_FAQ_MERGE . "' alt='" . _AM_SF_FAQ_MERGE . "' /></a>&nbsp;";
112
-            $approve = "<a href='answer.php?op=selectanswer&amp;faqid=" . $faqid . '&amp;answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/on.png' . "' title='" . _AM_SF_FAQ_APPROVE_NEW_ANSWER . "' alt='" . _AM_SF_APPROVESUB . "' /></a>";
111
+            $merge   = "<a href='faq.php?op=merge&amp;faqid=".$faqObj->faqid().'&amp;answerid='.$proposed_answer->answerid()."'><img src='".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/merge.gif' title='"._AM_SF_FAQ_MERGE."' alt='"._AM_SF_FAQ_MERGE."' /></a>&nbsp;";
112
+            $approve = "<a href='answer.php?op=selectanswer&amp;faqid=".$faqid.'&amp;answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/on.png'."' title='"._AM_SF_FAQ_APPROVE_NEW_ANSWER."' alt='"._AM_SF_APPROVESUB."' /></a>";
113 113
         }
114
-        $modify = "<a href='faq.php?op=mod&amp;faqid=" . $faqObj->faqid() . '&amp;answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_FAQ_REVIEW . "' alt='" . _AM_SF_FAQ_REVIEW . "' /></a>&nbsp;";
115
-        $delete = "<a href='answer.php?op=del&amp;faqid=" . $faqObj->faqid() . '&amp;answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/delete.png' . "' title='" . _AM_SF_DELETESUBM . "' alt='" . _AM_SF_DELETESUBM . "' /></a>";
114
+        $modify = "<a href='faq.php?op=mod&amp;faqid=".$faqObj->faqid().'&amp;answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/edit.png'."' title='"._AM_SF_FAQ_REVIEW."' alt='"._AM_SF_FAQ_REVIEW."' /></a>&nbsp;";
115
+        $delete = "<a href='answer.php?op=del&amp;faqid=".$faqObj->faqid().'&amp;answerid='.$proposed_answer->answerid()."'><img src='".$pathIcon16.'/delete.png'."' title='"._AM_SF_DELETESUBM."' alt='"._AM_SF_DELETESUBM."' /></a>";
116 116
         echo '<tr>';
117
-        echo "<td class='head' align='center'>" . $proposed_answer->answerid() . '</td>';
118
-        echo "<td class='even' align='left'>" . $proposed_answer->answer() . '</td>';
117
+        echo "<td class='head' align='center'>".$proposed_answer->answerid().'</td>';
118
+        echo "<td class='even' align='left'>".$proposed_answer->answer().'</td>';
119 119
 
120 120
         //show name of the answer submitter
121 121
         $submitter = sf_getLinkedUnameFromId($proposed_answer->uid(), $smartModuleConfig['userealname']);
122
-        echo "<td class='even' align='center'>" . $submitter . '</td>';
122
+        echo "<td class='even' align='center'>".$submitter.'</td>';
123 123
 
124
-        echo "<td class='even' align='center'>" . $proposed_answer->datesub() . '</td>';
124
+        echo "<td class='even' align='center'>".$proposed_answer->datesub().'</td>';
125 125
         echo "<td class='even' align='center'> $merge $modify $approve $delete </td>";
126 126
         echo '</tr>';
127 127
     }
@@ -133,17 +133,17 @@  discard block
 block discarded – undo
133 133
 switch ($op) {
134 134
     case 'mod':
135 135
         xoops_cp_header();
136
-        include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
136
+        include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
137 137
         global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $modify, $myts;
138
-        $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0;
138
+        $faqid = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0;
139 139
         editfaq($faqid);
140 140
         break;
141 141
 
142 142
     case 'selectanswer':
143 143
         global $xoopsUser, $_GET, $xoopsModuleConfig;
144 144
 
145
-        $faqid    = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0;
146
-        $answerid = isset($_GET['answerid']) ? (int)$_GET['answerid'] : 0;
145
+        $faqid    = isset($_GET['faqid']) ? (int) $_GET['faqid'] : 0;
146
+        $answerid = isset($_GET['answerid']) ? (int) $_GET['answerid'] : 0;
147 147
 
148 148
         // Creating the FAQ object
149 149
         $faqObj = new sfFaq($faqid);
@@ -217,11 +217,11 @@  discard block
 block discarded – undo
217 217
     case 'del':
218 218
         global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB;
219 219
 
220
-        $faqid     = isset($_POST['faqid']) ? (int)$_POST['faqid'] : 0;
221
-        $faqid     = isset($_GET['faqid']) ? (int)$_GET['faqid'] : $faqid;
222
-        $answerid  = isset($_POST['answerid']) ? (int)$_POST['answerid'] : 0;
223
-        $answerid  = isset($_GET['answerid']) ? (int)$_GET['answerid'] : $answerid;
224
-        $confirm   = isset($_POST['confirm']) ? (int)$_POST['confirm'] : 0;
220
+        $faqid     = isset($_POST['faqid']) ? (int) $_POST['faqid'] : 0;
221
+        $faqid     = isset($_GET['faqid']) ? (int) $_GET['faqid'] : $faqid;
222
+        $answerid  = isset($_POST['answerid']) ? (int) $_POST['answerid'] : 0;
223
+        $answerid  = isset($_GET['answerid']) ? (int) $_GET['answerid'] : $answerid;
224
+        $confirm   = isset($_POST['confirm']) ? (int) $_POST['confirm'] : 0;
225 225
         $faqObj    = new sfFaq($faqid);
226 226
         $answerObj = new sfAnswer($answerid);
227 227
         if ($confirm) {
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
                     $proposed_answers = $answerHandler->getAllAnswers($faqid, _SF_AN_STATUS_PROPOSED);
241 241
                     if (count($proposed_answers) > 0) {
242 242
                         // This question has other proposed answer
243
-                        $redirect_page = 'answer.php?op=mod&faqid=' . $faqid;
243
+                        $redirect_page = 'answer.php?op=mod&faqid='.$faqid;
244 244
                         $redirect_msg  = _AM_SF_ANSWER_REJECTED;
245 245
                     } else {
246 246
                         // The question has no other proposed answer
@@ -264,11 +264,11 @@  discard block
 block discarded – undo
264 264
     default:
265 265
         xoops_cp_header();
266 266
 
267
-        include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
267
+        include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
268 268
         global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule;
269 269
 
270 270
         editfaq();
271 271
         break;
272 272
 }
273 273
 
274
-include_once __DIR__ . '/admin_footer.php';
274
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
21
-include_once __DIR__ . '/admin_header.php';
20
+require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
21
+include_once __DIR__.'/admin_header.php';
22 22
 
23 23
 xoops_cp_header();
24 24
 
@@ -72,34 +72,34 @@  discard block
 block discarded – undo
72 72
 $indexAdmin->addInfoBox(_AM_SF_INVENTORY);
73 73
 
74 74
 if ($totalcategories > 0) {
75
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="category.php">' . _AM_SF_TOTALCAT . '</a><b>' . '</infolabel>', $totalcategories, 'Green');
75
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="category.php">'._AM_SF_TOTALCAT.'</a><b>'.'</infolabel>', $totalcategories, 'Green');
76 76
 } else {
77
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALCAT . '</infolabel>', $totalcategories, 'Green');
77
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALCAT.'</infolabel>', $totalcategories, 'Green');
78 78
 }
79 79
 if ($totalasked > 0) {
80
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="main.php">' . _AM_SF_TOTALASKED . '</a><b>' . '</infolabel>', $totalasked, 'Green');
80
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="main.php">'._AM_SF_TOTALASKED.'</a><b>'.'</infolabel>', $totalasked, 'Green');
81 81
 } else {
82
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALASKED . '</infolabel>', $totalasked, 'Green');
82
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALASKED.'</infolabel>', $totalasked, 'Green');
83 83
 }
84 84
 if ($totalopened > 0) {
85
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="question.php">' . _AM_SF_TOTALOPENED . '</a><b>' . '</infolabel>', $totalopened, 'Red');
85
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="question.php">'._AM_SF_TOTALOPENED.'</a><b>'.'</infolabel>', $totalopened, 'Red');
86 86
 } else {
87
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALOPENED . '</infolabel>', $totalopened, 'Green');
87
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALOPENED.'</infolabel>', $totalopened, 'Green');
88 88
 }
89 89
 if ($totalsubmitted > 0) {
90
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="category.php">' . _AM_SF_TOTALSUBMITTED . '</a><b>' . '</infolabel>', $totalsubmitted, 'Green');
90
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="category.php">'._AM_SF_TOTALSUBMITTED.'</a><b>'.'</infolabel>', $totalsubmitted, 'Green');
91 91
 } else {
92
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALSUBMITTED . '</infolabel>', $totalsubmitted, 'Green');
92
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALSUBMITTED.'</infolabel>', $totalsubmitted, 'Green');
93 93
 }
94 94
 if ($totalpublished > 0) {
95
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="faq.php">' . _AM_SF_TOTALPUBLISHED . '</a><b>' . '</infolabel>', $totalpublished, 'Green');
95
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="faq.php">'._AM_SF_TOTALPUBLISHED.'</a><b>'.'</infolabel>', $totalpublished, 'Green');
96 96
 } else {
97
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALPUBLISHED . '</infolabel>', $totalpublished, 'Green');
97
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALPUBLISHED.'</infolabel>', $totalpublished, 'Green');
98 98
 }
99 99
 if ($totalnewanswers > 0) {
100
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . '<a href="main.php">' . _AM_SF_TOTALNEWANSWERS . '</a><b>' . '</infolabel>', $totalnewanswers, 'Red');
100
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'.'<a href="main.php">'._AM_SF_TOTALNEWANSWERS.'</a><b>'.'</infolabel>', $totalnewanswers, 'Red');
101 101
 } else {
102
-    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>' . _AM_SF_TOTALNEWANSWERS . '</infolabel>', $totalnewanswers, 'Green');
102
+    $indexAdmin->addInfoBoxLine(_AM_SF_INVENTORY, '<infolabel>'._AM_SF_TOTALNEWANSWERS.'</infolabel>', $totalnewanswers, 'Green');
103 103
 }
104 104
 
105 105
 //----------------------
@@ -107,4 +107,4 @@  discard block
 block discarded – undo
107 107
 echo $indexAdmin->addNavigation(basename(__FILE__));
108 108
 echo $indexAdmin->renderIndex();
109 109
 
110
-include_once __DIR__ . '/admin_footer.php';
110
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/myblocksadmin.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
 //                          GIJOE <http://www.peak.ne.jp/>                   //
13 13
 // ------------------------------------------------------------------------- //
14 14
 
15
-include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
15
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
16 16
 include_once 'mygrouppermform.php';
17
-include_once(XOOPS_ROOT_PATH . '/class/xoopsblock.php');
18
-include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/include/functions.php';
17
+include_once(XOOPS_ROOT_PATH.'/class/xoopsblock.php');
18
+include_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'];
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 include_once("$xoops_system_path/constants.php");
31 31
 include_once("$xoops_system_path/language/$language/admin.php");
32 32
 include_once("$xoops_system_path/language/$language/admin/blocksadmin.php");
33
-include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php';
33
+include_once XOOPS_ROOT_PATH.'/modules/smartfaq/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
 block discarded – undo
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
@@ -63,20 +63,20 @@  discard block
 block discarded – undo
63 63
 
64 64
     // displaying TH
65 65
     sf_collapsableBar('toptable', 'toptableicon');
66
-    echo "<img id='toptableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_BLOCKS . '</h3>';
66
+    echo "<img id='toptableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;"._AM_SF_BLOCKS.'</h3>';
67 67
     echo "<div id='toptable'>";
68
-    echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_SF_BLOCKSTXT . '</span>';
68
+    echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">"._AM_SF_BLOCKSTXT.'</span>';
69 69
 
70 70
     echo "
71 71
     <form action='admin.php' name='blockadmin' method='post'>
72 72
         <table width='100%' class='outer' cellpadding='4' cellspacing='1'>
73 73
         <tr valign='middle'>
74
-            <th>" . _AM_TITLE . "</th>
75
-            <th align='center' nowrap='nowrap'>" . _AM_SF_POSITION . "</th>
76
-            <th align='center'>" . _AM_WEIGHT . "</th>
77
-            <th align='center'>" . _AM_VISIBLEIN . "</th>
78
-            <th align='center'>" . _AM_BCACHETIME . "</th>
79
-            <th align='center'>" . _AM_ACTION . "</th>
74
+            <th>" . _AM_TITLE."</th>
75
+            <th align='center' nowrap='nowrap'>" . _AM_SF_POSITION."</th>
76
+            <th align='center'>" . _AM_WEIGHT."</th>
77
+            <th align='center'>" . _AM_VISIBLEIN."</th>
78
+            <th align='center'>" . _AM_BCACHETIME."</th>
79
+            <th align='center'>" . _AM_ACTION."</th>
80 80
         </tr>\n";
81 81
 
82 82
     // blocks displaying loop
@@ -126,10 +126,10 @@  discard block
 block discarded – undo
126 126
 
127 127
         // target modules
128 128
         $db            = XoopsDatabaseFactory::getDatabaseConnection();
129
-        $result        = $db->query('SELECT module_id FROM ' . $db->prefix('block_module_link') . " WHERE block_id='$bid'");
129
+        $result        = $db->query('SELECT module_id FROM '.$db->prefix('block_module_link')." WHERE block_id='$bid'");
130 130
         $selected_mids = array();
131 131
         while (list($selected_mid) = $db->fetchRow($result)) {
132
-            $selected_mids[] = (int)$selected_mid;
132
+            $selected_mids[] = (int) $selected_mid;
133 133
         }
134 134
         $moduleHandler = xoops_getHandler('module');
135 135
         $criteria      = new CriteriaCompo(new Criteria('hasmain', 1));
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
         $myts           = MyTextSanitizer::getInstance();
143 143
         foreach ($module_list as $mid => $mname) {
144 144
             if (in_array($mid, $selected_mids)) {
145
-                $module_options .= "<option value='$mid' selected='selected'>" . $myts->displayTarea($mname) . "</option>\n";
145
+                $module_options .= "<option value='$mid' selected='selected'>".$myts->displayTarea($mname)."</option>\n";
146 146
             } else {
147
-                $module_options .= "<option value='$mid'>" . $myts->displayTarea($mname) . "</option>\n";
147
+                $module_options .= "<option value='$mid'>".$myts->displayTarea($mname)."</option>\n";
148 148
             }
149 149
         }
150 150
 
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
                 <input type='text' name='title[$bid]' value='$title' size='20' />
158 158
             </td>
159 159
             <td class='$class' align='center' nowrap='nowrap'>
160
-                <input type='radio' name='side[$bid]' value='" . XOOPS_SIDEBLOCK_LEFT . "'$ssel0 />-<input type='radio' name='side[$bid]' value='" . XOOPS_CENTERBLOCK_LEFT . "'$ssel2 /><input type='radio' name='side[$bid]' value='" . XOOPS_CENTERBLOCK_CENTER . "'$ssel3 /><input type='radio' name='side[$bid]' value='" . XOOPS_CENTERBLOCK_RIGHT . "'$ssel4 />-<input type='radio' name='side[$bid]' value='" . XOOPS_SIDEBLOCK_RIGHT . "'$ssel1 />
160
+                <input type='radio' name='side[$bid]' value='".XOOPS_SIDEBLOCK_LEFT."'$ssel0 />-<input type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_LEFT."'$ssel2 /><input type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_CENTER."'$ssel3 /><input type='radio' name='side[$bid]' value='".XOOPS_CENTERBLOCK_RIGHT."'$ssel4 />-<input type='radio' name='side[$bid]' value='".XOOPS_SIDEBLOCK_RIGHT."'$ssel1 />
161 161
                 <br />
162 162
                 <br />
163 163
                 <input type='radio' name='side[$bid]' value='-1'$sseln />
164
-                " . _NONE . "
164
+                "._NONE."
165 165
             </td>
166 166
             <td class='$class' align='center'>
167 167
                 <input type='text' name=weight[$bid] value='$weight' size='5' maxlength='5' style='text-align:right;' />
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 </select>
178 178
             </td>
179 179
             <td class='$class' align='center'>
180
-                <a href='admin.php?fct=blocksadmin&amp;op=edit&amp;bid=$bid'>" . _EDIT . "</a>
180
+                <a href='admin.php?fct=blocksadmin&amp;op=edit&amp;bid=$bid'>"._EDIT."</a>
181 181
                 <input type='hidden' name='bid[$bid]' value='$bid' />
182 182
             </td>
183 183
         </tr>\n";
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             <td class='foot' align='center' colspan='6'>
191 191
                 <input type='hidden' name='fct' value='blocksadmin' />
192 192
                 <input type='hidden' name='op' value='order' />
193
-                <input type='submit' name='submit' value='" . _SUBMIT . "' />
193
+                <input type='submit' name='submit' value='" . _SUBMIT."' />
194 194
             </td>
195 195
         </tr>
196 196
         </table>
@@ -209,9 +209,9 @@  discard block
 block discarded – undo
209 209
         $item_list[$block_arr[$i]->getVar('bid')] = $block_arr[$i]->getVar('title');
210 210
     }
211 211
 
212
-    $form = new MyXoopsGroupPermForm('', 1, 'block_read', "<img id='bottomtableicon' src=" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/assets/images/icon/close12.gif alt='' /></a>&nbsp;" . _AM_SF_GROUPS . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" . _AM_SF_GROUPSINFO . '</span>');
213
-    $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACTIVERIGHTS);
214
-    $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACCESSRIGHTS);
212
+    $form = new MyXoopsGroupPermForm('', 1, 'block_read', "<img id='bottomtableicon' src=".XOOPS_URL.'/modules/'.$xoopsModule->dirname()."/assets/images/icon/close12.gif alt='' /></a>&nbsp;"._AM_SF_GROUPS."</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">"._AM_SF_GROUPSINFO.'</span>');
213
+    $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name().' '._AM_ACTIVERIGHTS);
214
+    $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name().' '._AM_ACCESSRIGHTS);
215 215
     foreach ($item_list as $item_id => $item_name) {
216 216
         $form->addItem($item_id, $myts->displayTarea($item_name));
217 217
     }
@@ -220,9 +220,9 @@  discard block
 block discarded – undo
220 220
 }
221 221
 
222 222
 if (!empty($_POST['submit'])) {
223
-    include __DIR__ . '/mygroupperm.php';
223
+    include __DIR__.'/mygroupperm.php';
224 224
     include_once("$xoops_system_path/language/$language/admin.php");
225
-    redirect_header(XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/admin/myblocksadmin.php', 1, _AM_DBUPDATED);
225
+    redirect_header(XOOPS_URL.'/modules/'.$xoopsModule->dirname().'/admin/myblocksadmin.php', 1, _AM_DBUPDATED);
226 226
 }
227 227
 
228 228
 xoops_cp_header();
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,6 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-echo "<div class='adminfooter'>\n" . "  <div style='text-align: center;'>\n" . "    <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . "  </div>\n" . '  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>';
20
+echo "<div class='adminfooter'>\n"."  <div style='text-align: center;'>\n"."    <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"."  </div>\n".'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>';
21 21
 
22 22
 xoops_cp_footer();
Please login to merge, or discard this patch.
admin/about2.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * Licence: GNU
7 7
  */
8 8
 
9
-include_once __DIR__ . '/admin_header.php';
9
+include_once __DIR__.'/admin_header.php';
10 10
 $myts = MyTextSanitizer::getInstance();
11 11
 
12 12
 global $xoopsModule;
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 xoops_cp_header();
15 15
 
16 16
 $moduleHandler = xoops_getHandler('module');
17
-$versioninfo   =& $moduleHandler->get($xoopsModule->getVar('mid'));
17
+$versioninfo   = & $moduleHandler->get($xoopsModule->getVar('mid'));
18 18
 
19 19
 /*  Centered heading
20 20
 echo "<br />";
@@ -38,46 +38,46 @@  discard block
 block discarded – undo
38 38
 echo "</table>";
39 39
 */
40 40
 // Left headings...
41
-echo "<img src='" . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $versioninfo->getInfo('image') . "' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'/></a>";
42
-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>';
41
+echo "<img src='".XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/'.$versioninfo->getInfo('image')."' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'/></a>";
42
+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>';
43 43
 if ($versioninfo->getInfo('author_realname') != '') {
44
-    $author_name = $versioninfo->getInfo('author') . ' (' . $versioninfo->getInfo('author_realname') . ')';
44
+    $author_name = $versioninfo->getInfo('author').' ('.$versioninfo->getInfo('author_realname').')';
45 45
 } else {
46 46
     $author_name = $versioninfo->getInfo('author');
47 47
 }
48 48
 
49
-echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>" . _AM_SF_BY . ' ' . $author_name;
49
+echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>"._AM_SF_BY.' '.$author_name;
50 50
 echo '</div>';
51
-echo "<div style = 'line-height: 16px; display: block;'>" . $versioninfo->getInfo('license') . "</div>\n";
51
+echo "<div style = 'line-height: 16px; display: block;'>".$versioninfo->getInfo('license')."</div>\n";
52 52
 
53 53
 // Developers Information
54 54
 echo "<br /><table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
55 55
 echo '<tr>';
56
-echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_AUTHOR_INFO . '</b></td>';
56
+echo "<td colspan='2' class='bg3' align='left'><b>"._MI_SF_AUTHOR_INFO.'</b></td>';
57 57
 echo '</tr>';
58 58
 
59 59
 if ($versioninfo->getInfo('developer_lead') != '') {
60 60
     echo '<tr>';
61
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_LEAD . '</td>';
62
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_lead') . '</td>';
61
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_LEAD.'</td>';
62
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('developer_lead').'</td>';
63 63
     echo '</tr>';
64 64
 }
65 65
 if ($versioninfo->getInfo('developer_contributor') != '') {
66 66
     echo '<tr>';
67
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_CONTRIBUTOR . '</td>';
68
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_contributor') . '</td>';
67
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_CONTRIBUTOR.'</td>';
68
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('developer_contributor').'</td>';
69 69
     echo '</tr>';
70 70
 }
71 71
 if ($versioninfo->getInfo('developer_website_url') != '') {
72 72
     echo '<tr>';
73
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_WEBSITE . '</td>';
74
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('developer_website_url') . "' target='blank'>" . $versioninfo->getInfo('developer_website_name') . '</a></td>';
73
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_WEBSITE.'</td>';
74
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('developer_website_url')."' target='blank'>".$versioninfo->getInfo('developer_website_name').'</a></td>';
75 75
     echo '</tr>';
76 76
 }
77 77
 if ($versioninfo->getInfo('developer_email') != '') {
78 78
     echo '<tr>';
79
-    echo "<td class='head' width = '150px' align='left'>" . _MI_SF_DEVELOPER_EMAIL . '</td>';
80
-    echo "<td class='even' align='left'><a href='mailto:" . $versioninfo->getInfo('developer_email') . "'>" . $versioninfo->getInfo('developer_email') . '</a></td>';
79
+    echo "<td class='head' width = '150px' align='left'>"._MI_SF_DEVELOPER_EMAIL.'</td>';
80
+    echo "<td class='even' align='left'><a href='mailto:".$versioninfo->getInfo('developer_email')."'>".$versioninfo->getInfo('developer_email').'</a></td>';
81 81
     echo '</tr>';
82 82
 }
83 83
 
@@ -86,47 +86,47 @@  discard block
 block discarded – undo
86 86
 // Module Developpment information
87 87
 echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
88 88
 echo '<tr>';
89
-echo "<td colspan='2' class='bg3' align='left'><b>" . _MI_SF_MODULE_INFO . '</b></td>';
89
+echo "<td colspan='2' class='bg3' align='left'><b>"._MI_SF_MODULE_INFO.'</b></td>';
90 90
 echo '</tr>';
91 91
 
92 92
 if ($versioninfo->getInfo('date') != '') {
93 93
     echo '<tr>';
94
-    echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_RELEASE_DATE . '</td>';
95
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('date') . '</td>';
94
+    echo "<td class='head' width = '200' align='left'>"._MI_SF_MODULE_RELEASE_DATE.'</td>';
95
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('date').'</td>';
96 96
     echo '</tr>';
97 97
 }
98 98
 
99 99
 if ($versioninfo->getInfo('status') != '') {
100 100
     echo '<tr>';
101
-    echo "<td class='head' width = '200' align='left'>" . _MI_SF_MODULE_STATUS . '</td>';
102
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('status') . '</td>';
101
+    echo "<td class='head' width = '200' align='left'>"._MI_SF_MODULE_STATUS.'</td>';
102
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('status').'</td>';
103 103
     echo '</tr>';
104 104
 }
105 105
 
106 106
 if ($versioninfo->getInfo('demo_site_url') != '') {
107 107
     echo '<tr>';
108
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_DEMO . '</td>';
109
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('demo_site_url') . "' target='blank'>" . $versioninfo->getInfo('demo_site_name') . '</a></td>';
108
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_DEMO.'</td>';
109
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('demo_site_url')."' target='blank'>".$versioninfo->getInfo('demo_site_name').'</a></td>';
110 110
     echo '</tr>';
111 111
 }
112 112
 
113 113
 if ($versioninfo->getInfo('support_site_url') != '') {
114 114
     echo '<tr>';
115
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_SUPPORT . '</td>';
116
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('support_site_url') . "' target='blank'>" . $versioninfo->getInfo('support_site_name') . '</a></td>';
115
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_SUPPORT.'</td>';
116
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('support_site_url')."' target='blank'>".$versioninfo->getInfo('support_site_name').'</a></td>';
117 117
     echo '</tr>';
118 118
 }
119 119
 
120 120
 if ($versioninfo->getInfo('submit_bug') != '') {
121 121
     echo '<tr>';
122
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_BUG . '</td>';
123
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_bug') . "' target='blank'>" . 'Submit a Bug in SmartFAQ Bug Tracker' . '</a></td>';
122
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_BUG.'</td>';
123
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('submit_bug')."' target='blank'>".'Submit a Bug in SmartFAQ Bug Tracker'.'</a></td>';
124 124
     echo '</tr>';
125 125
 }
126 126
 if ($versioninfo->getInfo('submit_feature') != '') {
127 127
     echo '<tr>';
128
-    echo "<td class='head' align='left'>" . _MI_SF_MODULE_FEATURE . '</td>';
129
-    echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_feature') . "' target='blank'>" . 'Request a feature in the SmartFAQ Feature Tracker' . '</a></td>';
128
+    echo "<td class='head' align='left'>"._MI_SF_MODULE_FEATURE.'</td>';
129
+    echo "<td class='even' align='left'><a href='".$versioninfo->getInfo('submit_feature')."' target='blank'>".'Request a feature in the SmartFAQ Feature Tracker'.'</a></td>';
130 130
     echo '</tr>';
131 131
 }
132 132
 
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
     echo "<br />\n";
137 137
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
138 138
     echo '<tr>';
139
-    echo "<td class='bg3' align='left'><b>" . _MI_SF_MODULE_DISCLAIMER . '</b></td>';
139
+    echo "<td class='bg3' align='left'><b>"._MI_SF_MODULE_DISCLAIMER.'</b></td>';
140 140
     echo '</tr>';
141 141
 
142 142
     echo '<tr>';
143
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('warning') . '</td>';
143
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('warning').'</td>';
144 144
     echo '</tr>';
145 145
 
146 146
     echo '</table>';
@@ -150,11 +150,11 @@  discard block
 block discarded – undo
150 150
     echo "<br />\n";
151 151
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
152 152
     echo '<tr>';
153
-    echo "<td class='bg3' align='left'><b>" . _MI_SF_AUTHOR_WORD . '</b></td>';
153
+    echo "<td class='bg3' align='left'><b>"._MI_SF_AUTHOR_WORD.'</b></td>';
154 154
     echo '</tr>';
155 155
 
156 156
     echo '<tr>';
157
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('author_word') . '</td>';
157
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('author_word').'</td>';
158 158
     echo '</tr>';
159 159
 
160 160
     echo '</table>';
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
     echo "<br />\n";
166 166
     echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>";
167 167
     echo '<tr>';
168
-    echo "<td class='bg3' align='left'><b>" . _MI_SF_VERSION_HISTORY . '</b></td>';
168
+    echo "<td class='bg3' align='left'><b>"._MI_SF_VERSION_HISTORY.'</b></td>';
169 169
     echo '</tr>';
170 170
 
171 171
     echo '<tr>';
172
-    echo "<td class='even' align='left'>" . $versioninfo->getInfo('version_history') . '</td>';
172
+    echo "<td class='even' align='left'>".$versioninfo->getInfo('version_history').'</td>';
173 173
     echo '</tr>';
174 174
 
175 175
     echo '</table>';
@@ -179,4 +179,4 @@  discard block
 block discarded – undo
179 179
 //$modfooter = sf_modFooter();
180 180
 //echo "<div align='center'>" . $modfooter . "</div>";
181 181
 //xoops_cp_footer();
182
-include_once __DIR__ . '/admin_footer.php';
182
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.