Completed
Push — master ( 96da4e...7c5656 )
by Michael
04:52
created
admin/main.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 echo '</text><br>';
106 106
 echo '<label>' . planet_constant('AM_TOTAL_BLOGS') . ':</label><text>' . $blog_count;
107 107
 if ($blog_count_pending > 0) {
108
-    echo " (<font color=\"red\">" . $blog_count_pending . '</font>)';
108
+	echo " (<font color=\"red\">" . $blog_count_pending . '</font>)';
109 109
 }
110 110
 echo '</text><br>';
111 111
 echo '<label>' . planet_constant('AM_TOTAL_ARTICLES') . ':</label><text>' . $article_count;
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 // URL: https://xoops.org                         //
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27
-require_once __DIR__ . '/admin_header.php';
27
+require_once __DIR__.'/admin_header.php';
28 28
 
29 29
 xoops_cp_header();
30 30
 $adminObject = \Xmf\Module\Admin::getInstance();
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
     </style>
51 51
 ";
52 52
 
53
-echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . planet_constant('AM_PREFERENCES') . '</legend>';
53
+echo "<fieldset><legend style='font-weight: bold; color: #900;'>".planet_constant('AM_PREFERENCES').'</legend>';
54 54
 echo "<div style='padding: 8px;'>";
55
-echo '<label>' . '<strong>PHP Version:</strong>' . ':</label><text>' . PHP_VERSION . '</text><br>';
55
+echo '<label>'.'<strong>PHP Version:</strong>'.':</label><text>'.PHP_VERSION.'</text><br>';
56 56
 //echo '<label>' . '<strong>MySQL Version:</strong>' . ':</label><text>' . mysqli_get_server_info() . '</text><br>';
57
-echo '<label>' . '<strong>XOOPS Version:</strong>' . ':</label><text>' . XOOPS_VERSION . '</text><br>';
58
-echo '<label>' . '<strong>Module Version:</strong>' . ':</label><text>' . $xoopsModule->getInfo('version') . '</text><br>';
57
+echo '<label>'.'<strong>XOOPS Version:</strong>'.':</label><text>'.XOOPS_VERSION.'</text><br>';
58
+echo '<label>'.'<strong>Module Version:</strong>'.':</label><text>'.$xoopsModule->getInfo('version').'</text><br>';
59 59
 echo '</div>';
60 60
 echo "<div style='padding: 8px;'>";
61 61
 //echo '<label>' . planet_constant('AM_SAFEMODE') . ':</label><text>';
@@ -67,31 +67,31 @@  discard block
 block discarded – undo
67 67
 //echo '<label>' . planet_constant('AM_MAGICQUOTESGPC') . ':</label><text>';
68 68
 //echo ini_get('magic_quotes_gpc') ? planet_constant('AM_ON') : planet_constant('AM_OFF');
69 69
 //echo '</text><br>';
70
-echo '<label>' . planet_constant('AM_MAXPOSTSIZE') . ':</label><text>' . ini_get('post_max_size');
70
+echo '<label>'.planet_constant('AM_MAXPOSTSIZE').':</label><text>'.ini_get('post_max_size');
71 71
 echo '</text><br>';
72
-echo '<label>' . planet_constant('AM_MAXINPUTTIME') . ':</label><text>' . ini_get('max_input_time');
72
+echo '<label>'.planet_constant('AM_MAXINPUTTIME').':</label><text>'.ini_get('max_input_time');
73 73
 echo '</text><br>';
74
-echo '<label>' . planet_constant('AM_OUTPUTBUFFERING') . ':</label><text>' . ini_get('output_buffering');
74
+echo '<label>'.planet_constant('AM_OUTPUTBUFFERING').':</label><text>'.ini_get('output_buffering');
75 75
 echo '</text><br>';
76
-echo '<label>' . planet_constant('AM_XML_EXTENSION') . ':</label><text>';
76
+echo '<label>'.planet_constant('AM_XML_EXTENSION').':</label><text>';
77 77
 echo extension_loaded('xml') ? planet_constant('AM_ON') : planet_constant('AM_OFF');
78 78
 echo '</text><br>';
79
-echo '<label>' . planet_constant('AM_MB_EXTENSION') . ':</label><text>';
79
+echo '<label>'.planet_constant('AM_MB_EXTENSION').':</label><text>';
80 80
 echo extension_loaded('mbstring') ? planet_constant('AM_ON') : planet_constant('AM_OFF');
81 81
 echo '</text><br>';
82
-echo '<label>' . planet_constant('AM_CURL') . ':</label><text>';
82
+echo '<label>'.planet_constant('AM_CURL').':</label><text>';
83 83
 echo function_exists('curl_init') ? planet_constant('AM_ON') : planet_constant('AM_OFF');
84 84
 echo '</text><br>';
85
-echo '<label>' . planet_constant('AM_FSOCKOPEN') . ':</label><text>';
85
+echo '<label>'.planet_constant('AM_FSOCKOPEN').':</label><text>';
86 86
 echo function_exists('fsockopen') ? planet_constant('AM_ON') : planet_constant('AM_OFF');
87 87
 echo '</text><br>';
88
-echo '<label>' . planet_constant('AM_URLFOPEN') . ':</label><text>';
88
+echo '<label>'.planet_constant('AM_URLFOPEN').':</label><text>';
89 89
 echo ini_get('allow_url_fopen') ? planet_constant('AM_ON') : planet_constant('AM_OFF');
90 90
 echo '</text><br>';
91 91
 echo '</div>';
92 92
 echo '</fieldset>';
93 93
 
94
-echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . planet_constant('AM_STATS') . '</legend>';
94
+echo "<fieldset><legend style='font-weight: bold; color: #900;'>".planet_constant('AM_STATS').'</legend>';
95 95
 echo "<div style='padding: 8px;'>";
96 96
 $categoryHandler    = xoops_getModuleHandler('category', $GLOBALS['moddirname']);
97 97
 $category_count     = $categoryHandler->getCount();
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
 $article_count      = $articleHandler->getCount();
102 102
 $criteria           = new Criteria('blog_status', 0);
103 103
 $blog_count_pending = $blogHandler->getCount($criteria);
104
-echo '<label>' . planet_constant('AM_TOTAL_CATEGORIES') . ':</label><text>' . $category_count;
104
+echo '<label>'.planet_constant('AM_TOTAL_CATEGORIES').':</label><text>'.$category_count;
105 105
 echo '</text><br>';
106
-echo '<label>' . planet_constant('AM_TOTAL_BLOGS') . ':</label><text>' . $blog_count;
107
-if ($blog_count_pending > 0) {
108
-    echo " (<font color=\"red\">" . $blog_count_pending . '</font>)';
106
+echo '<label>'.planet_constant('AM_TOTAL_BLOGS').':</label><text>'.$blog_count;
107
+if ($blog_count_pending>0) {
108
+    echo " (<font color=\"red\">".$blog_count_pending.'</font>)';
109 109
 }
110 110
 echo '</text><br>';
111
-echo '<label>' . planet_constant('AM_TOTAL_ARTICLES') . ':</label><text>' . $article_count;
111
+echo '<label>'.planet_constant('AM_TOTAL_ARTICLES').':</label><text>'.$article_count;
112 112
 echo '</text><br>';
113 113
 echo '</div>';
114 114
 echo '</fieldset>';
Please login to merge, or discard this patch.
admin/header.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27 27
 
28
-require_once __DIR__ . '/../../../include/cp_header.php';
29
-require XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php';
28
+require_once __DIR__.'/../../../include/cp_header.php';
29
+require XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/include/vars.php';
30 30
 //require_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/functions.php';
31
-require_once XOOPS_ROOT_PATH . '/Frameworks/art/functions.admin.php';
32
-require_once __DIR__ . '/../class/utility.php';
31
+require_once XOOPS_ROOT_PATH.'/Frameworks/art/functions.admin.php';
32
+require_once __DIR__.'/../class/utility.php';
33 33
 $moduleDirName = basename(dirname(__DIR__));
34 34
 // include the default language file for the admin interface
35 35
 xoops_loadLanguage('main', $moduleDirName);
Please login to merge, or discard this patch.
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-require_once __DIR__ . '/admin_header.php';
20
+require_once __DIR__.'/admin_header.php';
21 21
 xoops_cp_header();
22 22
 
23 23
 $adminObject->displayNavigation(basename(__FILE__));
24 24
 $adminObject->setPaypal('[email protected]');
25 25
 $adminObject->displayAbout(false);
26 26
 
27
-require_once __DIR__ . '/admin_footer.php';
27
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/menu.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
 if (false !== ($moduleHelper = Xmf\Module\Helper::getHelper($moduleDirName))) {
31 31
 } else {
32
-    $moduleHelper = Xmf\Module\Helper::getHelper('system');
32
+	$moduleHelper = Xmf\Module\Helper::getHelper('system');
33 33
 }
34 34
 $adminObject = \Xmf\Module\Admin::getInstance();
35 35
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 $moduleDirName = basename(dirname(__DIR__));
29 29
 
30 30
 if (false !== ($moduleHelper = Xmf\Module\Helper::getHelper($moduleDirName))) {
31
-} else {
31
+}else {
32 32
     $moduleHelper = Xmf\Module\Helper::getHelper('system');
33 33
 }
34 34
 $adminObject = \Xmf\Module\Admin::getInstance();
@@ -42,24 +42,24 @@  discard block
 block discarded – undo
42 42
 $i                      = 0;
43 43
 $adminmenu[$i]['title'] = _AM_MODULEADMIN_HOME;
44 44
 $adminmenu[$i]['link']  = 'admin/index.php';
45
-$adminmenu[$i]['icon']  = $pathIcon32 . '/home.png';
45
+$adminmenu[$i]['icon']  = $pathIcon32.'/home.png';
46 46
 ++$i;
47 47
 $adminmenu[$i]['title'] = planet_constant('MI_ADMENU_INDEX');
48 48
 $adminmenu[$i]['link']  = 'admin/main.php';
49
-$adminmenu[$i]['icon']  = $pathIcon32 . '/manage.png';
49
+$adminmenu[$i]['icon']  = $pathIcon32.'/manage.png';
50 50
 
51 51
 ++$i;
52 52
 $adminmenu[$i]['title'] = planet_constant('MI_ADMENU_CATEGORY');
53 53
 $adminmenu[$i]['link']  = 'admin/admin.category.php';
54
-$adminmenu[$i]['icon']  = $pathIcon32 . '/category.png';
54
+$adminmenu[$i]['icon']  = $pathIcon32.'/category.png';
55 55
 ++$i;
56 56
 $adminmenu[$i]['title'] = planet_constant('MI_ADMENU_BLOG');
57 57
 $adminmenu[$i]['link']  = 'admin/admin.blog.php';
58
-$adminmenu[$i]['icon']  = $pathIcon32 . '/translations.png';
58
+$adminmenu[$i]['icon']  = $pathIcon32.'/translations.png';
59 59
 ++$i;
60 60
 $adminmenu[$i]['title'] = planet_constant('MI_ADMENU_ARTICLE');
61 61
 $adminmenu[$i]['link']  = 'admin/admin.article.php';
62
-$adminmenu[$i]['icon']  = $pathIcon32 . '/content.png';
62
+$adminmenu[$i]['icon']  = $pathIcon32.'/content.png';
63 63
 //++$i;
64 64
 //$adminmenu[$i]['title'] = planet_constant("MI_ADMENU_BLOCK");
65 65
 //$adminmenu[$i]['link'] = "admin/admin.block.php";
@@ -67,4 +67,4 @@  discard block
 block discarded – undo
67 67
 ++$i;
68 68
 $adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT;
69 69
 $adminmenu[$i]['link']  = 'admin/about.php';
70
-$adminmenu[$i]['icon']  = $pathIcon32 . '/about.png';
70
+$adminmenu[$i]['icon']  = $pathIcon32.'/about.png';
Please login to merge, or discard this patch.
admin/admin.category.php 2 patches
Indentation   +126 added lines, -126 removed lines patch added patch discarded remove patch
@@ -41,133 +41,133 @@
 block discarded – undo
41 41
 $blogHandler     = xoops_getModuleHandler('blog', $GLOBALS['moddirname']);
42 42
 
43 43
 switch ($op) {
44
-    case 'save':
45
-        if ($cat_id) {
46
-            $category_obj = $categoryHandler->get($cat_id);
47
-        } else {
48
-            $category_obj = $categoryHandler->create();
49
-        }
50
-
51
-        $category_obj->setVar('cat_title', $_POST['cat_title']);
52
-        $category_obj->setVar('cat_order', $_POST['cat_order']);
53
-
54
-        if (!$categoryHandler->insert($category_obj)) {
55
-            $message = planet_constant('AM_ERROR');
56
-        } else {
57
-            $message = planet_constant('AM_DBUPDATED');
58
-        }
59
-        redirect_header('admin.category.php', 2, $message);
60
-
61
-    case 'del':
62
-        if (!is_array($cat_id)) {
63
-            $cat_id = array($cat_id);
64
-        }
65
-        foreach ($cat_id as $cid) {
66
-            $category_obj = $categoryHandler->get($cid);
67
-            if (!$categoryHandler->delete($category_obj)) {
68
-            }
69
-        }
70
-        $message = planet_constant('AM_DBUPDATED');
71
-        redirect_header('admin.category.php', 2, $message);
72
-
73
-    case 'order':
74
-        $count = count($_POST['cat_order']);
75
-        for ($i = 0; $i < $count; ++$i) {
76
-            $category_obj = $categoryHandler->get($_POST['cat'][$i]);
77
-            $category_obj->setVar('cat_order', $_POST['cat_order'][$i]);
78
-            $categoryHandler->insert($category_obj, true);
79
-            unset($category_obj);
80
-        }
81
-        $message = planet_constant('AM_DBUPDATED');
82
-        redirect_header('admin.category.php', 2, $message);
83
-
84
-    case 'edit':
85
-        $category_obj = $categoryHandler->get($cat_id);
86
-        $form         = new XoopsThemeForm(_EDIT, 'edit', xoops_getenv('PHP_SELF'), 'post', true);
87
-        $form->addElement(new XoopsFormText(planet_constant('AM_TITLE'), 'cat_title', 50, 80, $category_obj->getVar('cat_title', 'E')), true);
88
-        $form->addElement(new XoopsFormText(planet_constant('AM_ORDER'), 'cat_order', 5, 10, $category_obj->getVar('cat_order')), false);
89
-        $form->addElement(new XoopsFormHidden('category', $cat_id));
90
-        $form->addElement(new XoopsFormHidden('op', 'save'));
91
-
92
-        $button_tray = new XoopsFormElementTray('', '');
93
-        $butt_save   = new XoopsFormButton('', 'submit', _SUBMIT, 'submit');
94
-        $button_tray->addElement($butt_save);
95
-        $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'reset');
96
-        $button_tray->addElement($butt_cancel);
97
-        $form->addElement($button_tray);
98
-
99
-        echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _EDIT . '</legend>';
100
-        echo '<br>';
101
-        $form->display();
102
-        echo '</fieldset>';
103
-        break;
104
-
105
-    default:
106
-        $crit = new Criteria('1', 1);
107
-        $crit->setSort('cat_order');
108
-        $crit->setOrder('ASC');
109
-        $categories  = $categoryHandler->getList($crit);
110
-        $blog_counts = $blogHandler->getCountsByCategory();
111
-        foreach (array_keys($categories) as $cid) {
112
-            if (!empty($blog_counts[$cid])) {
113
-                $categories[$cid] .= ' (' . (int)$blog_counts[$cid] . ')';
114
-            }
115
-        }
116
-
117
-        echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . planet_constant('AM_LIST') . '</legend>';
118
-        echo "<br style=\"clear:both;\">";
119
-
120
-        echo "<form name='list' method='post'>";
121
-        echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
122
-        echo "<tr align='center'>";
123
-        echo "<th class='bg3' width='5%'>" . planet_constant('AM_ORDER') . '</td>';
124
-        echo "<th align='left' class='bg3' width='80%'>" . planet_constant('AM_TITLE') . '</td>';
125
-        echo "<th class='bg3' width='5%'>" . planet_constant('AM_BLOGCOUNT') . '</td>';
126
-        echo "<th class='bg3' width='5%'>" . planet_constant('AM_ACTIONS') . '</td>';
127
-        //        echo "<td class='bg3' width='5%'>" . _DELETE . "</td>";
128
-
129
-        echo '</tr>';
130
-
131
-        $ii = 0;
132
-        foreach (array_keys($categories) as $cid) {
133
-            echo "<tr class='odd' align='left'>";
134
-            echo "<td><input type='hidden' name='cat[]' value='" . $cid . "'>";
135
-            echo "<input type='text' name='cat_order[]' value='" . ($ii * 10) . "'></td>";
136
-            echo '<td>' . $categories[$cid] . '</td>';
137
-            echo "<td align='center'>" . @$blog_counts[$cid] . '</td>';
138
-
139
-            echo "<td align='center'><a href='admin.category.php?op=edit &amp;category='" . $cid . "' title='" . _EDIT . "'><img src='" . $pathIcon16 . "/edit.png '" . "alt='" . _EDIT . "' title='" . _EDIT . "' </a>&nbsp;
44
+	case 'save':
45
+		if ($cat_id) {
46
+			$category_obj = $categoryHandler->get($cat_id);
47
+		} else {
48
+			$category_obj = $categoryHandler->create();
49
+		}
50
+
51
+		$category_obj->setVar('cat_title', $_POST['cat_title']);
52
+		$category_obj->setVar('cat_order', $_POST['cat_order']);
53
+
54
+		if (!$categoryHandler->insert($category_obj)) {
55
+			$message = planet_constant('AM_ERROR');
56
+		} else {
57
+			$message = planet_constant('AM_DBUPDATED');
58
+		}
59
+		redirect_header('admin.category.php', 2, $message);
60
+
61
+	case 'del':
62
+		if (!is_array($cat_id)) {
63
+			$cat_id = array($cat_id);
64
+		}
65
+		foreach ($cat_id as $cid) {
66
+			$category_obj = $categoryHandler->get($cid);
67
+			if (!$categoryHandler->delete($category_obj)) {
68
+			}
69
+		}
70
+		$message = planet_constant('AM_DBUPDATED');
71
+		redirect_header('admin.category.php', 2, $message);
72
+
73
+	case 'order':
74
+		$count = count($_POST['cat_order']);
75
+		for ($i = 0; $i < $count; ++$i) {
76
+			$category_obj = $categoryHandler->get($_POST['cat'][$i]);
77
+			$category_obj->setVar('cat_order', $_POST['cat_order'][$i]);
78
+			$categoryHandler->insert($category_obj, true);
79
+			unset($category_obj);
80
+		}
81
+		$message = planet_constant('AM_DBUPDATED');
82
+		redirect_header('admin.category.php', 2, $message);
83
+
84
+	case 'edit':
85
+		$category_obj = $categoryHandler->get($cat_id);
86
+		$form         = new XoopsThemeForm(_EDIT, 'edit', xoops_getenv('PHP_SELF'), 'post', true);
87
+		$form->addElement(new XoopsFormText(planet_constant('AM_TITLE'), 'cat_title', 50, 80, $category_obj->getVar('cat_title', 'E')), true);
88
+		$form->addElement(new XoopsFormText(planet_constant('AM_ORDER'), 'cat_order', 5, 10, $category_obj->getVar('cat_order')), false);
89
+		$form->addElement(new XoopsFormHidden('category', $cat_id));
90
+		$form->addElement(new XoopsFormHidden('op', 'save'));
91
+
92
+		$button_tray = new XoopsFormElementTray('', '');
93
+		$butt_save   = new XoopsFormButton('', 'submit', _SUBMIT, 'submit');
94
+		$button_tray->addElement($butt_save);
95
+		$butt_cancel = new XoopsFormButton('', '', _CANCEL, 'reset');
96
+		$button_tray->addElement($butt_cancel);
97
+		$form->addElement($button_tray);
98
+
99
+		echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _EDIT . '</legend>';
100
+		echo '<br>';
101
+		$form->display();
102
+		echo '</fieldset>';
103
+		break;
104
+
105
+	default:
106
+		$crit = new Criteria('1', 1);
107
+		$crit->setSort('cat_order');
108
+		$crit->setOrder('ASC');
109
+		$categories  = $categoryHandler->getList($crit);
110
+		$blog_counts = $blogHandler->getCountsByCategory();
111
+		foreach (array_keys($categories) as $cid) {
112
+			if (!empty($blog_counts[$cid])) {
113
+				$categories[$cid] .= ' (' . (int)$blog_counts[$cid] . ')';
114
+			}
115
+		}
116
+
117
+		echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . planet_constant('AM_LIST') . '</legend>';
118
+		echo "<br style=\"clear:both;\">";
119
+
120
+		echo "<form name='list' method='post'>";
121
+		echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
122
+		echo "<tr align='center'>";
123
+		echo "<th class='bg3' width='5%'>" . planet_constant('AM_ORDER') . '</td>';
124
+		echo "<th align='left' class='bg3' width='80%'>" . planet_constant('AM_TITLE') . '</td>';
125
+		echo "<th class='bg3' width='5%'>" . planet_constant('AM_BLOGCOUNT') . '</td>';
126
+		echo "<th class='bg3' width='5%'>" . planet_constant('AM_ACTIONS') . '</td>';
127
+		//        echo "<td class='bg3' width='5%'>" . _DELETE . "</td>";
128
+
129
+		echo '</tr>';
130
+
131
+		$ii = 0;
132
+		foreach (array_keys($categories) as $cid) {
133
+			echo "<tr class='odd' align='left'>";
134
+			echo "<td><input type='hidden' name='cat[]' value='" . $cid . "'>";
135
+			echo "<input type='text' name='cat_order[]' value='" . ($ii * 10) . "'></td>";
136
+			echo '<td>' . $categories[$cid] . '</td>';
137
+			echo "<td align='center'>" . @$blog_counts[$cid] . '</td>';
138
+
139
+			echo "<td align='center'><a href='admin.category.php?op=edit &amp;category='" . $cid . "' title='" . _EDIT . "'><img src='" . $pathIcon16 . "/edit.png '" . "alt='" . _EDIT . "' title='" . _EDIT . "' </a>&nbsp;
140 140
                   <a href='admin.category.php?op=del &amp;category='" . $cid . "' title='" . _DELETE . "'><img src='" . $pathIcon16 . "/delete.png '" . " alt='" . _EDIT . "' title='" . _DELETE . "' </a></td>";
141
-            echo '</tr>';
142
-            ++$ii;
143
-        }
144
-        echo "<tr class='even' align='center'>";
145
-        echo "<td colspan='5'>";
146
-        echo "<input name='submit' value='" . _SUBMIT . "' type='submit'>";
147
-        echo "<input name='' value='" . _CANCEL . "' type='reset'>";
148
-        echo "<input name='op' value='order' type='hidden'>";
149
-        echo '</td>';
150
-        echo '</tr>';
151
-        echo '</table></form>';
152
-        echo "</fieldset><br style='clear:both;'>";
153
-
154
-        $form = new XoopsThemeForm(_ADD, 'mod', xoops_getenv('PHP_SELF'), 'post', true);
155
-        $form->addElement(new XoopsFormText(planet_constant('AM_TITLE'), 'cat_title', 50, 80), true);
156
-        $form->addElement(new XoopsFormText(planet_constant('AM_ORDER'), 'cat_order', 5, 10), false);
157
-        $form->addElement(new XoopsFormHidden('op', 'save'));
158
-
159
-        $button_tray = new XoopsFormElementTray('', '');
160
-        $butt_save   = new XoopsFormButton('', 'submit', _SUBMIT, 'submit');
161
-        $button_tray->addElement($butt_save);
162
-        $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'reset');
163
-        $button_tray->addElement($butt_cancel);
164
-        $form->addElement($button_tray);
165
-
166
-        echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _ADD . '</legend>';
167
-        echo '<br>';
168
-        $form->display();
169
-        echo '</fieldset>';
170
-        break;
141
+			echo '</tr>';
142
+			++$ii;
143
+		}
144
+		echo "<tr class='even' align='center'>";
145
+		echo "<td colspan='5'>";
146
+		echo "<input name='submit' value='" . _SUBMIT . "' type='submit'>";
147
+		echo "<input name='' value='" . _CANCEL . "' type='reset'>";
148
+		echo "<input name='op' value='order' type='hidden'>";
149
+		echo '</td>';
150
+		echo '</tr>';
151
+		echo '</table></form>';
152
+		echo "</fieldset><br style='clear:both;'>";
153
+
154
+		$form = new XoopsThemeForm(_ADD, 'mod', xoops_getenv('PHP_SELF'), 'post', true);
155
+		$form->addElement(new XoopsFormText(planet_constant('AM_TITLE'), 'cat_title', 50, 80), true);
156
+		$form->addElement(new XoopsFormText(planet_constant('AM_ORDER'), 'cat_order', 5, 10), false);
157
+		$form->addElement(new XoopsFormHidden('op', 'save'));
158
+
159
+		$button_tray = new XoopsFormElementTray('', '');
160
+		$butt_save   = new XoopsFormButton('', 'submit', _SUBMIT, 'submit');
161
+		$button_tray->addElement($butt_save);
162
+		$butt_cancel = new XoopsFormButton('', '', _CANCEL, 'reset');
163
+		$button_tray->addElement($butt_cancel);
164
+		$form->addElement($button_tray);
165
+
166
+		echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _ADD . '</legend>';
167
+		echo '<br>';
168
+		$form->display();
169
+		echo '</fieldset>';
170
+		break;
171 171
 }
172 172
 
173 173
 xoops_cp_footer();
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -24,18 +24,18 @@  discard block
 block discarded – undo
24 24
 // URL: https://xoops.org                         //
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27
-require_once __DIR__ . '/admin_header.php';
28
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
27
+require_once __DIR__.'/admin_header.php';
28
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
29 29
 
30 30
 xoops_cp_header();
31 31
 $adminObject = \Xmf\Module\Admin::getInstance();
32 32
 $adminObject->displayNavigation(basename(__FILE__));
33
-require XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php';
33
+require XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/include/vars.php';
34 34
 //planet_adminmenu(1);
35 35
 
36 36
 $op     = !empty($_POST['op']) ? $_POST['op'] : (!empty($_GET['op']) ? $_GET['op'] : '');
37 37
 $cat_id = !empty($_POST['category']) ? $_POST['category'] : (!empty($_GET['category']) ? $_GET['category'] : 0);
38
-$cat_id = is_array($cat_id) ? array_map('intval', $cat_id) : (int)$cat_id;
38
+$cat_id = is_array($cat_id) ? array_map('intval', $cat_id) : (int) $cat_id;
39 39
 
40 40
 $categoryHandler = xoops_getModuleHandler('category', $GLOBALS['moddirname']);
41 41
 $blogHandler     = xoops_getModuleHandler('blog', $GLOBALS['moddirname']);
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     case 'save':
45 45
         if ($cat_id) {
46 46
             $category_obj = $categoryHandler->get($cat_id);
47
-        } else {
47
+        }else {
48 48
             $category_obj = $categoryHandler->create();
49 49
         }
50 50
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         if (!$categoryHandler->insert($category_obj)) {
55 55
             $message = planet_constant('AM_ERROR');
56
-        } else {
56
+        }else {
57 57
             $message = planet_constant('AM_DBUPDATED');
58 58
         }
59 59
         redirect_header('admin.category.php', 2, $message);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     case 'order':
74 74
         $count = count($_POST['cat_order']);
75
-        for ($i = 0; $i < $count; ++$i) {
75
+        for ($i = 0; $i<$count; ++$i) {
76 76
             $category_obj = $categoryHandler->get($_POST['cat'][$i]);
77 77
             $category_obj->setVar('cat_order', $_POST['cat_order'][$i]);
78 78
             $categoryHandler->insert($category_obj, true);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $button_tray->addElement($butt_cancel);
97 97
         $form->addElement($button_tray);
98 98
 
99
-        echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _EDIT . '</legend>';
99
+        echo "<fieldset><legend style='font-weight: bold; color: #900;'>"._EDIT.'</legend>';
100 100
         echo '<br>';
101 101
         $form->display();
102 102
         echo '</fieldset>';
@@ -110,20 +110,20 @@  discard block
 block discarded – undo
110 110
         $blog_counts = $blogHandler->getCountsByCategory();
111 111
         foreach (array_keys($categories) as $cid) {
112 112
             if (!empty($blog_counts[$cid])) {
113
-                $categories[$cid] .= ' (' . (int)$blog_counts[$cid] . ')';
113
+                $categories[$cid] .= ' ('.(int) $blog_counts[$cid].')';
114 114
             }
115 115
         }
116 116
 
117
-        echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . planet_constant('AM_LIST') . '</legend>';
117
+        echo "<fieldset><legend style='font-weight: bold; color: #900;'>".planet_constant('AM_LIST').'</legend>';
118 118
         echo "<br style=\"clear:both;\">";
119 119
 
120 120
         echo "<form name='list' method='post'>";
121 121
         echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>";
122 122
         echo "<tr align='center'>";
123
-        echo "<th class='bg3' width='5%'>" . planet_constant('AM_ORDER') . '</td>';
124
-        echo "<th align='left' class='bg3' width='80%'>" . planet_constant('AM_TITLE') . '</td>';
125
-        echo "<th class='bg3' width='5%'>" . planet_constant('AM_BLOGCOUNT') . '</td>';
126
-        echo "<th class='bg3' width='5%'>" . planet_constant('AM_ACTIONS') . '</td>';
123
+        echo "<th class='bg3' width='5%'>".planet_constant('AM_ORDER').'</td>';
124
+        echo "<th align='left' class='bg3' width='80%'>".planet_constant('AM_TITLE').'</td>';
125
+        echo "<th class='bg3' width='5%'>".planet_constant('AM_BLOGCOUNT').'</td>';
126
+        echo "<th class='bg3' width='5%'>".planet_constant('AM_ACTIONS').'</td>';
127 127
         //        echo "<td class='bg3' width='5%'>" . _DELETE . "</td>";
128 128
 
129 129
         echo '</tr>';
@@ -131,20 +131,20 @@  discard block
 block discarded – undo
131 131
         $ii = 0;
132 132
         foreach (array_keys($categories) as $cid) {
133 133
             echo "<tr class='odd' align='left'>";
134
-            echo "<td><input type='hidden' name='cat[]' value='" . $cid . "'>";
135
-            echo "<input type='text' name='cat_order[]' value='" . ($ii * 10) . "'></td>";
136
-            echo '<td>' . $categories[$cid] . '</td>';
137
-            echo "<td align='center'>" . @$blog_counts[$cid] . '</td>';
134
+            echo "<td><input type='hidden' name='cat[]' value='".$cid."'>";
135
+            echo "<input type='text' name='cat_order[]' value='".($ii*10)."'></td>";
136
+            echo '<td>'.$categories[$cid].'</td>';
137
+            echo "<td align='center'>".@$blog_counts[$cid].'</td>';
138 138
 
139
-            echo "<td align='center'><a href='admin.category.php?op=edit &amp;category='" . $cid . "' title='" . _EDIT . "'><img src='" . $pathIcon16 . "/edit.png '" . "alt='" . _EDIT . "' title='" . _EDIT . "' </a>&nbsp;
140
-                  <a href='admin.category.php?op=del &amp;category='" . $cid . "' title='" . _DELETE . "'><img src='" . $pathIcon16 . "/delete.png '" . " alt='" . _EDIT . "' title='" . _DELETE . "' </a></td>";
139
+            echo "<td align='center'><a href='admin.category.php?op=edit &amp;category='".$cid."' title='"._EDIT."'><img src='".$pathIcon16."/edit.png '"."alt='"._EDIT."' title='"._EDIT."' </a>&nbsp;
140
+                  <a href='admin.category.php?op=del &amp;category='" . $cid."' title='"._DELETE."'><img src='".$pathIcon16."/delete.png '"." alt='"._EDIT."' title='"._DELETE."' </a></td>";
141 141
             echo '</tr>';
142 142
             ++$ii;
143 143
         }
144 144
         echo "<tr class='even' align='center'>";
145 145
         echo "<td colspan='5'>";
146
-        echo "<input name='submit' value='" . _SUBMIT . "' type='submit'>";
147
-        echo "<input name='' value='" . _CANCEL . "' type='reset'>";
146
+        echo "<input name='submit' value='"._SUBMIT."' type='submit'>";
147
+        echo "<input name='' value='"._CANCEL."' type='reset'>";
148 148
         echo "<input name='op' value='order' type='hidden'>";
149 149
         echo '</td>';
150 150
         echo '</tr>';
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         $button_tray->addElement($butt_cancel);
164 164
         $form->addElement($button_tray);
165 165
 
166
-        echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _ADD . '</legend>';
166
+        echo "<fieldset><legend style='font-weight: bold; color: #900;'>"._ADD.'</legend>';
167 167
         echo '<br>';
168 168
         $form->display();
169 169
         echo '</fieldset>';
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +3 added lines, -3 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 __DIR__ . '/../../../include/cp_header.php';
21
-require_once __DIR__ . '/admin_header.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21
+require_once __DIR__.'/admin_header.php';
22 22
 
23 23
 xoops_cp_header();
24 24
 
@@ -27,4 +27,4 @@  discard block
 block discarded – undo
27 27
 $adminObject->displayNavigation(basename(__FILE__));
28 28
 $adminObject->displayIndex();
29 29
 
30
-require_once __DIR__ . '/admin_footer.php';
30
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
xoops_version.php 2 patches
Indentation   +127 added lines, -127 removed lines patch added patch discarded remove patch
@@ -30,16 +30,16 @@  discard block
 block discarded – undo
30 30
 include __DIR__ . '/include/vars.php';
31 31
 
32 32
 $modversion                 = array(
33
-    'name'          => planet_constant('MI_NAME'),
34
-    'version'       => 2.10,
35
-    'module_status' => 'Final',
36
-    'release_date'  => '2016/08/01',
37
-    'description'   => planet_constant('MI_DESC'),
38
-    'author'        => 'D.J. (phppp)',
39
-    'credits'       => 'XOOPS Project',
40
-    'image'         => 'assets/images/logoModule.png',
41
-    'dirname'       => $GLOBALS['moddirname'],
42
-    'help'          => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
33
+	'name'          => planet_constant('MI_NAME'),
34
+	'version'       => 2.10,
35
+	'module_status' => 'Final',
36
+	'release_date'  => '2016/08/01',
37
+	'description'   => planet_constant('MI_DESC'),
38
+	'author'        => 'D.J. (phppp)',
39
+	'credits'       => 'XOOPS Project',
40
+	'image'         => 'assets/images/logoModule.png',
41
+	'dirname'       => $GLOBALS['moddirname'],
42
+	'help'          => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
43 43
 );
44 44
 $modversion['help']         = 'page=help';
45 45
 $modversion['license']      = 'GNU see LICENSE';
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
 // database tables
63 63
 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
64 64
 $modversion['tables']           = array(
65
-    $GLOBALS['MOD_DB_PREFIX'] . '_category',
66
-    $GLOBALS['MOD_DB_PREFIX'] . '_article',
67
-    $GLOBALS['MOD_DB_PREFIX'] . '_blog',
68
-    $GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
69
-    $GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
70
-    $GLOBALS['MOD_DB_PREFIX'] . '_rate'
65
+	$GLOBALS['MOD_DB_PREFIX'] . '_category',
66
+	$GLOBALS['MOD_DB_PREFIX'] . '_article',
67
+	$GLOBALS['MOD_DB_PREFIX'] . '_blog',
68
+	$GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
69
+	$GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
70
+	$GLOBALS['MOD_DB_PREFIX'] . '_rate'
71 71
 );
72 72
 
73 73
 // Admin things
@@ -149,162 +149,162 @@  discard block
 block discarded – undo
149 149
 // Configs
150 150
 // Config items
151 151
 $modversion['config'][] = array(
152
-    'name'        => 'do_debug',
153
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
154
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
155
-    'formtype'    => 'yesno',
156
-    'valuetype'   => 'int',
157
-    'default'     => 1
152
+	'name'        => 'do_debug',
153
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
154
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
155
+	'formtype'    => 'yesno',
156
+	'valuetype'   => 'int',
157
+	'default'     => 1
158 158
 );
159 159
 
160 160
 $modversion['config'][] = array(
161
-    'name'        => 'do_urw',
162
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
163
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
164
-    'formtype'    => 'yesno',
165
-    'valuetype'   => 'int',
166
-    'default'     => in_array(php_sapi_name(), array('apache', 'apache2handler'))
161
+	'name'        => 'do_urw',
162
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
163
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
164
+	'formtype'    => 'yesno',
165
+	'valuetype'   => 'int',
166
+	'default'     => in_array(php_sapi_name(), array('apache', 'apache2handler'))
167 167
 );
168 168
 
169 169
 $modversion['config'][] = array(
170
-    'name'        => 'theme_set',
171
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
172
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
173
-    'formtype'    => 'select',
174
-    'valuetype'   => 'text',
175
-    'options'     => array(_NONE => '0'),
176
-    'default'     => ''
170
+	'name'        => 'theme_set',
171
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
172
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
173
+	'formtype'    => 'select',
174
+	'valuetype'   => 'text',
175
+	'options'     => array(_NONE => '0'),
176
+	'default'     => ''
177 177
 );
178 178
 
179 179
 $modversion['config'][] = array(
180
-    'name'        => 'timeformat',
181
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
182
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
183
-    'formtype'    => 'select',
184
-    'valuetype'   => 'text',
185
-    'options'     => array(
186
-        _DATESTRING                                       => 'l',
187
-        _MEDIUMDATESTRING                                 => 'm',
188
-        _SHORTDATESTRING                                  => 's',
189
-        $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
190
-    ),
191
-    'default'     => 'c'
180
+	'name'        => 'timeformat',
181
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
182
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
183
+	'formtype'    => 'select',
184
+	'valuetype'   => 'text',
185
+	'options'     => array(
186
+		_DATESTRING                                       => 'l',
187
+		_MEDIUMDATESTRING                                 => 'm',
188
+		_SHORTDATESTRING                                  => 's',
189
+		$GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
190
+	),
191
+	'default'     => 'c'
192 192
 );
193 193
 
194 194
 $modversion['config'][] = array(
195
-    'name'        => 'articles_perpage',
196
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
197
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
198
-    'formtype'    => 'textbox',
199
-    'valuetype'   => 'int',
200
-    'default'     => 10
195
+	'name'        => 'articles_perpage',
196
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
197
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
198
+	'formtype'    => 'textbox',
199
+	'valuetype'   => 'int',
200
+	'default'     => 10
201 201
 );
202 202
 
203 203
 $modversion['config'][] = array(
204
-    'name'        => 'list_perpage',
205
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
206
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
207
-    'formtype'    => 'textbox',
208
-    'valuetype'   => 'int',
209
-    'default'     => 20
204
+	'name'        => 'list_perpage',
205
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
206
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
207
+	'formtype'    => 'textbox',
208
+	'valuetype'   => 'int',
209
+	'default'     => 20
210 210
 );
211 211
 
212 212
 $modversion['config'][] = array(
213
-    'name'        => 'blogs_perupdate',
214
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
215
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
216
-    'formtype'    => 'textbox',
217
-    'valuetype'   => 'int',
218
-    'default'     => 10
213
+	'name'        => 'blogs_perupdate',
214
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
215
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
216
+	'formtype'    => 'textbox',
217
+	'valuetype'   => 'int',
218
+	'default'     => 10
219 219
 );
220 220
 
221 221
 $modversion['config'][] = array(
222
-    'name'        => 'article_expire',
223
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
224
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
225
-    'formtype'    => 'textbox',
226
-    'valuetype'   => 'int',
227
-    'default'     => 30
222
+	'name'        => 'article_expire',
223
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
224
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
225
+	'formtype'    => 'textbox',
226
+	'valuetype'   => 'int',
227
+	'default'     => 30
228 228
 );
229 229
 
230 230
 $modversion['config'][] = array(
231
-    'name'        => 'display_summary',
232
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
233
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
234
-    'formtype'    => 'textbox',
235
-    'valuetype'   => 'int',
236
-    'default'     => 0
231
+	'name'        => 'display_summary',
232
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
233
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
234
+	'formtype'    => 'textbox',
235
+	'valuetype'   => 'int',
236
+	'default'     => 0
237 237
 );
238 238
 
239 239
 $modversion['config'][] = array(
240
-    'name'        => 'do_sibling',
241
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
242
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
243
-    'formtype'    => 'yesno',
244
-    'valuetype'   => 'int',
245
-    'default'     => 1
240
+	'name'        => 'do_sibling',
241
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
242
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
243
+	'formtype'    => 'yesno',
244
+	'valuetype'   => 'int',
245
+	'default'     => 1
246 246
 );
247 247
 
248 248
 $modversion['config'][] = array(
249
-    'name'        => 'pings',
250
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
251
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
252
-    'formtype'    => 'textarea',
253
-    'valuetype'   => 'text',
254
-    'default'     => ''
249
+	'name'        => 'pings',
250
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
251
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
252
+	'formtype'    => 'textarea',
253
+	'valuetype'   => 'text',
254
+	'default'     => ''
255 255
 );
256 256
 
257 257
 $modversion['config'][] = array(
258
-    'name'        => 'trackback_option',
259
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
260
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
261
-    'formtype'    => 'select',
262
-    'valuetype'   => 'int',
263
-    'default'     => 0,
264
-    'options'     => array(planet_constant('MI_MODERATION') => 0, _ALL => 1, _NONE => 2)
258
+	'name'        => 'trackback_option',
259
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
260
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
261
+	'formtype'    => 'select',
262
+	'valuetype'   => 'int',
263
+	'default'     => 0,
264
+	'options'     => array(planet_constant('MI_MODERATION') => 0, _ALL => 1, _NONE => 2)
265 265
 );
266 266
 
267 267
 $modversion['config'][] = array(
268
-    'name'        => 'copyright',
269
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
270
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
271
-    'formtype'    => 'textbox',
272
-    'valuetype'   => 'text',
273
-    'default'     => 'Copyright&copy; %s & ' . $xoopsConfig['sitename']
268
+	'name'        => 'copyright',
269
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
270
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
271
+	'formtype'    => 'textbox',
272
+	'valuetype'   => 'text',
273
+	'default'     => 'Copyright&copy; %s & ' . $xoopsConfig['sitename']
274 274
 );
275 275
 
276 276
 $modversion['config'][] = array(
277
-    'name'        => 'newblog_submit',
278
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
279
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
280
-    'formtype'    => 'select',
281
-    'valuetype'   => 'int',
282
-    'default'     => 2,
283
-    'options'     => array(
284
-        _NONE                            => 0,
285
-        planet_constant('MI_MODERATION') => 1,
286
-        planet_constant('MI_MEMBER')     => 2,
287
-        _ALL                             => 3
288
-    )
289
-    // 0 - Only admin; 1 - all but need approval; 2 - members auto approved; 3 - all
277
+	'name'        => 'newblog_submit',
278
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
279
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
280
+	'formtype'    => 'select',
281
+	'valuetype'   => 'int',
282
+	'default'     => 2,
283
+	'options'     => array(
284
+		_NONE                            => 0,
285
+		planet_constant('MI_MODERATION') => 1,
286
+		planet_constant('MI_MEMBER')     => 2,
287
+		_ALL                             => 3
288
+	)
289
+	// 0 - Only admin; 1 - all but need approval; 2 - members auto approved; 3 - all
290 290
 );
291 291
 
292 292
 $modversion['config'][] = array(
293
-    'name'        => 'anonymous_rate',
294
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
295
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
296
-    'formtype'    => 'yesno',
297
-    'valuetype'   => 'int',
298
-    'default'     => 0
293
+	'name'        => 'anonymous_rate',
294
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
295
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
296
+	'formtype'    => 'yesno',
297
+	'valuetype'   => 'int',
298
+	'default'     => 0
299 299
 );
300 300
 
301 301
 $modversion['config'][] = array(
302
-    'name'        => 'do_pseudocron',
303
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
304
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
305
-    'formtype'    => 'yesno',
306
-    'valuetype'   => 'int',
307
-    'default'     => 1
302
+	'name'        => 'do_pseudocron',
303
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
304
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
305
+	'formtype'    => 'yesno',
306
+	'valuetype'   => 'int',
307
+	'default'     => 1
308 308
 );
309 309
 
310 310
 // Notification
Please login to merge, or discard this patch.
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
 
28 28
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
29 29
 
30
-include __DIR__ . '/include/vars.php';
30
+include __DIR__.'/include/vars.php';
31 31
 
32
-$modversion                 = array(
32
+$modversion = array(
33 33
     'name'          => planet_constant('MI_NAME'),
34 34
     'version'       => 2.10,
35 35
     'module_status' => 'Final',
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
     'credits'       => 'XOOPS Project',
40 40
     'image'         => 'assets/images/logoModule.png',
41 41
     'dirname'       => $GLOBALS['moddirname'],
42
-    'help'          => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
42
+    'help'          => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/readme.html'
43 43
 );
44 44
 $modversion['help']         = 'page=help';
45 45
 $modversion['license']      = 'GNU see LICENSE';
46
-$modversion['license_file'] = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/gpl.txt';
46
+$modversion['license_file'] = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/gpl.txt';
47 47
 $modversion['author_word']  = '';
48 48
 $modversion['module_team']  = '';
49 49
 
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
 // database tables
63 63
 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
64 64
 $modversion['tables']           = array(
65
-    $GLOBALS['MOD_DB_PREFIX'] . '_category',
66
-    $GLOBALS['MOD_DB_PREFIX'] . '_article',
67
-    $GLOBALS['MOD_DB_PREFIX'] . '_blog',
68
-    $GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
69
-    $GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
70
-    $GLOBALS['MOD_DB_PREFIX'] . '_rate'
65
+    $GLOBALS['MOD_DB_PREFIX'].'_category',
66
+    $GLOBALS['MOD_DB_PREFIX'].'_article',
67
+    $GLOBALS['MOD_DB_PREFIX'].'_blog',
68
+    $GLOBALS['MOD_DB_PREFIX'].'_blogcat',
69
+    $GLOBALS['MOD_DB_PREFIX'].'_bookmark',
70
+    $GLOBALS['MOD_DB_PREFIX'].'_rate'
71 71
 );
72 72
 
73 73
 // Admin things
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
 /**
94 94
  * Templates
95 95
  */
96
-$modversion['templates'][] = array('file' => $GLOBALS['VAR_PREFIX'] . '_index.tpl', 'description' => '');
97
-$modversion['templates'][] = array('file' => $GLOBALS['VAR_PREFIX'] . '_article.tpl', 'description' => '');
98
-$modversion['templates'][] = array('file' => $GLOBALS['VAR_PREFIX'] . '_archive.tpl', 'description' => '');
99
-$modversion['templates'][] = array('file' => $GLOBALS['VAR_PREFIX'] . '_blogs.tpl', 'description' => '');
100
-$modversion['templates'][] = array('file' => $GLOBALS['VAR_PREFIX'] . '_search.tpl', 'description' => '');
96
+$modversion['templates'][] = array('file' => $GLOBALS['VAR_PREFIX'].'_index.tpl', 'description' => '');
97
+$modversion['templates'][] = array('file' => $GLOBALS['VAR_PREFIX'].'_article.tpl', 'description' => '');
98
+$modversion['templates'][] = array('file' => $GLOBALS['VAR_PREFIX'].'_archive.tpl', 'description' => '');
99
+$modversion['templates'][] = array('file' => $GLOBALS['VAR_PREFIX'].'_blogs.tpl', 'description' => '');
100
+$modversion['templates'][] = array('file' => $GLOBALS['VAR_PREFIX'].'_search.tpl', 'description' => '');
101 101
 
102 102
 //module css
103 103
 $modversion['css'] = 'templates/style.css';
@@ -109,31 +109,31 @@  discard block
 block discarded – undo
109 109
 $modversion['blocks'][$i]['file']        = 'block.php';
110 110
 $modversion['blocks'][$i]['name']        = planet_constant('MI_ARTICLE');
111 111
 $modversion['blocks'][$i]['description'] = planet_constant('MI_ARTICLE_DESC');
112
-$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'] . '_article_show';
112
+$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'].'_article_show';
113 113
 $modversion['blocks'][$i]['options']     = 'time|10|0|0'; // type|MaxItems|TitleLength|SummaryLength
114
-$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'] . '_article_edit';
115
-$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'] . '_block_article.tpl';
114
+$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'].'_article_edit';
115
+$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'].'_block_article.tpl';
116 116
 
117 117
 ++$i;
118 118
 $modversion['blocks'][$i]['file']        = 'block.php';
119 119
 $modversion['blocks'][$i]['name']        = planet_constant('MI_CATEGORY');
120 120
 $modversion['blocks'][$i]['description'] = planet_constant('MI_CATEGORY_DESC');
121
-$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'] . '_category_show';
122
-$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'] . '_block_category.tpl';
121
+$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'].'_category_show';
122
+$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'].'_block_category.tpl';
123 123
 
124 124
 ++$i;
125 125
 $modversion['blocks'][$i]['file']        = 'block.php';
126 126
 $modversion['blocks'][$i]['name']        = planet_constant('MI_BLOG');
127 127
 $modversion['blocks'][$i]['description'] = planet_constant('MI_BLOG_DESC');
128
-$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'] . '_blog_show';
128
+$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'].'_blog_show';
129 129
 $modversion['blocks'][$i]['options']     = 'feature|10|0|1'; // type|MaxItems|TitleLength|ShowDesc
130
-$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'] . '_blog_edit';
131
-$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'] . '_block_blog.tpl';
130
+$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'].'_blog_edit';
131
+$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'].'_block_blog.tpl';
132 132
 
133 133
 // Search
134 134
 $modversion['hasSearch']      = 1;
135 135
 $modversion['search']['file'] = 'include/search.inc.php';
136
-$modversion['search']['func'] = $GLOBALS['VAR_PREFIX'] . '_search';
136
+$modversion['search']['func'] = $GLOBALS['VAR_PREFIX'].'_search';
137 137
 
138 138
 // Comments
139 139
 $modversion['hasComments'] = 1;
@@ -143,15 +143,15 @@  discard block
 block discarded – undo
143 143
 
144 144
 // Comment callback functions
145 145
 $modversion['comments']['callbackFile']        = 'include/comment.inc.php';
146
-$modversion['comments']['callback']['approve'] = $GLOBALS['VAR_PREFIX'] . '_com_approve';
147
-$modversion['comments']['callback']['update']  = $GLOBALS['VAR_PREFIX'] . '_com_update';
146
+$modversion['comments']['callback']['approve'] = $GLOBALS['VAR_PREFIX'].'_com_approve';
147
+$modversion['comments']['callback']['update']  = $GLOBALS['VAR_PREFIX'].'_com_update';
148 148
 
149 149
 // Configs
150 150
 // Config items
151 151
 $modversion['config'][] = array(
152 152
     'name'        => 'do_debug',
153
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
154
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
153
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DODEBUG',
154
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DODEBUG_DESC',
155 155
     'formtype'    => 'yesno',
156 156
     'valuetype'   => 'int',
157 157
     'default'     => 1
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
 
160 160
 $modversion['config'][] = array(
161 161
     'name'        => 'do_urw',
162
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
163
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
162
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DOURLREWRITE',
163
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DOURLREWRITE_DESC',
164 164
     'formtype'    => 'yesno',
165 165
     'valuetype'   => 'int',
166 166
     'default'     => in_array(php_sapi_name(), array('apache', 'apache2handler'))
@@ -168,8 +168,8 @@  discard block
 block discarded – undo
168 168
 
169 169
 $modversion['config'][] = array(
170 170
     'name'        => 'theme_set',
171
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
172
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
171
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_THEMESET',
172
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_THEMESET_DESC',
173 173
     'formtype'    => 'select',
174 174
     'valuetype'   => 'text',
175 175
     'options'     => array(_NONE => '0'),
@@ -178,23 +178,23 @@  discard block
 block discarded – undo
178 178
 
179 179
 $modversion['config'][] = array(
180 180
     'name'        => 'timeformat',
181
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
182
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
181
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT',
182
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT_DESC',
183 183
     'formtype'    => 'select',
184 184
     'valuetype'   => 'text',
185 185
     'options'     => array(
186 186
         _DATESTRING                                       => 'l',
187 187
         _MEDIUMDATESTRING                                 => 'm',
188 188
         _SHORTDATESTRING                                  => 's',
189
-        $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
189
+        $GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT_CUSTOM' => 'c'
190 190
     ),
191 191
     'default'     => 'c'
192 192
 );
193 193
 
194 194
 $modversion['config'][] = array(
195 195
     'name'        => 'articles_perpage',
196
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
197
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
196
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLESPERPAGE',
197
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLESPERPAGE_DESC',
198 198
     'formtype'    => 'textbox',
199 199
     'valuetype'   => 'int',
200 200
     'default'     => 10
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
 
203 203
 $modversion['config'][] = array(
204 204
     'name'        => 'list_perpage',
205
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
206
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
205
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_LISTPERPAGE',
206
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_LISTPERPAGE_DESC',
207 207
     'formtype'    => 'textbox',
208 208
     'valuetype'   => 'int',
209 209
     'default'     => 20
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
 
212 212
 $modversion['config'][] = array(
213 213
     'name'        => 'blogs_perupdate',
214
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
215
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
214
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_BLOGSPERUPDATE',
215
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_BLOGSPERUPDATE_DESC',
216 216
     'formtype'    => 'textbox',
217 217
     'valuetype'   => 'int',
218 218
     'default'     => 10
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
 
221 221
 $modversion['config'][] = array(
222 222
     'name'        => 'article_expire',
223
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
224
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
223
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_EXPIRE',
224
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_EXPIRE_DESC',
225 225
     'formtype'    => 'textbox',
226 226
     'valuetype'   => 'int',
227 227
     'default'     => 30
@@ -229,8 +229,8 @@  discard block
 block discarded – undo
229 229
 
230 230
 $modversion['config'][] = array(
231 231
     'name'        => 'display_summary',
232
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
233
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
232
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DISPLAY_SUMMARY',
233
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DISPLAY_SUMMARY_DESC',
234 234
     'formtype'    => 'textbox',
235 235
     'valuetype'   => 'int',
236 236
     'default'     => 0
@@ -238,8 +238,8 @@  discard block
 block discarded – undo
238 238
 
239 239
 $modversion['config'][] = array(
240 240
     'name'        => 'do_sibling',
241
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
242
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
241
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DOSIBLING',
242
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DOSIBLING_DESC',
243 243
     'formtype'    => 'yesno',
244 244
     'valuetype'   => 'int',
245 245
     'default'     => 1
@@ -247,8 +247,8 @@  discard block
 block discarded – undo
247 247
 
248 248
 $modversion['config'][] = array(
249 249
     'name'        => 'pings',
250
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
251
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
250
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_PING',
251
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_PING_DESC',
252 252
     'formtype'    => 'textarea',
253 253
     'valuetype'   => 'text',
254 254
     'default'     => ''
@@ -256,8 +256,8 @@  discard block
 block discarded – undo
256 256
 
257 257
 $modversion['config'][] = array(
258 258
     'name'        => 'trackback_option',
259
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
260
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
259
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_TRACKBACK_OPTION',
260
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_TRACKBACK_OPTION_DESC',
261 261
     'formtype'    => 'select',
262 262
     'valuetype'   => 'int',
263 263
     'default'     => 0,
@@ -266,17 +266,17 @@  discard block
 block discarded – undo
266 266
 
267 267
 $modversion['config'][] = array(
268 268
     'name'        => 'copyright',
269
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
270
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
269
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_COPYRIGHT',
270
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_COPYRIGHT_DESC',
271 271
     'formtype'    => 'textbox',
272 272
     'valuetype'   => 'text',
273
-    'default'     => 'Copyright&copy; %s & ' . $xoopsConfig['sitename']
273
+    'default'     => 'Copyright&copy; %s & '.$xoopsConfig['sitename']
274 274
 );
275 275
 
276 276
 $modversion['config'][] = array(
277 277
     'name'        => 'newblog_submit',
278
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
279
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
278
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_NEWBLOG_SUBMIT',
279
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_NEWBLOG_SUBMIT_DESC',
280 280
     'formtype'    => 'select',
281 281
     'valuetype'   => 'int',
282 282
     'default'     => 2,
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
 
292 292
 $modversion['config'][] = array(
293 293
     'name'        => 'anonymous_rate',
294
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
295
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
294
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_ANONYMOUSRATE',
295
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_ANONYMOUSRATE_DESC',
296 296
     'formtype'    => 'yesno',
297 297
     'valuetype'   => 'int',
298 298
     'default'     => 0
@@ -300,8 +300,8 @@  discard block
 block discarded – undo
300 300
 
301 301
 $modversion['config'][] = array(
302 302
     'name'        => 'do_pseudocron',
303
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
304
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
303
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_PSEUDOCRON',
304
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_PSEUDOCRON_DESC',
305 305
     'formtype'    => 'yesno',
306 306
     'valuetype'   => 'int',
307 307
     'default'     => 1
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 
312 312
 $modversion['hasNotification']             = 1;
313 313
 $modversion['notification']['lookup_file'] = 'include/notification.inc.php';
314
-$modversion['notification']['lookup_func'] = $GLOBALS['VAR_PREFIX'] . '_notify_iteminfo';
314
+$modversion['notification']['lookup_func'] = $GLOBALS['VAR_PREFIX'].'_notify_iteminfo';
315 315
 
316 316
 $i = 0;
317 317
 ++$i;
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@
 block discarded – undo
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27 27
 
28
-include __DIR__ . '/../../mainfile.php';
29
-include XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php';
28
+include __DIR__.'/../../mainfile.php';
29
+include XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/include/vars.php';
30 30
 //require_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/functions.php';
31
-require_once __DIR__ . '/class/utility.php';
31
+require_once __DIR__.'/class/utility.php';
32 32
 
33 33
 planet_define_url_delimiter();
34 34
 $myts = MyTextSanitizer::getInstance();
Please login to merge, or discard this patch.
counter.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
 include __DIR__ . '/header.php';
30 30
 $article_id = Request::getInt('article', 0, 'GET');//empty($_GET['article']) ? 0 : (int)$_GET['article'];
31 31
 if (empty($article_id)) {
32
-    return;
32
+	return;
33 33
 }
34 34
 if (planetGetCookie('art_' . $article_id) > 0) {
35
-    return;
35
+	return;
36 36
 }
37 37
 $articleHandler = xoops_getModuleHandler('article', $xoopsModule->getVar('dirname'));
38 38
 $article_obj    = $articleHandler->get($article_id);
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,18 +26,18 @@
 block discarded – undo
26 26
 // ------------------------------------------------------------------------ //
27 27
 use Xmf\Request;
28 28
 
29
-include __DIR__ . '/header.php';
30
-$article_id = Request::getInt('article', 0, 'GET');//empty($_GET['article']) ? 0 : (int)$_GET['article'];
29
+include __DIR__.'/header.php';
30
+$article_id = Request::getInt('article', 0, 'GET'); //empty($_GET['article']) ? 0 : (int)$_GET['article'];
31 31
 if (empty($article_id)) {
32 32
     return;
33 33
 }
34
-if (planetGetCookie('art_' . $article_id) > 0) {
34
+if (planetGetCookie('art_'.$article_id)>0) {
35 35
     return;
36 36
 }
37 37
 $articleHandler = xoops_getModuleHandler('article', $xoopsModule->getVar('dirname'));
38 38
 $article_obj    = $articleHandler->get($article_id);
39
-$article_obj->setVar('art_views', $article_obj->getVar('art_views') + 1, true);
39
+$article_obj->setVar('art_views', $article_obj->getVar('art_views')+1, true);
40 40
 $articleHandler->insert($article_obj, true);
41
-PlanetUtility::planetSetCookie('art_' . $article_id, time());
41
+PlanetUtility::planetSetCookie('art_'.$article_id, time());
42 42
 
43 43
 return;
Please login to merge, or discard this patch.