Completed
Push — master ( 15a86c...ff0242 )
by Michael
03:23
created
include/plugin.transfer.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
16 16
 
17 17
 if (!@include_once XOOPS_ROOT_PATH . '/Frameworks/transfer/transfer.php') {
18
-    return null;
18
+	return null;
19 19
 }
20 20
 
21 21
 // Specify the addons to skip for the module
@@ -28,38 +28,38 @@  discard block
 block discarded – undo
28 28
  */
29 29
 class ModuleTransferHandler extends TransferHandler
30 30
 {
31
-    /**
32
-     * ModuleTransferHandler constructor.
33
-     */
34
-    public function __construct() {
35
-        parent::__construct();
36
-    }
31
+	/**
32
+	 * ModuleTransferHandler constructor.
33
+	 */
34
+	public function __construct() {
35
+		parent::__construct();
36
+	}
37 37
 
38
-    /**
39
-     * Get valid addon list
40
-     *
41
-     * @param array   $skip Addons to skip
42
-     * @param boolean $sort To sort the list upon 'level'
43
-     *                      return  array   $list
44
-     */
45
-    public function &getList($skip = array(), $sort = true) {
46
-        $list = parent::getList($skip, $sort);
38
+	/**
39
+	 * Get valid addon list
40
+	 *
41
+	 * @param array   $skip Addons to skip
42
+	 * @param boolean $sort To sort the list upon 'level'
43
+	 *                      return  array   $list
44
+	 */
45
+	public function &getList($skip = array(), $sort = true) {
46
+		$list = parent::getList($skip, $sort);
47 47
 
48
-        return $list;
49
-    }
48
+		return $list;
49
+	}
50 50
 
51
-    /**
52
-     * If need change config of an item
53
-     * 1 parent::load_item
54
-     * 2 $this->config
55
-     * 3 $this->do_transfer
56
-     * @param $item
57
-     * @param $data
58
-     * @return
59
-     */
60
-    public function do_transfer($item, &$data) {
61
-        $ret = parent::do_transfer($item, $data);
51
+	/**
52
+	 * If need change config of an item
53
+	 * 1 parent::load_item
54
+	 * 2 $this->config
55
+	 * 3 $this->do_transfer
56
+	 * @param $item
57
+	 * @param $data
58
+	 * @return
59
+	 */
60
+	public function do_transfer($item, &$data) {
61
+		$ret = parent::do_transfer($item, $data);
62 62
 
63
-        return $ret;
64
-    }
63
+		return $ret;
64
+	}
65 65
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
16 16
 
17
-if (!@include_once XOOPS_ROOT_PATH . '/Frameworks/transfer/transfer.php') {
17
+if (!@include_once XOOPS_ROOT_PATH.'/Frameworks/transfer/transfer.php') {
18 18
     return null;
19 19
 }
20 20
 
Please login to merge, or discard this patch.
include/functions.ini.php 2 patches
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -32,83 +32,83 @@
 block discarded – undo
32 32
 
33 33
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
34 34
 if (!defined('PLANET_INI')) {
35
-    exit();
35
+	exit();
36 36
 }
37 37
 
38 38
 if (!defined('PLANET_FUNCTIONS_INI')):
39
-    define('PLANET_FUNCTIONS_INI', 1);
39
+	define('PLANET_FUNCTIONS_INI', 1);
40 40
 
41
-    /**
42
-     * @param $name
43
-     * @return mixed
44
-     */
45
-    function planet_constant($name) {
46
-        return mod_constant($name);
47
-    }
41
+	/**
42
+	 * @param $name
43
+	 * @return mixed
44
+	 */
45
+	function planet_constant($name) {
46
+		return mod_constant($name);
47
+	}
48 48
 
49
-    /**
50
-     * @param      $name
51
-     * @param bool $isRel
52
-     * @return string
53
-     */
54
-    function planet_DB_prefix($name, $isRel = false) {
55
-        return mod_DB_prefix($name, $isRel);
56
-    }
49
+	/**
50
+	 * @param      $name
51
+	 * @param bool $isRel
52
+	 * @return string
53
+	 */
54
+	function planet_DB_prefix($name, $isRel = false) {
55
+		return mod_DB_prefix($name, $isRel);
56
+	}
57 57
 
58
-    /**
59
-     * @return bool
60
-     */
61
-    function planet_load_object() {
62
-        return load_object();
63
-    }
58
+	/**
59
+	 * @return bool
60
+	 */
61
+	function planet_load_object() {
62
+		return load_object();
63
+	}
64 64
 
65
-    /**
66
-     * @return array|mixed
67
-     */
68
-    function planet_load_config() {
69
-        static $moduleConfig;
70
-        if (isset($moduleConfig)) {
71
-            return $moduleConfig;
72
-        }
65
+	/**
66
+	 * @return array|mixed
67
+	 */
68
+	function planet_load_config() {
69
+		static $moduleConfig;
70
+		if (isset($moduleConfig)) {
71
+			return $moduleConfig;
72
+		}
73 73
 
74
-        if (is_object($GLOBALS['xoopsModule'])
75
-            && $GLOBALS['xoopsModule']->getVar('dirname') == $GLOBALS['moddirname']
76
-        ) {
77
-            if (isset($GLOBALS['xoopsModuleConfig'])) {
78
-                $moduleConfig = $GLOBALS['xoopsModuleConfig'];
79
-            }
80
-        } else {
81
-            $moduleHandler = xoops_getHandler('module');
82
-            $module        = $moduleHandler->getByDirname($GLOBALS['moddirname']);
74
+		if (is_object($GLOBALS['xoopsModule'])
75
+			&& $GLOBALS['xoopsModule']->getVar('dirname') == $GLOBALS['moddirname']
76
+		) {
77
+			if (isset($GLOBALS['xoopsModuleConfig'])) {
78
+				$moduleConfig = $GLOBALS['xoopsModuleConfig'];
79
+			}
80
+		} else {
81
+			$moduleHandler = xoops_getHandler('module');
82
+			$module        = $moduleHandler->getByDirname($GLOBALS['moddirname']);
83 83
 
84
-            $config_handler = xoops_getHandler('config');
85
-            $criteria       = new CriteriaCompo(new Criteria('conf_modid', $module->getVar('mid')));
86
-            $configs        = $config_handler->getConfigs($criteria);
87
-            foreach (array_keys($configs) as $i) {
88
-                $moduleConfig[$configs[$i]->getVar('conf_name')] = $configs[$i]->getConfValueForOutput();
89
-            }
90
-            unset($configs);
91
-        }
92
-        if ($customConfig = @include XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/plugin.php') {
93
-            $moduleConfig = array_merge($moduleConfig, $customConfig);
94
-        }
84
+			$config_handler = xoops_getHandler('config');
85
+			$criteria       = new CriteriaCompo(new Criteria('conf_modid', $module->getVar('mid')));
86
+			$configs        = $config_handler->getConfigs($criteria);
87
+			foreach (array_keys($configs) as $i) {
88
+				$moduleConfig[$configs[$i]->getVar('conf_name')] = $configs[$i]->getConfValueForOutput();
89
+			}
90
+			unset($configs);
91
+		}
92
+		if ($customConfig = @include XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/plugin.php') {
93
+			$moduleConfig = array_merge($moduleConfig, $customConfig);
94
+		}
95 95
 
96
-        return $moduleConfig;
97
-    }
96
+		return $moduleConfig;
97
+	}
98 98
 
99
-    function planet_define_url_delimiter() {
100
-        if (defined('URL_DELIMITER')) {
101
-            if (!in_array(URL_DELIMITER, array('?', '/'))) {
102
-                die('Exit on security');
103
-            }
104
-        } else {
105
-            $moduleConfig = planet_load_config();
106
-            if (empty($moduleConfig['do_urw'])) {
107
-                define('URL_DELIMITER', '?');
108
-            } else {
109
-                define('URL_DELIMITER', '/');
110
-            }
111
-        }
112
-    }
99
+	function planet_define_url_delimiter() {
100
+		if (defined('URL_DELIMITER')) {
101
+			if (!in_array(URL_DELIMITER, array('?', '/'))) {
102
+				die('Exit on security');
103
+			}
104
+		} else {
105
+			$moduleConfig = planet_load_config();
106
+			if (empty($moduleConfig['do_urw'])) {
107
+				define('URL_DELIMITER', '?');
108
+			} else {
109
+				define('URL_DELIMITER', '/');
110
+			}
111
+		}
112
+	}
113 113
 
114 114
 endif;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             if (isset($GLOBALS['xoopsModuleConfig'])) {
78 78
                 $moduleConfig = $GLOBALS['xoopsModuleConfig'];
79 79
             }
80
-        } else {
80
+        }else {
81 81
             $moduleHandler = xoops_getHandler('module');
82 82
             $module        = $moduleHandler->getByDirname($GLOBALS['moddirname']);
83 83
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             }
90 90
             unset($configs);
91 91
         }
92
-        if ($customConfig = @include XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/plugin.php') {
92
+        if ($customConfig = @include XOOPS_ROOT_PATH.'/modules/'.$GLOBALS['moddirname'].'/include/plugin.php') {
93 93
             $moduleConfig = array_merge($moduleConfig, $customConfig);
94 94
         }
95 95
 
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
             if (!in_array(URL_DELIMITER, array('?', '/'))) {
102 102
                 die('Exit on security');
103 103
             }
104
-        } else {
104
+        }else {
105 105
             $moduleConfig = planet_load_config();
106 106
             if (empty($moduleConfig['do_urw'])) {
107 107
                 define('URL_DELIMITER', '?');
108
-            } else {
108
+            }else {
109 109
                 define('URL_DELIMITER', '/');
110 110
             }
111 111
         }
Please login to merge, or discard this patch.
include/vars.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 // ------------------------------------------------------------------------ //
27 27
 
28 28
 if (!defined('PLANET_INI')) {
29
-    define('PLANET_INI', 1);
29
+	define('PLANET_INI', 1);
30 30
 }
31 31
 
32 32
 /*
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 // include customized variables
56 56
 if (is_object($GLOBALS['xoopsModule']) && $GLOBALS['moddirname'] == $GLOBALS['xoopsModule']->getVar('dirname', 'n')) {
57
-    $GLOBALS['xoopsModuleConfig'] = planet_load_config();
57
+	$GLOBALS['xoopsModuleConfig'] = planet_load_config();
58 58
 }
59 59
 
60 60
 planet_load_object();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 $GLOBALS['MOD_DB_PREFIX'] = 'planet';
37 37
 
38 38
 /* You are not supposed to modify following contents */
39
-defined('FRAMEWORKS_ART_FUNCTIONS_INI') || require_once XOOPS_ROOT_PATH . '/Frameworks/art/functions.ini.php';
39
+defined('FRAMEWORKS_ART_FUNCTIONS_INI') || require_once XOOPS_ROOT_PATH.'/Frameworks/art/functions.ini.php';
40 40
 $GLOBALS['moddirname'] = mod_getDirname(__FILE__);
41 41
 
42 42
 /*
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
  * You can chnage to any term but be capital and unique, no conflict with other modules
51 51
  */
52 52
 $GLOBALS['VAR_PREFIXU'] = strtoupper($GLOBALS['moddirname']);
53
-require_once XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/functions.ini.php';
53
+require_once XOOPS_ROOT_PATH.'/modules/'.$GLOBALS['moddirname'].'/include/functions.ini.php';
54 54
 
55 55
 // include customized variables
56 56
 if (is_object($GLOBALS['xoopsModule']) && $GLOBALS['moddirname'] == $GLOBALS['xoopsModule']->getVar('dirname', 'n')) {
Please login to merge, or discard this patch.
include/form.blog.php 2 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -32,47 +32,47 @@  discard block
 block discarded – undo
32 32
 $form = new XoopsThemeForm(_EDIT, 'formblog', xoops_getenv('PHP_SELF'), 'POST', true);
33 33
 
34 34
 $form->addElement(new XoopsFormText(planet_constant('MD_FEED'), 'blog_feed', 50, 255,
35
-                                    $blog_obj->getVar('blog_feed', 'E')), true);
35
+									$blog_obj->getVar('blog_feed', 'E')), true);
36 36
 $form->addElement(new XoopsFormText(planet_constant('MD_TITLE'), 'blog_title', 50, 255,
37
-                                    $blog_obj->getVar('blog_title', 'E')));
37
+									$blog_obj->getVar('blog_title', 'E')));
38 38
 $form->addElement(new XoopsFormText(planet_constant('MD_DESC'), 'blog_desc', 50, 255,
39
-                                    $blog_obj->getVar('blog_desc', 'E')));
39
+									$blog_obj->getVar('blog_desc', 'E')));
40 40
 $form->addElement(new XoopsFormText(planet_constant('MD_LINK'), 'blog_link', 50, 255,
41
-                                    $blog_obj->getVar('blog_link', 'E')));
41
+									$blog_obj->getVar('blog_link', 'E')));
42 42
 $form->addElement(new XoopsFormText(planet_constant('MD_LANGUAGE'), 'blog_language', 50, 255,
43
-                                    $blog_obj->getVar('blog_language', 'E')));
43
+									$blog_obj->getVar('blog_language', 'E')));
44 44
 $form->addElement(new XoopsFormText(planet_constant('MD_CHARSET'), 'blog_charset', 50, 255,
45
-                                    $blog_obj->getVar('blog_charset', 'E')));
45
+									$blog_obj->getVar('blog_charset', 'E')));
46 46
 $form->addElement(new XoopsFormText(planet_constant('MD_TRACKBACKPATTERN'), 'blog_trackback', 80, 255,
47
-                                    $blog_obj->getVar('blog_trackback', 'E')));
47
+									$blog_obj->getVar('blog_trackback', 'E')));
48 48
 $form->addElement(new XoopsFormText(planet_constant('MD_IMAGE'), 'blog_image', 50, 255,
49
-                                    $blog_obj->getVar('blog_image', 'E')));
49
+									$blog_obj->getVar('blog_image', 'E')));
50 50
 
51 51
 $categories_option = $category_handler->getList();
52 52
 natsort($categories_option);
53 53
 if (count($categories_option)) {
54
-    $cat_option_tray = new XoopsFormElementTray(planet_constant('MD_CATEGORY'), '<br>');
55
-    $options         = array(0 => _NONE);
56
-    foreach ($categories_option as $id => $title) {
57
-        $options[$id] = $title;
58
-    }
59
-    $cat_select = new XoopsFormSelect('', 'categories', $categories, 3, true);
60
-    $cat_select->addOptionArray($options);
61
-    $cat_option_tray->addElement($cat_select);
62
-    $form->addElement($cat_option_tray);
54
+	$cat_option_tray = new XoopsFormElementTray(planet_constant('MD_CATEGORY'), '<br>');
55
+	$options         = array(0 => _NONE);
56
+	foreach ($categories_option as $id => $title) {
57
+		$options[$id] = $title;
58
+	}
59
+	$cat_select = new XoopsFormSelect('', 'categories', $categories, 3, true);
60
+	$cat_select->addOptionArray($options);
61
+	$cat_option_tray->addElement($cat_select);
62
+	$form->addElement($cat_option_tray);
63 63
 }
64 64
 
65 65
 /* For admin only */
66 66
 if (is_object($xoopsUser) && $xoopsUser->isAdmin()) {
67
-    $status_option_tray = new XoopsFormElementTray(planet_constant('MD_STATUS'), '<br>');
68
-    $status_select      = new XoopsFormSelect('', 'blog_status', $blog_obj->getVar('blog_status'));
69
-    $status_select->addOptionArray(array(
70
-                                       '0' => planet_constant('MD_PENDING'),
71
-                                       '1' => planet_constant('MD_ACTIVE'),
72
-                                       '2' => planet_constant('MD_FEATURED')
73
-                                   ));
74
-    $status_option_tray->addElement($status_select);
75
-    $form->addElement($status_option_tray);
67
+	$status_option_tray = new XoopsFormElementTray(planet_constant('MD_STATUS'), '<br>');
68
+	$status_select      = new XoopsFormSelect('', 'blog_status', $blog_obj->getVar('blog_status'));
69
+	$status_select->addOptionArray(array(
70
+									   '0' => planet_constant('MD_PENDING'),
71
+									   '1' => planet_constant('MD_ACTIVE'),
72
+									   '2' => planet_constant('MD_FEATURED')
73
+								   ));
74
+	$status_option_tray->addElement($status_select);
75
+	$form->addElement($status_option_tray);
76 76
 }
77 77
 
78 78
 $form->addElement(new XoopsFormHidden('blog', $blog_id));
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 $button_tray->addElement($butt_save);
86 86
 $butt_cancel = new XoopsFormButton('', 'cancel', _CANCEL, 'button');
87 87
 $butt_cancel->setExtra("onclick='window.document.location=\"" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname']
88
-                       . '/index.php' . URL_DELIMITER . 'b' . (int)$blog_id . "\"'");
88
+					   . '/index.php' . URL_DELIMITER . 'b' . (int)$blog_id . "\"'");
89 89
 $button_tray->addElement($butt_cancel);
90 90
 $form->addElement($button_tray);
91 91
 $form->display();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 // ------------------------------------------------------------------------ //
27 27
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
28 28
 
29
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
29
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
30 30
 $category_handler = xoops_getModuleHandler('category', $GLOBALS['moddirname']);
31 31
 
32 32
 $form = new XoopsThemeForm(_EDIT, 'formblog', xoops_getenv('PHP_SELF'), 'POST', true);
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
 $butt_save = new XoopsFormButton('', 'submit', _SUBMIT, 'submit');
85 85
 $button_tray->addElement($butt_save);
86 86
 $butt_cancel = new XoopsFormButton('', 'cancel', _CANCEL, 'button');
87
-$butt_cancel->setExtra("onclick='window.document.location=\"" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname']
88
-                       . '/index.php' . URL_DELIMITER . 'b' . (int)$blog_id . "\"'");
87
+$butt_cancel->setExtra("onclick='window.document.location=\"".XOOPS_URL.'/modules/'.$GLOBALS['moddirname']
88
+                       . '/index.php'.URL_DELIMITER.'b'.(int) $blog_id."\"'");
89 89
 $button_tray->addElement($butt_cancel);
90 90
 $form->addElement($button_tray);
91 91
 $form->display();
Please login to merge, or discard this patch.
include/action.module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
29 29
 
30
-include __DIR__ . '/vars.php';
30
+include __DIR__.'/vars.php';
31 31
 mod_loadFunctions('', $GLOBALS['moddirname']);
32 32
 
33 33
 planet_parse_function('
Please login to merge, or discard this patch.
include/search.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
29 29
 
30
-include __DIR__ . '/vars.php';
30
+include __DIR__.'/vars.php';
31 31
 mod_loadFunctions('', $GLOBALS['moddirname']);
32 32
 
33 33
 planet_parse_function('
Please login to merge, or discard this patch.
include/notification.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 //  ------------------------------------------------------------------------ //
27 27
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
28 28
 
29
-include __DIR__ . '/vars.php';
29
+include __DIR__.'/vars.php';
30 30
 mod_loadFunctions('', $GLOBALS['moddirname']);
31 31
 
32 32
 planet_parse_function('
Please login to merge, or discard this patch.
xml.php 2 patches
Indentation   +132 added lines, -132 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 include __DIR__ . '/header.php';
29 29
 
30 30
 if (planet_parse_args($args_num, $args, $args_str)) {
31
-    $args['article'] = @$args_num[0];
32
-    $args['type']    = @$args_str[0];
31
+	$args['article'] = @$args_num[0];
32
+	$args['type']    = @$args_str[0];
33 33
 }
34 34
 
35 35
 /* Specified Article */
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
 
47 47
 $valid_format = array('RSS0.91', 'RSS1.0', 'RSS2.0', 'PIE0.1', 'MBOX', 'OPML', 'ATOM', 'ATOM0.3', 'HTML', 'JS');
48 48
 if ($type === 'RDF') {
49
-    $type = 'RSS1.0';
49
+	$type = 'RSS1.0';
50 50
 }
51 51
 if ($type === 'RSS') {
52
-    $type = 'RSS0.91';
52
+	$type = 'RSS0.91';
53 53
 }
54 54
 if (empty($type) || !in_array($type, $valid_format)) {
55
-    planet_trackback_response(1, planet_constant('MD_INVALID'));
56
-    exit();
55
+	planet_trackback_response(1, planet_constant('MD_INVALID'));
56
+	exit();
57 57
 }
58 58
 
59 59
 $category_handler = xoops_getModuleHandler('category', $GLOBALS['moddirname']);
@@ -62,30 +62,30 @@  discard block
 block discarded – undo
62 62
 $bookmark_handler = xoops_getModuleHandler('bookmark', $GLOBALS['moddirname']);
63 63
 
64 64
 if (!empty($article_id)) {
65
-    $article_obj =& $article_handler->get($article_id);
66
-    if (!$article_obj->getVar('art_id')) {
67
-        planet_trackback_response(1, planet_constant('MD_EXPIRED'));
68
-        exit();
69
-    }
70
-    $source = 'article';
65
+	$article_obj =& $article_handler->get($article_id);
66
+	if (!$article_obj->getVar('art_id')) {
67
+		planet_trackback_response(1, planet_constant('MD_EXPIRED'));
68
+		exit();
69
+	}
70
+	$source = 'article';
71 71
 } elseif (!empty($blog_id)) {
72
-    $blog_obj =& $blog_handler->get($blog_id);
73
-    if (!$blog_obj->getVar('blog_id')) {
74
-        planet_trackback_response(1, planet_constant('MD_INVALID'));
75
-        exit();
76
-    }
77
-    $source = 'blog';
72
+	$blog_obj =& $blog_handler->get($blog_id);
73
+	if (!$blog_obj->getVar('blog_id')) {
74
+		planet_trackback_response(1, planet_constant('MD_INVALID'));
75
+		exit();
76
+	}
77
+	$source = 'blog';
78 78
 } elseif (!empty($category_id)) {
79
-    $source       = 'category';
80
-    $category_obj =& $category_handler->get($category_id);
81
-    if (!$category_obj->getVar('cat_id')) {
82
-        planet_trackback_response(1, planet_constant('MD_INVALID'));
83
-        exit();
84
-    }
79
+	$source       = 'category';
80
+	$category_obj =& $category_handler->get($category_id);
81
+	if (!$category_obj->getVar('cat_id')) {
82
+		planet_trackback_response(1, planet_constant('MD_INVALID'));
83
+		exit();
84
+	}
85 85
 } elseif (!empty($uid)) {
86
-    $source = 'bookmark';
86
+	$source = 'bookmark';
87 87
 } else {
88
-    $source = '';
88
+	$source = '';
89 89
 }
90 90
 
91 91
 $xml_charset = 'UTF-8';
@@ -94,110 +94,110 @@  discard block
 block discarded – undo
94 94
 $tpl->xoops_setCaching(2);
95 95
 $tpl->xoops_setCacheTime(3600);
96 96
 $xoopsCachedTemplateId = md5($xoopsModule->getVar('mid') . ',' . $article_id . ',' . $category_id . ',' . $blog_id . ','
97
-                             . $uid . ',' . $type);
97
+							 . $uid . ',' . $type);
98 98
 if (!$tpl->is_cached('db:system_dummy.tpl', $xoopsCachedTemplateId)) {
99
-    $criteria = new CriteriaCompo();
100
-    $criteria->setLimit($xoopsModuleConfig['articles_perpage']);
101
-    $articles_obj = array();
102
-    switch ($source) {
103
-        case 'article':
104
-            $pagetitle = planet_constant('MD_ARTICLE');
105
-            $rssdesc   = planet_constant('MD_XMLDESC_ARTICLE');
106
-
107
-            $articles_obj[$article_id] =& $article_obj;
108
-
109
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . ''
110
-                        . $article_obj->getVar('art_id');
111
-            break;
112
-
113
-        case 'category':
114
-            $pagetitle = planet_constant('MD_CATEGORY');
115
-            $rssdesc   = sprintf(planet_constant('MD_XMLDESC_CATEGORY'), $category_obj->getVar('cat_title'));
116
-
117
-            $criteria->add(new Criteria('bc.cat_id', $category_id));
118
-            $articles_obj =& $article_handler->getByCategory($criteria);
119
-
120
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'c'
121
-                        . $category_id;
122
-            break;
123
-
124
-        case 'blog':
125
-            $pagetitle = planet_constant('MD_BLOG');
126
-            $rssdesc   = sprintf(planet_constant('MD_XMLDESC_BLOG'), $blog_obj->getVar('blog_title'));
127
-
128
-            $criteria->add(new Criteria('blog_id', $blog_id));
129
-            $articles_obj =& $article_handler->getAll($criteria);
130
-
131
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'b'
132
-                        . $blog_id;
133
-            break;
134
-
135
-        case 'bookmark':
136
-            $author_name = XoopsUser::getUnameFromId($uid);
137
-            $pagetitle   = planet_constant('MD_BOOKMARKS');
138
-            $rssdesc     = sprintf(planet_constant('MD_XMLDESC_BOOKMARK'), $author_name);
139
-
140
-            $criteria->add(new Criteria('bm.bm_uid', $uid));
141
-            $articles_obj =& $article_handler->getByBookmark($criteria);
142
-
143
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'u' . $uid;
144
-
145
-            break;
146
-
147
-        default:
148
-            $pagetitle = planet_constant('MD_INDEX');
149
-            $rssdesc   = planet_constant('MD_XMLDESC_INDEX');
150
-
151
-            $articles_obj =& $article_handler->getAll($criteria);
152
-
153
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php';
154
-            break;
155
-    }
156
-    $items = array();
157
-    foreach (array_keys($articles_obj) as $id) {
158
-        $content = $articles_obj[$id]->getVar('art_content');
159
-        $content .= '<br>' . planet_constant('MD_SOURCE') . ': ' . $articles_obj[$id]->getVar('art_link') . ' '
160
-                    . $articles_obj[$id]->getVar('art_author');
161
-        $items[] = array(
162
-            'title'                     => $articles_obj[$id]->getVar('art_title'),
163
-            'link'                      => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php'
164
-                                           . URL_DELIMITER . '' . $articles_obj[$id]->getVar('art_id'),
165
-            'description'               => $content,
166
-            'descriptionHtmlSyndicated' => true,
167
-            'date'                      => $articles_obj[$id]->getTime('rss'),
168
-            'source'                    => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/',
169
-            'author'                    => $articles_obj[$id]->getVar('art_author')
170
-        );
171
-    }
172
-    unset($articles_obj, $criteria);
173
-
174
-    $xml_handler = xoops_getModuleHandler('xml', $GLOBALS['moddirname']);
175
-    $xml         = $xml_handler->create($type);
176
-    $xml->setVar('encoding', $xml_charset);
177
-    $xml->setVar('title', $xoopsConfig['sitename'] . ' :: ' . $pagetitle, 'UTF-8', $xml_charset, true);
178
-    $xml->setVar('description', $rssdesc, true);
179
-    $xml->setVar('descriptionHtmlSyndicated', true);
180
-    $xml->setVar('link', $xml_link);
181
-    $xml->setVar('syndicationURL', XOOPS_URL . '/' . xoops_getenv('PHP_SELF'));
182
-    $xml->setVar('webmaster', checkEmail($xoopsConfig['adminmail'], true));
183
-    $xml->setVar('editor', checkEmail($xoopsConfig['adminmail'], true));
184
-    $xml->setVar('category', $xoopsModule->getVar('name'), true);
185
-    $xml->setVar('generator', $xoopsModule->getInfo('version'));
186
-    $xml->setVar('language', _LANGCODE);
187
-
188
-    $dimention = @getimagesize(XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/'
189
-                               . $xoopsModule->getInfo('image'));
190
-    $image     = array(
191
-        'width'       => $dimention[0],
192
-        'height'      => $dimention[1],
193
-        'title'       => $xoopsConfig['sitename'] . ' :: ' . $pagetitle,
194
-        'url'         => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/' . $xoopsModule->getInfo('image'),
195
-        'link'        => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/',
196
-        'description' => $rssdesc
197
-    );
198
-    $xml->setImage($image);
199
-
200
-    /*
99
+	$criteria = new CriteriaCompo();
100
+	$criteria->setLimit($xoopsModuleConfig['articles_perpage']);
101
+	$articles_obj = array();
102
+	switch ($source) {
103
+		case 'article':
104
+			$pagetitle = planet_constant('MD_ARTICLE');
105
+			$rssdesc   = planet_constant('MD_XMLDESC_ARTICLE');
106
+
107
+			$articles_obj[$article_id] =& $article_obj;
108
+
109
+			$xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . ''
110
+						. $article_obj->getVar('art_id');
111
+			break;
112
+
113
+		case 'category':
114
+			$pagetitle = planet_constant('MD_CATEGORY');
115
+			$rssdesc   = sprintf(planet_constant('MD_XMLDESC_CATEGORY'), $category_obj->getVar('cat_title'));
116
+
117
+			$criteria->add(new Criteria('bc.cat_id', $category_id));
118
+			$articles_obj =& $article_handler->getByCategory($criteria);
119
+
120
+			$xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'c'
121
+						. $category_id;
122
+			break;
123
+
124
+		case 'blog':
125
+			$pagetitle = planet_constant('MD_BLOG');
126
+			$rssdesc   = sprintf(planet_constant('MD_XMLDESC_BLOG'), $blog_obj->getVar('blog_title'));
127
+
128
+			$criteria->add(new Criteria('blog_id', $blog_id));
129
+			$articles_obj =& $article_handler->getAll($criteria);
130
+
131
+			$xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'b'
132
+						. $blog_id;
133
+			break;
134
+
135
+		case 'bookmark':
136
+			$author_name = XoopsUser::getUnameFromId($uid);
137
+			$pagetitle   = planet_constant('MD_BOOKMARKS');
138
+			$rssdesc     = sprintf(planet_constant('MD_XMLDESC_BOOKMARK'), $author_name);
139
+
140
+			$criteria->add(new Criteria('bm.bm_uid', $uid));
141
+			$articles_obj =& $article_handler->getByBookmark($criteria);
142
+
143
+			$xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'u' . $uid;
144
+
145
+			break;
146
+
147
+		default:
148
+			$pagetitle = planet_constant('MD_INDEX');
149
+			$rssdesc   = planet_constant('MD_XMLDESC_INDEX');
150
+
151
+			$articles_obj =& $article_handler->getAll($criteria);
152
+
153
+			$xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php';
154
+			break;
155
+	}
156
+	$items = array();
157
+	foreach (array_keys($articles_obj) as $id) {
158
+		$content = $articles_obj[$id]->getVar('art_content');
159
+		$content .= '<br>' . planet_constant('MD_SOURCE') . ': ' . $articles_obj[$id]->getVar('art_link') . ' '
160
+					. $articles_obj[$id]->getVar('art_author');
161
+		$items[] = array(
162
+			'title'                     => $articles_obj[$id]->getVar('art_title'),
163
+			'link'                      => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php'
164
+										   . URL_DELIMITER . '' . $articles_obj[$id]->getVar('art_id'),
165
+			'description'               => $content,
166
+			'descriptionHtmlSyndicated' => true,
167
+			'date'                      => $articles_obj[$id]->getTime('rss'),
168
+			'source'                    => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/',
169
+			'author'                    => $articles_obj[$id]->getVar('art_author')
170
+		);
171
+	}
172
+	unset($articles_obj, $criteria);
173
+
174
+	$xml_handler = xoops_getModuleHandler('xml', $GLOBALS['moddirname']);
175
+	$xml         = $xml_handler->create($type);
176
+	$xml->setVar('encoding', $xml_charset);
177
+	$xml->setVar('title', $xoopsConfig['sitename'] . ' :: ' . $pagetitle, 'UTF-8', $xml_charset, true);
178
+	$xml->setVar('description', $rssdesc, true);
179
+	$xml->setVar('descriptionHtmlSyndicated', true);
180
+	$xml->setVar('link', $xml_link);
181
+	$xml->setVar('syndicationURL', XOOPS_URL . '/' . xoops_getenv('PHP_SELF'));
182
+	$xml->setVar('webmaster', checkEmail($xoopsConfig['adminmail'], true));
183
+	$xml->setVar('editor', checkEmail($xoopsConfig['adminmail'], true));
184
+	$xml->setVar('category', $xoopsModule->getVar('name'), true);
185
+	$xml->setVar('generator', $xoopsModule->getInfo('version'));
186
+	$xml->setVar('language', _LANGCODE);
187
+
188
+	$dimention = @getimagesize(XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/'
189
+							   . $xoopsModule->getInfo('image'));
190
+	$image     = array(
191
+		'width'       => $dimention[0],
192
+		'height'      => $dimention[1],
193
+		'title'       => $xoopsConfig['sitename'] . ' :: ' . $pagetitle,
194
+		'url'         => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/' . $xoopsModule->getInfo('image'),
195
+		'link'        => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/',
196
+		'description' => $rssdesc
197
+	);
198
+	$xml->setImage($image);
199
+
200
+	/*
201 201
     $item = array(
202 202
         "title" => $datatitle,
203 203
         "link" => $dataurl,
@@ -208,11 +208,11 @@  discard block
 block discarded – undo
208 208
         "author" => $dataauthor
209 209
         );
210 210
     */
211
-    $xml->addItems($items);
211
+	$xml->addItems($items);
212 212
 
213
-    $dummy_content = $xml_handler->display($xml, XOOPS_CACHE_PATH . '/' . $GLOBALS['moddirname'] . '.xml.tmp');
213
+	$dummy_content = $xml_handler->display($xml, XOOPS_CACHE_PATH . '/' . $GLOBALS['moddirname'] . '.xml.tmp');
214 214
 
215
-    $tpl->assign_by_ref('dummy_content', $dummy_content);
215
+	$tpl->assign_by_ref('dummy_content', $dummy_content);
216 216
 }
217 217
 //$content = ob_get_contents();
218 218
 ob_end_clean();
Please login to merge, or discard this patch.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 // Project: Article Project                                                 //
26 26
 // ------------------------------------------------------------------------ //
27 27
 ob_start();
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 
30 30
 if (planet_parse_args($args_num, $args, $args_str)) {
31 31
     $args['article'] = @$args_num[0];
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
 }
34 34
 
35 35
 /* Specified Article */
36
-$article_id = (int)(empty($_GET['article']) ? @$args['article'] : $_GET['article']);
36
+$article_id = (int) (empty($_GET['article']) ? @$args['article'] : $_GET['article']);
37 37
 /* Specified Category */
38
-$category_id = (int)(empty($_GET['category']) ? @$args['category'] : $_GET['category']);
38
+$category_id = (int) (empty($_GET['category']) ? @$args['category'] : $_GET['category']);
39 39
 /* Specified Blog */
40
-$blog_id = (int)(empty($_GET['blog']) ? @$args['blog'] : $_GET['blog']);
40
+$blog_id = (int) (empty($_GET['blog']) ? @$args['blog'] : $_GET['blog']);
41 41
 /* Specified Bookmar(Favorite) UID */
42
-$uid = (int)(empty($_GET['uid']) ? @$args['uid'] : $_GET['uid']);
42
+$uid = (int) (empty($_GET['uid']) ? @$args['uid'] : $_GET['uid']);
43 43
 
44 44
 $type = empty($_GET['type']) ? (empty($_GET['op']) ? @$args['type'] : $_GET['op']) : $_GET['type'];
45 45
 $type = strtoupper($type);
@@ -62,14 +62,14 @@  discard block
 block discarded – undo
62 62
 $bookmark_handler = xoops_getModuleHandler('bookmark', $GLOBALS['moddirname']);
63 63
 
64 64
 if (!empty($article_id)) {
65
-    $article_obj =& $article_handler->get($article_id);
65
+    $article_obj = & $article_handler->get($article_id);
66 66
     if (!$article_obj->getVar('art_id')) {
67 67
         planet_trackback_response(1, planet_constant('MD_EXPIRED'));
68 68
         exit();
69 69
     }
70 70
     $source = 'article';
71 71
 } elseif (!empty($blog_id)) {
72
-    $blog_obj =& $blog_handler->get($blog_id);
72
+    $blog_obj = & $blog_handler->get($blog_id);
73 73
     if (!$blog_obj->getVar('blog_id')) {
74 74
         planet_trackback_response(1, planet_constant('MD_INVALID'));
75 75
         exit();
@@ -77,24 +77,24 @@  discard block
 block discarded – undo
77 77
     $source = 'blog';
78 78
 } elseif (!empty($category_id)) {
79 79
     $source       = 'category';
80
-    $category_obj =& $category_handler->get($category_id);
80
+    $category_obj = & $category_handler->get($category_id);
81 81
     if (!$category_obj->getVar('cat_id')) {
82 82
         planet_trackback_response(1, planet_constant('MD_INVALID'));
83 83
         exit();
84 84
     }
85 85
 } elseif (!empty($uid)) {
86 86
     $source = 'bookmark';
87
-} else {
87
+}else {
88 88
     $source = '';
89 89
 }
90 90
 
91 91
 $xml_charset = 'UTF-8';
92
-include_once XOOPS_ROOT_PATH . '/class/template.php';
92
+include_once XOOPS_ROOT_PATH.'/class/template.php';
93 93
 $tpl = new XoopsTpl();
94 94
 $tpl->xoops_setCaching(2);
95 95
 $tpl->xoops_setCacheTime(3600);
96
-$xoopsCachedTemplateId = md5($xoopsModule->getVar('mid') . ',' . $article_id . ',' . $category_id . ',' . $blog_id . ','
97
-                             . $uid . ',' . $type);
96
+$xoopsCachedTemplateId = md5($xoopsModule->getVar('mid').','.$article_id.','.$category_id.','.$blog_id.','
97
+                             . $uid.','.$type);
98 98
 if (!$tpl->is_cached('db:system_dummy.tpl', $xoopsCachedTemplateId)) {
99 99
     $criteria = new CriteriaCompo();
100 100
     $criteria->setLimit($xoopsModuleConfig['articles_perpage']);
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
             $pagetitle = planet_constant('MD_ARTICLE');
105 105
             $rssdesc   = planet_constant('MD_XMLDESC_ARTICLE');
106 106
 
107
-            $articles_obj[$article_id] =& $article_obj;
107
+            $articles_obj[$article_id] = & $article_obj;
108 108
 
109
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . ''
109
+            $xml_link = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/view.article.php'.URL_DELIMITER.''
110 110
                         . $article_obj->getVar('art_id');
111 111
             break;
112 112
 
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
             $rssdesc   = sprintf(planet_constant('MD_XMLDESC_CATEGORY'), $category_obj->getVar('cat_title'));
116 116
 
117 117
             $criteria->add(new Criteria('bc.cat_id', $category_id));
118
-            $articles_obj =& $article_handler->getByCategory($criteria);
118
+            $articles_obj = & $article_handler->getByCategory($criteria);
119 119
 
120
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'c'
120
+            $xml_link = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php'.URL_DELIMITER.'c'
121 121
                         . $category_id;
122 122
             break;
123 123
 
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
             $rssdesc   = sprintf(planet_constant('MD_XMLDESC_BLOG'), $blog_obj->getVar('blog_title'));
127 127
 
128 128
             $criteria->add(new Criteria('blog_id', $blog_id));
129
-            $articles_obj =& $article_handler->getAll($criteria);
129
+            $articles_obj = & $article_handler->getAll($criteria);
130 130
 
131
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'b'
131
+            $xml_link = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php'.URL_DELIMITER.'b'
132 132
                         . $blog_id;
133 133
             break;
134 134
 
@@ -138,9 +138,9 @@  discard block
 block discarded – undo
138 138
             $rssdesc     = sprintf(planet_constant('MD_XMLDESC_BOOKMARK'), $author_name);
139 139
 
140 140
             $criteria->add(new Criteria('bm.bm_uid', $uid));
141
-            $articles_obj =& $article_handler->getByBookmark($criteria);
141
+            $articles_obj = & $article_handler->getByBookmark($criteria);
142 142
 
143
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'u' . $uid;
143
+            $xml_link = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php'.URL_DELIMITER.'u'.$uid;
144 144
 
145 145
             break;
146 146
 
@@ -148,24 +148,24 @@  discard block
 block discarded – undo
148 148
             $pagetitle = planet_constant('MD_INDEX');
149 149
             $rssdesc   = planet_constant('MD_XMLDESC_INDEX');
150 150
 
151
-            $articles_obj =& $article_handler->getAll($criteria);
151
+            $articles_obj = & $article_handler->getAll($criteria);
152 152
 
153
-            $xml_link = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php';
153
+            $xml_link = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php';
154 154
             break;
155 155
     }
156 156
     $items = array();
157 157
     foreach (array_keys($articles_obj) as $id) {
158 158
         $content = $articles_obj[$id]->getVar('art_content');
159
-        $content .= '<br>' . planet_constant('MD_SOURCE') . ': ' . $articles_obj[$id]->getVar('art_link') . ' '
159
+        $content .= '<br>'.planet_constant('MD_SOURCE').': '.$articles_obj[$id]->getVar('art_link').' '
160 160
                     . $articles_obj[$id]->getVar('art_author');
161 161
         $items[] = array(
162 162
             'title'                     => $articles_obj[$id]->getVar('art_title'),
163
-            'link'                      => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php'
164
-                                           . URL_DELIMITER . '' . $articles_obj[$id]->getVar('art_id'),
163
+            'link'                      => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/view.article.php'
164
+                                           . URL_DELIMITER.''.$articles_obj[$id]->getVar('art_id'),
165 165
             'description'               => $content,
166 166
             'descriptionHtmlSyndicated' => true,
167 167
             'date'                      => $articles_obj[$id]->getTime('rss'),
168
-            'source'                    => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/',
168
+            'source'                    => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/',
169 169
             'author'                    => $articles_obj[$id]->getVar('art_author')
170 170
         );
171 171
     }
@@ -174,25 +174,25 @@  discard block
 block discarded – undo
174 174
     $xml_handler = xoops_getModuleHandler('xml', $GLOBALS['moddirname']);
175 175
     $xml         = $xml_handler->create($type);
176 176
     $xml->setVar('encoding', $xml_charset);
177
-    $xml->setVar('title', $xoopsConfig['sitename'] . ' :: ' . $pagetitle, 'UTF-8', $xml_charset, true);
177
+    $xml->setVar('title', $xoopsConfig['sitename'].' :: '.$pagetitle, 'UTF-8', $xml_charset, true);
178 178
     $xml->setVar('description', $rssdesc, true);
179 179
     $xml->setVar('descriptionHtmlSyndicated', true);
180 180
     $xml->setVar('link', $xml_link);
181
-    $xml->setVar('syndicationURL', XOOPS_URL . '/' . xoops_getenv('PHP_SELF'));
181
+    $xml->setVar('syndicationURL', XOOPS_URL.'/'.xoops_getenv('PHP_SELF'));
182 182
     $xml->setVar('webmaster', checkEmail($xoopsConfig['adminmail'], true));
183 183
     $xml->setVar('editor', checkEmail($xoopsConfig['adminmail'], true));
184 184
     $xml->setVar('category', $xoopsModule->getVar('name'), true);
185 185
     $xml->setVar('generator', $xoopsModule->getInfo('version'));
186 186
     $xml->setVar('language', _LANGCODE);
187 187
 
188
-    $dimention = @getimagesize(XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/'
188
+    $dimention = @getimagesize(XOOPS_ROOT_PATH.'/modules/'.$GLOBALS['moddirname'].'/'
189 189
                                . $xoopsModule->getInfo('image'));
190 190
     $image     = array(
191 191
         'width'       => $dimention[0],
192 192
         'height'      => $dimention[1],
193
-        'title'       => $xoopsConfig['sitename'] . ' :: ' . $pagetitle,
194
-        'url'         => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/' . $xoopsModule->getInfo('image'),
195
-        'link'        => XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/',
193
+        'title'       => $xoopsConfig['sitename'].' :: '.$pagetitle,
194
+        'url'         => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/'.$xoopsModule->getInfo('image'),
195
+        'link'        => XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/',
196 196
         'description' => $rssdesc
197 197
     );
198 198
     $xml->setImage($image);
@@ -210,11 +210,11 @@  discard block
 block discarded – undo
210 210
     */
211 211
     $xml->addItems($items);
212 212
 
213
-    $dummy_content = $xml_handler->display($xml, XOOPS_CACHE_PATH . '/' . $GLOBALS['moddirname'] . '.xml.tmp');
213
+    $dummy_content = $xml_handler->display($xml, XOOPS_CACHE_PATH.'/'.$GLOBALS['moddirname'].'.xml.tmp');
214 214
 
215 215
     $tpl->assign_by_ref('dummy_content', $dummy_content);
216 216
 }
217 217
 //$content = ob_get_contents();
218 218
 ob_end_clean();
219
-header('Content-Type:text/xml; charset=' . $xml_charset);
219
+header('Content-Type:text/xml; charset='.$xml_charset);
220 220
 $tpl->display('db:system_dummy.tpl', $xoopsCachedTemplateId);
Please login to merge, or discard this patch.
blocks/block.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
 $current_path = __FILE__;
31 31
 if (DIRECTORY_SEPARATOR !== '/') {
32
-    $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
32
+	$current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
33 33
 }
34 34
 $url_arr = explode('/', strstr($current_path, '/modules/'));
35 35
 include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
     $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
33 33
 }
34 34
 $url_arr = explode('/', strstr($current_path, '/modules/'));
35
-include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php';
36
-include_once XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/functions.php';
35
+include XOOPS_ROOT_PATH.'/modules/'.$url_arr[2].'/include/vars.php';
36
+include_once XOOPS_ROOT_PATH.'/modules/'.$GLOBALS['moddirname'].'/include/functions.php';
37 37
 
38 38
 /**
39 39
  * Functions handling module blocks
Please login to merge, or discard this patch.