Completed
Push — master ( adb512...260239 )
by Michael
03:10
created
counter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
 include __DIR__ . '/header.php';
28 28
 $article_id = empty($_GET['article']) ? 0 : (int)$_GET['article'];
29 29
 if (empty($article_id)) {
30
-    return;
30
+	return;
31 31
 }
32 32
 if (planet_getcookie('art_' . $article_id) > 0) {
33
-    return;
33
+	return;
34 34
 }
35 35
 $article_handler = xoops_getModuleHandler('article', $xoopsModule->getVar('dirname'));
36 36
 $article_obj     =& $article_handler->get($article_id);
Please login to merge, or discard this patch.
view.article.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -32,17 +32,17 @@  discard block
 block discarded – undo
32 32
  *
33 33
  */
34 34
 if (preg_match("/(\/comment_[^\.]*\.php\?.*=.*)/i", $_SERVER['REQUEST_URI'], $matches)) {
35
-    header('location: ' . XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . $matches[1]);
36
-    exit();
35
+	header('location: ' . XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . $matches[1]);
36
+	exit();
37 37
 }
38 38
 if (preg_match("/\/notification_update\.php/i", $_SERVER['REQUEST_URI'], $matches)) {
39
-    include XOOPS_ROOT_PATH . '/include/notification_update.php';
40
-    exit();
39
+	include XOOPS_ROOT_PATH . '/include/notification_update.php';
40
+	exit();
41 41
 }
42 42
 
43 43
 if ($REQUEST_URI_parsed = planet_parse_args($args_num, $args, $args_str)) {
44
-    $args['article'] = @$args_num[0];
45
-    $args['blog']    = @$args['blog'];
44
+	$args['article'] = @$args_num[0];
45
+	$args['blog']    = @$args['blog'];
46 46
 }
47 47
 
48 48
 $article_id = (int)(empty($_GET['article']) ? @$args['article'] : $_GET['article']);
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
 
56 56
 // restore $_SERVER['REQUEST_URI']
57 57
 if (!empty($REQUEST_URI_parsed)) {
58
-    $_SERVER['REQUEST_URI'] = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php'
59
-                              . (empty($article_id) ? '' : '?article=' . $article_id);
58
+	$_SERVER['REQUEST_URI'] = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php'
59
+							  . (empty($article_id) ? '' : '?article=' . $article_id);
60 60
 }
61 61
 
62 62
 $xoopsOption['xoops_pagetitle'] = $xoopsModule->getVar('name') . ' - ' . $article_obj->getVar('art_title');
@@ -65,32 +65,32 @@  discard block
 block discarded – undo
65 65
 include XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php';
66 66
 
67 67
 $article_data = array(
68
-    'id'       => $article_id,
69
-    'title'    => $article_obj->getVar('art_title'),
70
-    'content'  => $article_obj->getVar('art_content'),
71
-    'author'   => $article_obj->getVar('art_author'),
72
-    'time'     => $article_obj->getTime(),
73
-    'link'     => $article_obj->getVar('art_link'),
74
-    'views'    => $article_obj->getVar('art_views'),
75
-    'comments' => $article_obj->getVar('art_comments'),
76
-    'star'     => $article_obj->getStar(),
77
-    'rates'    => $article_obj->getVar('art_rates'),
78
-    'blog'     => array('id' => $article_obj->getVar('blog_id'), 'title' => $blog_obj->getVar('blog_title'))
68
+	'id'       => $article_id,
69
+	'title'    => $article_obj->getVar('art_title'),
70
+	'content'  => $article_obj->getVar('art_content'),
71
+	'author'   => $article_obj->getVar('art_author'),
72
+	'time'     => $article_obj->getTime(),
73
+	'link'     => $article_obj->getVar('art_link'),
74
+	'views'    => $article_obj->getVar('art_views'),
75
+	'comments' => $article_obj->getVar('art_comments'),
76
+	'star'     => $article_obj->getStar(),
77
+	'rates'    => $article_obj->getVar('art_rates'),
78
+	'blog'     => array('id' => $article_obj->getVar('blog_id'), 'title' => $blog_obj->getVar('blog_title'))
79 79
 );
80 80
 
81 81
 if (!empty($xoopsModuleConfig['do_sibling'])) {
82
-    $articles_sibling =& $article_handler->getSibling($article_obj, $blog_id);
83
-    if (!empty($articles_sibling['previous'])) {
84
-        $articles_sibling['previous']['url']   = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php'
85
-                                                 . URL_DELIMITER . '' . $articles_sibling['previous']['id'] . '/b'
86
-                                                 . $blog_id;
87
-        $articles_sibling['previous']['title'] = $articles_sibling['previous']['title'];
88
-    }
89
-    if (!empty($articles_sibling['next'])) {
90
-        $articles_sibling['next']['url']   = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php'
91
-                                             . URL_DELIMITER . '' . $articles_sibling['next']['id'] . '/b' . $blog_id;
92
-        $articles_sibling['next']['title'] = $articles_sibling['next']['title'];
93
-    }
82
+	$articles_sibling =& $article_handler->getSibling($article_obj, $blog_id);
83
+	if (!empty($articles_sibling['previous'])) {
84
+		$articles_sibling['previous']['url']   = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php'
85
+												 . URL_DELIMITER . '' . $articles_sibling['previous']['id'] . '/b'
86
+												 . $blog_id;
87
+		$articles_sibling['previous']['title'] = $articles_sibling['previous']['title'];
88
+	}
89
+	if (!empty($articles_sibling['next'])) {
90
+		$articles_sibling['next']['url']   = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php'
91
+											 . URL_DELIMITER . '' . $articles_sibling['next']['id'] . '/b' . $blog_id;
92
+		$articles_sibling['next']['title'] = $articles_sibling['next']['title'];
93
+	}
94 94
 }
95 95
 
96 96
 $xoopsTpl->assign('modulename', $xoopsModule->getVar('name'));
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
 $xoopsTpl->assign('user_level', !is_object($xoopsUser) ? 0 : ($xoopsUser->isAdmin() ? 2 : 1));
102 102
 if (empty($xoopsModuleConfig['anonymous_rate']) && !is_object($xoopsUser)) {
103 103
 } else {
104
-    $xoopsTpl->assign('canrate', 1);
104
+	$xoopsTpl->assign('canrate', 1);
105 105
 }
106 106
 
107 107
 if ($transferbar = @include XOOPS_ROOT_PATH . '/Frameworks/transfer/bar.transfer.php') {
108
-    $xoopsTpl->assign('transfer', $transferbar);
108
+	$xoopsTpl->assign('transfer', $transferbar);
109 109
 }
110 110
 
111 111
 // Loading module meta data, NOT THE RIGHT WAY DOING IT
Please login to merge, or discard this patch.
search.php 1 patch
Indentation   +97 added lines, -97 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 $config_handler    = xoops_getHandler('config');
32 32
 $xoopsConfigSearch =& $config_handler->getConfigsByCat(XOOPS_CONF_SEARCH);
33 33
 if (empty($xoopsConfigSearch['enable_search'])) {
34
-    redirect_header(XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php', 2, planet_constant('MD_NOACCESS'));
34
+	redirect_header(XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php', 2, planet_constant('MD_NOACCESS'));
35 35
 }
36 36
 
37 37
 $xoopsConfig['module_cache'][$xoopsModule->getVar('mid')] = 0;
@@ -49,92 +49,92 @@  discard block
 block discarded – undo
49 49
 $blog     = (int)(isset($_POST['blog']) ? $_POST['blog'] : (isset($_GET['blog']) ? $_GET['blog'] : null));
50 50
 $uid      = (int)(isset($_POST['uid']) ? $_POST['uid'] : (isset($_GET['uid']) ? $_GET['uid'] : null));
51 51
 $searchin = isset($_POST['searchin']) ? $_POST['searchin'] : (isset($_GET['searchin']) ? explode('|',
52
-                                                                                                 $_GET['searchin']) : array());
52
+																								 $_GET['searchin']) : array());
53 53
 $sortby   = isset($_POST['sortby']) ? $_POST['sortby'] : (isset($_GET['sortby']) ? $_GET['sortby'] : null);
54 54
 $term     = isset($_POST['term']) ? $_POST['term'] : (isset($_GET['term']) ? $_GET['term'] : '');
55 55
 
56 56
 $andor  = in_array(strtoupper($andor), array('OR', 'AND', 'EXACT')) ? strtoupper($andor) : 'OR';
57 57
 $sortby = in_array(strtolower($sortby), array(
58
-    'a.art_id desc',
59
-    'a.art_time desc',
60
-    'a.art_title',
61
-    'a.blog_id',
62
-    'b.blog_id',
63
-    'b.blog_feed',
64
-    'b.blog_title',
65
-    'b.blog_time'
58
+	'a.art_id desc',
59
+	'a.art_time desc',
60
+	'a.art_title',
61
+	'a.blog_id',
62
+	'b.blog_id',
63
+	'b.blog_feed',
64
+	'b.blog_title',
65
+	'b.blog_time'
66 66
 )) ? strtolower($sortby) : '';
67 67
 
68 68
 if (!(empty($_POST['submit']) && empty($_GET['term']))) {
69
-    $next_search['category'] = $category;
70
-    $next_search['blog']     = $blog;
71
-    $next_search['uid']      = $uid;
72
-    $next_search['andor']    = $andor;
69
+	$next_search['category'] = $category;
70
+	$next_search['blog']     = $blog;
71
+	$next_search['uid']      = $uid;
72
+	$next_search['andor']    = $andor;
73 73
 
74
-    $next_search['term'] = $term;
75
-    $query               = trim($term);
74
+	$next_search['term'] = $term;
75
+	$query               = trim($term);
76 76
 
77
-    if ($andor !== 'EXACT') {
78
-        $ignored_queries = array(); // holds kewords that are shorter than allowed minmum length
79
-        $temp_queries    = preg_split("/[\s,]+/", $query);
80
-        foreach ($temp_queries as $q) {
81
-            $q = trim($q);
82
-            if (strlen($q) >= $xoopsConfigSearch['keyword_min']) {
83
-                $queries[] = $myts->addSlashes($q);
84
-            } else {
85
-                $ignored_queries[] = $myts->addSlashes($q);
86
-            }
87
-        }
88
-        if (count($queries) == 0) {
89
-            redirect_header(XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/search.php', 2,
90
-                            sprintf(_SR_KEYTOOSHORT, $xoopsConfigSearch['keyword_min']));
91
-        }
92
-    } else {
93
-        if (strlen($query) < $xoopsConfigSearch['keyword_min']) {
94
-            redirect_header(XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/search.php', 2,
95
-                            sprintf(_SR_KEYTOOSHORT, $xoopsConfigSearch['keyword_min']));
96
-        }
97
-        $queries = array($myts->addSlashes($query));
98
-    }
77
+	if ($andor !== 'EXACT') {
78
+		$ignored_queries = array(); // holds kewords that are shorter than allowed minmum length
79
+		$temp_queries    = preg_split("/[\s,]+/", $query);
80
+		foreach ($temp_queries as $q) {
81
+			$q = trim($q);
82
+			if (strlen($q) >= $xoopsConfigSearch['keyword_min']) {
83
+				$queries[] = $myts->addSlashes($q);
84
+			} else {
85
+				$ignored_queries[] = $myts->addSlashes($q);
86
+			}
87
+		}
88
+		if (count($queries) == 0) {
89
+			redirect_header(XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/search.php', 2,
90
+							sprintf(_SR_KEYTOOSHORT, $xoopsConfigSearch['keyword_min']));
91
+		}
92
+	} else {
93
+		if (strlen($query) < $xoopsConfigSearch['keyword_min']) {
94
+			redirect_header(XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/search.php', 2,
95
+							sprintf(_SR_KEYTOOSHORT, $xoopsConfigSearch['keyword_min']));
96
+		}
97
+		$queries = array($myts->addSlashes($query));
98
+	}
99 99
 
100
-    $next_search['sortby']   = $sortby;
101
-    $next_search['searchin'] = implode('|', $searchin);
100
+	$next_search['sortby']   = $sortby;
101
+	$next_search['searchin'] = implode('|', $searchin);
102 102
 
103
-    /* To be added: year-month
103
+	/* To be added: year-month
104 104
      * see view.archive.php
105 105
      */
106
-    if (!empty($time)) {
107
-        $extra = '';
108
-    } else {
109
-        $extra = '';
110
-    }
106
+	if (!empty($time)) {
107
+		$extra = '';
108
+	} else {
109
+		$extra = '';
110
+	}
111 111
 
112
-    $results = planet_search($queries, $andor, $limit, $start, $uid, $category, $blog, $sortby, $searchin, $extra);
112
+	$results = planet_search($queries, $andor, $limit, $start, $uid, $category, $blog, $sortby, $searchin, $extra);
113 113
 
114
-    /*
114
+	/*
115 115
     if ( count($results) < 1 ) {
116 116
         redirect_header("javascript:history.go(-1);", 2, _SR_NOMATCH);
117 117
     } else
118 118
     */
119
-    {
120
-        $xoopsTpl->assign('results', $results);
119
+	{
120
+		$xoopsTpl->assign('results', $results);
121 121
 
122
-        if (count($next_search) > 0) {
123
-            $items = array();
124
-            foreach ($next_search as $para => $val) {
125
-                if (!empty($val)) {
126
-                    $items[] = "$para=$val";
127
-                }
128
-            }
129
-            if (count($items) > 0) {
130
-                $paras = implode('&', $items);
131
-            }
132
-            unset($next_search);
133
-            unset($items);
134
-        }
135
-        $search_url = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/search.php?' . $paras;
122
+		if (count($next_search) > 0) {
123
+			$items = array();
124
+			foreach ($next_search as $para => $val) {
125
+				if (!empty($val)) {
126
+					$items[] = "$para=$val";
127
+				}
128
+			}
129
+			if (count($items) > 0) {
130
+				$paras = implode('&', $items);
131
+			}
132
+			unset($next_search);
133
+			unset($items);
134
+		}
135
+		$search_url = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/search.php?' . $paras;
136 136
 
137
-        /*
137
+		/*
138 138
          $next_results =& planet_search($queries, $andor, 1, $start + $limit, $uid, $category, $sortby, $searchin, $extra);
139 139
       $next_count = count($next_results);
140 140
       $has_next = false;
@@ -143,41 +143,41 @@  discard block
 block discarded – undo
143 143
       }
144 144
       if (false != $has_next)
145 145
       */
146
-        if (count($results)) {
147
-            $next            = $start + $limit;
148
-            $queries         = implode(',', $queries);
149
-            $search_url_next = $search_url . "&start=$next";
150
-            $search_next     = "<a href=\"" . htmlspecialchars($search_url_next) . "\">" . _SR_NEXT . '</a>';
151
-            $xoopsTpl->assign('search_next', $search_next);
152
-        }
153
-        if ($start > 0) {
154
-            $prev            = $start - $limit;
155
-            $search_url_prev = $search_url . "&start=$prev";
156
-            $search_prev     = "<a href=\"" . htmlspecialchars($search_url_prev) . "\">" . _SR_PREVIOUS . '</a>';
157
-            $xoopsTpl->assign('search_prev', $search_prev);
158
-        }
159
-    }
146
+		if (count($results)) {
147
+			$next            = $start + $limit;
148
+			$queries         = implode(',', $queries);
149
+			$search_url_next = $search_url . "&start=$next";
150
+			$search_next     = "<a href=\"" . htmlspecialchars($search_url_next) . "\">" . _SR_NEXT . '</a>';
151
+			$xoopsTpl->assign('search_next', $search_next);
152
+		}
153
+		if ($start > 0) {
154
+			$prev            = $start - $limit;
155
+			$search_url_prev = $search_url . "&start=$prev";
156
+			$search_prev     = "<a href=\"" . htmlspecialchars($search_url_prev) . "\">" . _SR_PREVIOUS . '</a>';
157
+			$xoopsTpl->assign('search_prev', $search_prev);
158
+		}
159
+	}
160 160
 
161
-    unset($results);
162
-    $search_info = _SR_KEYWORDS . ': ' . $myts->htmlSpecialChars($term);
163
-    $xoopsTpl->assign('search_info', $search_info);
161
+	unset($results);
162
+	$search_info = _SR_KEYWORDS . ': ' . $myts->htmlSpecialChars($term);
163
+	$xoopsTpl->assign('search_info', $search_info);
164 164
 }
165 165
 
166 166
 /* type */
167 167
 $type_select = "<select name=\"andor\">";
168 168
 $type_select .= "<option value=\"OR\"";
169 169
 if ('OR' === $andor) {
170
-    $type_select .= " selected=\"selected\"";
170
+	$type_select .= " selected=\"selected\"";
171 171
 }
172 172
 $type_select .= '>' . _SR_ANY . '</option>';
173 173
 $type_select .= "<option value=\"AND\"";
174 174
 if ('AND' === $andor) {
175
-    $type_select .= " selected=\"selected\"";
175
+	$type_select .= " selected=\"selected\"";
176 176
 }
177 177
 $type_select .= '>' . _SR_ALL . '</option>';
178 178
 $type_select .= "<option value=\"EXACT\"";
179 179
 if ('exact' === $andor) {
180
-    $type_select .= " selected=\"selected\"";
180
+	$type_select .= " selected=\"selected\"";
181 181
 }
182 182
 $type_select .= '>' . _SR_EXACT . '</option>';
183 183
 $type_select .= '</select>';
@@ -186,32 +186,32 @@  discard block
 block discarded – undo
186 186
 $searchin_select = '';
187 187
 $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"title\"";
188 188
 if (in_array('title', $searchin)) {
189
-    $searchin_select .= ' checked';
189
+	$searchin_select .= ' checked';
190 190
 }
191 191
 $searchin_select .= ' />' . planet_constant('MD_TITLE') . '&nbsp;&nbsp;';
192 192
 $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"text\"";
193 193
 if (in_array('text', $searchin)) {
194
-    $searchin_select .= ' checked';
194
+	$searchin_select .= ' checked';
195 195
 }
196 196
 $searchin_select .= ' />' . planet_constant('MD_BODY') . '&nbsp;&nbsp;||&nbsp;&nbsp;';
197 197
 $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"blog\"";
198 198
 if (in_array('blog', $searchin)) {
199
-    $searchin_select .= ' checked';
199
+	$searchin_select .= ' checked';
200 200
 }
201 201
 $searchin_select .= ' />' . planet_constant('MD_BLOG') . '&nbsp;&nbsp;';
202 202
 $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"feed\"";
203 203
 if (in_array('feed', $searchin)) {
204
-    $searchin_select .= ' checked';
204
+	$searchin_select .= ' checked';
205 205
 }
206 206
 $searchin_select .= ' />' . planet_constant('MD_FEED') . '&nbsp;&nbsp;';
207 207
 $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"desc\"";
208 208
 if (in_array('desc', $searchin)) {
209
-    $searchin_select .= ' checked';
209
+	$searchin_select .= ' checked';
210 210
 }
211 211
 $searchin_select .= ' />' . planet_constant('MD_DESC') . '&nbsp;&nbsp;';
212 212
 $searchin_select .= "<input type=\"checkbox\" name=\"searchin[]\" value=\"all\"";
213 213
 if (empty($searchin)) {
214
-    $searchin_select .= ' checked';
214
+	$searchin_select .= ' checked';
215 215
 }
216 216
 $searchin_select .= ' />' . _ALL . '&nbsp;&nbsp;';
217 217
 
@@ -219,28 +219,28 @@  discard block
 block discarded – undo
219 219
 $sortby_select = "<select name=\"sortby\">";
220 220
 $sortby_select .= "<option value=\"\"";
221 221
 if (empty($sortby)) {
222
-    $sortby_select .= " selected=\"selected\"";
222
+	$sortby_select .= " selected=\"selected\"";
223 223
 }
224 224
 $sortby_select .= '>' . _NONE . '</option>';
225 225
 $sortby_select .= "<option value=\"a.art_time\"";
226 226
 if ('a.art_time' === $sortby) {
227
-    $sortby_select .= " selected=\"selected\"";
227
+	$sortby_select .= " selected=\"selected\"";
228 228
 }
229 229
 $sortby_select .= '>' . planet_constant('MD_TIME') . '</option>';
230 230
 $sortby_select .= "<option value=\"a.art_title\"";
231 231
 if ('a.art_title' === $sortby) {
232
-    $sortby_select .= " selected=\"selected\"";
232
+	$sortby_select .= " selected=\"selected\"";
233 233
 }
234 234
 $sortby_select .= '>' . planet_constant('MD_TITLE') . '</option>';
235 235
 $sortby_select .= "<option value=\"\">&nbsp;&nbsp;----&nbsp;&nbsp;</option>";
236 236
 $sortby_select .= "<option value=\"a.blog_title\"";
237 237
 if ('a.blog_title' === $sortby) {
238
-    $sortby_select .= " selected=\"selected\"";
238
+	$sortby_select .= " selected=\"selected\"";
239 239
 }
240 240
 $sortby_select .= '>' . planet_constant('MD_BLOG') . '</option>';
241 241
 $sortby_select .= "<option value=\"a.blog_time\"";
242 242
 if ('b.blog_time' === $sortby) {
243
-    $sortby_select .= " selected=\"selected\"";
243
+	$sortby_select .= " selected=\"selected\"";
244 244
 }
245 245
 $sortby_select .= '>' . planet_constant('MD_UPDATE') . '</option>';
246 246
 $sortby_select .= '</select>';
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 $xoopsTpl->assign('uid', $uid);
258 258
 
259 259
 if ($xoopsConfigSearch['keyword_min'] > 0) {
260
-    $xoopsTpl->assign('search_rule', sprintf(_SR_KEYIGNORE, $xoopsConfigSearch['keyword_min']));
260
+	$xoopsTpl->assign('search_rule', sprintf(_SR_KEYIGNORE, $xoopsConfigSearch['keyword_min']));
261 261
 }
262 262
 
263 263
 include XOOPS_ROOT_PATH . '/footer.php';
Please login to merge, or discard this patch.
admin/header.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@
 block discarded – undo
46 46
 
47 47
 // include the default language file for the admin interface
48 48
 if (!@include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'
49
-                   . $xoopsConfig['language'] . '/main.php'
49
+				   . $xoopsConfig['language'] . '/main.php'
50 50
 ) {
51
-    include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/main.php';
51
+	include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/main.php';
52 52
 }
53 53
 
54 54
 planet_define_url_delimiter();
Please login to merge, or discard this patch.
language/english/main.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@
 block discarded – undo
8 8
 
9 9
 $current_path = __FILE__;
10 10
 if (DIRECTORY_SEPARATOR !== '/') {
11
-    $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
11
+	$current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
12 12
 }
13 13
 $url_arr = explode('/', strstr($current_path, '/modules/'));
14 14
 include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php';
15 15
 
16 16
 if (defined($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_BLOCKS')) {
17
-    return;
17
+	return;
18 18
 }
19 19
 define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_BLOCKS', 1);
20 20
 
Please login to merge, or discard this patch.
language/english/admin.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@
 block discarded – undo
8 8
 
9 9
 $current_path = __FILE__;
10 10
 if (DIRECTORY_SEPARATOR !== '/') {
11
-    $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
11
+	$current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
12 12
 }
13 13
 $url_arr = explode('/', strstr($current_path, '/modules/'));
14 14
 include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php';
15 15
 
16 16
 if (defined($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_BLOCKS')) {
17
-    return;
17
+	return;
18 18
 }
19 19
 define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_BLOCKS', 1);
20 20
 
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Indentation   +127 added lines, -127 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  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
-    'description' => planet_constant('MI_DESC'),
36
-    'credits'     => 'XOOPS Project',
37
-    'image'       => 'assets/images/logoModule.png',
38
-    'dirname'     => $GLOBALS['moddirname'],
39
-    'author'      => 'D.J. (phppp)',
40
-    'help'        => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
33
+	'name'        => planet_constant('MI_NAME'),
34
+	'version'     => 2.10,
35
+	'description' => planet_constant('MI_DESC'),
36
+	'credits'     => 'XOOPS Project',
37
+	'image'       => 'assets/images/logoModule.png',
38
+	'dirname'     => $GLOBALS['moddirname'],
39
+	'author'      => 'D.J. (phppp)',
40
+	'help'        => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
41 41
 );
42 42
 $modversion['help']         = 'page=help';
43 43
 $modversion['license']      = 'GNU see LICENSE';
@@ -57,19 +57,19 @@  discard block
 block discarded – undo
57 57
 $modversion['min_xoops']           = '2.5.8';
58 58
 $modversion['min_admin']           = '1.2';
59 59
 $modversion['min_db']              = array(
60
-    'mysql'  => '5.0.7',
61
-    'mysqli' => '5.0.7'
60
+	'mysql'  => '5.0.7',
61
+	'mysqli' => '5.0.7'
62 62
 );
63 63
 
64 64
 // database tables
65 65
 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
66 66
 $modversion['tables']           = array(
67
-    $GLOBALS['MOD_DB_PREFIX'] . '_category',
68
-    $GLOBALS['MOD_DB_PREFIX'] . '_article',
69
-    $GLOBALS['MOD_DB_PREFIX'] . '_blog',
70
-    $GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
71
-    $GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
72
-    $GLOBALS['MOD_DB_PREFIX'] . '_rate'
67
+	$GLOBALS['MOD_DB_PREFIX'] . '_category',
68
+	$GLOBALS['MOD_DB_PREFIX'] . '_article',
69
+	$GLOBALS['MOD_DB_PREFIX'] . '_blog',
70
+	$GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
71
+	$GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
72
+	$GLOBALS['MOD_DB_PREFIX'] . '_rate'
73 73
 );
74 74
 
75 75
 // Admin things
@@ -151,162 +151,162 @@  discard block
 block discarded – undo
151 151
 // Configs
152 152
 // Config items
153 153
 $modversion['config'][] = array(
154
-    'name'        => 'do_debug',
155
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
156
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
157
-    'formtype'    => 'yesno',
158
-    'valuetype'   => 'int',
159
-    'default'     => 1
154
+	'name'        => 'do_debug',
155
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
156
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
157
+	'formtype'    => 'yesno',
158
+	'valuetype'   => 'int',
159
+	'default'     => 1
160 160
 );
161 161
 
162 162
 $modversion['config'][] = array(
163
-    'name'        => 'do_urw',
164
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
165
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
166
-    'formtype'    => 'yesno',
167
-    'valuetype'   => 'int',
168
-    'default'     => in_array(php_sapi_name(), array('apache', 'apache2handler'))
163
+	'name'        => 'do_urw',
164
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
165
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
166
+	'formtype'    => 'yesno',
167
+	'valuetype'   => 'int',
168
+	'default'     => in_array(php_sapi_name(), array('apache', 'apache2handler'))
169 169
 );
170 170
 
171 171
 $modversion['config'][] = array(
172
-    'name'        => 'theme_set',
173
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
174
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
175
-    'formtype'    => 'select',
176
-    'valuetype'   => 'text',
177
-    'options'     => array(_NONE => '0'),
178
-    'default'     => ''
172
+	'name'        => 'theme_set',
173
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
174
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
175
+	'formtype'    => 'select',
176
+	'valuetype'   => 'text',
177
+	'options'     => array(_NONE => '0'),
178
+	'default'     => ''
179 179
 );
180 180
 
181 181
 $modversion['config'][] = array(
182
-    'name'        => 'timeformat',
183
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
184
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
185
-    'formtype'    => 'select',
186
-    'valuetype'   => 'text',
187
-    'options'     => array(
188
-        _DATESTRING                                       => 'l',
189
-        _MEDIUMDATESTRING                                 => 'm',
190
-        _SHORTDATESTRING                                  => 's',
191
-        $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
192
-    ),
193
-    'default'     => 'c'
182
+	'name'        => 'timeformat',
183
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
184
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
185
+	'formtype'    => 'select',
186
+	'valuetype'   => 'text',
187
+	'options'     => array(
188
+		_DATESTRING                                       => 'l',
189
+		_MEDIUMDATESTRING                                 => 'm',
190
+		_SHORTDATESTRING                                  => 's',
191
+		$GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
192
+	),
193
+	'default'     => 'c'
194 194
 );
195 195
 
196 196
 $modversion['config'][] = array(
197
-    'name'        => 'articles_perpage',
198
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
199
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
200
-    'formtype'    => 'textbox',
201
-    'valuetype'   => 'int',
202
-    'default'     => 10
197
+	'name'        => 'articles_perpage',
198
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
199
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
200
+	'formtype'    => 'textbox',
201
+	'valuetype'   => 'int',
202
+	'default'     => 10
203 203
 );
204 204
 
205 205
 $modversion['config'][] = array(
206
-    'name'        => 'list_perpage',
207
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
208
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
209
-    'formtype'    => 'textbox',
210
-    'valuetype'   => 'int',
211
-    'default'     => 20
206
+	'name'        => 'list_perpage',
207
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
208
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
209
+	'formtype'    => 'textbox',
210
+	'valuetype'   => 'int',
211
+	'default'     => 20
212 212
 );
213 213
 
214 214
 $modversion['config'][] = array(
215
-    'name'        => 'blogs_perupdate',
216
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
217
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
218
-    'formtype'    => 'textbox',
219
-    'valuetype'   => 'int',
220
-    'default'     => 10
215
+	'name'        => 'blogs_perupdate',
216
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
217
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
218
+	'formtype'    => 'textbox',
219
+	'valuetype'   => 'int',
220
+	'default'     => 10
221 221
 );
222 222
 
223 223
 $modversion['config'][] = array(
224
-    'name'        => 'article_expire',
225
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
226
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
227
-    'formtype'    => 'textbox',
228
-    'valuetype'   => 'int',
229
-    'default'     => 30
224
+	'name'        => 'article_expire',
225
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
226
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
227
+	'formtype'    => 'textbox',
228
+	'valuetype'   => 'int',
229
+	'default'     => 30
230 230
 );
231 231
 
232 232
 $modversion['config'][] = array(
233
-    'name'        => 'display_summary',
234
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
235
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
236
-    'formtype'    => 'textbox',
237
-    'valuetype'   => 'int',
238
-    'default'     => 0
233
+	'name'        => 'display_summary',
234
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
235
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
236
+	'formtype'    => 'textbox',
237
+	'valuetype'   => 'int',
238
+	'default'     => 0
239 239
 );
240 240
 
241 241
 $modversion['config'][] = array(
242
-    'name'        => 'do_sibling',
243
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
244
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
245
-    'formtype'    => 'yesno',
246
-    'valuetype'   => 'int',
247
-    'default'     => 1
242
+	'name'        => 'do_sibling',
243
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
244
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
245
+	'formtype'    => 'yesno',
246
+	'valuetype'   => 'int',
247
+	'default'     => 1
248 248
 );
249 249
 
250 250
 $modversion['config'][] = array(
251
-    'name'        => 'pings',
252
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
253
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
254
-    'formtype'    => 'textarea',
255
-    'valuetype'   => 'text',
256
-    'default'     => ''
251
+	'name'        => 'pings',
252
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
253
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
254
+	'formtype'    => 'textarea',
255
+	'valuetype'   => 'text',
256
+	'default'     => ''
257 257
 );
258 258
 
259 259
 $modversion['config'][] = array(
260
-    'name'        => 'trackback_option',
261
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
262
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
263
-    'formtype'    => 'select',
264
-    'valuetype'   => 'int',
265
-    'default'     => 0,
266
-    'options'     => array(planet_constant('MI_MODERATION') => 0, _ALL => 1, _NONE => 2)
260
+	'name'        => 'trackback_option',
261
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
262
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
263
+	'formtype'    => 'select',
264
+	'valuetype'   => 'int',
265
+	'default'     => 0,
266
+	'options'     => array(planet_constant('MI_MODERATION') => 0, _ALL => 1, _NONE => 2)
267 267
 );
268 268
 
269 269
 $modversion['config'][] = array(
270
-    'name'        => 'copyright',
271
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
272
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
273
-    'formtype'    => 'textbox',
274
-    'valuetype'   => 'text',
275
-    'default'     => 'Copyright&copy; %s & ' . $xoopsConfig['sitename']
270
+	'name'        => 'copyright',
271
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
272
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
273
+	'formtype'    => 'textbox',
274
+	'valuetype'   => 'text',
275
+	'default'     => 'Copyright&copy; %s & ' . $xoopsConfig['sitename']
276 276
 );
277 277
 
278 278
 $modversion['config'][] = array(
279
-    'name'        => 'newblog_submit',
280
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
281
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
282
-    'formtype'    => 'select',
283
-    'valuetype'   => 'int',
284
-    'default'     => 2,
285
-    'options'     => array(
286
-        _NONE                            => 0,
287
-        planet_constant('MI_MODERATION') => 1,
288
-        planet_constant('MI_MEMBER')     => 2,
289
-        _ALL                             => 3
290
-    )
291
-    // 0 - Only admin; 1 - all but need approval; 2 - members auto approved; 3 - all
279
+	'name'        => 'newblog_submit',
280
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
281
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
282
+	'formtype'    => 'select',
283
+	'valuetype'   => 'int',
284
+	'default'     => 2,
285
+	'options'     => array(
286
+		_NONE                            => 0,
287
+		planet_constant('MI_MODERATION') => 1,
288
+		planet_constant('MI_MEMBER')     => 2,
289
+		_ALL                             => 3
290
+	)
291
+	// 0 - Only admin; 1 - all but need approval; 2 - members auto approved; 3 - all
292 292
 );
293 293
 
294 294
 $modversion['config'][] = array(
295
-    'name'        => 'anonymous_rate',
296
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
297
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
298
-    'formtype'    => 'yesno',
299
-    'valuetype'   => 'int',
300
-    'default'     => 0
295
+	'name'        => 'anonymous_rate',
296
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
297
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
298
+	'formtype'    => 'yesno',
299
+	'valuetype'   => 'int',
300
+	'default'     => 0
301 301
 );
302 302
 
303 303
 $modversion['config'][] = array(
304
-    'name'        => 'do_pseudocron',
305
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
306
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
307
-    'formtype'    => 'yesno',
308
-    'valuetype'   => 'int',
309
-    'default'     => 1
304
+	'name'        => 'do_pseudocron',
305
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
306
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
307
+	'formtype'    => 'yesno',
308
+	'valuetype'   => 'int',
309
+	'default'     => 1
310 310
 );
311 311
 
312 312
 // Notification
Please login to merge, or discard this patch.