Completed
Branch master (15a86c)
by Michael
06:07
created
language/english/admin.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 // _CHARSET : ISO-8859-1
5 5
 // Translator: D.J., http://xoopsforge.com, http://xoops.org.cn
6 6
 
7
-if (!defined('XOOPS_ROOT_PATH')){ exit(); }
7
+if (!defined('XOOPS_ROOT_PATH')) { exit(); }
8 8
 
9 9
 $current_path = __FILE__;
10
-if ( DIRECTORY_SEPARATOR != "/" ) $current_path = str_replace( strpos( $current_path, "\\\\", 2 ) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
11
-$url_arr = explode("/",strstr($current_path,"/modules/"));
10
+if (DIRECTORY_SEPARATOR != "/") $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
11
+$url_arr = explode("/", strstr($current_path, "/modules/"));
12 12
 include XOOPS_ROOT_PATH."/modules/".$url_arr[2]."/include/vars.php";
13 13
 
14
-if(defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_ADMIN")) return; define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_ADMIN",1);
14
+if (defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_ADMIN")) return; define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_ADMIN", 1);
15 15
 
16 16
 define($GLOBALS["VAR_PREFIXU"]."_AM_ARTICLES", "Article Manager");
17 17
 
Please login to merge, or discard this patch.
Braces   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,11 +7,16 @@
 block discarded – undo
7 7
 if (!defined('XOOPS_ROOT_PATH')){ exit(); }
8 8
 
9 9
 $current_path = __FILE__;
10
-if ( DIRECTORY_SEPARATOR != "/" ) $current_path = str_replace( strpos( $current_path, "\\\\", 2 ) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
10
+if ( DIRECTORY_SEPARATOR != "/" ) {
11
+	$current_path = str_replace( strpos( $current_path, "\\\\", 2 ) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
12
+}
11 13
 $url_arr = explode("/",strstr($current_path,"/modules/"));
12 14
 include XOOPS_ROOT_PATH."/modules/".$url_arr[2]."/include/vars.php";
13 15
 
14
-if(defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_ADMIN")) return; define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_ADMIN",1);
16
+if(defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_ADMIN")) {
17
+	return;
18
+}
19
+define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_ADMIN",1);
15 20
 
16 21
 define($GLOBALS["VAR_PREFIXU"]."_AM_ARTICLES", "Article Manager");
17 22
 
Please login to merge, or discard this patch.
language/english/blocks.php 2 patches
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -4,32 +4,32 @@
 block discarded – undo
4 4
 // _CHARSET : ISO-8859-1
5 5
 // Translator: D.J., http://xoopsforge.com, http://xoops.org.cn
6 6
 
7
-if (!defined('XOOPS_ROOT_PATH')){ exit(); }
7
+if (!defined('XOOPS_ROOT_PATH')) { exit(); }
8 8
 
9 9
 $current_path = __FILE__;
10
-if ( DIRECTORY_SEPARATOR != "/" ) $current_path = str_replace( strpos( $current_path, "\\\\", 2 ) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
11
-$url_arr = explode("/",strstr($current_path,"/modules/"));
10
+if (DIRECTORY_SEPARATOR != "/") $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
11
+$url_arr = explode("/", strstr($current_path, "/modules/"));
12 12
 include XOOPS_ROOT_PATH."/modules/".$url_arr[2]."/include/vars.php";
13 13
 
14
-if(defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_BLOCKS")) return; 
15
-define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_BLOCKS",1);
14
+if (defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_BLOCKS")) return; 
15
+define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_BLOCKS", 1);
16 16
 
17
-define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE","Type");
18
-define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_TIME","Publish time");
19
-define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_VIEWS","Views");
20
-define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_RATES","Rate times");
21
-define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_RATING","Rating");
22
-define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_RANDOM","Random");
23
-define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_BOOKMARKS","Bookmarks");
24
-define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_FEATURED","Featured");
25
-define($GLOBALS["VAR_PREFIXU"]."_MB_ITEMS","Item count");
26
-define($GLOBALS["VAR_PREFIXU"]."_MB_TITLE_LENGTH","Title length");
27
-define($GLOBALS["VAR_PREFIXU"]."_MB_TIMEFORMAT","Time format");
28
-define($GLOBALS["VAR_PREFIXU"]."_MB_TIMEFORMAT_CUSTOM","Custom");
29
-define($GLOBALS["VAR_PREFIXU"]."_MB_SUMMARY_LENGTH","Show summary length");
30
-define($GLOBALS["VAR_PREFIXU"]."_MB_SHOWDESC","Show description");
31
-define($GLOBALS["VAR_PREFIXU"]."_MB_CATEGORYLIST","Allowed categories");
17
+define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE", "Type");
18
+define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_TIME", "Publish time");
19
+define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_VIEWS", "Views");
20
+define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_RATES", "Rate times");
21
+define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_RATING", "Rating");
22
+define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_RANDOM", "Random");
23
+define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_BOOKMARKS", "Bookmarks");
24
+define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE_FEATURED", "Featured");
25
+define($GLOBALS["VAR_PREFIXU"]."_MB_ITEMS", "Item count");
26
+define($GLOBALS["VAR_PREFIXU"]."_MB_TITLE_LENGTH", "Title length");
27
+define($GLOBALS["VAR_PREFIXU"]."_MB_TIMEFORMAT", "Time format");
28
+define($GLOBALS["VAR_PREFIXU"]."_MB_TIMEFORMAT_CUSTOM", "Custom");
29
+define($GLOBALS["VAR_PREFIXU"]."_MB_SUMMARY_LENGTH", "Show summary length");
30
+define($GLOBALS["VAR_PREFIXU"]."_MB_SHOWDESC", "Show description");
31
+define($GLOBALS["VAR_PREFIXU"]."_MB_CATEGORYLIST", "Allowed categories");
32 32
 
33
-define($GLOBALS["VAR_PREFIXU"]."_MB_AUTHOR","Author");
34
-define($GLOBALS["VAR_PREFIXU"]."_MB_TIME","Time");
33
+define($GLOBALS["VAR_PREFIXU"]."_MB_AUTHOR", "Author");
34
+define($GLOBALS["VAR_PREFIXU"]."_MB_TIME", "Time");
35 35
 ?>
36 36
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,11 +7,15 @@
 block discarded – undo
7 7
 if (!defined('XOOPS_ROOT_PATH')){ exit(); }
8 8
 
9 9
 $current_path = __FILE__;
10
-if ( DIRECTORY_SEPARATOR != "/" ) $current_path = str_replace( strpos( $current_path, "\\\\", 2 ) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
10
+if ( DIRECTORY_SEPARATOR != "/" ) {
11
+	$current_path = str_replace( strpos( $current_path, "\\\\", 2 ) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
12
+}
11 13
 $url_arr = explode("/",strstr($current_path,"/modules/"));
12 14
 include XOOPS_ROOT_PATH."/modules/".$url_arr[2]."/include/vars.php";
13 15
 
14
-if(defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_BLOCKS")) return; 
16
+if(defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_BLOCKS")) {
17
+	return;
18
+}
15 19
 define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_BLOCKS",1);
16 20
 
17 21
 define($GLOBALS["VAR_PREFIXU"]."_MB_TYPE","Type");
Please login to merge, or discard this patch.
language/english/modinfo.php 2 patches
Spacing   +112 added lines, -112 removed lines patch added patch discarded remove patch
@@ -4,120 +4,120 @@
 block discarded – undo
4 4
 // _CHARSET : ISO-8859-1
5 5
 // Translator: D.J., http://xoopsforge.com, http://xoops.org.cn
6 6
 
7
-if (!defined('XOOPS_ROOT_PATH')){ exit(); }
7
+if (!defined('XOOPS_ROOT_PATH')) { exit(); }
8 8
 
9 9
 $current_path = __FILE__;
10
-if ( DIRECTORY_SEPARATOR != "/" ) $current_path = str_replace( strpos( $current_path, "\\\\", 2 ) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
11
-$url_arr = explode("/",strstr($current_path,"/modules/"));
10
+if (DIRECTORY_SEPARATOR != "/") $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
11
+$url_arr = explode("/", strstr($current_path, "/modules/"));
12 12
 include XOOPS_ROOT_PATH."/modules/".$url_arr[2]."/include/vars.php";
13 13
 
14
-if(defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_MODINFO")) return; define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_MODINFO",1);
15
-
16
-define($GLOBALS["VAR_PREFIXU"]."_MI_NAME","Planet");
17
-define($GLOBALS["VAR_PREFIXU"]."_MI_DESC","Feed Planet For Xoops");
18
-
19
-define($GLOBALS["VAR_PREFIXU"]."_MI_PAGE_INDEX","Index");
20
-define($GLOBALS["VAR_PREFIXU"]."_MI_PAGE_ARTICLE","Article");
21
-define($GLOBALS["VAR_PREFIXU"]."_MI_PAGE_ARCHIVE","Archive");
22
-define($GLOBALS["VAR_PREFIXU"]."_MI_PAGE_LIST","List");
23
-
24
-define($GLOBALS["VAR_PREFIXU"]."_MI_SUBMIT","Submit");
25
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE","Articles");
26
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_DESC","");
27
-define($GLOBALS["VAR_PREFIXU"]."_MI_CATEGORY","Categories");
28
-define($GLOBALS["VAR_PREFIXU"]."_MI_CATEGORY_DESC","");
29
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG","BLogs");
30
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_DESC","");
31
-
32
-define($GLOBALS["VAR_PREFIXU"]."_MI_THEMESET","Theme set");
33
-define($GLOBALS["VAR_PREFIXU"]."_MI_THEMESET_DESC","Module-wide, select '"._NONE."' will use site-wide theme");
34
-
35
-define($GLOBALS["VAR_PREFIXU"]."_MI_TIMEFORMAT","Time format for display");
36
-define($GLOBALS["VAR_PREFIXU"]."_MI_TIMEFORMAT_DESC","");
37
-define($GLOBALS["VAR_PREFIXU"]."_MI_TIMEFORMAT_CUSTOM","Custom");
38
-
39
-define($GLOBALS["VAR_PREFIXU"]."_MI_DISPLAY_SUMMARY","Display summary length on article list");
40
-define($GLOBALS["VAR_PREFIXU"]."_MI_DISPLAY_SUMMARY_DESC","0 for full text");
41
-
42
-define($GLOBALS["VAR_PREFIXU"]."_MI_DODEBUG","Enable debug");
43
-define($GLOBALS["VAR_PREFIXU"]."_MI_DODEBUG_DESC","");
44
-
45
-define($GLOBALS["VAR_PREFIXU"]."_MI_DOURLREWRITE","Enable URL rewrite");
46
-define($GLOBALS["VAR_PREFIXU"]."_MI_DOURLREWRITE_DESC","AcceptPathInfo On for Apache2 is required");
47
-
48
-define($GLOBALS["VAR_PREFIXU"]."_MI_DOSIBLING","Enable sibling articles");
49
-define($GLOBALS["VAR_PREFIXU"]."_MI_DOSIBLING_DESC","");
50
-
51
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLESPERPAGE","Articles on one page");
52
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLESPERPAGE_DESC","");
53
-
54
-define($GLOBALS["VAR_PREFIXU"]."_MI_LISTPERPAGE","Lists on one page");
55
-define($GLOBALS["VAR_PREFIXU"]."_MI_LISTPERPAGE_DESC","");
56
-
57
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOGSPERUPDATE","Blogs for each update");
58
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOGSPERUPDATE_DESC","");
59
-
60
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_EXPIRE","Time for article to expire");
61
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_EXPIRE_DESC","In days");
62
-
63
-define($GLOBALS["VAR_PREFIXU"]."_MI_COPYRIGHT","Copyright");
64
-define($GLOBALS["VAR_PREFIXU"]."_MI_COPYRIGHT_DESC","");
65
-
66
-define($GLOBALS["VAR_PREFIXU"]."_MI_PING","Pings");
67
-define($GLOBALS["VAR_PREFIXU"]."_MI_PING_DESC","URLs to ping");
68
-
69
-define($GLOBALS["VAR_PREFIXU"]."_MI_TRACKBACK_OPTION","Option for recieved trackbacks");
70
-define($GLOBALS["VAR_PREFIXU"]."_MI_TRACKBACK_OPTION_DESC","");
71
-
72
-define($GLOBALS["VAR_PREFIXU"]."_MI_MODERATION","Moderator to approve");
73
-define($GLOBALS["VAR_PREFIXU"]."_MI_MEMBER","Member atuo-approve");
74
-
75
-define($GLOBALS["VAR_PREFIXU"]."_MI_NEWBLOG_SUBMIT","Right for submitting new blog");
76
-define($GLOBALS["VAR_PREFIXU"]."_MI_NEWBLOG_SUBMIT_DESC","");
77
-
78
-define($GLOBALS["VAR_PREFIXU"]."_MI_ANONYMOUSRATE","Allow anonymous to rate");
79
-define($GLOBALS["VAR_PREFIXU"]."_MI_ANONYMOUSRATE_DESC","");
80
-
81
-define($GLOBALS["VAR_PREFIXU"]."_MI_PSEUDOCRON","Pseudo cron");
82
-define($GLOBALS["VAR_PREFIXU"]."_MI_PSEUDOCRON_DESC","Use pseudo cron to update blogs");
83
-
84
-define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_INDEX","Index");
85
-define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_CATEGORY","Category");
86
-define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_BLOG","Blog");
87
-define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_ARTICLE","Article");
88
-define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_BLOCK","Block");
89
-define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_ABOUT","About");
90
-
91
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NOTIFY","Global");
92
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NOTIFYDSC","Global notification options");
93
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_NOTIFY","Blog");
94
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_NOTIFYDSC","Blog notification options");
95
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_NOTIFY","Article");
96
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_NOTIFYDSC","Article notification options");
97
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_BLOGSUBMIT_NOTIFY","Article submission");
98
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_BLOGSUBMIT_NOTIFYCAP","Notify me of any pending blog");
99
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_BLOGSUBMIT_NOTIFYDSC","Receive notification when a new blog is submitted");
100
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_BLOGSUBMIT_NOTIFYSBJ","[{X_SITENAME}] {X_MODULE} auto-notify : New blog submitted");
101
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NEWBLOG_NOTIFY","New blog");
102
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NEWBLOG_NOTIFYCAP","Notify of any new blog published");
103
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NEWBLOG_NOTIFYDSC","Receive notification when a new blog is published");
104
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NEWBLOG_NOTIFYSBJ","[{X_SITENAME}] {X_MODULE} auto-notify : New blog published");
105
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_ARTICLEMONITOR_NOTIFY","Article monitor");
106
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_ARTICLEMONITOR_NOTIFYCAP","Notify me of all actions on my articles");
107
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_ARTICLEMONITOR_NOTIFYDSC","Receive notification when an action is taken over my articles");
108
-define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_ARTICLEMONITOR_NOTIFYSBJ","[{X_SITENAME}] {X_MODULE} auto-notify : New action");
109
-
110
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGAPPROVE_NOTIFY","Blog approved");
111
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGAPPROVE_NOTIFYCAP","Notify me of approval of this blog");
112
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGAPPROVE_NOTIFYDSC","Receive notification when the blog is approved");
113
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGAPPROVE_NOTIFYSBJ","[{X_SITENAME}] {X_MODULE} auto-notify : blog approved");
114
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGUPDATE_NOTIFY","Blog updated");
115
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGUPDATE_NOTIFYCAP","Notify me of update of this blog");
116
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGUPDATE_NOTIFYDSC","Receive notification when the blog is upated");
117
-define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGUPDATE_NOTIFYSBJ","[{X_SITENAME}] {X_MODULE} auto-notify : blog updated");
118
-
119
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_ARTICLEMONITOR_NOTIFY","Article monitor");
120
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_ARTICLEMONITOR_NOTIFYCAP","Notify me of any action taken on this article");
121
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_ARTICLEMONITOR_NOTIFYDSC","Receive notification when an action is taken on this article");
122
-define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_ARTICLEMONITOR_NOTIFYSBJ","[{X_SITENAME}] {X_MODULE} auto-notify : New article published");
14
+if (defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_MODINFO")) return; define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_MODINFO", 1);
15
+
16
+define($GLOBALS["VAR_PREFIXU"]."_MI_NAME", "Planet");
17
+define($GLOBALS["VAR_PREFIXU"]."_MI_DESC", "Feed Planet For Xoops");
18
+
19
+define($GLOBALS["VAR_PREFIXU"]."_MI_PAGE_INDEX", "Index");
20
+define($GLOBALS["VAR_PREFIXU"]."_MI_PAGE_ARTICLE", "Article");
21
+define($GLOBALS["VAR_PREFIXU"]."_MI_PAGE_ARCHIVE", "Archive");
22
+define($GLOBALS["VAR_PREFIXU"]."_MI_PAGE_LIST", "List");
23
+
24
+define($GLOBALS["VAR_PREFIXU"]."_MI_SUBMIT", "Submit");
25
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE", "Articles");
26
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_DESC", "");
27
+define($GLOBALS["VAR_PREFIXU"]."_MI_CATEGORY", "Categories");
28
+define($GLOBALS["VAR_PREFIXU"]."_MI_CATEGORY_DESC", "");
29
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG", "BLogs");
30
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_DESC", "");
31
+
32
+define($GLOBALS["VAR_PREFIXU"]."_MI_THEMESET", "Theme set");
33
+define($GLOBALS["VAR_PREFIXU"]."_MI_THEMESET_DESC", "Module-wide, select '"._NONE."' will use site-wide theme");
34
+
35
+define($GLOBALS["VAR_PREFIXU"]."_MI_TIMEFORMAT", "Time format for display");
36
+define($GLOBALS["VAR_PREFIXU"]."_MI_TIMEFORMAT_DESC", "");
37
+define($GLOBALS["VAR_PREFIXU"]."_MI_TIMEFORMAT_CUSTOM", "Custom");
38
+
39
+define($GLOBALS["VAR_PREFIXU"]."_MI_DISPLAY_SUMMARY", "Display summary length on article list");
40
+define($GLOBALS["VAR_PREFIXU"]."_MI_DISPLAY_SUMMARY_DESC", "0 for full text");
41
+
42
+define($GLOBALS["VAR_PREFIXU"]."_MI_DODEBUG", "Enable debug");
43
+define($GLOBALS["VAR_PREFIXU"]."_MI_DODEBUG_DESC", "");
44
+
45
+define($GLOBALS["VAR_PREFIXU"]."_MI_DOURLREWRITE", "Enable URL rewrite");
46
+define($GLOBALS["VAR_PREFIXU"]."_MI_DOURLREWRITE_DESC", "AcceptPathInfo On for Apache2 is required");
47
+
48
+define($GLOBALS["VAR_PREFIXU"]."_MI_DOSIBLING", "Enable sibling articles");
49
+define($GLOBALS["VAR_PREFIXU"]."_MI_DOSIBLING_DESC", "");
50
+
51
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLESPERPAGE", "Articles on one page");
52
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLESPERPAGE_DESC", "");
53
+
54
+define($GLOBALS["VAR_PREFIXU"]."_MI_LISTPERPAGE", "Lists on one page");
55
+define($GLOBALS["VAR_PREFIXU"]."_MI_LISTPERPAGE_DESC", "");
56
+
57
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOGSPERUPDATE", "Blogs for each update");
58
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOGSPERUPDATE_DESC", "");
59
+
60
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_EXPIRE", "Time for article to expire");
61
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_EXPIRE_DESC", "In days");
62
+
63
+define($GLOBALS["VAR_PREFIXU"]."_MI_COPYRIGHT", "Copyright");
64
+define($GLOBALS["VAR_PREFIXU"]."_MI_COPYRIGHT_DESC", "");
65
+
66
+define($GLOBALS["VAR_PREFIXU"]."_MI_PING", "Pings");
67
+define($GLOBALS["VAR_PREFIXU"]."_MI_PING_DESC", "URLs to ping");
68
+
69
+define($GLOBALS["VAR_PREFIXU"]."_MI_TRACKBACK_OPTION", "Option for recieved trackbacks");
70
+define($GLOBALS["VAR_PREFIXU"]."_MI_TRACKBACK_OPTION_DESC", "");
71
+
72
+define($GLOBALS["VAR_PREFIXU"]."_MI_MODERATION", "Moderator to approve");
73
+define($GLOBALS["VAR_PREFIXU"]."_MI_MEMBER", "Member atuo-approve");
74
+
75
+define($GLOBALS["VAR_PREFIXU"]."_MI_NEWBLOG_SUBMIT", "Right for submitting new blog");
76
+define($GLOBALS["VAR_PREFIXU"]."_MI_NEWBLOG_SUBMIT_DESC", "");
77
+
78
+define($GLOBALS["VAR_PREFIXU"]."_MI_ANONYMOUSRATE", "Allow anonymous to rate");
79
+define($GLOBALS["VAR_PREFIXU"]."_MI_ANONYMOUSRATE_DESC", "");
80
+
81
+define($GLOBALS["VAR_PREFIXU"]."_MI_PSEUDOCRON", "Pseudo cron");
82
+define($GLOBALS["VAR_PREFIXU"]."_MI_PSEUDOCRON_DESC", "Use pseudo cron to update blogs");
83
+
84
+define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_INDEX", "Index");
85
+define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_CATEGORY", "Category");
86
+define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_BLOG", "Blog");
87
+define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_ARTICLE", "Article");
88
+define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_BLOCK", "Block");
89
+define($GLOBALS["VAR_PREFIXU"]."_MI_ADMENU_ABOUT", "About");
90
+
91
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NOTIFY", "Global");
92
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NOTIFYDSC", "Global notification options");
93
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_NOTIFY", "Blog");
94
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_NOTIFYDSC", "Blog notification options");
95
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_NOTIFY", "Article");
96
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_NOTIFYDSC", "Article notification options");
97
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_BLOGSUBMIT_NOTIFY", "Article submission");
98
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_BLOGSUBMIT_NOTIFYCAP", "Notify me of any pending blog");
99
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_BLOGSUBMIT_NOTIFYDSC", "Receive notification when a new blog is submitted");
100
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_BLOGSUBMIT_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : New blog submitted");
101
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NEWBLOG_NOTIFY", "New blog");
102
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NEWBLOG_NOTIFYCAP", "Notify of any new blog published");
103
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NEWBLOG_NOTIFYDSC", "Receive notification when a new blog is published");
104
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_NEWBLOG_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : New blog published");
105
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_ARTICLEMONITOR_NOTIFY", "Article monitor");
106
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_ARTICLEMONITOR_NOTIFYCAP", "Notify me of all actions on my articles");
107
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_ARTICLEMONITOR_NOTIFYDSC", "Receive notification when an action is taken over my articles");
108
+define($GLOBALS["VAR_PREFIXU"]."_MI_GLOBAL_ARTICLEMONITOR_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : New action");
109
+
110
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGAPPROVE_NOTIFY", "Blog approved");
111
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGAPPROVE_NOTIFYCAP", "Notify me of approval of this blog");
112
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGAPPROVE_NOTIFYDSC", "Receive notification when the blog is approved");
113
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGAPPROVE_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : blog approved");
114
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGUPDATE_NOTIFY", "Blog updated");
115
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGUPDATE_NOTIFYCAP", "Notify me of update of this blog");
116
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGUPDATE_NOTIFYDSC", "Receive notification when the blog is upated");
117
+define($GLOBALS["VAR_PREFIXU"]."_MI_BLOG_BLOGUPDATE_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : blog updated");
118
+
119
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_ARTICLEMONITOR_NOTIFY", "Article monitor");
120
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_ARTICLEMONITOR_NOTIFYCAP", "Notify me of any action taken on this article");
121
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_ARTICLEMONITOR_NOTIFYDSC", "Receive notification when an action is taken on this article");
122
+define($GLOBALS["VAR_PREFIXU"]."_MI_ARTICLE_ARTICLEMONITOR_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notify : New article published");
123 123
 ?>
124 124
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,11 +7,16 @@
 block discarded – undo
7 7
 if (!defined('XOOPS_ROOT_PATH')){ exit(); }
8 8
 
9 9
 $current_path = __FILE__;
10
-if ( DIRECTORY_SEPARATOR != "/" ) $current_path = str_replace( strpos( $current_path, "\\\\", 2 ) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
10
+if ( DIRECTORY_SEPARATOR != "/" ) {
11
+	$current_path = str_replace( strpos( $current_path, "\\\\", 2 ) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
12
+}
11 13
 $url_arr = explode("/",strstr($current_path,"/modules/"));
12 14
 include XOOPS_ROOT_PATH."/modules/".$url_arr[2]."/include/vars.php";
13 15
 
14
-if(defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_MODINFO")) return; define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_MODINFO",1);
16
+if(defined($GLOBALS["VAR_PREFIXU"]."_LANG_EN_MODINFO")) {
17
+	return;
18
+}
19
+define($GLOBALS["VAR_PREFIXU"]."_LANG_EN_MODINFO",1);
15 20
 
16 21
 define($GLOBALS["VAR_PREFIXU"]."_MI_NAME","Planet");
17 22
 define($GLOBALS["VAR_PREFIXU"]."_MI_DESC","Feed Planet For Xoops");
Please login to merge, or discard this patch.
update.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 if($blog_id>0){
33 33
 	$blog =& $blog_handler->get($blog_id);
34 34
 	$count = $blog_handler->do_update($blog);
35
-    redirect_header(XOOPS_URL."/modules/".$GLOBALS["moddirname"]."/index.php?blog=".$blog_id, 2, sprintf(planet_constant("MD_UPDATED"), intval($count)));
35
+	redirect_header(XOOPS_URL."/modules/".$GLOBALS["moddirname"]."/index.php?blog=".$blog_id, 2, sprintf(planet_constant("MD_UPDATED"), intval($count)));
36 36
 }
37 37
 if(planet_getcookie("upd")+30*60>time()) return;
38 38
 planet_setcookie("upd", time());
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
 
28 28
 include "header.php";
29 29
 
30
-$blog_id = intval( !empty($_POST["blog"])?$_POST["blog"]:(!empty($_GET["blog"])?$_GET["blog"]:0) );
31
-$blog_handler =& xoops_getmodulehandler("blog", $GLOBALS["moddirname"]);
32
-if($blog_id>0){
33
-	$blog =& $blog_handler->get($blog_id);
30
+$blog_id = intval(!empty($_POST["blog"]) ? $_POST["blog"] : (!empty($_GET["blog"]) ? $_GET["blog"] : 0));
31
+$blog_handler = & xoops_getmodulehandler("blog", $GLOBALS["moddirname"]);
32
+if ($blog_id>0) {
33
+	$blog = & $blog_handler->get($blog_id);
34 34
 	$count = $blog_handler->do_update($blog);
35 35
     redirect_header(XOOPS_URL."/modules/".$GLOBALS["moddirname"]."/index.php?blog=".$blog_id, 2, sprintf(planet_constant("MD_UPDATED"), intval($count)));
36 36
 }
37
-if(planet_getcookie("upd")+30*60>time()) return;
37
+if (planet_getcookie("upd")+30*60>time()) return;
38 38
 planet_setcookie("upd", time());
39 39
 $start = 0;
40 40
 @include XOOPS_CACHE_PATH."/".$xoopsModule->getVar("dirname")."_update.php";
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
 $criteria->setSort("blog_id");
43 43
 $criteria->setStart($start);
44 44
 $criteria->setLimit($xoopsModuleConfig["blogs_perupdate"]);
45
-$blogs =& $blog_handler->getAll($criteria);
46
-foreach(array_keys($blogs) as $id){
45
+$blogs = & $blog_handler->getAll($criteria);
46
+foreach (array_keys($blogs) as $id) {
47 47
 	$blog_handler->do_update($blogs[$id]);
48 48
 }
49 49
 $start += count($blogs);
50
-if(count($blogs)<$xoopsModuleConfig["blogs_perupdate"]) $start = 0;
50
+if (count($blogs)<$xoopsModuleConfig["blogs_perupdate"]) $start = 0;
51 51
 $fp = fopen(XOOPS_CACHE_PATH."/".$xoopsModule->getVar("dirname")."_update.php", "w");
52
-if(!$fp) return;
52
+if (!$fp) return;
53 53
 fputs($fp, "<?php\n	\$start=".intval($start).";\n?>");
54 54
 fclose($fp);
55 55
 ?>
56 56
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,9 @@  discard block
 block discarded – undo
34 34
 	$count = $blog_handler->do_update($blog);
35 35
     redirect_header(XOOPS_URL."/modules/".$GLOBALS["moddirname"]."/index.php?blog=".$blog_id, 2, sprintf(planet_constant("MD_UPDATED"), intval($count)));
36 36
 }
37
-if(planet_getcookie("upd")+30*60>time()) return;
37
+if(planet_getcookie("upd")+30*60>time()) {
38
+	return;
39
+}
38 40
 planet_setcookie("upd", time());
39 41
 $start = 0;
40 42
 @include XOOPS_CACHE_PATH."/".$xoopsModule->getVar("dirname")."_update.php";
@@ -47,9 +49,13 @@  discard block
 block discarded – undo
47 49
 	$blog_handler->do_update($blogs[$id]);
48 50
 }
49 51
 $start += count($blogs);
50
-if(count($blogs)<$xoopsModuleConfig["blogs_perupdate"]) $start = 0;
52
+if(count($blogs)<$xoopsModuleConfig["blogs_perupdate"]) {
53
+	$start = 0;
54
+}
51 55
 $fp = fopen(XOOPS_CACHE_PATH."/".$xoopsModule->getVar("dirname")."_update.php", "w");
52
-if(!$fp) return;
56
+if(!$fp) {
57
+	return;
58
+}
53 59
 fputs($fp, "<?php\n	\$start=".intval($start).";\n?>");
54 60
 fclose($fp);
55 61
 ?>
56 62
\ No newline at end of file
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,5 +30,5 @@
 block discarded – undo
30 30
 include_once XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/include/functions.php";
31 31
 
32 32
 planet_define_url_delimiter();
33
-$myts =& MyTextSanitizer::getInstance();
33
+$myts = & MyTextSanitizer::getInstance();
34 34
 ?>
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
action.bookmark.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
 $blog_id = intval( isset($_GET["blog"]) ? $_GET["blog"] : (isset($_POST["blog"]) ? $_POST["blog"]: 0) );
31 31
 
32 32
 if(!is_object($xoopsUser) || empty($blog_id)){
33
-    redirect_header("javascript:history.go(-1);", 1, planet_constant("MD_INVALID"));
34
-    exit();
33
+	redirect_header("javascript:history.go(-1);", 1, planet_constant("MD_INVALID"));
34
+	exit();
35 35
 }
36 36
 
37 37
 $bookmark_handler =& xoops_getmodulehandler("bookmark", $GLOBALS["moddirname"]);
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 $bookmark_obj->setVar("bm_uid", $uid);
49 49
 if(!$bookmark_id = $bookmark_handler->insert($bookmark_obj, true)){
50 50
 	redirect_header(XOOPS_URL."/modules/".$GLOBALS["moddirname"]."/index.php".URL_DELIMITER."b".$blog_id, 2, planet_constant("MD_NOTSAVED"));
51
-    exit();
51
+	exit();
52 52
 }
53 53
 $blog_handler =& xoops_getmodulehandler("blog", $GLOBALS["moddirname"]);
54 54
 $blog_obj =& $blog_handler->get($blog_id);
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,31 +27,31 @@
 block discarded – undo
27 27
 
28 28
 include 'header.php';
29 29
 
30
-$blog_id = intval( isset($_GET["blog"]) ? $_GET["blog"] : (isset($_POST["blog"]) ? $_POST["blog"]: 0) );
30
+$blog_id = intval(isset($_GET["blog"]) ? $_GET["blog"] : (isset($_POST["blog"]) ? $_POST["blog"] : 0));
31 31
 
32
-if(!is_object($xoopsUser) || empty($blog_id)){
32
+if (!is_object($xoopsUser) || empty($blog_id)) {
33 33
     redirect_header("javascript:history.go(-1);", 1, planet_constant("MD_INVALID"));
34 34
     exit();
35 35
 }
36 36
 
37
-$bookmark_handler =& xoops_getmodulehandler("bookmark", $GLOBALS["moddirname"]);
38
-$uid = (is_object($xoopsUser))?$xoopsUser->getVar("uid"):0;
37
+$bookmark_handler = & xoops_getmodulehandler("bookmark", $GLOBALS["moddirname"]);
38
+$uid = (is_object($xoopsUser)) ? $xoopsUser->getVar("uid") : 0;
39 39
 $criteria = new CriteriaCompo(new Criteria("blog_id", $blog_id));
40 40
 $criteria->add(new Criteria("bm_uid", $uid));
41
-if($count=$bookmark_handler->getCount($criteria)){
41
+if ($count = $bookmark_handler->getCount($criteria)) {
42 42
 	$message = planet_constant("MD_ALREADYBOOKMARKED");
43 43
 	redirect_header(XOOPS_URL."/modules/".$GLOBALS["moddirname"]."/index.php".URL_DELIMITER."u".$uid, 2, $message);
44 44
 	exit();
45 45
 }
46
-$bookmark_obj =& $bookmark_handler->create();
46
+$bookmark_obj = & $bookmark_handler->create();
47 47
 $bookmark_obj->setVar("blog_id", $blog_id);
48 48
 $bookmark_obj->setVar("bm_uid", $uid);
49
-if(!$bookmark_id = $bookmark_handler->insert($bookmark_obj, true)){
49
+if (!$bookmark_id = $bookmark_handler->insert($bookmark_obj, true)) {
50 50
 	redirect_header(XOOPS_URL."/modules/".$GLOBALS["moddirname"]."/index.php".URL_DELIMITER."b".$blog_id, 2, planet_constant("MD_NOTSAVED"));
51 51
     exit();
52 52
 }
53
-$blog_handler =& xoops_getmodulehandler("blog", $GLOBALS["moddirname"]);
54
-$blog_obj =& $blog_handler->get($blog_id);
53
+$blog_handler = & xoops_getmodulehandler("blog", $GLOBALS["moddirname"]);
54
+$blog_obj = & $blog_handler->get($blog_id);
55 55
 $marks = $blog_obj->getVar("blog_marks")+1;
56 56
 $blog_obj->setVar("blog_marks", $blog_obj->getVar("blog_marks")+1);
57 57
 $blog_handler->insert($blog_obj, true);
Please login to merge, or discard this patch.
class/blog.php 2 patches
Indentation   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -48,25 +48,25 @@  discard block
 block discarded – undo
48 48
 
49 49
 class Bblog extends ArtObject
50 50
 {
51
-    /**
52
-     * Constructor
53
-     */
54
-    function Bblog()
55
-    {
56
-	    $this->ArtObject();
57
-        $this->table = planet_DB_prefix("blog");
58
-        $this->initVar("blog_id", XOBJ_DTYPE_INT, null, false);
59
-        $this->initVar("blog_title", XOBJ_DTYPE_TXTBOX, null, true);
60
-        $this->initVar("blog_desc", XOBJ_DTYPE_TXTBOX, null);
61
-        /* rss URI */
62
-        $this->initVar("blog_feed", XOBJ_DTYPE_TXTBOX, null, true);
63
-        $this->initVar("blog_language", XOBJ_DTYPE_TXTBOX, null);
64
-        $this->initVar("blog_charset", XOBJ_DTYPE_TXTBOX, null);
65
-        /* blog website */
66
-        $this->initVar("blog_link", XOBJ_DTYPE_TXTBOX, null);
67
-        $this->initVar("blog_image", XOBJ_DTYPE_TXTBOX, null);
51
+	/**
52
+	 * Constructor
53
+	 */
54
+	function Bblog()
55
+	{
56
+		$this->ArtObject();
57
+		$this->table = planet_DB_prefix("blog");
58
+		$this->initVar("blog_id", XOBJ_DTYPE_INT, null, false);
59
+		$this->initVar("blog_title", XOBJ_DTYPE_TXTBOX, null, true);
60
+		$this->initVar("blog_desc", XOBJ_DTYPE_TXTBOX, null);
61
+		/* rss URI */
62
+		$this->initVar("blog_feed", XOBJ_DTYPE_TXTBOX, null, true);
63
+		$this->initVar("blog_language", XOBJ_DTYPE_TXTBOX, null);
64
+		$this->initVar("blog_charset", XOBJ_DTYPE_TXTBOX, null);
65
+		/* blog website */
66
+		$this->initVar("blog_link", XOBJ_DTYPE_TXTBOX, null);
67
+		$this->initVar("blog_image", XOBJ_DTYPE_TXTBOX, null);
68 68
         
69
-        /* regexp for blog article trackback
69
+		/* regexp for blog article trackback
70 70
          * From article url to article trackback URI
71 71
          *
72 72
          * For example: http://www.example.com/blog/111.html => http://www.example.com/blog/trackback/111.html
@@ -77,68 +77,68 @@  discard block
 block discarded – undo
77 77
          * The input shall be: pattern[SPACE]replacement
78 78
          *                     (.*wordpress/)(index.php)?(\?p.*) $1wp-trackback/$3      
79 79
          */
80
-        $this->initVar("blog_trackback", XOBJ_DTYPE_TXTBOX, "");
80
+		$this->initVar("blog_trackback", XOBJ_DTYPE_TXTBOX, "");
81 81
         
82
-        /* blog submitter: is_numeric - uid; is_string - IP */
83
-        $this->initVar("blog_submitter", XOBJ_DTYPE_TXTBOX, "");
82
+		/* blog submitter: is_numeric - uid; is_string - IP */
83
+		$this->initVar("blog_submitter", XOBJ_DTYPE_TXTBOX, "");
84 84
         
85
-        /* blog status: 0 - pending; 1 - active; 2 - featured */ 
86
-        $this->initVar("blog_status", XOBJ_DTYPE_INT, 1);
85
+		/* blog status: 0 - pending; 1 - active; 2 - featured */ 
86
+		$this->initVar("blog_status", XOBJ_DTYPE_INT, 1);
87 87
         
88
-        /* key for blog content */
89
-        $this->initVar("blog_key", XOBJ_DTYPE_TXTBOX, "");
88
+		/* key for blog content */
89
+		$this->initVar("blog_key", XOBJ_DTYPE_TXTBOX, "");
90 90
         
91
-        $this->initVar("blog_time", XOBJ_DTYPE_INT, 0);
92
-        $this->initVar("blog_rating", XOBJ_DTYPE_INT, 0);
93
-        $this->initVar("blog_rates", XOBJ_DTYPE_INT, 0);
94
-        /* bookmark times */
95
-        $this->initVar("blog_marks", XOBJ_DTYPE_INT, 0);
96
-    }
91
+		$this->initVar("blog_time", XOBJ_DTYPE_INT, 0);
92
+		$this->initVar("blog_rating", XOBJ_DTYPE_INT, 0);
93
+		$this->initVar("blog_rates", XOBJ_DTYPE_INT, 0);
94
+		/* bookmark times */
95
+		$this->initVar("blog_marks", XOBJ_DTYPE_INT, 0);
96
+	}
97 97
 
98
-    /**
99
-     * get formatted publish time of the article
100
-     * 
101
- 	 * {@link Config} 
102
- 	 *
103
-     * @param string $format format of time
104
-     * @return string
105
-     */
106
-    function getTime($format ="")
107
-    {
108
-	    $time = planet_formatTimestamp($this->getVar("blog_time"), $format);
98
+	/**
99
+	 * get formatted publish time of the article
100
+	 * 
101
+	 * {@link Config} 
102
+	 *
103
+	 * @param string $format format of time
104
+	 * @return string
105
+	 */
106
+	function getTime($format ="")
107
+	{
108
+		$time = planet_formatTimestamp($this->getVar("blog_time"), $format);
109 109
 		return $time;
110
-    }
110
+	}
111 111
     
112
-    /**
113
-     * get verified image url of the category
114
-     * 
115
-     * @return 	string
116
-     */
117
-    function getImage()
118
-    {
112
+	/**
113
+	 * get verified image url of the category
114
+	 * 
115
+	 * @return 	string
116
+	 */
117
+	function getImage()
118
+	{
119 119
 		$image = $this->getVar("blog_image");
120 120
 		return $image;
121
-    }
121
+	}
122 122
     
123
-    /**
124
-     * get rating average of the article
125
-     * 
126
-     * @param int $decimals decimal length
127
-     * @return numeric
128
-     */
129
-    function getRatingAverage($decimals = 1)
130
-    {
131
-	    $ave=3;
132
-	    if($this->getVar("blog_rates")){
133
-	    	$ave = number_format($this->getVar("blog_rating")/$this->getVar("blog_rates"),$decimals);
134
-    	}
135
-	    return $ave;
136
-    }
123
+	/**
124
+	 * get rating average of the article
125
+	 * 
126
+	 * @param int $decimals decimal length
127
+	 * @return numeric
128
+	 */
129
+	function getRatingAverage($decimals = 1)
130
+	{
131
+		$ave=3;
132
+		if($this->getVar("blog_rates")){
133
+			$ave = number_format($this->getVar("blog_rating")/$this->getVar("blog_rates"),$decimals);
134
+		}
135
+		return $ave;
136
+	}
137 137
 
138
-    function getStar()
139
-    {
140
-	    return $this->getRatingAverage(0);
141
-    }
138
+	function getStar()
139
+	{
140
+		return $this->getRatingAverage(0);
141
+	}
142 142
 }
143 143
 endif;
144 144
 /**
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
  *
45 45
  * {@link XoopsObject} 
46 46
  **/
47
-if(!class_exists("Bblog")):
47
+if (!class_exists("Bblog")):
48 48
 
49 49
 class Bblog extends ArtObject
50 50
 {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param string $format format of time
104 104
      * @return string
105 105
      */
106
-    function getTime($format ="")
106
+    function getTime($format = "")
107 107
     {
108 108
 	    $time = planet_formatTimestamp($this->getVar("blog_time"), $format);
109 109
 		return $time;
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
      */
129 129
     function getRatingAverage($decimals = 1)
130 130
     {
131
-	    $ave=3;
132
-	    if($this->getVar("blog_rates")){
133
-	    	$ave = number_format($this->getVar("blog_rating")/$this->getVar("blog_rates"),$decimals);
131
+	    $ave = 3;
132
+	    if ($this->getVar("blog_rates")) {
133
+	    	$ave = number_format($this->getVar("blog_rating")/$this->getVar("blog_rates"), $decimals);
134 134
     	}
135 135
 	    return $ave;
136 136
     }
Please login to merge, or discard this patch.
class/rate.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -34,17 +34,17 @@
 block discarded – undo
34 34
 if(!class_exists("Brate")):
35 35
 class Brate extends ArtObject
36 36
 {
37
-    function Brate($id = null)
38
-    {
39
-	    $this->ArtObject();
40
-        $this->table = planet_DB_prefix("rate");
41
-        $this->initVar("rate_id", XOBJ_DTYPE_INT, null, false);
42
-        $this->initVar("art_id", XOBJ_DTYPE_INT, 0, true);
43
-        $this->initVar("rate_uid", XOBJ_DTYPE_INT, 0);
44
-        $this->initVar("rate_ip", XOBJ_DTYPE_INT, 0);
45
-        $this->initVar("rate_rating", XOBJ_DTYPE_INT, 0, true);
46
-        $this->initVar("rate_time", XOBJ_DTYPE_INT, 0, true);
47
-    }
37
+	function Brate($id = null)
38
+	{
39
+		$this->ArtObject();
40
+		$this->table = planet_DB_prefix("rate");
41
+		$this->initVar("rate_id", XOBJ_DTYPE_INT, null, false);
42
+		$this->initVar("art_id", XOBJ_DTYPE_INT, 0, true);
43
+		$this->initVar("rate_uid", XOBJ_DTYPE_INT, 0);
44
+		$this->initVar("rate_ip", XOBJ_DTYPE_INT, 0);
45
+		$this->initVar("rate_rating", XOBJ_DTYPE_INT, 0, true);
46
+		$this->initVar("rate_time", XOBJ_DTYPE_INT, 0, true);
47
+	}
48 48
 }
49 49
 endif;
50 50
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 include_once dirname(dirname(__FILE__))."/include/vars.php";
32 32
 mod_loadFunctions("", $GLOBALS["moddirname"]);
33 33
 
34
-if(!class_exists("Brate")):
34
+if (!class_exists("Brate")):
35 35
 class Brate extends ArtObject
36 36
 {
37 37
     function Brate($id = null)
Please login to merge, or discard this patch.
class/category.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -48,17 +48,17 @@
 block discarded – undo
48 48
 
49 49
 class Bcategory extends ArtObject
50 50
 {
51
-    /**
52
-     * Constructor
53
-     */
54
-    function Bcategory()
55
-    {
56
-	    $this->ArtObject();
57
-        $this->table = planet_DB_prefix("category");
58
-        $this->initVar("cat_id", XOBJ_DTYPE_INT, null, false);
59
-        $this->initVar("cat_title", XOBJ_DTYPE_TXTBOX, "", true);
60
-        $this->initVar("cat_order", XOBJ_DTYPE_INT, 1, false);
61
-    }
51
+	/**
52
+	 * Constructor
53
+	 */
54
+	function Bcategory()
55
+	{
56
+		$this->ArtObject();
57
+		$this->table = planet_DB_prefix("category");
58
+		$this->initVar("cat_id", XOBJ_DTYPE_INT, null, false);
59
+		$this->initVar("cat_title", XOBJ_DTYPE_TXTBOX, "", true);
60
+		$this->initVar("cat_order", XOBJ_DTYPE_INT, 1, false);
61
+	}
62 62
 }
63 63
 
64 64
 endif;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
  *
45 45
  * {@link XoopsObject} 
46 46
  **/
47
-if(!class_exists("Bcategory")):
47
+if (!class_exists("Bcategory")):
48 48
 
49 49
 class Bcategory extends ArtObject
50 50
 {
Please login to merge, or discard this patch.