Completed
Push — master ( 10bab4...a0a78b )
by Michael
02:06
created
print.php 2 patches
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 use Xmf\Request;
28 28
 
29 29
 error_reporting(0);
30
-include __DIR__ . '/header.php';
30
+include __DIR__.'/header.php';
31 31
 error_reporting(0);
32 32
 
33 33
 if (empty(Request::getString('print_data', '', 'POST'))) {
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $args['article'] = @$args_num[0];
38 38
     }
39 39
 
40
-    $article_id = Request::getInt('article', @$args['article'], 'POST');//(int)(empty($_GET['article']) ? @$args['article'] : $_GET['article']);
40
+    $article_id = Request::getInt('article', @$args['article'], 'POST'); //(int)(empty($_GET['article']) ? @$args['article'] : $_GET['article']);
41 41
 
42 42
     $articleHandler = xoops_getModuleHandler('article', $GLOBALS['moddirname']);
43 43
     $article_obj    = $articleHandler->get($article_id);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     $article_data['time'] = $article_obj->getTime('l');
57 57
 
58 58
     // summary
59
-    $article_data['summary'] =& $article_obj->getSummary();
59
+    $article_data['summary'] = & $article_obj->getSummary();
60 60
 
61 61
     // text of page
62 62
     $article_data['text'] = $article_obj->getVar('art_content');
@@ -64,25 +64,25 @@  discard block
 block discarded – undo
64 64
     $print_data['title']   = $article_data['title'];
65 65
     $print_data['author']  = $article_data['author'];
66 66
     $print_data['date']    = $article_data['time'];
67
-    $print_data['summary'] = empty($article_data['summary']) ? '' : planet_constant('MD_SUMMARY') . ': ' . $article_data['summary'];
67
+    $print_data['summary'] = empty($article_data['summary']) ? '' : planet_constant('MD_SUMMARY').': '.$article_data['summary'];
68 68
     $print_data['content'] = $article_data['text'];
69
-    $print_data['url']     = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/view.article.php' . URL_DELIMITER . 'c' . $category_id . '/' . $article_id . '/p' . $page;
70
-} else {
71
-    $print_data = unserialize(base64_decode(Request::getString('print_data', '', 'POST')));//$_POST['print_data']));
69
+    $print_data['url']     = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/view.article.php'.URL_DELIMITER.'c'.$category_id.'/'.$article_id.'/p'.$page;
70
+}else {
71
+    $print_data = unserialize(base64_decode(Request::getString('print_data', '', 'POST'))); //$_POST['print_data']));
72 72
 }
73 73
 
74
-$print_data['image']  = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $xoopsModule->getInfo('image');
75
-$print_data['module'] = $xoopsModule->getVar('name') . ' V' . $xoopsModule->getInfo('version');
74
+$print_data['image']  = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/'.$xoopsModule->getInfo('image');
75
+$print_data['module'] = $xoopsModule->getVar('name').' V'.$xoopsModule->getInfo('version');
76 76
 
77
-header('Content-Type: text/html; charset=' . _CHARSET);
77
+header('Content-Type: text/html; charset='._CHARSET);
78 78
 echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n";
79 79
 echo "<html>\n<head>\n";
80
-echo '<title>' . $xoopsConfig['sitename'] . "</title>\n";
81
-echo "<meta http-equiv='Content-Type' content='text/html; charset=" . _CHARSET . "'>\n";
82
-echo "<meta name='AUTHOR' content='" . $myts->htmlSpecialChars($xoopsConfig['sitename']) . "'>\n";
83
-echo "<meta name='COPYRIGHT' content='Copyright (c) " . date('Y') . ' by ' . $xoopsConfig['sitename'] . "'>\n";
84
-echo "<meta name='DESCRIPTION' content='" . $myts->htmlSpecialChars($xoopsConfig['slogan']) . "'>\n";
85
-echo "<meta name='GENERATOR' content='" . XOOPS_VERSION . "'>\n";
80
+echo '<title>'.$xoopsConfig['sitename']."</title>\n";
81
+echo "<meta http-equiv='Content-Type' content='text/html; charset="._CHARSET."'>\n";
82
+echo "<meta name='AUTHOR' content='".$myts->htmlSpecialChars($xoopsConfig['sitename'])."'>\n";
83
+echo "<meta name='COPYRIGHT' content='Copyright (c) ".date('Y').' by '.$xoopsConfig['sitename']."'>\n";
84
+echo "<meta name='DESCRIPTION' content='".$myts->htmlSpecialChars($xoopsConfig['slogan'])."'>\n";
85
+echo "<meta name='GENERATOR' content='".XOOPS_VERSION."'>\n";
86 86
 echo "<style type='text/css'>
87 87
             body {
88 88
                 color:#000000;
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
      . "</h2>\n"
112 112
      . "</div>\n"
113 113
      . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 2px solid #ccc;'></div>\n";
114
-echo(empty($print_data['author']) ? '' : '<div>' . planet_constant('MD_AUTHOR') . ': ' . $print_data['author'] . "</div>\n")
114
+echo(empty($print_data['author']) ? '' : '<div>'.planet_constant('MD_AUTHOR').': '.$print_data['author']."</div>\n")
115 115
      . '<div>'
116 116
      . planet_constant('MD_DATE')
117 117
      . ': '
118 118
      . $print_data['date']
119 119
      . "</div>\n"
120
-     . (empty($article_data['summary']) ? '' : "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n" . '<div>' . $print_data['summary'] . "</div>\n")
120
+     . (empty($article_data['summary']) ? '' : "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n".'<div>'.$print_data['summary']."</div>\n")
121 121
      . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n"
122 122
      . '<div>'
123 123
      . $print_data['content']
Please login to merge, or discard this patch.
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -31,44 +31,44 @@  discard block
 block discarded – undo
31 31
 error_reporting(0);
32 32
 
33 33
 if (empty(Request::getString('print_data', '', 'POST'))) {
34
-    //$_POST['print_data']))
34
+	//$_POST['print_data']))
35 35
 
36
-    if (PlanetUtility::planetParseArguments($args_num, $args, $args_str)) {
37
-        $args['article'] = @$args_num[0];
38
-    }
36
+	if (PlanetUtility::planetParseArguments($args_num, $args, $args_str)) {
37
+		$args['article'] = @$args_num[0];
38
+	}
39 39
 
40
-    $article_id = Request::getInt('article', @$args['article'], 'POST');//(int)(empty($_GET['article']) ? @$args['article'] : $_GET['article']);
40
+	$article_id = Request::getInt('article', @$args['article'], 'POST');//(int)(empty($_GET['article']) ? @$args['article'] : $_GET['article']);
41 41
 
42
-    $articleHandler = xoops_getModuleHandler('article', $GLOBALS['moddirname']);
43
-    $article_obj    = $articleHandler->get($article_id);
42
+	$articleHandler = xoops_getModuleHandler('article', $GLOBALS['moddirname']);
43
+	$article_obj    = $articleHandler->get($article_id);
44 44
 
45
-    $article_data = [];
45
+	$article_data = [];
46 46
 
47
-    // title
48
-    $article_data['title'] = $article_obj->getVar('art_title');
47
+	// title
48
+	$article_data['title'] = $article_obj->getVar('art_title');
49 49
 
50
-    $article_data['author'] = $article_obj->getVar('art_author');
50
+	$article_data['author'] = $article_obj->getVar('art_author');
51 51
 
52
-    // source
53
-    $article_data['source'] = $article_obj->getVar('art_link');
52
+	// source
53
+	$article_data['source'] = $article_obj->getVar('art_link');
54 54
 
55
-    // publish time
56
-    $article_data['time'] = $article_obj->getTime('l');
55
+	// publish time
56
+	$article_data['time'] = $article_obj->getTime('l');
57 57
 
58
-    // summary
59
-    $article_data['summary'] =& $article_obj->getSummary();
58
+	// summary
59
+	$article_data['summary'] =& $article_obj->getSummary();
60 60
 
61
-    // text of page
62
-    $article_data['text'] = $article_obj->getVar('art_content');
61
+	// text of page
62
+	$article_data['text'] = $article_obj->getVar('art_content');
63 63
 
64
-    $print_data['title']   = $article_data['title'];
65
-    $print_data['author']  = $article_data['author'];
66
-    $print_data['date']    = $article_data['time'];
67
-    $print_data['summary'] = empty($article_data['summary']) ? '' : planet_constant('MD_SUMMARY') . ': ' . $article_data['summary'];
68
-    $print_data['content'] = $article_data['text'];
69
-    $print_data['url']     = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/view.article.php' . URL_DELIMITER . 'c' . $category_id . '/' . $article_id . '/p' . $page;
64
+	$print_data['title']   = $article_data['title'];
65
+	$print_data['author']  = $article_data['author'];
66
+	$print_data['date']    = $article_data['time'];
67
+	$print_data['summary'] = empty($article_data['summary']) ? '' : planet_constant('MD_SUMMARY') . ': ' . $article_data['summary'];
68
+	$print_data['content'] = $article_data['text'];
69
+	$print_data['url']     = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/view.article.php' . URL_DELIMITER . 'c' . $category_id . '/' . $article_id . '/p' . $page;
70 70
 } else {
71
-    $print_data = unserialize(base64_decode(Request::getString('print_data', '', 'POST')));//$_POST['print_data']));
71
+	$print_data = unserialize(base64_decode(Request::getString('print_data', '', 'POST')));//$_POST['print_data']));
72 72
 }
73 73
 
74 74
 $print_data['image']  = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $xoopsModule->getInfo('image');
@@ -99,36 +99,36 @@  discard block
 block discarded – undo
99 99
             </style>\n";
100 100
 echo "</head>\n";
101 101
 echo "<body style='background-color:#ffffff; color:#000000; font-family: Arial' onload='window.print()'>\n"
102
-     . "<div style='float:center; width: 750px; border: 1px solid #000; padding: 20px;'>\n"
103
-     . "<div style='text-align: center; display: block; margin: 0 0 6px 0; padding: 5px;'>\n"
104
-     . "<img src='"
105
-     . $print_data['image']
106
-     . "' border='0' alt='"
107
-     . $print_data['module']
108
-     . "'>\n"
109
-     . '<h2>'
110
-     . $print_data['title']
111
-     . "</h2>\n"
112
-     . "</div>\n"
113
-     . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 2px solid #ccc;'></div>\n";
102
+	 . "<div style='float:center; width: 750px; border: 1px solid #000; padding: 20px;'>\n"
103
+	 . "<div style='text-align: center; display: block; margin: 0 0 6px 0; padding: 5px;'>\n"
104
+	 . "<img src='"
105
+	 . $print_data['image']
106
+	 . "' border='0' alt='"
107
+	 . $print_data['module']
108
+	 . "'>\n"
109
+	 . '<h2>'
110
+	 . $print_data['title']
111
+	 . "</h2>\n"
112
+	 . "</div>\n"
113
+	 . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 2px solid #ccc;'></div>\n";
114 114
 echo(empty($print_data['author']) ? '' : '<div>' . planet_constant('MD_AUTHOR') . ': ' . $print_data['author'] . "</div>\n")
115
-     . '<div>'
116
-     . planet_constant('MD_DATE')
117
-     . ': '
118
-     . $print_data['date']
119
-     . "</div>\n"
120
-     . (empty($article_data['summary']) ? '' : "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n" . '<div>' . $print_data['summary'] . "</div>\n")
121
-     . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n"
122
-     . '<div>'
123
-     . $print_data['content']
124
-     . "</div>\n"
125
-     . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 2px solid #ccc;'></div>\n"
126
-     . '<div>'
127
-     . $print_data['module']
128
-     . "</div>\n"
129
-     . '<div>URL: '
130
-     . $print_data['url']
131
-     . "</div>\n"
132
-     . "</div>\n"
133
-     . "</body>\n</html>\n";
115
+	 . '<div>'
116
+	 . planet_constant('MD_DATE')
117
+	 . ': '
118
+	 . $print_data['date']
119
+	 . "</div>\n"
120
+	 . (empty($article_data['summary']) ? '' : "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n" . '<div>' . $print_data['summary'] . "</div>\n")
121
+	 . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n"
122
+	 . '<div>'
123
+	 . $print_data['content']
124
+	 . "</div>\n"
125
+	 . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 2px solid #ccc;'></div>\n"
126
+	 . '<div>'
127
+	 . $print_data['module']
128
+	 . "</div>\n"
129
+	 . '<div>URL: '
130
+	 . $print_data['url']
131
+	 . "</div>\n"
132
+	 . "</div>\n"
133
+	 . "</body>\n</html>\n";
134 134
 exit();
Please login to merge, or discard this patch.
notification_update.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team, Kazumi Ono (AKA onokazu)
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-include XOOPS_ROOT_PATH . '/include/notification_update.php';
20
+include __DIR__.'/../../mainfile.php';
21
+include XOOPS_ROOT_PATH.'/include/notification_update.php';
Please login to merge, or discard this patch.
footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,4 +25,4 @@
 block discarded – undo
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27 27
 
28
-require_once XOOPS_ROOT_PATH . '/footer.php';
28
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
language/english/modinfo.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_MODINFO')) {
17
-    return;
17
+	return;
18 18
 }
19 19
 define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_MODINFO', 1);
20 20
 
Please login to merge, or discard this patch.
Spacing   +113 added lines, -113 removed lines patch added patch discarded remove patch
@@ -11,119 +11,119 @@
 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_MODINFO')) {
16
+if (defined($GLOBALS['VAR_PREFIXU'].'_LANG_EN_MODINFO')) {
17 17
     return;
18 18
 }
19
-define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_MODINFO', 1);
20
-
21
-define($GLOBALS['VAR_PREFIXU'] . '_MI_NAME', 'Planet');
22
-define($GLOBALS['VAR_PREFIXU'] . '_MI_DESC', 'Feed Planet For Xoops');
23
-
24
-define($GLOBALS['VAR_PREFIXU'] . '_MI_PAGE_INDEX', 'Index');
25
-define($GLOBALS['VAR_PREFIXU'] . '_MI_PAGE_ARTICLE', 'Article');
26
-define($GLOBALS['VAR_PREFIXU'] . '_MI_PAGE_ARCHIVE', 'Archive');
27
-define($GLOBALS['VAR_PREFIXU'] . '_MI_PAGE_LIST', 'List');
28
-
29
-define($GLOBALS['VAR_PREFIXU'] . '_MI_SUBMIT', 'Submit');
30
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE', 'Articles');
31
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_DESC', '');
32
-define($GLOBALS['VAR_PREFIXU'] . '_MI_CATEGORY', 'Categories');
33
-define($GLOBALS['VAR_PREFIXU'] . '_MI_CATEGORY_DESC', '');
34
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG', 'BLogs');
35
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_DESC', '');
36
-
37
-define($GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET', 'Theme set');
38
-define($GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC', "Module-wide, select '" . _NONE . "' will use site-wide theme");
39
-
40
-define($GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT', 'Time format for display');
41
-define($GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC', '');
42
-define($GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM', 'Custom');
43
-
44
-define($GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY', 'Display summary length on article list');
45
-define($GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC', '0 for full text');
46
-
47
-define($GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG', 'Enable debug');
48
-define($GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC', '');
49
-
50
-define($GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE', 'Enable URL rewrite');
51
-define($GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC', 'AcceptPathInfo On for Apache2 is required');
52
-
53
-define($GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING', 'Enable sibling articles');
54
-define($GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC', '');
55
-
56
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE', 'Articles on one page');
57
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC', '');
58
-
59
-define($GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE', 'Lists on one page');
60
-define($GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC', '');
61
-
62
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE', 'Blogs for each update');
63
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC', '');
64
-
65
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE', 'Time for article to expire');
66
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC', 'In days');
67
-
68
-define($GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT', 'Copyright');
69
-define($GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC', '');
70
-
71
-define($GLOBALS['VAR_PREFIXU'] . '_MI_PING', 'Pings');
72
-define($GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC', 'URLs to ping');
73
-
74
-define($GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION', 'Option for recieved trackbacks');
75
-define($GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC', '');
76
-
77
-define($GLOBALS['VAR_PREFIXU'] . '_MI_MODERATION', 'Moderator to approve');
78
-define($GLOBALS['VAR_PREFIXU'] . '_MI_MEMBER', 'Member atuo-approve');
79
-
80
-define($GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT', 'Right for submitting new blog');
81
-define($GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC', '');
82
-
83
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE', 'Allow anonymous to rate');
84
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC', '');
85
-
86
-define($GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON', 'Pseudo cron');
87
-define($GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC', 'Use pseudo cron to update blogs');
88
-
89
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_INDEX', 'Index');
90
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_CATEGORY', 'Category');
91
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_BLOG', 'Blog');
92
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_ARTICLE', 'Article');
93
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_BLOCK', 'Block');
94
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_ABOUT', 'About');
95
-
96
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NOTIFY', 'Global');
97
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NOTIFYDSC', 'Global notification options');
98
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_NOTIFY', 'Blog');
99
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_NOTIFYDSC', 'Blog notification options');
100
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_NOTIFY', 'Article');
101
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_NOTIFYDSC', 'Article notification options');
102
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_BLOGSUBMIT_NOTIFY', 'Article submission');
103
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_BLOGSUBMIT_NOTIFYCAP', 'Notify me of any pending blog');
104
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_BLOGSUBMIT_NOTIFYDSC', 'Receive notification when a new blog is submitted');
105
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_BLOGSUBMIT_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New blog submitted');
106
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NEWBLOG_NOTIFY', 'New blog');
107
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NEWBLOG_NOTIFYCAP', 'Notify of any new blog published');
108
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NEWBLOG_NOTIFYDSC', 'Receive notification when a new blog is published');
109
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NEWBLOG_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New blog published');
110
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_ARTICLEMONITOR_NOTIFY', 'Article monitor');
111
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_ARTICLEMONITOR_NOTIFYCAP', 'Notify me of all actions on my articles');
112
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_ARTICLEMONITOR_NOTIFYDSC', 'Receive notification when an action is taken over my articles');
113
-define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_ARTICLEMONITOR_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New action');
114
-
115
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGAPPROVE_NOTIFY', 'Blog approved');
116
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGAPPROVE_NOTIFYCAP', 'Notify me of approval of this blog');
117
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGAPPROVE_NOTIFYDSC', 'Receive notification when the blog is approved');
118
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGAPPROVE_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : blog approved');
119
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGUPDATE_NOTIFY', 'Blog updated');
120
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGUPDATE_NOTIFYCAP', 'Notify me of update of this blog');
121
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGUPDATE_NOTIFYDSC', 'Receive notification when the blog is upated');
122
-define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGUPDATE_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : blog updated');
123
-
124
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_ARTICLEMONITOR_NOTIFY', 'Article monitor');
125
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_ARTICLEMONITOR_NOTIFYCAP', 'Notify me of any action taken on this article');
126
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_ARTICLEMONITOR_NOTIFYDSC', 'Receive notification when an action is taken on this article');
127
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_ARTICLEMONITOR_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New article published');
128
-
129
-define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_HOME', 'Home');
19
+define($GLOBALS['VAR_PREFIXU'].'_LANG_EN_MODINFO', 1);
20
+
21
+define($GLOBALS['VAR_PREFIXU'].'_MI_NAME', 'Planet');
22
+define($GLOBALS['VAR_PREFIXU'].'_MI_DESC', 'Feed Planet For Xoops');
23
+
24
+define($GLOBALS['VAR_PREFIXU'].'_MI_PAGE_INDEX', 'Index');
25
+define($GLOBALS['VAR_PREFIXU'].'_MI_PAGE_ARTICLE', 'Article');
26
+define($GLOBALS['VAR_PREFIXU'].'_MI_PAGE_ARCHIVE', 'Archive');
27
+define($GLOBALS['VAR_PREFIXU'].'_MI_PAGE_LIST', 'List');
28
+
29
+define($GLOBALS['VAR_PREFIXU'].'_MI_SUBMIT', 'Submit');
30
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE', 'Articles');
31
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_DESC', '');
32
+define($GLOBALS['VAR_PREFIXU'].'_MI_CATEGORY', 'Categories');
33
+define($GLOBALS['VAR_PREFIXU'].'_MI_CATEGORY_DESC', '');
34
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG', 'BLogs');
35
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_DESC', '');
36
+
37
+define($GLOBALS['VAR_PREFIXU'].'_MI_THEMESET', 'Theme set');
38
+define($GLOBALS['VAR_PREFIXU'].'_MI_THEMESET_DESC', "Module-wide, select '"._NONE."' will use site-wide theme");
39
+
40
+define($GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT', 'Time format for display');
41
+define($GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT_DESC', '');
42
+define($GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT_CUSTOM', 'Custom');
43
+
44
+define($GLOBALS['VAR_PREFIXU'].'_MI_DISPLAY_SUMMARY', 'Display summary length on article list');
45
+define($GLOBALS['VAR_PREFIXU'].'_MI_DISPLAY_SUMMARY_DESC', '0 for full text');
46
+
47
+define($GLOBALS['VAR_PREFIXU'].'_MI_DODEBUG', 'Enable debug');
48
+define($GLOBALS['VAR_PREFIXU'].'_MI_DODEBUG_DESC', '');
49
+
50
+define($GLOBALS['VAR_PREFIXU'].'_MI_DOURLREWRITE', 'Enable URL rewrite');
51
+define($GLOBALS['VAR_PREFIXU'].'_MI_DOURLREWRITE_DESC', 'AcceptPathInfo On for Apache2 is required');
52
+
53
+define($GLOBALS['VAR_PREFIXU'].'_MI_DOSIBLING', 'Enable sibling articles');
54
+define($GLOBALS['VAR_PREFIXU'].'_MI_DOSIBLING_DESC', '');
55
+
56
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLESPERPAGE', 'Articles on one page');
57
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLESPERPAGE_DESC', '');
58
+
59
+define($GLOBALS['VAR_PREFIXU'].'_MI_LISTPERPAGE', 'Lists on one page');
60
+define($GLOBALS['VAR_PREFIXU'].'_MI_LISTPERPAGE_DESC', '');
61
+
62
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOGSPERUPDATE', 'Blogs for each update');
63
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOGSPERUPDATE_DESC', '');
64
+
65
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_EXPIRE', 'Time for article to expire');
66
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_EXPIRE_DESC', 'In days');
67
+
68
+define($GLOBALS['VAR_PREFIXU'].'_MI_COPYRIGHT', 'Copyright');
69
+define($GLOBALS['VAR_PREFIXU'].'_MI_COPYRIGHT_DESC', '');
70
+
71
+define($GLOBALS['VAR_PREFIXU'].'_MI_PING', 'Pings');
72
+define($GLOBALS['VAR_PREFIXU'].'_MI_PING_DESC', 'URLs to ping');
73
+
74
+define($GLOBALS['VAR_PREFIXU'].'_MI_TRACKBACK_OPTION', 'Option for recieved trackbacks');
75
+define($GLOBALS['VAR_PREFIXU'].'_MI_TRACKBACK_OPTION_DESC', '');
76
+
77
+define($GLOBALS['VAR_PREFIXU'].'_MI_MODERATION', 'Moderator to approve');
78
+define($GLOBALS['VAR_PREFIXU'].'_MI_MEMBER', 'Member atuo-approve');
79
+
80
+define($GLOBALS['VAR_PREFIXU'].'_MI_NEWBLOG_SUBMIT', 'Right for submitting new blog');
81
+define($GLOBALS['VAR_PREFIXU'].'_MI_NEWBLOG_SUBMIT_DESC', '');
82
+
83
+define($GLOBALS['VAR_PREFIXU'].'_MI_ANONYMOUSRATE', 'Allow anonymous to rate');
84
+define($GLOBALS['VAR_PREFIXU'].'_MI_ANONYMOUSRATE_DESC', '');
85
+
86
+define($GLOBALS['VAR_PREFIXU'].'_MI_PSEUDOCRON', 'Pseudo cron');
87
+define($GLOBALS['VAR_PREFIXU'].'_MI_PSEUDOCRON_DESC', 'Use pseudo cron to update blogs');
88
+
89
+define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_INDEX', 'Index');
90
+define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_CATEGORY', 'Category');
91
+define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_BLOG', 'Blog');
92
+define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_ARTICLE', 'Article');
93
+define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_BLOCK', 'Block');
94
+define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_ABOUT', 'About');
95
+
96
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NOTIFY', 'Global');
97
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NOTIFYDSC', 'Global notification options');
98
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_NOTIFY', 'Blog');
99
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_NOTIFYDSC', 'Blog notification options');
100
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_NOTIFY', 'Article');
101
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_NOTIFYDSC', 'Article notification options');
102
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_BLOGSUBMIT_NOTIFY', 'Article submission');
103
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_BLOGSUBMIT_NOTIFYCAP', 'Notify me of any pending blog');
104
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_BLOGSUBMIT_NOTIFYDSC', 'Receive notification when a new blog is submitted');
105
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_BLOGSUBMIT_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New blog submitted');
106
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NEWBLOG_NOTIFY', 'New blog');
107
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NEWBLOG_NOTIFYCAP', 'Notify of any new blog published');
108
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NEWBLOG_NOTIFYDSC', 'Receive notification when a new blog is published');
109
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NEWBLOG_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New blog published');
110
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_ARTICLEMONITOR_NOTIFY', 'Article monitor');
111
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_ARTICLEMONITOR_NOTIFYCAP', 'Notify me of all actions on my articles');
112
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_ARTICLEMONITOR_NOTIFYDSC', 'Receive notification when an action is taken over my articles');
113
+define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_ARTICLEMONITOR_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New action');
114
+
115
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGAPPROVE_NOTIFY', 'Blog approved');
116
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGAPPROVE_NOTIFYCAP', 'Notify me of approval of this blog');
117
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGAPPROVE_NOTIFYDSC', 'Receive notification when the blog is approved');
118
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGAPPROVE_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : blog approved');
119
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGUPDATE_NOTIFY', 'Blog updated');
120
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGUPDATE_NOTIFYCAP', 'Notify me of update of this blog');
121
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGUPDATE_NOTIFYDSC', 'Receive notification when the blog is upated');
122
+define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGUPDATE_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : blog updated');
123
+
124
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_ARTICLEMONITOR_NOTIFY', 'Article monitor');
125
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_ARTICLEMONITOR_NOTIFYCAP', 'Notify me of any action taken on this article');
126
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_ARTICLEMONITOR_NOTIFYDSC', 'Receive notification when an action is taken on this article');
127
+define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_ARTICLEMONITOR_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New article published');
128
+
129
+define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_HOME', 'Home');
Please login to merge, or discard this patch.
comment_edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
24 24
 // URL: https://xoops.org                         //
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27
-include __DIR__ . '/../../mainfile.php';
28
-include XOOPS_ROOT_PATH . '/include/comment_edit.php';
27
+include __DIR__.'/../../mainfile.php';
28
+include XOOPS_ROOT_PATH.'/include/comment_edit.php';
Please login to merge, or discard this patch.
comment_delete.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
24 24
 // URL: https://xoops.org                         //
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27
-include __DIR__ . '/../../mainfile.php';
28
-include XOOPS_ROOT_PATH . '/include/comment_delete.php';
27
+include __DIR__.'/../../mainfile.php';
28
+include XOOPS_ROOT_PATH.'/include/comment_delete.php';
Please login to merge, or discard this patch.
comment_post.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
24 24
 // URL: https://xoops.org                         //
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27
-include __DIR__ . '/../../mainfile.php';
28
-include XOOPS_ROOT_PATH . '/include/comment_post.php';
27
+include __DIR__.'/../../mainfile.php';
28
+include XOOPS_ROOT_PATH.'/include/comment_post.php';
Please login to merge, or discard this patch.
transfer.php 2 patches
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 include __DIR__ . '/header.php';
18 18
 
19 19
 if (PlanetUtility::planetParseArguments($args_num, $args, $args_str)) {
20
-    $args['article'] = @$args_num[0];
21
-    $args['op']      = @$args_str[0];
20
+	$args['article'] = @$args_num[0];
21
+	$args['op']      = @$args_str[0];
22 22
 }
23 23
 
24 24
 $article_id = Request::getInt('article', Request::getInt('article', @$args['article'], 'POST'), 'GET');//(int)(empty($_GET['article']) ? (empty($_POST['article']) ? @$args['article'] : $_POST['article']) : $_GET['article']);
@@ -27,33 +27,33 @@  discard block
 block discarded – undo
27 27
 $op = strtolower(trim($op));
28 28
 
29 29
 if (empty($article_id)) {
30
-    if (empty(Request::getUrl('HTTP_REFERER', '', 'SERVER'))) {
31
-        //$_SERVER['HTTP_REFERER']))
30
+	if (empty(Request::getUrl('HTTP_REFERER', '', 'SERVER'))) {
31
+		//$_SERVER['HTTP_REFERER']))
32 32
 
33
-        include XOOPS_ROOT_PATH . '/header.php';
34
-        xoops_error(_NOPERM);
35
-        $xoopsOption['output_type'] = 'plain';
36
-        include XOOPS_ROOT_PATH . '/footer.php';
37
-        exit();
38
-    } else {
39
-        $ref_parser = parse_url(Request::getUrl('HTTP_REFERER', '', 'SERVER')); //$_SERVER['HTTP_REFERER']);
40
-        $uri_parser = parse_url(Request::getUrl('REQUEST_URI', '', 'SERVER'));// $_SERVER['REQUEST_URI']);
41
-        if ((!empty($ref_parser['host']) && !empty($uri_parser['host']) && $uri_parser['host'] != $ref_parser['host'])
42
-            || ($ref_parser['path'] != $uri_parser['path'])) {
43
-            include XOOPS_ROOT_PATH . '/header.php';
44
-            include XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php';
45
-            xoops_confirm([], 'javascript: window.close();', sprintf(planet_constant('MD_TRANSFER_DONE'), ''), _CLOSE, Request::getUrl('HTTP_REFERER', '', 'SERVER'));
46
-            $xoopsOption['output_type'] = 'plain';
47
-            include XOOPS_ROOT_PATH . '/footer.php';
48
-            exit();
49
-        } else {
50
-            include XOOPS_ROOT_PATH . '/header.php';
51
-            xoops_error(_NOPERM);
52
-            $xoopsOption['output_type'] = 'plain';
53
-            include XOOPS_ROOT_PATH . '/footer.php';
54
-            exit();
55
-        }
56
-    }
33
+		include XOOPS_ROOT_PATH . '/header.php';
34
+		xoops_error(_NOPERM);
35
+		$xoopsOption['output_type'] = 'plain';
36
+		include XOOPS_ROOT_PATH . '/footer.php';
37
+		exit();
38
+	} else {
39
+		$ref_parser = parse_url(Request::getUrl('HTTP_REFERER', '', 'SERVER')); //$_SERVER['HTTP_REFERER']);
40
+		$uri_parser = parse_url(Request::getUrl('REQUEST_URI', '', 'SERVER'));// $_SERVER['REQUEST_URI']);
41
+		if ((!empty($ref_parser['host']) && !empty($uri_parser['host']) && $uri_parser['host'] != $ref_parser['host'])
42
+			|| ($ref_parser['path'] != $uri_parser['path'])) {
43
+			include XOOPS_ROOT_PATH . '/header.php';
44
+			include XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php';
45
+			xoops_confirm([], 'javascript: window.close();', sprintf(planet_constant('MD_TRANSFER_DONE'), ''), _CLOSE, Request::getUrl('HTTP_REFERER', '', 'SERVER'));
46
+			$xoopsOption['output_type'] = 'plain';
47
+			include XOOPS_ROOT_PATH . '/footer.php';
48
+			exit();
49
+		} else {
50
+			include XOOPS_ROOT_PATH . '/header.php';
51
+			xoops_error(_NOPERM);
52
+			$xoopsOption['output_type'] = 'plain';
53
+			include XOOPS_ROOT_PATH . '/footer.php';
54
+			exit();
55
+		}
56
+	}
57 57
 }
58 58
 
59 59
 $articleHandler = xoops_getModuleHandler('article', $GLOBALS['moddirname']);
@@ -61,37 +61,37 @@  discard block
 block discarded – undo
61 61
 
62 62
 // Display option form
63 63
 if (empty($op)) {
64
-    $module_variables .= "<input type=\"hidden\" name=\"article\" id=\"article\" value=\"{$article_id}\">";
65
-    include XOOPS_ROOT_PATH . '/Frameworks/transfer/option.transfer.php';
66
-    exit();
64
+	$module_variables .= "<input type=\"hidden\" name=\"article\" id=\"article\" value=\"{$article_id}\">";
65
+	include XOOPS_ROOT_PATH . '/Frameworks/transfer/option.transfer.php';
66
+	exit();
67 67
 } else {
68
-    $data           = [];
69
-    $data['id']     = $article_id;
70
-    $data['title']  = $article_obj->getVar('art_title');
71
-    $data['time']   = $article_obj->getTime('l');
72
-    $data['image']  = '';
73
-    $data['source'] = $article_obj->getVar('art_link');
74
-    $data['url']    = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . $article_obj->getVar('art_id');
75
-    $data['author'] = $article_obj->getVar('art_author');
68
+	$data           = [];
69
+	$data['id']     = $article_id;
70
+	$data['title']  = $article_obj->getVar('art_title');
71
+	$data['time']   = $article_obj->getTime('l');
72
+	$data['image']  = '';
73
+	$data['source'] = $article_obj->getVar('art_link');
74
+	$data['url']    = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . $article_obj->getVar('art_id');
75
+	$data['author'] = $article_obj->getVar('art_author');
76 76
 
77
-    switch ($op) {
77
+	switch ($op) {
78 78
 
79
-        // Use title
80
-        case 'bookmark':
81
-            break;
79
+		// Use title
80
+		case 'bookmark':
81
+			break;
82 82
 
83
-        case 'print':
84
-        case 'pdf':
85
-            ${"{$op}_data"}            =& $data;
86
-            ${"{$op}_data"}['date']    = $pdf_data['time'];
87
-            ${"{$op}_data"}['content'] = $article_obj->getVar('art_content');
88
-            break;
83
+		case 'print':
84
+		case 'pdf':
85
+			${"{$op}_data"}            =& $data;
86
+			${"{$op}_data"}['date']    = $pdf_data['time'];
87
+			${"{$op}_data"}['content'] = $article_obj->getVar('art_content');
88
+			break;
89 89
 
90
-        case 'newbb':
91
-        default:
92
-            $data['content'] = $article_obj->getSummary();
93
-            break;
94
-    }
95
-    include XOOPS_ROOT_PATH . '/Frameworks/transfer/action.transfer.php';
96
-    exit();
90
+		case 'newbb':
91
+		default:
92
+			$data['content'] = $article_obj->getSummary();
93
+			break;
94
+	}
95
+	include XOOPS_ROOT_PATH . '/Frameworks/transfer/action.transfer.php';
96
+	exit();
97 97
 }
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -14,43 +14,43 @@  discard block
 block discarded – undo
14 14
 
15 15
 use Xmf\Request;
16 16
 
17
-include __DIR__ . '/header.php';
17
+include __DIR__.'/header.php';
18 18
 
19 19
 if (PlanetUtility::planetParseArguments($args_num, $args, $args_str)) {
20 20
     $args['article'] = @$args_num[0];
21 21
     $args['op']      = @$args_str[0];
22 22
 }
23 23
 
24
-$article_id = Request::getInt('article', Request::getInt('article', @$args['article'], 'POST'), 'GET');//(int)(empty($_GET['article']) ? (empty($_POST['article']) ? @$args['article'] : $_POST['article']) : $_GET['article']);
24
+$article_id = Request::getInt('article', Request::getInt('article', @$args['article'], 'POST'), 'GET'); //(int)(empty($_GET['article']) ? (empty($_POST['article']) ? @$args['article'] : $_POST['article']) : $_GET['article']);
25 25
 
26
-$op = Request::getString('op', Request::getString('op', @$args['op'], 'POST'), 'GET');//empty($_GET['op']) ? (empty($_POST['op']) ? @$args['op'] : $_POST['op']) : $_GET['op'];
26
+$op = Request::getString('op', Request::getString('op', @$args['op'], 'POST'), 'GET'); //empty($_GET['op']) ? (empty($_POST['op']) ? @$args['op'] : $_POST['op']) : $_GET['op'];
27 27
 $op = strtolower(trim($op));
28 28
 
29 29
 if (empty($article_id)) {
30 30
     if (empty(Request::getUrl('HTTP_REFERER', '', 'SERVER'))) {
31 31
         //$_SERVER['HTTP_REFERER']))
32 32
 
33
-        include XOOPS_ROOT_PATH . '/header.php';
33
+        include XOOPS_ROOT_PATH.'/header.php';
34 34
         xoops_error(_NOPERM);
35 35
         $xoopsOption['output_type'] = 'plain';
36
-        include XOOPS_ROOT_PATH . '/footer.php';
36
+        include XOOPS_ROOT_PATH.'/footer.php';
37 37
         exit();
38
-    } else {
38
+    }else {
39 39
         $ref_parser = parse_url(Request::getUrl('HTTP_REFERER', '', 'SERVER')); //$_SERVER['HTTP_REFERER']);
40
-        $uri_parser = parse_url(Request::getUrl('REQUEST_URI', '', 'SERVER'));// $_SERVER['REQUEST_URI']);
40
+        $uri_parser = parse_url(Request::getUrl('REQUEST_URI', '', 'SERVER')); // $_SERVER['REQUEST_URI']);
41 41
         if ((!empty($ref_parser['host']) && !empty($uri_parser['host']) && $uri_parser['host'] != $ref_parser['host'])
42 42
             || ($ref_parser['path'] != $uri_parser['path'])) {
43
-            include XOOPS_ROOT_PATH . '/header.php';
44
-            include XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php';
43
+            include XOOPS_ROOT_PATH.'/header.php';
44
+            include XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/include/vars.php';
45 45
             xoops_confirm([], 'javascript: window.close();', sprintf(planet_constant('MD_TRANSFER_DONE'), ''), _CLOSE, Request::getUrl('HTTP_REFERER', '', 'SERVER'));
46 46
             $xoopsOption['output_type'] = 'plain';
47
-            include XOOPS_ROOT_PATH . '/footer.php';
47
+            include XOOPS_ROOT_PATH.'/footer.php';
48 48
             exit();
49
-        } else {
50
-            include XOOPS_ROOT_PATH . '/header.php';
49
+        }else {
50
+            include XOOPS_ROOT_PATH.'/header.php';
51 51
             xoops_error(_NOPERM);
52 52
             $xoopsOption['output_type'] = 'plain';
53
-            include XOOPS_ROOT_PATH . '/footer.php';
53
+            include XOOPS_ROOT_PATH.'/footer.php';
54 54
             exit();
55 55
         }
56 56
     }
@@ -62,16 +62,16 @@  discard block
 block discarded – undo
62 62
 // Display option form
63 63
 if (empty($op)) {
64 64
     $module_variables .= "<input type=\"hidden\" name=\"article\" id=\"article\" value=\"{$article_id}\">";
65
-    include XOOPS_ROOT_PATH . '/Frameworks/transfer/option.transfer.php';
65
+    include XOOPS_ROOT_PATH.'/Frameworks/transfer/option.transfer.php';
66 66
     exit();
67
-} else {
67
+}else {
68 68
     $data           = [];
69 69
     $data['id']     = $article_id;
70 70
     $data['title']  = $article_obj->getVar('art_title');
71 71
     $data['time']   = $article_obj->getTime('l');
72 72
     $data['image']  = '';
73 73
     $data['source'] = $article_obj->getVar('art_link');
74
-    $data['url']    = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . $article_obj->getVar('art_id');
74
+    $data['url']    = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/view.article.php'.URL_DELIMITER.''.$article_obj->getVar('art_id');
75 75
     $data['author'] = $article_obj->getVar('art_author');
76 76
 
77 77
     switch ($op) {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
         case 'print':
84 84
         case 'pdf':
85
-            ${"{$op}_data"}            =& $data;
85
+            ${"{$op}_data"}            = & $data;
86 86
             ${"{$op}_data"}['date']    = $pdf_data['time'];
87 87
             ${"{$op}_data"}['content'] = $article_obj->getVar('art_content');
88 88
             break;
@@ -92,6 +92,6 @@  discard block
 block discarded – undo
92 92
             $data['content'] = $article_obj->getSummary();
93 93
             break;
94 94
     }
95
-    include XOOPS_ROOT_PATH . '/Frameworks/transfer/action.transfer.php';
95
+    include XOOPS_ROOT_PATH.'/Frameworks/transfer/action.transfer.php';
96 96
     exit();
97 97
 }
Please login to merge, or discard this patch.
xoops_version.php 2 patches
Indentation   +127 added lines, -127 removed lines patch added patch discarded remove patch
@@ -30,16 +30,16 @@  discard block
 block discarded – undo
30 30
 include __DIR__ . '/include/vars.php';
31 31
 
32 32
 $modversion                 = [
33
-    'name'          => planet_constant('MI_NAME'),
34
-    'version'       => 2.10,
35
-    'module_status' => 'Final',
36
-    'release_date'  => '2016/08/01',
37
-    'description'   => planet_constant('MI_DESC'),
38
-    'author'        => 'D.J. (phppp)',
39
-    'credits'       => 'XOOPS Project',
40
-    'image'         => 'assets/images/logoModule.png',
41
-    'dirname'       => $GLOBALS['moddirname'],
42
-    'help'          => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
33
+	'name'          => planet_constant('MI_NAME'),
34
+	'version'       => 2.10,
35
+	'module_status' => 'Final',
36
+	'release_date'  => '2016/08/01',
37
+	'description'   => planet_constant('MI_DESC'),
38
+	'author'        => 'D.J. (phppp)',
39
+	'credits'       => 'XOOPS Project',
40
+	'image'         => 'assets/images/logoModule.png',
41
+	'dirname'       => $GLOBALS['moddirname'],
42
+	'help'          => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
43 43
 ];
44 44
 $modversion['help']         = 'page=help';
45 45
 $modversion['license']      = 'GNU see LICENSE';
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
 // database tables
63 63
 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
64 64
 $modversion['tables']           = [
65
-    $GLOBALS['MOD_DB_PREFIX'] . '_category',
66
-    $GLOBALS['MOD_DB_PREFIX'] . '_article',
67
-    $GLOBALS['MOD_DB_PREFIX'] . '_blog',
68
-    $GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
69
-    $GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
70
-    $GLOBALS['MOD_DB_PREFIX'] . '_rate'
65
+	$GLOBALS['MOD_DB_PREFIX'] . '_category',
66
+	$GLOBALS['MOD_DB_PREFIX'] . '_article',
67
+	$GLOBALS['MOD_DB_PREFIX'] . '_blog',
68
+	$GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
69
+	$GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
70
+	$GLOBALS['MOD_DB_PREFIX'] . '_rate'
71 71
 ];
72 72
 
73 73
 // Admin things
@@ -149,162 +149,162 @@  discard block
 block discarded – undo
149 149
 // Configs
150 150
 // Config items
151 151
 $modversion['config'][] = [
152
-    'name'        => 'do_debug',
153
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
154
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
155
-    'formtype'    => 'yesno',
156
-    'valuetype'   => 'int',
157
-    'default'     => 1
152
+	'name'        => 'do_debug',
153
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
154
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
155
+	'formtype'    => 'yesno',
156
+	'valuetype'   => 'int',
157
+	'default'     => 1
158 158
 ];
159 159
 
160 160
 $modversion['config'][] = [
161
-    'name'        => 'do_urw',
162
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
163
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
164
-    'formtype'    => 'yesno',
165
-    'valuetype'   => 'int',
166
-    'default'     => in_array(php_sapi_name(), ['apache', 'apache2handler'])
161
+	'name'        => 'do_urw',
162
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
163
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
164
+	'formtype'    => 'yesno',
165
+	'valuetype'   => 'int',
166
+	'default'     => in_array(php_sapi_name(), ['apache', 'apache2handler'])
167 167
 ];
168 168
 
169 169
 $modversion['config'][] = [
170
-    'name'        => 'theme_set',
171
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
172
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
173
-    'formtype'    => 'select',
174
-    'valuetype'   => 'text',
175
-    'options'     => [_NONE => '0'],
176
-    'default'     => ''
170
+	'name'        => 'theme_set',
171
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
172
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
173
+	'formtype'    => 'select',
174
+	'valuetype'   => 'text',
175
+	'options'     => [_NONE => '0'],
176
+	'default'     => ''
177 177
 ];
178 178
 
179 179
 $modversion['config'][] = [
180
-    'name'        => 'timeformat',
181
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
182
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
183
-    'formtype'    => 'select',
184
-    'valuetype'   => 'text',
185
-    'options'     => [
186
-        _DATESTRING                                       => 'l',
187
-        _MEDIUMDATESTRING                                 => 'm',
188
-        _SHORTDATESTRING                                  => 's',
189
-        $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
190
-    ],
191
-    'default'     => 'c'
180
+	'name'        => 'timeformat',
181
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
182
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
183
+	'formtype'    => 'select',
184
+	'valuetype'   => 'text',
185
+	'options'     => [
186
+		_DATESTRING                                       => 'l',
187
+		_MEDIUMDATESTRING                                 => 'm',
188
+		_SHORTDATESTRING                                  => 's',
189
+		$GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
190
+	],
191
+	'default'     => 'c'
192 192
 ];
193 193
 
194 194
 $modversion['config'][] = [
195
-    'name'        => 'articles_perpage',
196
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
197
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
198
-    'formtype'    => 'textbox',
199
-    'valuetype'   => 'int',
200
-    'default'     => 10
195
+	'name'        => 'articles_perpage',
196
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
197
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
198
+	'formtype'    => 'textbox',
199
+	'valuetype'   => 'int',
200
+	'default'     => 10
201 201
 ];
202 202
 
203 203
 $modversion['config'][] = [
204
-    'name'        => 'list_perpage',
205
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
206
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
207
-    'formtype'    => 'textbox',
208
-    'valuetype'   => 'int',
209
-    'default'     => 20
204
+	'name'        => 'list_perpage',
205
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
206
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
207
+	'formtype'    => 'textbox',
208
+	'valuetype'   => 'int',
209
+	'default'     => 20
210 210
 ];
211 211
 
212 212
 $modversion['config'][] = [
213
-    'name'        => 'blogs_perupdate',
214
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
215
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
216
-    'formtype'    => 'textbox',
217
-    'valuetype'   => 'int',
218
-    'default'     => 10
213
+	'name'        => 'blogs_perupdate',
214
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
215
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
216
+	'formtype'    => 'textbox',
217
+	'valuetype'   => 'int',
218
+	'default'     => 10
219 219
 ];
220 220
 
221 221
 $modversion['config'][] = [
222
-    'name'        => 'article_expire',
223
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
224
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
225
-    'formtype'    => 'textbox',
226
-    'valuetype'   => 'int',
227
-    'default'     => 30
222
+	'name'        => 'article_expire',
223
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
224
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
225
+	'formtype'    => 'textbox',
226
+	'valuetype'   => 'int',
227
+	'default'     => 30
228 228
 ];
229 229
 
230 230
 $modversion['config'][] = [
231
-    'name'        => 'display_summary',
232
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
233
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
234
-    'formtype'    => 'textbox',
235
-    'valuetype'   => 'int',
236
-    'default'     => 0
231
+	'name'        => 'display_summary',
232
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
233
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
234
+	'formtype'    => 'textbox',
235
+	'valuetype'   => 'int',
236
+	'default'     => 0
237 237
 ];
238 238
 
239 239
 $modversion['config'][] = [
240
-    'name'        => 'do_sibling',
241
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
242
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
243
-    'formtype'    => 'yesno',
244
-    'valuetype'   => 'int',
245
-    'default'     => 1
240
+	'name'        => 'do_sibling',
241
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
242
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
243
+	'formtype'    => 'yesno',
244
+	'valuetype'   => 'int',
245
+	'default'     => 1
246 246
 ];
247 247
 
248 248
 $modversion['config'][] = [
249
-    'name'        => 'pings',
250
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
251
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
252
-    'formtype'    => 'textarea',
253
-    'valuetype'   => 'text',
254
-    'default'     => ''
249
+	'name'        => 'pings',
250
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
251
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
252
+	'formtype'    => 'textarea',
253
+	'valuetype'   => 'text',
254
+	'default'     => ''
255 255
 ];
256 256
 
257 257
 $modversion['config'][] = [
258
-    'name'        => 'trackback_option',
259
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
260
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
261
-    'formtype'    => 'select',
262
-    'valuetype'   => 'int',
263
-    'default'     => 0,
264
-    'options'     => [planet_constant('MI_MODERATION') => 0, _ALL => 1, _NONE => 2]
258
+	'name'        => 'trackback_option',
259
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
260
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
261
+	'formtype'    => 'select',
262
+	'valuetype'   => 'int',
263
+	'default'     => 0,
264
+	'options'     => [planet_constant('MI_MODERATION') => 0, _ALL => 1, _NONE => 2]
265 265
 ];
266 266
 
267 267
 $modversion['config'][] = [
268
-    'name'        => 'copyright',
269
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
270
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
271
-    'formtype'    => 'textbox',
272
-    'valuetype'   => 'text',
273
-    'default'     => 'Copyright&copy; %s & ' . $xoopsConfig['sitename']
268
+	'name'        => 'copyright',
269
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
270
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
271
+	'formtype'    => 'textbox',
272
+	'valuetype'   => 'text',
273
+	'default'     => 'Copyright&copy; %s & ' . $xoopsConfig['sitename']
274 274
 ];
275 275
 
276 276
 $modversion['config'][] = [
277
-    'name'        => 'newblog_submit',
278
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
279
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
280
-    'formtype'    => 'select',
281
-    'valuetype'   => 'int',
282
-    'default'     => 2,
283
-    'options'     => [
284
-        _NONE                            => 0,
285
-        planet_constant('MI_MODERATION') => 1,
286
-        planet_constant('MI_MEMBER')     => 2,
287
-        _ALL                             => 3
288
-    ]
289
-    // 0 - Only admin; 1 - all but need approval; 2 - members auto approved; 3 - all
277
+	'name'        => 'newblog_submit',
278
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
279
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
280
+	'formtype'    => 'select',
281
+	'valuetype'   => 'int',
282
+	'default'     => 2,
283
+	'options'     => [
284
+		_NONE                            => 0,
285
+		planet_constant('MI_MODERATION') => 1,
286
+		planet_constant('MI_MEMBER')     => 2,
287
+		_ALL                             => 3
288
+	]
289
+	// 0 - Only admin; 1 - all but need approval; 2 - members auto approved; 3 - all
290 290
 ];
291 291
 
292 292
 $modversion['config'][] = [
293
-    'name'        => 'anonymous_rate',
294
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
295
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
296
-    'formtype'    => 'yesno',
297
-    'valuetype'   => 'int',
298
-    'default'     => 0
293
+	'name'        => 'anonymous_rate',
294
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
295
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
296
+	'formtype'    => 'yesno',
297
+	'valuetype'   => 'int',
298
+	'default'     => 0
299 299
 ];
300 300
 
301 301
 $modversion['config'][] = [
302
-    'name'        => 'do_pseudocron',
303
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
304
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
305
-    'formtype'    => 'yesno',
306
-    'valuetype'   => 'int',
307
-    'default'     => 1
302
+	'name'        => 'do_pseudocron',
303
+	'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
304
+	'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
305
+	'formtype'    => 'yesno',
306
+	'valuetype'   => 'int',
307
+	'default'     => 1
308 308
 ];
309 309
 
310 310
 // Notification
Please login to merge, or discard this patch.
Spacing   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
29 29
 
30 30
 
31
-require_once __DIR__ . '/preloads/autoloader.php';
32
-include __DIR__ . '/include/vars.php';
31
+require_once __DIR__.'/preloads/autoloader.php';
32
+include __DIR__.'/include/vars.php';
33 33
 
34
-$modversion                 = [
34
+$modversion = [
35 35
     'name'          => planet_constant('MI_NAME'),
36 36
     'version'       => 2.10,
37 37
     'module_status' => 'Final',
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
     'credits'       => 'XOOPS Project',
42 42
     'image'         => 'assets/images/logoModule.png',
43 43
     'dirname'       => $GLOBALS['moddirname'],
44
-    'help'          => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/readme.html'
44
+    'help'          => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/readme.html'
45 45
 ];
46 46
 $modversion['help']         = 'page=help';
47 47
 $modversion['license']      = 'GNU see LICENSE';
48
-$modversion['license_file'] = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/gpl.txt';
48
+$modversion['license_file'] = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/gpl.txt';
49 49
 $modversion['author_word']  = '';
50 50
 $modversion['module_team']  = '';
51 51
 
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
 // database tables
65 65
 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
66 66
 $modversion['tables']           = [
67
-    $GLOBALS['MOD_DB_PREFIX'] . '_category',
68
-    $GLOBALS['MOD_DB_PREFIX'] . '_article',
69
-    $GLOBALS['MOD_DB_PREFIX'] . '_blog',
70
-    $GLOBALS['MOD_DB_PREFIX'] . '_blogcat',
71
-    $GLOBALS['MOD_DB_PREFIX'] . '_bookmark',
72
-    $GLOBALS['MOD_DB_PREFIX'] . '_rate'
67
+    $GLOBALS['MOD_DB_PREFIX'].'_category',
68
+    $GLOBALS['MOD_DB_PREFIX'].'_article',
69
+    $GLOBALS['MOD_DB_PREFIX'].'_blog',
70
+    $GLOBALS['MOD_DB_PREFIX'].'_blogcat',
71
+    $GLOBALS['MOD_DB_PREFIX'].'_bookmark',
72
+    $GLOBALS['MOD_DB_PREFIX'].'_rate'
73 73
 ];
74 74
 
75 75
 // Admin things
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
 /**
96 96
  * Templates
97 97
  */
98
-$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'] . '_index.tpl', 'description' => ''];
99
-$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'] . '_article.tpl', 'description' => ''];
100
-$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'] . '_archive.tpl', 'description' => ''];
101
-$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'] . '_blogs.tpl', 'description' => ''];
102
-$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'] . '_search.tpl', 'description' => ''];
98
+$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'].'_index.tpl', 'description' => ''];
99
+$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'].'_article.tpl', 'description' => ''];
100
+$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'].'_archive.tpl', 'description' => ''];
101
+$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'].'_blogs.tpl', 'description' => ''];
102
+$modversion['templates'][] = ['file' => $GLOBALS['VAR_PREFIX'].'_search.tpl', 'description' => ''];
103 103
 
104 104
 //module css
105 105
 $modversion['css'] = 'templates/style.css';
@@ -111,31 +111,31 @@  discard block
 block discarded – undo
111 111
 $modversion['blocks'][$i]['file']        = 'block.php';
112 112
 $modversion['blocks'][$i]['name']        = planet_constant('MI_ARTICLE');
113 113
 $modversion['blocks'][$i]['description'] = planet_constant('MI_ARTICLE_DESC');
114
-$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'] . '_article_show';
114
+$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'].'_article_show';
115 115
 $modversion['blocks'][$i]['options']     = 'time|10|0|0'; // type|MaxItems|TitleLength|SummaryLength
116
-$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'] . '_article_edit';
117
-$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'] . '_block_article.tpl';
116
+$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'].'_article_edit';
117
+$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'].'_block_article.tpl';
118 118
 
119 119
 ++$i;
120 120
 $modversion['blocks'][$i]['file']        = 'block.php';
121 121
 $modversion['blocks'][$i]['name']        = planet_constant('MI_CATEGORY');
122 122
 $modversion['blocks'][$i]['description'] = planet_constant('MI_CATEGORY_DESC');
123
-$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'] . '_category_show';
124
-$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'] . '_block_category.tpl';
123
+$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'].'_category_show';
124
+$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'].'_block_category.tpl';
125 125
 
126 126
 ++$i;
127 127
 $modversion['blocks'][$i]['file']        = 'block.php';
128 128
 $modversion['blocks'][$i]['name']        = planet_constant('MI_BLOG');
129 129
 $modversion['blocks'][$i]['description'] = planet_constant('MI_BLOG_DESC');
130
-$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'] . '_blog_show';
130
+$modversion['blocks'][$i]['show_func']   = $GLOBALS['VAR_PREFIX'].'_blog_show';
131 131
 $modversion['blocks'][$i]['options']     = 'feature|10|0|1'; // type|MaxItems|TitleLength|ShowDesc
132
-$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'] . '_blog_edit';
133
-$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'] . '_block_blog.tpl';
132
+$modversion['blocks'][$i]['edit_func']   = $GLOBALS['VAR_PREFIX'].'_blog_edit';
133
+$modversion['blocks'][$i]['template']    = $GLOBALS['VAR_PREFIX'].'_block_blog.tpl';
134 134
 
135 135
 // Search
136 136
 $modversion['hasSearch']      = 1;
137 137
 $modversion['search']['file'] = 'include/search.inc.php';
138
-$modversion['search']['func'] = $GLOBALS['VAR_PREFIX'] . '_search';
138
+$modversion['search']['func'] = $GLOBALS['VAR_PREFIX'].'_search';
139 139
 
140 140
 // Comments
141 141
 $modversion['hasComments'] = 1;
@@ -145,15 +145,15 @@  discard block
 block discarded – undo
145 145
 
146 146
 // Comment callback functions
147 147
 $modversion['comments']['callbackFile']        = 'include/comment.inc.php';
148
-$modversion['comments']['callback']['approve'] = $GLOBALS['VAR_PREFIX'] . '_com_approve';
149
-$modversion['comments']['callback']['update']  = $GLOBALS['VAR_PREFIX'] . '_com_update';
148
+$modversion['comments']['callback']['approve'] = $GLOBALS['VAR_PREFIX'].'_com_approve';
149
+$modversion['comments']['callback']['update']  = $GLOBALS['VAR_PREFIX'].'_com_update';
150 150
 
151 151
 // Configs
152 152
 // Config items
153 153
 $modversion['config'][] = [
154 154
     'name'        => 'do_debug',
155
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG',
156
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC',
155
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DODEBUG',
156
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DODEBUG_DESC',
157 157
     'formtype'    => 'yesno',
158 158
     'valuetype'   => 'int',
159 159
     'default'     => 1
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
 
162 162
 $modversion['config'][] = [
163 163
     'name'        => 'do_urw',
164
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE',
165
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC',
164
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DOURLREWRITE',
165
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DOURLREWRITE_DESC',
166 166
     'formtype'    => 'yesno',
167 167
     'valuetype'   => 'int',
168 168
     'default'     => in_array(php_sapi_name(), ['apache', 'apache2handler'])
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
 
171 171
 $modversion['config'][] = [
172 172
     'name'        => 'theme_set',
173
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET',
174
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC',
173
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_THEMESET',
174
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_THEMESET_DESC',
175 175
     'formtype'    => 'select',
176 176
     'valuetype'   => 'text',
177 177
     'options'     => [_NONE => '0'],
@@ -180,23 +180,23 @@  discard block
 block discarded – undo
180 180
 
181 181
 $modversion['config'][] = [
182 182
     'name'        => 'timeformat',
183
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT',
184
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC',
183
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT',
184
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT_DESC',
185 185
     'formtype'    => 'select',
186 186
     'valuetype'   => 'text',
187 187
     'options'     => [
188 188
         _DATESTRING                                       => 'l',
189 189
         _MEDIUMDATESTRING                                 => 'm',
190 190
         _SHORTDATESTRING                                  => 's',
191
-        $GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM' => 'c'
191
+        $GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT_CUSTOM' => 'c'
192 192
     ],
193 193
     'default'     => 'c'
194 194
 ];
195 195
 
196 196
 $modversion['config'][] = [
197 197
     'name'        => 'articles_perpage',
198
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE',
199
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC',
198
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLESPERPAGE',
199
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLESPERPAGE_DESC',
200 200
     'formtype'    => 'textbox',
201 201
     'valuetype'   => 'int',
202 202
     'default'     => 10
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
 
205 205
 $modversion['config'][] = [
206 206
     'name'        => 'list_perpage',
207
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE',
208
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC',
207
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_LISTPERPAGE',
208
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_LISTPERPAGE_DESC',
209 209
     'formtype'    => 'textbox',
210 210
     'valuetype'   => 'int',
211 211
     'default'     => 20
@@ -213,8 +213,8 @@  discard block
 block discarded – undo
213 213
 
214 214
 $modversion['config'][] = [
215 215
     'name'        => 'blogs_perupdate',
216
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE',
217
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC',
216
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_BLOGSPERUPDATE',
217
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_BLOGSPERUPDATE_DESC',
218 218
     'formtype'    => 'textbox',
219 219
     'valuetype'   => 'int',
220 220
     'default'     => 10
@@ -222,8 +222,8 @@  discard block
 block discarded – undo
222 222
 
223 223
 $modversion['config'][] = [
224 224
     'name'        => 'article_expire',
225
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE',
226
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC',
225
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_EXPIRE',
226
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_EXPIRE_DESC',
227 227
     'formtype'    => 'textbox',
228 228
     'valuetype'   => 'int',
229 229
     'default'     => 30
@@ -231,8 +231,8 @@  discard block
 block discarded – undo
231 231
 
232 232
 $modversion['config'][] = [
233 233
     'name'        => 'display_summary',
234
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY',
235
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC',
234
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DISPLAY_SUMMARY',
235
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DISPLAY_SUMMARY_DESC',
236 236
     'formtype'    => 'textbox',
237 237
     'valuetype'   => 'int',
238 238
     'default'     => 0
@@ -240,8 +240,8 @@  discard block
 block discarded – undo
240 240
 
241 241
 $modversion['config'][] = [
242 242
     'name'        => 'do_sibling',
243
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING',
244
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC',
243
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_DOSIBLING',
244
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_DOSIBLING_DESC',
245 245
     'formtype'    => 'yesno',
246 246
     'valuetype'   => 'int',
247 247
     'default'     => 1
@@ -249,8 +249,8 @@  discard block
 block discarded – undo
249 249
 
250 250
 $modversion['config'][] = [
251 251
     'name'        => 'pings',
252
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PING',
253
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC',
252
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_PING',
253
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_PING_DESC',
254 254
     'formtype'    => 'textarea',
255 255
     'valuetype'   => 'text',
256 256
     'default'     => ''
@@ -258,8 +258,8 @@  discard block
 block discarded – undo
258 258
 
259 259
 $modversion['config'][] = [
260 260
     'name'        => 'trackback_option',
261
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION',
262
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC',
261
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_TRACKBACK_OPTION',
262
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_TRACKBACK_OPTION_DESC',
263 263
     'formtype'    => 'select',
264 264
     'valuetype'   => 'int',
265 265
     'default'     => 0,
@@ -268,17 +268,17 @@  discard block
 block discarded – undo
268 268
 
269 269
 $modversion['config'][] = [
270 270
     'name'        => 'copyright',
271
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT',
272
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC',
271
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_COPYRIGHT',
272
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_COPYRIGHT_DESC',
273 273
     'formtype'    => 'textbox',
274 274
     'valuetype'   => 'text',
275
-    'default'     => 'Copyright&copy; %s & ' . $xoopsConfig['sitename']
275
+    'default'     => 'Copyright&copy; %s & '.$xoopsConfig['sitename']
276 276
 ];
277 277
 
278 278
 $modversion['config'][] = [
279 279
     'name'        => 'newblog_submit',
280
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT',
281
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC',
280
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_NEWBLOG_SUBMIT',
281
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_NEWBLOG_SUBMIT_DESC',
282 282
     'formtype'    => 'select',
283 283
     'valuetype'   => 'int',
284 284
     'default'     => 2,
@@ -293,8 +293,8 @@  discard block
 block discarded – undo
293 293
 
294 294
 $modversion['config'][] = [
295 295
     'name'        => 'anonymous_rate',
296
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE',
297
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC',
296
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_ANONYMOUSRATE',
297
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_ANONYMOUSRATE_DESC',
298 298
     'formtype'    => 'yesno',
299 299
     'valuetype'   => 'int',
300 300
     'default'     => 0
@@ -302,8 +302,8 @@  discard block
 block discarded – undo
302 302
 
303 303
 $modversion['config'][] = [
304 304
     'name'        => 'do_pseudocron',
305
-    'title'       => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON',
306
-    'description' => $GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC',
305
+    'title'       => $GLOBALS['VAR_PREFIXU'].'_MI_PSEUDOCRON',
306
+    'description' => $GLOBALS['VAR_PREFIXU'].'_MI_PSEUDOCRON_DESC',
307 307
     'formtype'    => 'yesno',
308 308
     'valuetype'   => 'int',
309 309
     'default'     => 1
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 
314 314
 $modversion['hasNotification']             = 1;
315 315
 $modversion['notification']['lookup_file'] = 'include/notification.inc.php';
316
-$modversion['notification']['lookup_func'] = $GLOBALS['VAR_PREFIX'] . '_notify_iteminfo';
316
+$modversion['notification']['lookup_func'] = $GLOBALS['VAR_PREFIX'].'_notify_iteminfo';
317 317
 
318 318
 $i = 0;
319 319
 ++$i;
Please login to merge, or discard this patch.