Completed
Push — master ( a50592...10bab4 )
by Michael
01:56
created
blocks/block.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
 $current_path = __FILE__;
31 31
 if (DIRECTORY_SEPARATOR !== '/') {
32
-    $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
32
+	$current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
33 33
 }
34 34
 $url_arr = explode('/', strstr($current_path, '/modules/'));
35 35
 include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
     $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
33 33
 }
34 34
 $url_arr = explode('/', strstr($current_path, '/modules/'));
35
-include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php';
36
-include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/class/utility.php';
35
+include XOOPS_ROOT_PATH.'/modules/'.$url_arr[2].'/include/vars.php';
36
+include XOOPS_ROOT_PATH.'/modules/'.$url_arr[2].'/class/utility.php';
37 37
 //require_once XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/functions.php';
38 38
 
39 39
 /**
Please login to merge, or discard this patch.
language/english/main.php 2 patches
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_MAIN')) {
17
-    return;
17
+	return;
18 18
 }
19 19
 define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_MAIN', 1);
20 20
 
Please login to merge, or discard this patch.
Spacing   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -11,92 +11,92 @@  discard block
 block discarded – undo
11 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
-include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php';
14
+include XOOPS_ROOT_PATH.'/modules/'.$url_arr[2].'/include/vars.php';
15 15
 
16
-if (defined($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_MAIN')) {
16
+if (defined($GLOBALS['VAR_PREFIXU'].'_LANG_EN_MAIN')) {
17 17
     return;
18 18
 }
19
-define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_MAIN', 1);
19
+define($GLOBALS['VAR_PREFIXU'].'_LANG_EN_MAIN', 1);
20 20
 
21
-define($GLOBALS['VAR_PREFIXU'] . '_MD_INVALID', 'Invalid action');
22
-define($GLOBALS['VAR_PREFIXU'] . '_MD_NOACCESS', 'No access');
21
+define($GLOBALS['VAR_PREFIXU'].'_MD_INVALID', 'Invalid action');
22
+define($GLOBALS['VAR_PREFIXU'].'_MD_NOACCESS', 'No access');
23 23
 
24
-define($GLOBALS['VAR_PREFIXU'] . '_MD_TITLE', 'Title');
25
-define($GLOBALS['VAR_PREFIXU'] . '_MD_AUTHOR', 'Author');
26
-define($GLOBALS['VAR_PREFIXU'] . '_MD_SUMMARY', 'Summary');
27
-define($GLOBALS['VAR_PREFIXU'] . '_MD_BODY', 'Text body');
28
-define($GLOBALS['VAR_PREFIXU'] . '_MD_SORTBY', 'Sort');
24
+define($GLOBALS['VAR_PREFIXU'].'_MD_TITLE', 'Title');
25
+define($GLOBALS['VAR_PREFIXU'].'_MD_AUTHOR', 'Author');
26
+define($GLOBALS['VAR_PREFIXU'].'_MD_SUMMARY', 'Summary');
27
+define($GLOBALS['VAR_PREFIXU'].'_MD_BODY', 'Text body');
28
+define($GLOBALS['VAR_PREFIXU'].'_MD_SORTBY', 'Sort');
29 29
 
30
-define($GLOBALS['VAR_PREFIXU'] . '_MD_SAVED', 'Data saved');
30
+define($GLOBALS['VAR_PREFIXU'].'_MD_SAVED', 'Data saved');
31 31
 //define($GLOBALS["VAR_PREFIXU"]."_MD_SUBMITTED","Submitted");;
32 32
 
33
-define($GLOBALS['VAR_PREFIXU'] . '_MD_ALREADYBOOKMARKED', 'You have already bookmarked the blog');
34
-define($GLOBALS['VAR_PREFIXU'] . '_MD_ALREADYRATED', 'You have already rated');
35
-define($GLOBALS['VAR_PREFIXU'] . '_MD_NOTSAVED', 'Not saved');
33
+define($GLOBALS['VAR_PREFIXU'].'_MD_ALREADYBOOKMARKED', 'You have already bookmarked the blog');
34
+define($GLOBALS['VAR_PREFIXU'].'_MD_ALREADYRATED', 'You have already rated');
35
+define($GLOBALS['VAR_PREFIXU'].'_MD_NOTSAVED', 'Not saved');
36 36
 
37
-define($GLOBALS['VAR_PREFIXU'] . '_MD_ACTIONDONE', 'Action succeeded');
37
+define($GLOBALS['VAR_PREFIXU'].'_MD_ACTIONDONE', 'Action succeeded');
38 38
 
39
-define($GLOBALS['VAR_PREFIXU'] . '_MD_CONTENT', 'Content');
40
-define($GLOBALS['VAR_PREFIXU'] . '_MD_ARTICLE', 'Article');
41
-define($GLOBALS['VAR_PREFIXU'] . '_MD_CATEGORY', 'Category');
42
-define($GLOBALS['VAR_PREFIXU'] . '_MD_INDEX', 'Index');
43
-define($GLOBALS['VAR_PREFIXU'] . '_MD_DISCLAIMER', 'Disclaimer');
39
+define($GLOBALS['VAR_PREFIXU'].'_MD_CONTENT', 'Content');
40
+define($GLOBALS['VAR_PREFIXU'].'_MD_ARTICLE', 'Article');
41
+define($GLOBALS['VAR_PREFIXU'].'_MD_CATEGORY', 'Category');
42
+define($GLOBALS['VAR_PREFIXU'].'_MD_INDEX', 'Index');
43
+define($GLOBALS['VAR_PREFIXU'].'_MD_DISCLAIMER', 'Disclaimer');
44 44
 
45
-define($GLOBALS['VAR_PREFIXU'] . '_MD_DATE', 'Date');
45
+define($GLOBALS['VAR_PREFIXU'].'_MD_DATE', 'Date');
46 46
 
47
-define($GLOBALS['VAR_PREFIXU'] . '_MD_SOURCE', 'Source');
48
-define($GLOBALS['VAR_PREFIXU'] . '_MD_XMLDESC_ARTICLE', 'Article XML');
49
-define($GLOBALS['VAR_PREFIXU'] . '_MD_XMLDESC_CATEGORY', 'XML for category %s');
50
-define($GLOBALS['VAR_PREFIXU'] . '_MD_XMLDESC_BOOKMARK', 'XML for bookmark %s');
51
-define($GLOBALS['VAR_PREFIXU'] . '_MD_XMLDESC_BLOG', 'XML for blog %s');
52
-define($GLOBALS['VAR_PREFIXU'] . '_MD_XMLDESC_INDEX', 'XML for index page');
47
+define($GLOBALS['VAR_PREFIXU'].'_MD_SOURCE', 'Source');
48
+define($GLOBALS['VAR_PREFIXU'].'_MD_XMLDESC_ARTICLE', 'Article XML');
49
+define($GLOBALS['VAR_PREFIXU'].'_MD_XMLDESC_CATEGORY', 'XML for category %s');
50
+define($GLOBALS['VAR_PREFIXU'].'_MD_XMLDESC_BOOKMARK', 'XML for bookmark %s');
51
+define($GLOBALS['VAR_PREFIXU'].'_MD_XMLDESC_BLOG', 'XML for blog %s');
52
+define($GLOBALS['VAR_PREFIXU'].'_MD_XMLDESC_INDEX', 'XML for index page');
53 53
 
54
-define($GLOBALS['VAR_PREFIXU'] . '_MD_TEXT', 'Text');
54
+define($GLOBALS['VAR_PREFIXU'].'_MD_TEXT', 'Text');
55 55
 
56
-define($GLOBALS['VAR_PREFIXU'] . '_MD_BLOG', 'Blog');
57
-define($GLOBALS['VAR_PREFIXU'] . '_MD_BOOKMARK', 'Bookmark');
56
+define($GLOBALS['VAR_PREFIXU'].'_MD_BLOG', 'Blog');
57
+define($GLOBALS['VAR_PREFIXU'].'_MD_BOOKMARK', 'Bookmark');
58 58
 //define($GLOBALS["VAR_PREFIXU"]."_MD_TRACKBACKS","Trackback");
59 59
 //define($GLOBALS["VAR_PREFIXU"]."_MD_NOTIFY_ON_APPROVAL","Notify of approval");
60 60
 
61
-define($GLOBALS['VAR_PREFIXU'] . '_MD_DESC', 'Description');
62
-define($GLOBALS['VAR_PREFIXU'] . '_MD_ORDER', 'Order');
63
-
64
-define($GLOBALS['VAR_PREFIXU'] . '_MD_RSS', 'RSS');
65
-define($GLOBALS['VAR_PREFIXU'] . '_MD_RDF', 'RDF');
66
-define($GLOBALS['VAR_PREFIXU'] . '_MD_ATOM', 'ATOM');
67
-define($GLOBALS['VAR_PREFIXU'] . '_MD_OPML', 'OPML');
68
-
69
-define($GLOBALS['VAR_PREFIXU'] . '_MD_ARTICLES', 'Articles');
70
-define($GLOBALS['VAR_PREFIXU'] . '_MD_FEATURED', 'Featured');
71
-define($GLOBALS['VAR_PREFIXU'] . '_MD_CATEGORIES', 'Categories');
72
-
73
-define($GLOBALS['VAR_PREFIXU'] . '_MD_LANGUAGE', 'Language');
74
-define($GLOBALS['VAR_PREFIXU'] . '_MD_CHARSET', 'Charset');
75
-define($GLOBALS['VAR_PREFIXU'] . '_MD_IMAGE', 'Image');
76
-define($GLOBALS['VAR_PREFIXU'] . '_MD_TRACKBACKPATTERN', 'Trackback pattern');
77
-define($GLOBALS['VAR_PREFIXU'] . '_MD_STATUS', 'Status');
78
-define($GLOBALS['VAR_PREFIXU'] . '_MD_URL', 'URL');
79
-define($GLOBALS['VAR_PREFIXU'] . '_MD_LINK', 'Link');
80
-define($GLOBALS['VAR_PREFIXU'] . '_MD_FEED', 'Feed');
81
-define($GLOBALS['VAR_PREFIXU'] . '_MD_FETCH', 'Fetch');
82
-define($GLOBALS['VAR_PREFIXU'] . '_MD_UPDATE', 'Update');
83
-define($GLOBALS['VAR_PREFIXU'] . '_MD_LASTUPDATE', 'Update');
84
-define($GLOBALS['VAR_PREFIXU'] . '_MD_TRACKBACK', 'Trackback');
85
-define($GLOBALS['VAR_PREFIXU'] . '_MD_SUBMITTER', 'Submitter');
86
-define($GLOBALS['VAR_PREFIXU'] . '_MD_VIEWS', 'Views');
87
-define($GLOBALS['VAR_PREFIXU'] . '_MD_RATE', 'Rate');
88
-define($GLOBALS['VAR_PREFIXU'] . '_MD_RATEIT', 'Rate it!');
89
-define($GLOBALS['VAR_PREFIXU'] . '_MD_TIME', 'Time');
90
-
91
-define($GLOBALS['VAR_PREFIXU'] . '_MD_UPDATED', 'The blog is updated with %s articles inserted');
92
-define($GLOBALS['VAR_PREFIXU'] . '_MD_DBUPDATED', 'Database has been updated');
93
-
94
-define($GLOBALS['VAR_PREFIXU'] . '_MD_PREVIOUS', '<<');
95
-define($GLOBALS['VAR_PREFIXU'] . '_MD_NEXT', '>>');
96
-
97
-define($GLOBALS['VAR_PREFIXU'] . '_MD_PENDING', 'Pending');
98
-define($GLOBALS['VAR_PREFIXU'] . '_MD_ACTIVE', 'Active');
99
-define($GLOBALS['VAR_PREFIXU'] . '_MD_EXPIRED', 'Expired');
61
+define($GLOBALS['VAR_PREFIXU'].'_MD_DESC', 'Description');
62
+define($GLOBALS['VAR_PREFIXU'].'_MD_ORDER', 'Order');
63
+
64
+define($GLOBALS['VAR_PREFIXU'].'_MD_RSS', 'RSS');
65
+define($GLOBALS['VAR_PREFIXU'].'_MD_RDF', 'RDF');
66
+define($GLOBALS['VAR_PREFIXU'].'_MD_ATOM', 'ATOM');
67
+define($GLOBALS['VAR_PREFIXU'].'_MD_OPML', 'OPML');
68
+
69
+define($GLOBALS['VAR_PREFIXU'].'_MD_ARTICLES', 'Articles');
70
+define($GLOBALS['VAR_PREFIXU'].'_MD_FEATURED', 'Featured');
71
+define($GLOBALS['VAR_PREFIXU'].'_MD_CATEGORIES', 'Categories');
72
+
73
+define($GLOBALS['VAR_PREFIXU'].'_MD_LANGUAGE', 'Language');
74
+define($GLOBALS['VAR_PREFIXU'].'_MD_CHARSET', 'Charset');
75
+define($GLOBALS['VAR_PREFIXU'].'_MD_IMAGE', 'Image');
76
+define($GLOBALS['VAR_PREFIXU'].'_MD_TRACKBACKPATTERN', 'Trackback pattern');
77
+define($GLOBALS['VAR_PREFIXU'].'_MD_STATUS', 'Status');
78
+define($GLOBALS['VAR_PREFIXU'].'_MD_URL', 'URL');
79
+define($GLOBALS['VAR_PREFIXU'].'_MD_LINK', 'Link');
80
+define($GLOBALS['VAR_PREFIXU'].'_MD_FEED', 'Feed');
81
+define($GLOBALS['VAR_PREFIXU'].'_MD_FETCH', 'Fetch');
82
+define($GLOBALS['VAR_PREFIXU'].'_MD_UPDATE', 'Update');
83
+define($GLOBALS['VAR_PREFIXU'].'_MD_LASTUPDATE', 'Update');
84
+define($GLOBALS['VAR_PREFIXU'].'_MD_TRACKBACK', 'Trackback');
85
+define($GLOBALS['VAR_PREFIXU'].'_MD_SUBMITTER', 'Submitter');
86
+define($GLOBALS['VAR_PREFIXU'].'_MD_VIEWS', 'Views');
87
+define($GLOBALS['VAR_PREFIXU'].'_MD_RATE', 'Rate');
88
+define($GLOBALS['VAR_PREFIXU'].'_MD_RATEIT', 'Rate it!');
89
+define($GLOBALS['VAR_PREFIXU'].'_MD_TIME', 'Time');
90
+
91
+define($GLOBALS['VAR_PREFIXU'].'_MD_UPDATED', 'The blog is updated with %s articles inserted');
92
+define($GLOBALS['VAR_PREFIXU'].'_MD_DBUPDATED', 'Database has been updated');
93
+
94
+define($GLOBALS['VAR_PREFIXU'].'_MD_PREVIOUS', '<<');
95
+define($GLOBALS['VAR_PREFIXU'].'_MD_NEXT', '>>');
96
+
97
+define($GLOBALS['VAR_PREFIXU'].'_MD_PENDING', 'Pending');
98
+define($GLOBALS['VAR_PREFIXU'].'_MD_ACTIVE', 'Active');
99
+define($GLOBALS['VAR_PREFIXU'].'_MD_EXPIRED', 'Expired');
100 100
 
101 101
 /*
102 102
 define($GLOBALS["VAR_PREFIXU"]."_MD_TYPES", "Types");
@@ -113,22 +113,22 @@  discard block
 block discarded – undo
113 113
 define($GLOBALS["VAR_PREFIXU"]."_MD_VIEWALL","View full text");
114 114
 */
115 115
 
116
-define($GLOBALS['VAR_PREFIXU'] . '_MD_COMMENTS', 'Comments');
117
-define($GLOBALS['VAR_PREFIXU'] . '_MD_CLICKTOCOPY', 'Click to copy');
116
+define($GLOBALS['VAR_PREFIXU'].'_MD_COMMENTS', 'Comments');
117
+define($GLOBALS['VAR_PREFIXU'].'_MD_CLICKTOCOPY', 'Click to copy');
118 118
 
119
-define($GLOBALS['VAR_PREFIXU'] . '_MD_SORT', 'Sort');
119
+define($GLOBALS['VAR_PREFIXU'].'_MD_SORT', 'Sort');
120 120
 
121
-define($GLOBALS['VAR_PREFIXU'] . '_MD_FULLVIEW', 'Fulltext');
122
-define($GLOBALS['VAR_PREFIXU'] . '_MD_LISTVIEW', 'List');
123
-define($GLOBALS['VAR_PREFIXU'] . '_MD_RATING', 'Rating');
124
-define($GLOBALS['VAR_PREFIXU'] . '_MD_DEFAULT', 'Default');
125
-define($GLOBALS['VAR_PREFIXU'] . '_MD_BLOGS', 'Blogs');
126
-define($GLOBALS['VAR_PREFIXU'] . '_MD_BOOKMARKS', 'Bookmarks');
127
-define($GLOBALS['VAR_PREFIXU'] . '_MD_HOME', 'Home');
121
+define($GLOBALS['VAR_PREFIXU'].'_MD_FULLVIEW', 'Fulltext');
122
+define($GLOBALS['VAR_PREFIXU'].'_MD_LISTVIEW', 'List');
123
+define($GLOBALS['VAR_PREFIXU'].'_MD_RATING', 'Rating');
124
+define($GLOBALS['VAR_PREFIXU'].'_MD_DEFAULT', 'Default');
125
+define($GLOBALS['VAR_PREFIXU'].'_MD_BLOGS', 'Blogs');
126
+define($GLOBALS['VAR_PREFIXU'].'_MD_BOOKMARKS', 'Bookmarks');
127
+define($GLOBALS['VAR_PREFIXU'].'_MD_HOME', 'Home');
128 128
 
129
-define($GLOBALS['VAR_PREFIXU'] . '_MD_BLOGEXISTS', 'A blog with the feed already exists');
130
-define($GLOBALS['VAR_PREFIXU'] . '_MD_EMPTY_BLOG', 'Empty');
129
+define($GLOBALS['VAR_PREFIXU'].'_MD_BLOGEXISTS', 'A blog with the feed already exists');
130
+define($GLOBALS['VAR_PREFIXU'].'_MD_EMPTY_BLOG', 'Empty');
131 131
 
132
-define($GLOBALS['VAR_PREFIXU'] . '_MD_TRANSFER', 'Transfer');
133
-define($GLOBALS['VAR_PREFIXU'] . '_MD_TRANSFER_DESC', 'Transfer the article to other applications');
134
-define($GLOBALS['VAR_PREFIXU'] . '_MD_TRANSFER_DONE', 'The action is done successully: %s');
132
+define($GLOBALS['VAR_PREFIXU'].'_MD_TRANSFER', 'Transfer');
133
+define($GLOBALS['VAR_PREFIXU'].'_MD_TRANSFER_DESC', 'Transfer the article to other applications');
134
+define($GLOBALS['VAR_PREFIXU'].'_MD_TRANSFER_DONE', 'The action is done successully: %s');
Please login to merge, or discard this patch.
language/english/admin.php 2 patches
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_ADMIN')) {
17
-    return;
17
+	return;
18 18
 }
19 19
 define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_ADMIN', 1);
20 20
 
Please login to merge, or discard this patch.
Spacing   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -11,83 +11,83 @@
 block discarded – undo
11 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
-include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php';
14
+include XOOPS_ROOT_PATH.'/modules/'.$url_arr[2].'/include/vars.php';
15 15
 
16
-if (defined($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_ADMIN')) {
16
+if (defined($GLOBALS['VAR_PREFIXU'].'_LANG_EN_ADMIN')) {
17 17
     return;
18 18
 }
19
-define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_ADMIN', 1);
19
+define($GLOBALS['VAR_PREFIXU'].'_LANG_EN_ADMIN', 1);
20 20
 
21
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ARTICLES', 'Article Manager');
21
+define($GLOBALS['VAR_PREFIXU'].'_AM_ARTICLES', 'Article Manager');
22 22
 
23
-define($GLOBALS['VAR_PREFIXU'] . '_AM_TITLE', 'Title');
24
-define($GLOBALS['VAR_PREFIXU'] . '_AM_CATEGORY', 'Category');
23
+define($GLOBALS['VAR_PREFIXU'].'_AM_TITLE', 'Title');
24
+define($GLOBALS['VAR_PREFIXU'].'_AM_CATEGORY', 'Category');
25 25
 
26 26
 //define($GLOBALS["VAR_PREFIXU"]."_AM_CATEGORIES", "Categories");
27 27
 //define($GLOBALS["VAR_PREFIXU"]."_AM_ADDCATEGORY", "Add Category");
28 28
 
29
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ARTICLE', 'Article');
30
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ACTION', 'Action');
31
-
32
-define($GLOBALS['VAR_PREFIXU'] . '_AM_PREFERENCES', 'Module Preferences');
33
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ON', 'ON');
34
-define($GLOBALS['VAR_PREFIXU'] . '_AM_OFF', 'OFF');
35
-define($GLOBALS['VAR_PREFIXU'] . '_AM_SAFEMODE', 'safemod');
36
-define($GLOBALS['VAR_PREFIXU'] . '_AM_REGISTERGLOBALS', 'register_globals');
37
-define($GLOBALS['VAR_PREFIXU'] . '_AM_MAGICQUOTESGPC', 'magic_quotes_gpc');
38
-define($GLOBALS['VAR_PREFIXU'] . '_AM_MAXPOSTSIZE', 'post_max_size');
39
-define($GLOBALS['VAR_PREFIXU'] . '_AM_MAXINPUTTIME', 'max_input_time');
40
-define($GLOBALS['VAR_PREFIXU'] . '_AM_OUTPUTBUFFERING', 'output_buffering');
41
-
42
-define($GLOBALS['VAR_PREFIXU'] . '_AM_XML_EXTENSION', 'xml');
43
-define($GLOBALS['VAR_PREFIXU'] . '_AM_MB_EXTENSION', 'mbstring');
44
-define($GLOBALS['VAR_PREFIXU'] . '_AM_CURL', 'curl_init');
45
-define($GLOBALS['VAR_PREFIXU'] . '_AM_FSOCKOPEN', 'fsockopen');
46
-define($GLOBALS['VAR_PREFIXU'] . '_AM_URLFOPEN', 'allow_url_fopen');
47
-
48
-define($GLOBALS['VAR_PREFIXU'] . '_AM_STATS', 'Module Stats');
49
-define($GLOBALS['VAR_PREFIXU'] . '_AM_TOTAL_CATEGORIES', 'Total categories');
50
-define($GLOBALS['VAR_PREFIXU'] . '_AM_TOTAL_BLOGS', 'Total Blogs');
51
-define($GLOBALS['VAR_PREFIXU'] . '_AM_TOTAL_ARTICLES', 'Total articles');
52
-
53
-define($GLOBALS['VAR_PREFIXU'] . '_AM_DBUPDATED', 'Database updated');
54
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ERROR', 'Error');
55
-
56
-define($GLOBALS['VAR_PREFIXU'] . '_AM_COUNT', 'Count');
57
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ORDER', 'Order');
58
-define($GLOBALS['VAR_PREFIXU'] . '_AM_LIST', 'List');
59
-define($GLOBALS['VAR_PREFIXU'] . '_AM_BLOGCOUNT', 'Blogs');
60
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ARTICLECOUNT', 'Articles');
61
-
62
-define($GLOBALS['VAR_PREFIXU'] . '_AM_EXPIRED', 'Expired');
63
-define($GLOBALS['VAR_PREFIXU'] . '_AM_PENDING', 'Pending');
64
-define($GLOBALS['VAR_PREFIXU'] . '_AM_STATUS', 'Status');
65
-define($GLOBALS['VAR_PREFIXU'] . '_AM_FEED', 'Feed');
66
-
67
-define($GLOBALS['VAR_PREFIXU'] . '_AM_REGISTER', 'Register');
68
-define($GLOBALS['VAR_PREFIXU'] . '_AM_APPROVE', 'Approve');
69
-define($GLOBALS['VAR_PREFIXU'] . '_AM_FEATURE', 'Feature');
70
-define($GLOBALS['VAR_PREFIXU'] . '_AM_UPDATE', 'Update');
71
-define($GLOBALS['VAR_PREFIXU'] . '_AM_REMOVE', 'Remove');
72
-
73
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_RELEASEDATE', 'Release date');
74
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_AUTHOR', 'Author');
75
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_CREDITS', 'Credits');
76
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_LICENSE', 'License');
77
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_WEBSITE', 'Homepage');
78
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_MODULE_INFO', 'Module info');
79
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_MODULE_STATUS', 'Status');
80
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_MODULE_TEAM', 'Team members');
81
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_AUTHOR_INFO', 'Author info');
82
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_AUTHOR_NAME', 'Author name');
83
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_AUTHOR_WORD', "Author's word");
84
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_DISCLAIMER', 'Disclaimer');
85
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_DISCLAIMER_TEXT', 'GPL-licensed');
86
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ABOUT_CHANGELOG', 'Changelog');
87
-
88
-define($GLOBALS['VAR_PREFIXU'] . '_AM_BLOGEXISTS', 'A blog with the feed already exists');
89
-
90
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ACTIONS', 'Actions');
29
+define($GLOBALS['VAR_PREFIXU'].'_AM_ARTICLE', 'Article');
30
+define($GLOBALS['VAR_PREFIXU'].'_AM_ACTION', 'Action');
31
+
32
+define($GLOBALS['VAR_PREFIXU'].'_AM_PREFERENCES', 'Module Preferences');
33
+define($GLOBALS['VAR_PREFIXU'].'_AM_ON', 'ON');
34
+define($GLOBALS['VAR_PREFIXU'].'_AM_OFF', 'OFF');
35
+define($GLOBALS['VAR_PREFIXU'].'_AM_SAFEMODE', 'safemod');
36
+define($GLOBALS['VAR_PREFIXU'].'_AM_REGISTERGLOBALS', 'register_globals');
37
+define($GLOBALS['VAR_PREFIXU'].'_AM_MAGICQUOTESGPC', 'magic_quotes_gpc');
38
+define($GLOBALS['VAR_PREFIXU'].'_AM_MAXPOSTSIZE', 'post_max_size');
39
+define($GLOBALS['VAR_PREFIXU'].'_AM_MAXINPUTTIME', 'max_input_time');
40
+define($GLOBALS['VAR_PREFIXU'].'_AM_OUTPUTBUFFERING', 'output_buffering');
41
+
42
+define($GLOBALS['VAR_PREFIXU'].'_AM_XML_EXTENSION', 'xml');
43
+define($GLOBALS['VAR_PREFIXU'].'_AM_MB_EXTENSION', 'mbstring');
44
+define($GLOBALS['VAR_PREFIXU'].'_AM_CURL', 'curl_init');
45
+define($GLOBALS['VAR_PREFIXU'].'_AM_FSOCKOPEN', 'fsockopen');
46
+define($GLOBALS['VAR_PREFIXU'].'_AM_URLFOPEN', 'allow_url_fopen');
47
+
48
+define($GLOBALS['VAR_PREFIXU'].'_AM_STATS', 'Module Stats');
49
+define($GLOBALS['VAR_PREFIXU'].'_AM_TOTAL_CATEGORIES', 'Total categories');
50
+define($GLOBALS['VAR_PREFIXU'].'_AM_TOTAL_BLOGS', 'Total Blogs');
51
+define($GLOBALS['VAR_PREFIXU'].'_AM_TOTAL_ARTICLES', 'Total articles');
52
+
53
+define($GLOBALS['VAR_PREFIXU'].'_AM_DBUPDATED', 'Database updated');
54
+define($GLOBALS['VAR_PREFIXU'].'_AM_ERROR', 'Error');
55
+
56
+define($GLOBALS['VAR_PREFIXU'].'_AM_COUNT', 'Count');
57
+define($GLOBALS['VAR_PREFIXU'].'_AM_ORDER', 'Order');
58
+define($GLOBALS['VAR_PREFIXU'].'_AM_LIST', 'List');
59
+define($GLOBALS['VAR_PREFIXU'].'_AM_BLOGCOUNT', 'Blogs');
60
+define($GLOBALS['VAR_PREFIXU'].'_AM_ARTICLECOUNT', 'Articles');
61
+
62
+define($GLOBALS['VAR_PREFIXU'].'_AM_EXPIRED', 'Expired');
63
+define($GLOBALS['VAR_PREFIXU'].'_AM_PENDING', 'Pending');
64
+define($GLOBALS['VAR_PREFIXU'].'_AM_STATUS', 'Status');
65
+define($GLOBALS['VAR_PREFIXU'].'_AM_FEED', 'Feed');
66
+
67
+define($GLOBALS['VAR_PREFIXU'].'_AM_REGISTER', 'Register');
68
+define($GLOBALS['VAR_PREFIXU'].'_AM_APPROVE', 'Approve');
69
+define($GLOBALS['VAR_PREFIXU'].'_AM_FEATURE', 'Feature');
70
+define($GLOBALS['VAR_PREFIXU'].'_AM_UPDATE', 'Update');
71
+define($GLOBALS['VAR_PREFIXU'].'_AM_REMOVE', 'Remove');
72
+
73
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_RELEASEDATE', 'Release date');
74
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_AUTHOR', 'Author');
75
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_CREDITS', 'Credits');
76
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_LICENSE', 'License');
77
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_WEBSITE', 'Homepage');
78
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_MODULE_INFO', 'Module info');
79
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_MODULE_STATUS', 'Status');
80
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_MODULE_TEAM', 'Team members');
81
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_AUTHOR_INFO', 'Author info');
82
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_AUTHOR_NAME', 'Author name');
83
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_AUTHOR_WORD', "Author's word");
84
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_DISCLAIMER', 'Disclaimer');
85
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_DISCLAIMER_TEXT', 'GPL-licensed');
86
+define($GLOBALS['VAR_PREFIXU'].'_AM_ABOUT_CHANGELOG', 'Changelog');
87
+
88
+define($GLOBALS['VAR_PREFIXU'].'_AM_BLOGEXISTS', 'A blog with the feed already exists');
89
+
90
+define($GLOBALS['VAR_PREFIXU'].'_AM_ACTIONS', 'Actions');
91 91
 
92 92
 //2.11
93
-define($GLOBALS['VAR_PREFIXU'] . '_AM_ACTIVE', 'Active');
93
+define($GLOBALS['VAR_PREFIXU'].'_AM_ACTIVE', 'Active');
Please login to merge, or discard this patch.
language/english/blocks.php 2 patches
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.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -11,28 +11,28 @@
 block discarded – undo
11 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
-include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php';
14
+include XOOPS_ROOT_PATH.'/modules/'.$url_arr[2].'/include/vars.php';
15 15
 
16
-if (defined($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_BLOCKS')) {
16
+if (defined($GLOBALS['VAR_PREFIXU'].'_LANG_EN_BLOCKS')) {
17 17
     return;
18 18
 }
19
-define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_BLOCKS', 1);
19
+define($GLOBALS['VAR_PREFIXU'].'_LANG_EN_BLOCKS', 1);
20 20
 
21
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TYPE', 'Type');
22
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TYPE_TIME', 'Publish time');
23
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TYPE_VIEWS', 'Views');
24
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TYPE_RATES', 'Rate times');
25
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TYPE_RATING', 'Rating');
26
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TYPE_RANDOM', 'Random');
27
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TYPE_BOOKMARKS', 'Bookmarks');
28
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TYPE_FEATURED', 'Featured');
29
-define($GLOBALS['VAR_PREFIXU'] . '_MB_ITEMS', 'Item count');
30
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TITLE_LENGTH', 'Title length');
31
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TIMEFORMAT', 'Time format');
32
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TIMEFORMAT_CUSTOM', 'Custom');
33
-define($GLOBALS['VAR_PREFIXU'] . '_MB_SUMMARY_LENGTH', 'Show summary length');
34
-define($GLOBALS['VAR_PREFIXU'] . '_MB_SHOWDESC', 'Show description');
35
-define($GLOBALS['VAR_PREFIXU'] . '_MB_CATEGORYLIST', 'Allowed categories');
21
+define($GLOBALS['VAR_PREFIXU'].'_MB_TYPE', 'Type');
22
+define($GLOBALS['VAR_PREFIXU'].'_MB_TYPE_TIME', 'Publish time');
23
+define($GLOBALS['VAR_PREFIXU'].'_MB_TYPE_VIEWS', 'Views');
24
+define($GLOBALS['VAR_PREFIXU'].'_MB_TYPE_RATES', 'Rate times');
25
+define($GLOBALS['VAR_PREFIXU'].'_MB_TYPE_RATING', 'Rating');
26
+define($GLOBALS['VAR_PREFIXU'].'_MB_TYPE_RANDOM', 'Random');
27
+define($GLOBALS['VAR_PREFIXU'].'_MB_TYPE_BOOKMARKS', 'Bookmarks');
28
+define($GLOBALS['VAR_PREFIXU'].'_MB_TYPE_FEATURED', 'Featured');
29
+define($GLOBALS['VAR_PREFIXU'].'_MB_ITEMS', 'Item count');
30
+define($GLOBALS['VAR_PREFIXU'].'_MB_TITLE_LENGTH', 'Title length');
31
+define($GLOBALS['VAR_PREFIXU'].'_MB_TIMEFORMAT', 'Time format');
32
+define($GLOBALS['VAR_PREFIXU'].'_MB_TIMEFORMAT_CUSTOM', 'Custom');
33
+define($GLOBALS['VAR_PREFIXU'].'_MB_SUMMARY_LENGTH', 'Show summary length');
34
+define($GLOBALS['VAR_PREFIXU'].'_MB_SHOWDESC', 'Show description');
35
+define($GLOBALS['VAR_PREFIXU'].'_MB_CATEGORYLIST', 'Allowed categories');
36 36
 
37
-define($GLOBALS['VAR_PREFIXU'] . '_MB_AUTHOR', 'Author');
38
-define($GLOBALS['VAR_PREFIXU'] . '_MB_TIME', 'Time');
37
+define($GLOBALS['VAR_PREFIXU'].'_MB_AUTHOR', 'Author');
38
+define($GLOBALS['VAR_PREFIXU'].'_MB_TIME', 'Time');
Please login to merge, or discard this patch.
class/xmlpc.php 2 patches
Indentation   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -30,77 +30,77 @@
 block discarded – undo
30 30
 //mod_loadFunctions('', $GLOBALS['moddirname']);
31 31
 
32 32
 if (!class_exists('Xmlrpc_client')) {
33
-    /**
34
-     * Class Xmlrpc_client
35
-     */
36
-    class Xmlrpc_client
37
-    {
38
-        /**
39
-         * Xmlrpc_client constructor.
40
-         */
41
-        public function __construct()
42
-        {
43
-        }
33
+	/**
34
+	 * Class Xmlrpc_client
35
+	 */
36
+	class Xmlrpc_client
37
+	{
38
+		/**
39
+		 * Xmlrpc_client constructor.
40
+		 */
41
+		public function __construct()
42
+		{
43
+		}
44 44
 
45
-        /**
46
-         * @param $article
47
-         */
48
-        public function setObject(&$article)
49
-        {
50
-            $this->$var = $val;
51
-        }
45
+		/**
46
+		 * @param $article
47
+		 */
48
+		public function setObject(&$article)
49
+		{
50
+			$this->$var = $val;
51
+		}
52 52
 
53
-        /**
54
-         * @param $var
55
-         * @param $val
56
-         */
57
-        public function setVar($var, $val)
58
-        {
59
-            $this->$var = $val;
60
-        }
53
+		/**
54
+		 * @param $var
55
+		 * @param $val
56
+		 */
57
+		public function setVar($var, $val)
58
+		{
59
+			$this->$var = $val;
60
+		}
61 61
 
62
-        /**
63
-         * @param $var
64
-         * @return mixed
65
-         */
66
-        public function getVar($var)
67
-        {
68
-            return $this->$var;
69
-        }
70
-    }
62
+		/**
63
+		 * @param $var
64
+		 * @return mixed
65
+		 */
66
+		public function getVar($var)
67
+		{
68
+			return $this->$var;
69
+		}
70
+	}
71 71
 }
72 72
 
73 73
 if (!class_exists('Xmlrpc_server')) {
74
-    /**
75
-     * Class Xmlrpc_server
76
-     */
77
-    class Xmlrpc_server
78
-    {
79
-        /**
80
-         * Xmlrpc_server constructor.
81
-         */
82
-        public function __construct()
83
-        {
84
-        }
74
+	/**
75
+	 * Class Xmlrpc_server
76
+	 */
77
+	class Xmlrpc_server
78
+	{
79
+		/**
80
+		 * Xmlrpc_server constructor.
81
+		 */
82
+		public function __construct()
83
+		{
84
+		}
85 85
 
86
-        /**
87
-         * @param $var
88
-         * @param $val
89
-         */
90
-        public function setVar($var, $val)
91
-        {
92
-            $this->$var = $val;
93
-        }
86
+		/**
87
+		 * @param $var
88
+		 * @param $val
89
+		 */
90
+		public function setVar($var, $val)
91
+		{
92
+			$this->$var = $val;
93
+		}
94 94
 
95
-        /**
96
-         * @param $var
97
-         * @return mixed
98
-         */
99
-        public function getVar($var)
100
-        {
101
-            return $this->$var;
102
-        }
103
-    }
95
+		/**
96
+		 * @param $var
97
+		 * @return mixed
98
+		 */
99
+		public function getVar($var)
100
+		{
101
+			return $this->$var;
102
+		}
103
+	}
104 104
 }
105 105
 
106 106
 PlanetUtility::planetParseClass('
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 // ------------------------------------------------------------------------ //
27 27
 
28 28
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
29
-require_once __DIR__ . '/../include/vars.php';
29
+require_once __DIR__.'/../include/vars.php';
30 30
 //mod_loadFunctions('', $GLOBALS['moddirname']);
31 31
 
32 32
 if (!class_exists('Xmlrpc_client')) {
Please login to merge, or discard this patch.
class/category.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -44,23 +44,23 @@
 block discarded – undo
44 44
  **/
45 45
 if (!class_exists('Bcategory')):
46 46
 
47
-    /**
48
-     * Class Bcategory
49
-     */
50
-    class Bcategory extends XoopsObject
51
-    {
52
-        /**
53
-         * Constructor
54
-         */
55
-        public function __construct()
56
-        {
57
-            //            $this->ArtObject();
58
-            $this->table = planet_DB_prefix('category');
59
-            $this->initVar('cat_id', XOBJ_DTYPE_INT, null, false);
60
-            $this->initVar('cat_title', XOBJ_DTYPE_TXTBOX, '', true);
61
-            $this->initVar('cat_order', XOBJ_DTYPE_INT, 1, false);
62
-        }
63
-    }
47
+	/**
48
+	 * Class Bcategory
49
+	 */
50
+	class Bcategory extends XoopsObject
51
+	{
52
+		/**
53
+		 * Constructor
54
+		 */
55
+		public function __construct()
56
+		{
57
+			//            $this->ArtObject();
58
+			$this->table = planet_DB_prefix('category');
59
+			$this->initVar('cat_id', XOBJ_DTYPE_INT, null, false);
60
+			$this->initVar('cat_title', XOBJ_DTYPE_TXTBOX, '', true);
61
+			$this->initVar('cat_order', XOBJ_DTYPE_INT, 1, false);
62
+		}
63
+	}
64 64
 
65 65
 endif;
66 66
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
  */
31 31
 
32 32
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
33
-require_once __DIR__ . '/../include/vars.php';
33
+require_once __DIR__.'/../include/vars.php';
34 34
 //mod_loadFunctions('', $GLOBALS['moddirname']);
35 35
 
36 36
 /**
Please login to merge, or discard this patch.
class/bookmark.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -44,25 +44,25 @@
 block discarded – undo
44 44
  **/
45 45
 if (!class_exists('Bookmark')):
46 46
 
47
-    /**
48
-     * Class Bookmark
49
-     */
50
-    class bookmark extends XoopsObject
51
-    {
52
-        /**
53
-         * Constructor
54
-         */
55
-        public function __construct()
56
-        {
57
-            //            $this->ArtObject();
58
-            $this->table = planet_DB_prefix('bookmark');
59
-            $this->initVar('bm_id', XOBJ_DTYPE_INT, null, false);
60
-            /* user ID */
61
-            $this->initVar('bm_uid', XOBJ_DTYPE_INT, 0, true);
62
-            /* blog ID */
63
-            $this->initVar('blog_id', XOBJ_DTYPE_INT, 0, true);
64
-        }
65
-    }
47
+	/**
48
+	 * Class Bookmark
49
+	 */
50
+	class bookmark extends XoopsObject
51
+	{
52
+		/**
53
+		 * Constructor
54
+		 */
55
+		public function __construct()
56
+		{
57
+			//            $this->ArtObject();
58
+			$this->table = planet_DB_prefix('bookmark');
59
+			$this->initVar('bm_id', XOBJ_DTYPE_INT, null, false);
60
+			/* user ID */
61
+			$this->initVar('bm_uid', XOBJ_DTYPE_INT, 0, true);
62
+			/* blog ID */
63
+			$this->initVar('blog_id', XOBJ_DTYPE_INT, 0, true);
64
+		}
65
+	}
66 66
 endif;
67 67
 /**
68 68
  * Topic object handler class.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
  */
31 31
 
32 32
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
33
-require_once __DIR__ . '/../include/vars.php';
33
+require_once __DIR__.'/../include/vars.php';
34 34
 //mod_loadFunctions('', $GLOBALS['moddirname']);
35 35
 
36 36
 /**
Please login to merge, or discard this patch.
class/blog.php 2 patches
Indentation   +93 added lines, -93 removed lines patch added patch discarded remove patch
@@ -44,30 +44,30 @@  discard block
 block discarded – undo
44 44
  **/
45 45
 if (!class_exists('Bblog')):
46 46
 
47
-    /**
48
-     * Class Bblog
49
-     */
50
-    class Bblog extends XoopsObject
51
-    {
52
-        /**
53
-         * Constructor
54
-         */
55
-        public function __construct()
56
-        {
57
-            //            parent:__construct();
58
-            $this->table = planet_DB_prefix('blog');
59
-            $this->initVar('blog_id', XOBJ_DTYPE_INT, null, false);
60
-            $this->initVar('blog_title', XOBJ_DTYPE_TXTBOX, null, true);
61
-            $this->initVar('blog_desc', XOBJ_DTYPE_TXTBOX, null);
62
-            /* rss URI */
63
-            $this->initVar('blog_feed', XOBJ_DTYPE_TXTBOX, null, true);
64
-            $this->initVar('blog_language', XOBJ_DTYPE_TXTBOX, null);
65
-            $this->initVar('blog_charset', XOBJ_DTYPE_TXTBOX, null);
66
-            /* blog website */
67
-            $this->initVar('blog_link', XOBJ_DTYPE_TXTBOX, null);
68
-            $this->initVar('blog_image', XOBJ_DTYPE_TXTBOX, null);
69
-
70
-            /* regexp for blog article trackback
47
+	/**
48
+	 * Class Bblog
49
+	 */
50
+	class Bblog extends XoopsObject
51
+	{
52
+		/**
53
+		 * Constructor
54
+		 */
55
+		public function __construct()
56
+		{
57
+			//            parent:__construct();
58
+			$this->table = planet_DB_prefix('blog');
59
+			$this->initVar('blog_id', XOBJ_DTYPE_INT, null, false);
60
+			$this->initVar('blog_title', XOBJ_DTYPE_TXTBOX, null, true);
61
+			$this->initVar('blog_desc', XOBJ_DTYPE_TXTBOX, null);
62
+			/* rss URI */
63
+			$this->initVar('blog_feed', XOBJ_DTYPE_TXTBOX, null, true);
64
+			$this->initVar('blog_language', XOBJ_DTYPE_TXTBOX, null);
65
+			$this->initVar('blog_charset', XOBJ_DTYPE_TXTBOX, null);
66
+			/* blog website */
67
+			$this->initVar('blog_link', XOBJ_DTYPE_TXTBOX, null);
68
+			$this->initVar('blog_image', XOBJ_DTYPE_TXTBOX, null);
69
+
70
+			/* regexp for blog article trackback
71 71
              * From article url to article trackback URI
72 72
              *
73 73
              * For example: http://www.example.com/blog/111.html => http://www.example.com/blog/trackback/111.html
@@ -78,75 +78,75 @@  discard block
 block discarded – undo
78 78
              * The input shall be: pattern[SPACE]replacement
79 79
              *                     (.*wordpress/)(index.php)?(\?p.*) $1wp-trackback/$3
80 80
              */
81
-            $this->initVar('blog_trackback', XOBJ_DTYPE_TXTBOX, '');
82
-
83
-            /* blog submitter: is_numeric - uid; is_string - IP */
84
-            $this->initVar('blog_submitter', XOBJ_DTYPE_TXTBOX, '');
85
-
86
-            /* blog status: 0 - pending; 1 - active; 2 - featured */
87
-            $this->initVar('blog_status', XOBJ_DTYPE_INT, 1);
88
-
89
-            /* key for blog content */
90
-            $this->initVar('blog_key', XOBJ_DTYPE_TXTBOX, '');
91
-
92
-            $this->initVar('blog_time', XOBJ_DTYPE_INT, 0);
93
-            $this->initVar('blog_rating', XOBJ_DTYPE_INT, 0);
94
-            $this->initVar('blog_rates', XOBJ_DTYPE_INT, 0);
95
-            /* bookmark times */
96
-            $this->initVar('blog_marks', XOBJ_DTYPE_INT, 0);
97
-        }
98
-
99
-        /**
100
-         * get formatted publish time of the article
101
-         *
102
-         * {@link Config}
103
-         *
104
-         * @param  string $format format of time
105
-         * @return string
106
-         */
107
-        public function getTime($format = '')
108
-        {
109
-            $time = PlanetUtility::planetFormatTimestamp($this->getVar('blog_time'), $format);
110
-
111
-            return $time;
112
-        }
113
-
114
-        /**
115
-         * get verified image url of the category
116
-         *
117
-         * @return string
118
-         */
119
-        public function getImage()
120
-        {
121
-            $image = $this->getVar('blog_image');
122
-
123
-            return $image;
124
-        }
125
-
126
-        /**
127
-         * get rating average of the article
128
-         *
129
-         * @param  int $decimals decimal length
130
-         * @return numeric
131
-         */
132
-        public function getRatingAverage($decimals = 1)
133
-        {
134
-            $ave = 3;
135
-            if ($this->getVar('blog_rates')) {
136
-                $ave = number_format($this->getVar('blog_rating') / $this->getVar('blog_rates'), $decimals);
137
-            }
138
-
139
-            return $ave;
140
-        }
141
-
142
-        /**
143
-         * @return numeric
144
-         */
145
-        public function getStar()
146
-        {
147
-            return $this->getRatingAverage(0);
148
-        }
149
-    }
81
+			$this->initVar('blog_trackback', XOBJ_DTYPE_TXTBOX, '');
82
+
83
+			/* blog submitter: is_numeric - uid; is_string - IP */
84
+			$this->initVar('blog_submitter', XOBJ_DTYPE_TXTBOX, '');
85
+
86
+			/* blog status: 0 - pending; 1 - active; 2 - featured */
87
+			$this->initVar('blog_status', XOBJ_DTYPE_INT, 1);
88
+
89
+			/* key for blog content */
90
+			$this->initVar('blog_key', XOBJ_DTYPE_TXTBOX, '');
91
+
92
+			$this->initVar('blog_time', XOBJ_DTYPE_INT, 0);
93
+			$this->initVar('blog_rating', XOBJ_DTYPE_INT, 0);
94
+			$this->initVar('blog_rates', XOBJ_DTYPE_INT, 0);
95
+			/* bookmark times */
96
+			$this->initVar('blog_marks', XOBJ_DTYPE_INT, 0);
97
+		}
98
+
99
+		/**
100
+		 * get formatted publish time of the article
101
+		 *
102
+		 * {@link Config}
103
+		 *
104
+		 * @param  string $format format of time
105
+		 * @return string
106
+		 */
107
+		public function getTime($format = '')
108
+		{
109
+			$time = PlanetUtility::planetFormatTimestamp($this->getVar('blog_time'), $format);
110
+
111
+			return $time;
112
+		}
113
+
114
+		/**
115
+		 * get verified image url of the category
116
+		 *
117
+		 * @return string
118
+		 */
119
+		public function getImage()
120
+		{
121
+			$image = $this->getVar('blog_image');
122
+
123
+			return $image;
124
+		}
125
+
126
+		/**
127
+		 * get rating average of the article
128
+		 *
129
+		 * @param  int $decimals decimal length
130
+		 * @return numeric
131
+		 */
132
+		public function getRatingAverage($decimals = 1)
133
+		{
134
+			$ave = 3;
135
+			if ($this->getVar('blog_rates')) {
136
+				$ave = number_format($this->getVar('blog_rating') / $this->getVar('blog_rates'), $decimals);
137
+			}
138
+
139
+			return $ave;
140
+		}
141
+
142
+		/**
143
+		 * @return numeric
144
+		 */
145
+		public function getStar()
146
+		{
147
+			return $this->getRatingAverage(0);
148
+		}
149
+	}
150 150
 endif;
151 151
 /**
152 152
  * Topic object handler class.
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  */
31 31
 
32 32
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
33
-require_once __DIR__ . '/../include/vars.php';
33
+require_once __DIR__.'/../include/vars.php';
34 34
 //mod_loadFunctions('', $GLOBALS['moddirname']);
35 35
 
36 36
 /**
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         {
134 134
             $ave = 3;
135 135
             if ($this->getVar('blog_rates')) {
136
-                $ave = number_format($this->getVar('blog_rating') / $this->getVar('blog_rates'), $decimals);
136
+                $ave = number_format($this->getVar('blog_rating')/$this->getVar('blog_rates'), $decimals);
137 137
             }
138 138
 
139 139
             return $ave;
Please login to merge, or discard this patch.
class/article.php 2 patches
Indentation   +110 added lines, -110 removed lines patch added patch discarded remove patch
@@ -44,116 +44,116 @@
 block discarded – undo
44 44
  **/
45 45
 if (!class_exists('Barticle')):
46 46
 
47
-    /**
48
-     * Class Barticle
49
-     */
50
-    class Barticle extends XoopsObject
51
-    {
52
-        /**
53
-         * Constructor
54
-         *
55
-         * @param int $id ID of the article
56
-         */
57
-        public function __construct($id = null)
58
-        {
59
-            //            $this->ArtObject();
60
-            $this->table = planet_DB_prefix('article');
61
-            $this->initVar('art_id', XOBJ_DTYPE_INT, null, false);
62
-            $this->initVar('blog_id', XOBJ_DTYPE_INT, 0, true);
63
-
64
-            $this->initVar('art_title', XOBJ_DTYPE_TXTBOX, '');
65
-            $this->initVar('art_content', XOBJ_DTYPE_TXTAREA, '');
66
-            $this->initVar('art_link', XOBJ_DTYPE_TXTBOX, '');
67
-            $this->initVar('art_time', XOBJ_DTYPE_INT, 0);
68
-            $this->initVar('art_author', XOBJ_DTYPE_TXTBOX, '');
69
-
70
-            $this->initVar('art_views', XOBJ_DTYPE_INT, 0);
71
-            $this->initVar('art_rating', XOBJ_DTYPE_INT, 0);
72
-            $this->initVar('art_rates', XOBJ_DTYPE_INT, 0);
73
-            $this->initVar('art_comments', XOBJ_DTYPE_INT, 0);
74
-
75
-            $this->initVar('dohtml', XOBJ_DTYPE_INT, 1);
76
-            $this->initVar('dosmiley', XOBJ_DTYPE_INT, 1);
77
-            $this->initVar('doxcode', XOBJ_DTYPE_INT, 1);
78
-            $this->initVar('doimage', XOBJ_DTYPE_INT, 1);
79
-            $this->initVar('dobr', XOBJ_DTYPE_INT, 1);
80
-        }
81
-
82
-        /**
83
-         * get title of the article
84
-         *
85
-         * @return string
86
-         */
87
-        public function getTitle()
88
-        {
89
-            $title = $this->getVar('art_title');
90
-
91
-            return $title;
92
-        }
93
-
94
-        /**
95
-         * get formatted publish time of the article
96
-         *
97
-         * {@link Config}
98
-         *
99
-         * @param  string $format format of time
100
-         * @return string
101
-         */
102
-        public function getTime($format = 'c')
103
-        {
104
-            $time = $this->getVar('art_time');
105
-            if (empty($time)) {
106
-                $time = time();
107
-            }
108
-            $time = PlanetUtility::planetFormatTimestamp($time, $format);
109
-
110
-            return $time;
111
-        }
112
-
113
-        /**
114
-         * get summary of the article
115
-         *
116
-         * @param int $length
117
-         * @return string $summary
118
-         */
119
-        public function &getSummary($length = 0)
120
-        {
121
-            $content = $this->getVar('art_content');
122
-            $summary =& PlanetUtility::planetHtml2text($content);
123
-            if (empty($length)) {
124
-                $length = $GLOBALS['xoopsModuleConfig']['display_summary'];
125
-            }
126
-            if (!empty($length)) {
127
-                $summary = xoops_substr($summary, 0, $length);
128
-            }
129
-
130
-            return $summary;
131
-        }
132
-
133
-        /**
134
-         * get rating average of the article
135
-         *
136
-         * @param  int $decimals decimal length
137
-         * @return numeric
138
-         */
139
-        public function getRatingAverage($decimals = 1)
140
-        {
141
-            $ave = 3;
142
-            if ($this->getVar('art_rates')) {
143
-                $ave = number_format($this->getVar('art_rating') / $this->getVar('art_rates'), $decimals);
144
-            }
145
-
146
-            return $ave;
147
-        }
148
-
149
-        /**
150
-         * @return numeric
151
-         */
152
-        public function getStar()
153
-        {
154
-            return $this->getRatingAverage(0);
155
-        }
156
-    }
47
+	/**
48
+	 * Class Barticle
49
+	 */
50
+	class Barticle extends XoopsObject
51
+	{
52
+		/**
53
+		 * Constructor
54
+		 *
55
+		 * @param int $id ID of the article
56
+		 */
57
+		public function __construct($id = null)
58
+		{
59
+			//            $this->ArtObject();
60
+			$this->table = planet_DB_prefix('article');
61
+			$this->initVar('art_id', XOBJ_DTYPE_INT, null, false);
62
+			$this->initVar('blog_id', XOBJ_DTYPE_INT, 0, true);
63
+
64
+			$this->initVar('art_title', XOBJ_DTYPE_TXTBOX, '');
65
+			$this->initVar('art_content', XOBJ_DTYPE_TXTAREA, '');
66
+			$this->initVar('art_link', XOBJ_DTYPE_TXTBOX, '');
67
+			$this->initVar('art_time', XOBJ_DTYPE_INT, 0);
68
+			$this->initVar('art_author', XOBJ_DTYPE_TXTBOX, '');
69
+
70
+			$this->initVar('art_views', XOBJ_DTYPE_INT, 0);
71
+			$this->initVar('art_rating', XOBJ_DTYPE_INT, 0);
72
+			$this->initVar('art_rates', XOBJ_DTYPE_INT, 0);
73
+			$this->initVar('art_comments', XOBJ_DTYPE_INT, 0);
74
+
75
+			$this->initVar('dohtml', XOBJ_DTYPE_INT, 1);
76
+			$this->initVar('dosmiley', XOBJ_DTYPE_INT, 1);
77
+			$this->initVar('doxcode', XOBJ_DTYPE_INT, 1);
78
+			$this->initVar('doimage', XOBJ_DTYPE_INT, 1);
79
+			$this->initVar('dobr', XOBJ_DTYPE_INT, 1);
80
+		}
81
+
82
+		/**
83
+		 * get title of the article
84
+		 *
85
+		 * @return string
86
+		 */
87
+		public function getTitle()
88
+		{
89
+			$title = $this->getVar('art_title');
90
+
91
+			return $title;
92
+		}
93
+
94
+		/**
95
+		 * get formatted publish time of the article
96
+		 *
97
+		 * {@link Config}
98
+		 *
99
+		 * @param  string $format format of time
100
+		 * @return string
101
+		 */
102
+		public function getTime($format = 'c')
103
+		{
104
+			$time = $this->getVar('art_time');
105
+			if (empty($time)) {
106
+				$time = time();
107
+			}
108
+			$time = PlanetUtility::planetFormatTimestamp($time, $format);
109
+
110
+			return $time;
111
+		}
112
+
113
+		/**
114
+		 * get summary of the article
115
+		 *
116
+		 * @param int $length
117
+		 * @return string $summary
118
+		 */
119
+		public function &getSummary($length = 0)
120
+		{
121
+			$content = $this->getVar('art_content');
122
+			$summary =& PlanetUtility::planetHtml2text($content);
123
+			if (empty($length)) {
124
+				$length = $GLOBALS['xoopsModuleConfig']['display_summary'];
125
+			}
126
+			if (!empty($length)) {
127
+				$summary = xoops_substr($summary, 0, $length);
128
+			}
129
+
130
+			return $summary;
131
+		}
132
+
133
+		/**
134
+		 * get rating average of the article
135
+		 *
136
+		 * @param  int $decimals decimal length
137
+		 * @return numeric
138
+		 */
139
+		public function getRatingAverage($decimals = 1)
140
+		{
141
+			$ave = 3;
142
+			if ($this->getVar('art_rates')) {
143
+				$ave = number_format($this->getVar('art_rating') / $this->getVar('art_rates'), $decimals);
144
+			}
145
+
146
+			return $ave;
147
+		}
148
+
149
+		/**
150
+		 * @return numeric
151
+		 */
152
+		public function getStar()
153
+		{
154
+			return $this->getRatingAverage(0);
155
+		}
156
+	}
157 157
 endif;
158 158
 
159 159
 /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  */
31 31
 
32 32
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
33
-require_once __DIR__ . '/../include/vars.php';
33
+require_once __DIR__.'/../include/vars.php';
34 34
 //mod_loadFunctions('', $GLOBALS['moddirname']);
35 35
 
36 36
 /**
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         public function &getSummary($length = 0)
120 120
         {
121 121
             $content = $this->getVar('art_content');
122
-            $summary =& PlanetUtility::planetHtml2text($content);
122
+            $summary = & PlanetUtility::planetHtml2text($content);
123 123
             if (empty($length)) {
124 124
                 $length = $GLOBALS['xoopsModuleConfig']['display_summary'];
125 125
             }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         {
141 141
             $ave = 3;
142 142
             if ($this->getVar('art_rates')) {
143
-                $ave = number_format($this->getVar('art_rating') / $this->getVar('art_rates'), $decimals);
143
+                $ave = number_format($this->getVar('art_rating')/$this->getVar('art_rates'), $decimals);
144 144
             }
145 145
 
146 146
             return $ave;
Please login to merge, or discard this patch.