Passed
Branch master (2ecc51)
by Michael
03:51
created
xoops_version.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,9 +55,9 @@
 block discarded – undo
55 55
 $modversion['tables'][12] = "efqdiralpha1_dtypes";
56 56
 $modversion['tables'][13] = "efqdiralpha1_dtypes_x_cat";
57 57
 $modversion['tables'][14] = "efqdiralpha1_coupon";
58
-$modversion['tables'][15] = "efqdiralpha1_loc";//In case not used in combi with destinations mod.
59
-$modversion['tables'][16] = "efqdiralpha1_loc_types";//In case not used in combi with destinations mod.
60
-$modversion['tables'][17] = "efqdiralpha1_loc_x_loctype";//In case not used in combi with destinations mod.
58
+$modversion['tables'][15] = "efqdiralpha1_loc"; //In case not used in combi with destinations mod.
59
+$modversion['tables'][16] = "efqdiralpha1_loc_types"; //In case not used in combi with destinations mod.
60
+$modversion['tables'][17] = "efqdiralpha1_loc_x_loctype"; //In case not used in combi with destinations mod.
61 61
 $modversion['tables'][18] = "efqdiralpha1_votedata";
62 62
 //$modversion['tables'][19] = "efqdiralpha1_loc_x_address_types";
63 63
 $modversion['tables'][20] = "efqdiralpha1_form_options";
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
 //	Based upon the mylinks and the mxDirectory modules						 //
31 31
 // ------------------------------------------------------------------------- //
32 32
 include "../../mainfile.php";
33
-$info =  dirname(__FILE__);
33
+$info = dirname(__FILE__);
34 34
 if (ereg("[\]", $info)) {
35
-	$split = split("[\]",$info);
35
+	$split = split("[\]", $info);
36 36
 } else {
37
-	$split = split("[/]",$info);
37
+	$split = split("[/]", $info);
38 38
 }
39 39
 $count = count($split) - 1;
40 40
 $moddir = $split[$count];
Please login to merge, or discard this patch.
upgrade/class/efqdir_upgrade.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
 class EfqDirUpgrade
29 29
 {
30 30
 	function prepare2upgrade($filename='') {
31
-	    global $moddir, $xoopsConfig;
32
-	    include_once XOOPS_ROOT_PATH.'/modules/'.$moddir.'/upgrade/class/dbmanager.php';
33
-	    include_once XOOPS_ROOT_PATH.'/modules/'.$moddir.'/upgrade/language/'.$xoopsConfig['language'].'/install.php';
34
-	    $dbm = new db_manager;
35
-	    $dbm->queryFromFile(XOOPS_ROOT_PATH.'/modules/'.$moddir.'/sql/'.$filename);
36
-	    return $dbm->report();
31
+		global $moddir, $xoopsConfig;
32
+		include_once XOOPS_ROOT_PATH.'/modules/'.$moddir.'/upgrade/class/dbmanager.php';
33
+		include_once XOOPS_ROOT_PATH.'/modules/'.$moddir.'/upgrade/language/'.$xoopsConfig['language'].'/install.php';
34
+		$dbm = new db_manager;
35
+		$dbm->queryFromFile(XOOPS_ROOT_PATH.'/modules/'.$moddir.'/sql/'.$filename);
36
+		return $dbm->report();
37 37
 	}
38 38
 }
39 39
 ?>
Please login to merge, or discard this 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
 class EfqDirUpgrade
29 29
 {
30
-	function prepare2upgrade($filename='') {
30
+	function prepare2upgrade($filename = '') {
31 31
 	    global $moddir, $xoopsConfig;
32 32
 	    include_once XOOPS_ROOT_PATH.'/modules/'.$moddir.'/upgrade/class/dbmanager.php';
33 33
 	    include_once XOOPS_ROOT_PATH.'/modules/'.$moddir.'/upgrade/language/'.$xoopsConfig['language'].'/install.php';
Please login to merge, or discard this patch.
upgrade/class/dbmanager.php 3 patches
Indentation   +174 added lines, -174 removed lines patch added patch discarded remove patch
@@ -37,205 +37,205 @@
 block discarded – undo
37 37
 **/
38 38
 class db_manager {
39 39
 
40
-    var $s_tables = array();
41
-    var $f_tables = array();
40
+	var $s_tables = array();
41
+	var $f_tables = array();
42 42
 	var $db;
43 43
 
44
-    function db_manager(){
45
-        $this->db = XoopsDatabaseFactory::getDatabase();
46
-        $this->db->setPrefix(XOOPS_DB_PREFIX);
47
-        $this->db->setLogger(XoopsLogger::instance());
48
-    }
44
+	function db_manager(){
45
+		$this->db = XoopsDatabaseFactory::getDatabase();
46
+		$this->db->setPrefix(XOOPS_DB_PREFIX);
47
+		$this->db->setLogger(XoopsLogger::instance());
48
+	}
49 49
 
50
-    function isConnectable(){
51
-        return ($this->db->connect(false) != false) ? true : false;
52
-    }
50
+	function isConnectable(){
51
+		return ($this->db->connect(false) != false) ? true : false;
52
+	}
53 53
     
54
-    function dbExists(){
55
-        return ($this->db->connect() != false) ? true : false;
56
-    }
54
+	function dbExists(){
55
+		return ($this->db->connect() != false) ? true : false;
56
+	}
57 57
     
58
-    function createDB()
59
-    {
60
-        $this->db->connect(false);
58
+	function createDB()
59
+	{
60
+		$this->db->connect(false);
61 61
     
62
-        $result = $this->db->query("CREATE DATABASE ".XOOPS_DB_NAME);
62
+		$result = $this->db->query("CREATE DATABASE ".XOOPS_DB_NAME);
63 63
     
64
-        return ($result != false) ? true : false;
65
-    }
64
+		return ($result != false) ? true : false;
65
+	}
66 66
 
67
-    function queryFromFile($sql_file_path){
68
-        global $pieces;
69
-        $tables = array();
67
+	function queryFromFile($sql_file_path){
68
+		global $pieces;
69
+		$tables = array();
70 70
 
71
-        if (!file_exists($sql_file_path)) {
72
-            return false;
73
-        }
74
-        $sql_query = trim(fread(fopen($sql_file_path, 'r'), filesize($sql_file_path)));
75
-        SqlUtility::splitMySqlFile($pieces, $sql_query);
76
-        $this->db->connect();
77
-        foreach ($pieces as $piece) {
78
-            $piece = trim($piece);
79
-            // [0] contains the prefixed query
80
-            // [4] contains unprefixed table name
81
-            $prefixed_query = SqlUtility::prefixQuery($piece, $this->db->prefix());
82
-            if ($prefixed_query != false ) {
83
-                $table = $this->db->prefix($prefixed_query[4]);
84
-                if($prefixed_query[1] == 'CREATE TABLE'){
85
-                    if ($this->db->query($prefixed_query[0]) != false) {
86
-                        if(! isset($this->s_tables['create'][$table])){
87
-                            $this->s_tables['create'][$table] = 1;
88
-                        }
89
-                    }else{
90
-                        if(! isset($this->f_tables['create'][$table])){
91
-                            $this->f_tables['create'][$table] = 1;
92
-                        }
93
-                    }
94
-                }
95
-                elseif($prefixed_query[1] == 'INSERT INTO'){
96
-                    if ($this->db->query($prefixed_query[0]) != false) {
97
-                        if(! isset($this->s_tables['insert'][$table])){
98
-                            $this->s_tables['insert'][$table] = 1;
99
-                        }else{
100
-                            $this->s_tables['insert'][$table]++;
101
-                        }
102
-                    }else{
103
-                        if(! isset($this->f_tables['insert'][$table])){
104
-                            $this->f_tables['insert'][$table] = 1;
105
-                        }else{
106
-                             $this->f_tables['insert'][$table]++;
107
-                        }
108
-                    }
109
-                }elseif($prefixed_query[1] == 'ALTER TABLE'){
110
-                    if ($this->db->query($prefixed_query[0]) != false) {
111
-                        if(! isset($this->s_tables['alter'][$table])){
112
-                            $this->s_tables['alter'][$table] = 1;
113
-                        }
114
-                    }else{
115
-                        if(! isset($this->s_tables['alter'][$table])){
116
-                            $this->f_tables['alter'][$table] = 1;
117
-                        }
118
-                    }
119
-                }elseif($prefixed_query[1] == 'DROP TABLE'){
120
-                    if ($this->db->query('DROP TABLE '.$table) != false) {
121
-                        if(! isset($this->s_tables['drop'][$table])){
122
-                            $this->s_tables['drop'][$table] = 1;
123
-                        }
124
-                    }else{
125
-                        if(! isset($this->s_tables['drop'][$table])){
126
-                            $this->f_tables['drop'][$table] = 1;
127
-                        }
128
-                    }
129
-                }
130
-            }
131
-        }
132
-        return true;
133
-    }
71
+		if (!file_exists($sql_file_path)) {
72
+			return false;
73
+		}
74
+		$sql_query = trim(fread(fopen($sql_file_path, 'r'), filesize($sql_file_path)));
75
+		SqlUtility::splitMySqlFile($pieces, $sql_query);
76
+		$this->db->connect();
77
+		foreach ($pieces as $piece) {
78
+			$piece = trim($piece);
79
+			// [0] contains the prefixed query
80
+			// [4] contains unprefixed table name
81
+			$prefixed_query = SqlUtility::prefixQuery($piece, $this->db->prefix());
82
+			if ($prefixed_query != false ) {
83
+				$table = $this->db->prefix($prefixed_query[4]);
84
+				if($prefixed_query[1] == 'CREATE TABLE'){
85
+					if ($this->db->query($prefixed_query[0]) != false) {
86
+						if(! isset($this->s_tables['create'][$table])){
87
+							$this->s_tables['create'][$table] = 1;
88
+						}
89
+					}else{
90
+						if(! isset($this->f_tables['create'][$table])){
91
+							$this->f_tables['create'][$table] = 1;
92
+						}
93
+					}
94
+				}
95
+				elseif($prefixed_query[1] == 'INSERT INTO'){
96
+					if ($this->db->query($prefixed_query[0]) != false) {
97
+						if(! isset($this->s_tables['insert'][$table])){
98
+							$this->s_tables['insert'][$table] = 1;
99
+						}else{
100
+							$this->s_tables['insert'][$table]++;
101
+						}
102
+					}else{
103
+						if(! isset($this->f_tables['insert'][$table])){
104
+							$this->f_tables['insert'][$table] = 1;
105
+						}else{
106
+							 $this->f_tables['insert'][$table]++;
107
+						}
108
+					}
109
+				}elseif($prefixed_query[1] == 'ALTER TABLE'){
110
+					if ($this->db->query($prefixed_query[0]) != false) {
111
+						if(! isset($this->s_tables['alter'][$table])){
112
+							$this->s_tables['alter'][$table] = 1;
113
+						}
114
+					}else{
115
+						if(! isset($this->s_tables['alter'][$table])){
116
+							$this->f_tables['alter'][$table] = 1;
117
+						}
118
+					}
119
+				}elseif($prefixed_query[1] == 'DROP TABLE'){
120
+					if ($this->db->query('DROP TABLE '.$table) != false) {
121
+						if(! isset($this->s_tables['drop'][$table])){
122
+							$this->s_tables['drop'][$table] = 1;
123
+						}
124
+					}else{
125
+						if(! isset($this->s_tables['drop'][$table])){
126
+							$this->f_tables['drop'][$table] = 1;
127
+						}
128
+					}
129
+				}
130
+			}
131
+		}
132
+		return true;
133
+	}
134 134
 
135
-    function report(){
136
-        $content = "<table align='center'><tr><td align='left'>\n";
137
-        if (isset($this->s_tables['create'])) {
138
-            foreach($this->s_tables['create'] as $key => $val){
139
-                $content .= sprintf(_INSTALL_L45, "<b>$key</b>")."<br />\n";
140
-            }
141
-        }
142
-        if (isset($this->s_tables['insert'])) {
143
-            foreach($this->s_tables['insert'] as $key => $val){
144
-                $content .= sprintf(_INSTALL_L119, $val, "<b>$key</b>")."<br />\n";
145
-            }
146
-        }
135
+	function report(){
136
+		$content = "<table align='center'><tr><td align='left'>\n";
137
+		if (isset($this->s_tables['create'])) {
138
+			foreach($this->s_tables['create'] as $key => $val){
139
+				$content .= sprintf(_INSTALL_L45, "<b>$key</b>")."<br />\n";
140
+			}
141
+		}
142
+		if (isset($this->s_tables['insert'])) {
143
+			foreach($this->s_tables['insert'] as $key => $val){
144
+				$content .= sprintf(_INSTALL_L119, $val, "<b>$key</b>")."<br />\n";
145
+			}
146
+		}
147 147
 		if (isset($this->s_tables['alter'])) {
148
-            foreach($this->s_tables['alter'] as $key => $val){
149
-                $content .= sprintf(_INSTALL_L133, "<b>$key</b>")."<br />\n";
150
-            }
151
-        }
148
+			foreach($this->s_tables['alter'] as $key => $val){
149
+				$content .= sprintf(_INSTALL_L133, "<b>$key</b>")."<br />\n";
150
+			}
151
+		}
152 152
 		if (isset($this->s_tables['drop'])) {
153
-            foreach($this->s_tables['drop'] as $key => $val){
154
-                $content .= sprintf(_INSTALL_L163, "<b>$key</b>")."<br />\n";
155
-            }
156
-        }
157
-        $content .= "<br />\n";
158
-        if (isset($this->f_tables['create'])) {
159
-            foreach($this->f_tables['create'] as $key => $val){
160
-                $content .= sprintf(_INSTALL_L118, "<b>$key</b>")."<br />\n";
161
-            }
162
-        }
163
-        if (isset($this->f_tables['insert'])) {
164
-            foreach($this->f_tables['insert'] as $key => $val){
165
-                $content .= sprintf(_INSTALL_L120, $val, "<b>$key</b>")."<br />\n";
166
-            }
167
-        }
153
+			foreach($this->s_tables['drop'] as $key => $val){
154
+				$content .= sprintf(_INSTALL_L163, "<b>$key</b>")."<br />\n";
155
+			}
156
+		}
157
+		$content .= "<br />\n";
158
+		if (isset($this->f_tables['create'])) {
159
+			foreach($this->f_tables['create'] as $key => $val){
160
+				$content .= sprintf(_INSTALL_L118, "<b>$key</b>")."<br />\n";
161
+			}
162
+		}
163
+		if (isset($this->f_tables['insert'])) {
164
+			foreach($this->f_tables['insert'] as $key => $val){
165
+				$content .= sprintf(_INSTALL_L120, $val, "<b>$key</b>")."<br />\n";
166
+			}
167
+		}
168 168
 		if (isset($this->f_tables['alter'])) {
169
-            foreach($this->f_tables['alter'] as $key => $val){
170
-                $content .= sprintf(_INSTALL_L134, "<b>$key</b>")."<br />\n";
171
-            }
172
-        }
169
+			foreach($this->f_tables['alter'] as $key => $val){
170
+				$content .= sprintf(_INSTALL_L134, "<b>$key</b>")."<br />\n";
171
+			}
172
+		}
173 173
 		if (isset($this->f_tables['drop'])) {
174
-            foreach($this->f_tables['drop'] as $key => $val){
175
-                $content .= sprintf(_INSTALL_L164, "<b>$key</b>")."<br />\n";
176
-            }
177
-        }
178
-        $content .= "</td></tr></table>\n";
179
-        return $content;
180
-    }
174
+			foreach($this->f_tables['drop'] as $key => $val){
175
+				$content .= sprintf(_INSTALL_L164, "<b>$key</b>")."<br />\n";
176
+			}
177
+		}
178
+		$content .= "</td></tr></table>\n";
179
+		return $content;
180
+	}
181 181
 
182
-    function query($sql){
183
-        $this->db->connect();
184
-        return $this->db->query($sql);
185
-    }
182
+	function query($sql){
183
+		$this->db->connect();
184
+		return $this->db->query($sql);
185
+	}
186 186
 
187
-    function prefix($table){
188
-        $this->db->connect();
189
-        return $this->db->prefix($table);
190
-    }
187
+	function prefix($table){
188
+		$this->db->connect();
189
+		return $this->db->prefix($table);
190
+	}
191 191
 
192
-    function fetchArray($ret){
193
-        $this->db->connect();
194
-        return $this->db->fetchArray($ret);
195
-    }
192
+	function fetchArray($ret){
193
+		$this->db->connect();
194
+		return $this->db->fetchArray($ret);
195
+	}
196 196
 
197
-    function insert($table, $query){
198
-        $this->db->connect();
199
-        $table = $this->db->prefix($table);
200
-        $query = 'INSERT INTO '.$table.' '.$query;
201
-        if(!$this->db->queryF($query)){
202
-            if(!isset($this->f_tables['insert'][$table])){
203
-                $this->f_tables['insert'][$table] = 1;
204
-            }else{
205
-                $this->f_tables['insert'][$table]++;
206
-            }
207
-            return false;
208
-        }else{
209
-            if(!isset($this->s_tables['insert'][$table])){
210
-                $this->s_tables['insert'][$table] = 1;
211
-            }else{
212
-                $this->s_tables['insert'][$table]++;
213
-            }
214
-            return $this->db->getInsertId();
215
-        }
216
-    }
197
+	function insert($table, $query){
198
+		$this->db->connect();
199
+		$table = $this->db->prefix($table);
200
+		$query = 'INSERT INTO '.$table.' '.$query;
201
+		if(!$this->db->queryF($query)){
202
+			if(!isset($this->f_tables['insert'][$table])){
203
+				$this->f_tables['insert'][$table] = 1;
204
+			}else{
205
+				$this->f_tables['insert'][$table]++;
206
+			}
207
+			return false;
208
+		}else{
209
+			if(!isset($this->s_tables['insert'][$table])){
210
+				$this->s_tables['insert'][$table] = 1;
211
+			}else{
212
+				$this->s_tables['insert'][$table]++;
213
+			}
214
+			return $this->db->getInsertId();
215
+		}
216
+	}
217 217
 
218
-    function isError(){
219
-        return (isset($this->f_tables)) ? true : false;
220
-    }
218
+	function isError(){
219
+		return (isset($this->f_tables)) ? true : false;
220
+	}
221 221
 
222
-    function deleteTables($tables){
223
-        global $ct;
224
-        $deleted = array();
225
-        $this->db->connect();
226
-        foreach ($tables as $key => $val) {
227
-            if(! $this->db->query("DROP TABLE ".$this->db->prefix($key))){
228
-                $deleted[] = $ct;
229
-            }
230
-        }
231
-        return $deleted;
232
-    }
222
+	function deleteTables($tables){
223
+		global $ct;
224
+		$deleted = array();
225
+		$this->db->connect();
226
+		foreach ($tables as $key => $val) {
227
+			if(! $this->db->query("DROP TABLE ".$this->db->prefix($key))){
228
+				$deleted[] = $ct;
229
+			}
230
+		}
231
+		return $deleted;
232
+	}
233 233
 
234 234
 	function tableExists($table){
235 235
 		$table = trim($table);
236 236
 		$ret = false;
237 237
 		if ($table != '') {
238
-            $this->db->connect();
238
+			$this->db->connect();
239 239
 			$sql = 'SELECT * FROM '.$this->db->prefix($table);
240 240
 			$ret = (false != $this->db->query($sql)) ? true : false;
241 241
 		}
Please login to merge, or discard this patch.
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -41,17 +41,17 @@  discard block
 block discarded – undo
41 41
     var $f_tables = array();
42 42
 	var $db;
43 43
 
44
-    function db_manager(){
44
+    function db_manager() {
45 45
         $this->db = XoopsDatabaseFactory::getDatabase();
46 46
         $this->db->setPrefix(XOOPS_DB_PREFIX);
47 47
         $this->db->setLogger(XoopsLogger::instance());
48 48
     }
49 49
 
50
-    function isConnectable(){
50
+    function isConnectable() {
51 51
         return ($this->db->connect(false) != false) ? true : false;
52 52
     }
53 53
     
54
-    function dbExists(){
54
+    function dbExists() {
55 55
         return ($this->db->connect() != false) ? true : false;
56 56
     }
57 57
     
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         return ($result != false) ? true : false;
65 65
     }
66 66
 
67
-    function queryFromFile($sql_file_path){
67
+    function queryFromFile($sql_file_path) {
68 68
         global $pieces;
69 69
         $tables = array();
70 70
 
@@ -79,50 +79,50 @@  discard block
 block discarded – undo
79 79
             // [0] contains the prefixed query
80 80
             // [4] contains unprefixed table name
81 81
             $prefixed_query = SqlUtility::prefixQuery($piece, $this->db->prefix());
82
-            if ($prefixed_query != false ) {
82
+            if ($prefixed_query != false) {
83 83
                 $table = $this->db->prefix($prefixed_query[4]);
84
-                if($prefixed_query[1] == 'CREATE TABLE'){
84
+                if ($prefixed_query[1] == 'CREATE TABLE') {
85 85
                     if ($this->db->query($prefixed_query[0]) != false) {
86
-                        if(! isset($this->s_tables['create'][$table])){
86
+                        if (!isset($this->s_tables['create'][$table])) {
87 87
                             $this->s_tables['create'][$table] = 1;
88 88
                         }
89
-                    }else{
90
-                        if(! isset($this->f_tables['create'][$table])){
89
+                    } else {
90
+                        if (!isset($this->f_tables['create'][$table])) {
91 91
                             $this->f_tables['create'][$table] = 1;
92 92
                         }
93 93
                     }
94 94
                 }
95
-                elseif($prefixed_query[1] == 'INSERT INTO'){
95
+                elseif ($prefixed_query[1] == 'INSERT INTO') {
96 96
                     if ($this->db->query($prefixed_query[0]) != false) {
97
-                        if(! isset($this->s_tables['insert'][$table])){
97
+                        if (!isset($this->s_tables['insert'][$table])) {
98 98
                             $this->s_tables['insert'][$table] = 1;
99
-                        }else{
99
+                        } else {
100 100
                             $this->s_tables['insert'][$table]++;
101 101
                         }
102
-                    }else{
103
-                        if(! isset($this->f_tables['insert'][$table])){
102
+                    } else {
103
+                        if (!isset($this->f_tables['insert'][$table])) {
104 104
                             $this->f_tables['insert'][$table] = 1;
105
-                        }else{
105
+                        } else {
106 106
                              $this->f_tables['insert'][$table]++;
107 107
                         }
108 108
                     }
109
-                }elseif($prefixed_query[1] == 'ALTER TABLE'){
109
+                }elseif ($prefixed_query[1] == 'ALTER TABLE') {
110 110
                     if ($this->db->query($prefixed_query[0]) != false) {
111
-                        if(! isset($this->s_tables['alter'][$table])){
111
+                        if (!isset($this->s_tables['alter'][$table])) {
112 112
                             $this->s_tables['alter'][$table] = 1;
113 113
                         }
114
-                    }else{
115
-                        if(! isset($this->s_tables['alter'][$table])){
114
+                    } else {
115
+                        if (!isset($this->s_tables['alter'][$table])) {
116 116
                             $this->f_tables['alter'][$table] = 1;
117 117
                         }
118 118
                     }
119
-                }elseif($prefixed_query[1] == 'DROP TABLE'){
119
+                }elseif ($prefixed_query[1] == 'DROP TABLE') {
120 120
                     if ($this->db->query('DROP TABLE '.$table) != false) {
121
-                        if(! isset($this->s_tables['drop'][$table])){
121
+                        if (!isset($this->s_tables['drop'][$table])) {
122 122
                             $this->s_tables['drop'][$table] = 1;
123 123
                         }
124
-                    }else{
125
-                        if(! isset($this->s_tables['drop'][$table])){
124
+                    } else {
125
+                        if (!isset($this->s_tables['drop'][$table])) {
126 126
                             $this->f_tables['drop'][$table] = 1;
127 127
                         }
128 128
                     }
@@ -132,46 +132,46 @@  discard block
 block discarded – undo
132 132
         return true;
133 133
     }
134 134
 
135
-    function report(){
135
+    function report() {
136 136
         $content = "<table align='center'><tr><td align='left'>\n";
137 137
         if (isset($this->s_tables['create'])) {
138
-            foreach($this->s_tables['create'] as $key => $val){
138
+            foreach ($this->s_tables['create'] as $key => $val) {
139 139
                 $content .= sprintf(_INSTALL_L45, "<b>$key</b>")."<br />\n";
140 140
             }
141 141
         }
142 142
         if (isset($this->s_tables['insert'])) {
143
-            foreach($this->s_tables['insert'] as $key => $val){
143
+            foreach ($this->s_tables['insert'] as $key => $val) {
144 144
                 $content .= sprintf(_INSTALL_L119, $val, "<b>$key</b>")."<br />\n";
145 145
             }
146 146
         }
147 147
 		if (isset($this->s_tables['alter'])) {
148
-            foreach($this->s_tables['alter'] as $key => $val){
148
+            foreach ($this->s_tables['alter'] as $key => $val) {
149 149
                 $content .= sprintf(_INSTALL_L133, "<b>$key</b>")."<br />\n";
150 150
             }
151 151
         }
152 152
 		if (isset($this->s_tables['drop'])) {
153
-            foreach($this->s_tables['drop'] as $key => $val){
153
+            foreach ($this->s_tables['drop'] as $key => $val) {
154 154
                 $content .= sprintf(_INSTALL_L163, "<b>$key</b>")."<br />\n";
155 155
             }
156 156
         }
157 157
         $content .= "<br />\n";
158 158
         if (isset($this->f_tables['create'])) {
159
-            foreach($this->f_tables['create'] as $key => $val){
159
+            foreach ($this->f_tables['create'] as $key => $val) {
160 160
                 $content .= sprintf(_INSTALL_L118, "<b>$key</b>")."<br />\n";
161 161
             }
162 162
         }
163 163
         if (isset($this->f_tables['insert'])) {
164
-            foreach($this->f_tables['insert'] as $key => $val){
164
+            foreach ($this->f_tables['insert'] as $key => $val) {
165 165
                 $content .= sprintf(_INSTALL_L120, $val, "<b>$key</b>")."<br />\n";
166 166
             }
167 167
         }
168 168
 		if (isset($this->f_tables['alter'])) {
169
-            foreach($this->f_tables['alter'] as $key => $val){
169
+            foreach ($this->f_tables['alter'] as $key => $val) {
170 170
                 $content .= sprintf(_INSTALL_L134, "<b>$key</b>")."<br />\n";
171 171
             }
172 172
         }
173 173
 		if (isset($this->f_tables['drop'])) {
174
-            foreach($this->f_tables['drop'] as $key => $val){
174
+            foreach ($this->f_tables['drop'] as $key => $val) {
175 175
                 $content .= sprintf(_INSTALL_L164, "<b>$key</b>")."<br />\n";
176 176
             }
177 177
         }
@@ -179,59 +179,59 @@  discard block
 block discarded – undo
179 179
         return $content;
180 180
     }
181 181
 
182
-    function query($sql){
182
+    function query($sql) {
183 183
         $this->db->connect();
184 184
         return $this->db->query($sql);
185 185
     }
186 186
 
187
-    function prefix($table){
187
+    function prefix($table) {
188 188
         $this->db->connect();
189 189
         return $this->db->prefix($table);
190 190
     }
191 191
 
192
-    function fetchArray($ret){
192
+    function fetchArray($ret) {
193 193
         $this->db->connect();
194 194
         return $this->db->fetchArray($ret);
195 195
     }
196 196
 
197
-    function insert($table, $query){
197
+    function insert($table, $query) {
198 198
         $this->db->connect();
199 199
         $table = $this->db->prefix($table);
200 200
         $query = 'INSERT INTO '.$table.' '.$query;
201
-        if(!$this->db->queryF($query)){
202
-            if(!isset($this->f_tables['insert'][$table])){
201
+        if (!$this->db->queryF($query)) {
202
+            if (!isset($this->f_tables['insert'][$table])) {
203 203
                 $this->f_tables['insert'][$table] = 1;
204
-            }else{
204
+            } else {
205 205
                 $this->f_tables['insert'][$table]++;
206 206
             }
207 207
             return false;
208
-        }else{
209
-            if(!isset($this->s_tables['insert'][$table])){
208
+        } else {
209
+            if (!isset($this->s_tables['insert'][$table])) {
210 210
                 $this->s_tables['insert'][$table] = 1;
211
-            }else{
211
+            } else {
212 212
                 $this->s_tables['insert'][$table]++;
213 213
             }
214 214
             return $this->db->getInsertId();
215 215
         }
216 216
     }
217 217
 
218
-    function isError(){
218
+    function isError() {
219 219
         return (isset($this->f_tables)) ? true : false;
220 220
     }
221 221
 
222
-    function deleteTables($tables){
222
+    function deleteTables($tables) {
223 223
         global $ct;
224 224
         $deleted = array();
225 225
         $this->db->connect();
226 226
         foreach ($tables as $key => $val) {
227
-            if(! $this->db->query("DROP TABLE ".$this->db->prefix($key))){
227
+            if (!$this->db->query("DROP TABLE ".$this->db->prefix($key))) {
228 228
                 $deleted[] = $ct;
229 229
             }
230 230
         }
231 231
         return $deleted;
232 232
     }
233 233
 
234
-	function tableExists($table){
234
+	function tableExists($table) {
235 235
 		$table = trim($table);
236 236
 		$ret = false;
237 237
 		if ($table != '') {
Please login to merge, or discard this patch.
Braces   +12 added lines, -13 removed lines patch added patch discarded remove patch
@@ -86,42 +86,41 @@  discard block
 block discarded – undo
86 86
                         if(! isset($this->s_tables['create'][$table])){
87 87
                             $this->s_tables['create'][$table] = 1;
88 88
                         }
89
-                    }else{
89
+                    } else{
90 90
                         if(! isset($this->f_tables['create'][$table])){
91 91
                             $this->f_tables['create'][$table] = 1;
92 92
                         }
93 93
                     }
94
-                }
95
-                elseif($prefixed_query[1] == 'INSERT INTO'){
94
+                } elseif($prefixed_query[1] == 'INSERT INTO'){
96 95
                     if ($this->db->query($prefixed_query[0]) != false) {
97 96
                         if(! isset($this->s_tables['insert'][$table])){
98 97
                             $this->s_tables['insert'][$table] = 1;
99
-                        }else{
98
+                        } else{
100 99
                             $this->s_tables['insert'][$table]++;
101 100
                         }
102
-                    }else{
101
+                    } else{
103 102
                         if(! isset($this->f_tables['insert'][$table])){
104 103
                             $this->f_tables['insert'][$table] = 1;
105
-                        }else{
104
+                        } else{
106 105
                              $this->f_tables['insert'][$table]++;
107 106
                         }
108 107
                     }
109
-                }elseif($prefixed_query[1] == 'ALTER TABLE'){
108
+                } elseif($prefixed_query[1] == 'ALTER TABLE'){
110 109
                     if ($this->db->query($prefixed_query[0]) != false) {
111 110
                         if(! isset($this->s_tables['alter'][$table])){
112 111
                             $this->s_tables['alter'][$table] = 1;
113 112
                         }
114
-                    }else{
113
+                    } else{
115 114
                         if(! isset($this->s_tables['alter'][$table])){
116 115
                             $this->f_tables['alter'][$table] = 1;
117 116
                         }
118 117
                     }
119
-                }elseif($prefixed_query[1] == 'DROP TABLE'){
118
+                } elseif($prefixed_query[1] == 'DROP TABLE'){
120 119
                     if ($this->db->query('DROP TABLE '.$table) != false) {
121 120
                         if(! isset($this->s_tables['drop'][$table])){
122 121
                             $this->s_tables['drop'][$table] = 1;
123 122
                         }
124
-                    }else{
123
+                    } else{
125 124
                         if(! isset($this->s_tables['drop'][$table])){
126 125
                             $this->f_tables['drop'][$table] = 1;
127 126
                         }
@@ -201,14 +200,14 @@  discard block
 block discarded – undo
201 200
         if(!$this->db->queryF($query)){
202 201
             if(!isset($this->f_tables['insert'][$table])){
203 202
                 $this->f_tables['insert'][$table] = 1;
204
-            }else{
203
+            } else{
205 204
                 $this->f_tables['insert'][$table]++;
206 205
             }
207 206
             return false;
208
-        }else{
207
+        } else{
209 208
             if(!isset($this->s_tables['insert'][$table])){
210 209
                 $this->s_tables['insert'][$table] = 1;
211
-            }else{
210
+            } else{
212 211
                 $this->s_tables['insert'][$table]++;
213 212
             }
214 213
             return $this->db->getInsertId();
Please login to merge, or discard this patch.
upgrade/index.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
 xoops_cp_header();
10 10
 set_magic_quotes_runtime(1);
11 11
 if (isset($_POST['submit'])) {
12
-    switch($_POST['submit']) {
13
-        case "Update":
14
-        include_once XOOPS_ROOT_PATH.'/modules/'.$moddir.'/upgrade/class/dbmanager.php';
15
-	    $dbm = new db_manager;
16
-	    $dbm->queryFromFile(XOOPS_ROOT_PATH.'/modules/'.$moddir.'/sql/'.$filename);
17
-	    $feedback = $dbm->report();
18
-	    echo $feedback;
19
-	    echo "<br /><br /><a href='".XOOPS_URL."/modules/system/admin.php?fct=modulesadmin'>Proceed</a>";
20
-	    xoops_cp_footer();
21
-	    exit();
22
-    }
12
+	switch($_POST['submit']) {
13
+		case "Update":
14
+		include_once XOOPS_ROOT_PATH.'/modules/'.$moddir.'/upgrade/class/dbmanager.php';
15
+		$dbm = new db_manager;
16
+		$dbm->queryFromFile(XOOPS_ROOT_PATH.'/modules/'.$moddir.'/sql/'.$filename);
17
+		$feedback = $dbm->report();
18
+		echo $feedback;
19
+		echo "<br /><br /><a href='".XOOPS_URL."/modules/system/admin.php?fct=modulesadmin'>Proceed</a>";
20
+		xoops_cp_footer();
21
+		exit();
22
+	}
23 23
 }
24 24
 include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
25 25
 $upgrade_form = new XoopsThemeForm('Upgrade', 'upgradeform', 'index.php');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 xoops_cp_header();
10 10
 set_magic_quotes_runtime(1);
11 11
 if (isset($_POST['submit'])) {
12
-    switch($_POST['submit']) {
12
+    switch ($_POST['submit']) {
13 13
         case "Update":
14 14
         include_once XOOPS_ROOT_PATH.'/modules/'.$moddir.'/upgrade/class/dbmanager.php';
15 15
 	    $dbm = new db_manager;
Please login to merge, or discard this patch.
upgrade/language/english/install.php 1 patch
Spacing   +162 added lines, -162 removed lines patch added patch discarded remove patch
@@ -1,182 +1,182 @@
 block discarded – undo
1 1
 <?php
2 2
 // $Id: install.php 2 2008-01-27 18:16:55Z wtravel $
3
-define("_INSTALL_L0","Welcome to the Install Wizard for XOOPS 2.0");
4
-define("_INSTALL_L70","Please change the file permission for mainfile.php so that it is writeable by the server (i.e. chmod 777 mainfile.php on a UNIX/LINUX server, or check the properties of the file and make sure the read-only flag is not set on a Windows server ). Reload this page once you have changed the permission setting.");
3
+define("_INSTALL_L0", "Welcome to the Install Wizard for XOOPS 2.0");
4
+define("_INSTALL_L70", "Please change the file permission for mainfile.php so that it is writeable by the server (i.e. chmod 777 mainfile.php on a UNIX/LINUX server, or check the properties of the file and make sure the read-only flag is not set on a Windows server ). Reload this page once you have changed the permission setting.");
5 5
 //define("_INSTALL_L71","Click on the button below to begin the installation.");
6
-define("_INSTALL_L1","Open mainfile.php with your text editor and find the following codes on line 31:");
7
-define("_INSTALL_L2","Now, change this line to:");
8
-define("_INSTALL_L3","Next, on line 35, change %s to %s");
9
-define("_INSTALL_L4","OK, I have set the above setings, let me try again!");
10
-define("_INSTALL_L5","WARNING!");
11
-define("_INSTALL_L6","There is a mismatch between your XOOPS_ROOT_PATH configuration on line 31 of mainfile.php and the root path info we have detected.");
12
-define("_INSTALL_L7","Your setting: ");
13
-define("_INSTALL_L8","We detected: ");
14
-define("_INSTALL_L9","( On MS platforms, you may receive this error message even when your configuration is correct. If that is the case, please press the button below to continue)");
15
-define("_INSTALL_L10","Plesae press the button below to continue if this is really ok.");
16
-define("_INSTALL_L11","The server path to your XOOPS root directory: ");
17
-define("_INSTALL_L12","URL to your XOOPS root directory: ");
18
-define("_INSTALL_L13","If the above setting is correct, press the button below to continue.");
19
-define("_INSTALL_L14","Next");
20
-define("_INSTALL_L15","Please open mainfile.php and enter required DB settings data");
21
-define("_INSTALL_L16","%s is the hostname of your database server.");
22
-define("_INSTALL_L17","%s is the username of your database account.");
23
-define("_INSTALL_L18","%s is the password required to access your database.");
24
-define("_INSTALL_L19","%s is the name of your database in which XOOPS tables will be created.");
25
-define("_INSTALL_L20","%s is the prefix for tables that will be made during the installation.");
26
-define("_INSTALL_L21","The following database was not found on the server:");
27
-define("_INSTALL_L22","Attempt to create it?");
28
-define("_INSTALL_L23","Yes");
29
-define("_INSTALL_L24","No");
30
-define("_INSTALL_L25","We have detected the following database information from your configuration in mainfile.php. Please fix it now if this is not correct.");
31
-define("_INSTALL_L26","Database Configuration");
32
-define("_INSTALL_L51","Database");
33
-define("_INSTALL_L66","Choose the database to be used");
34
-define("_INSTALL_L27","Database Hostname");
35
-define("_INSTALL_L67","Hostname of the database server. If you are unsure, 'localhost' works in most cases.");
36
-define("_INSTALL_L28","Database Username");
37
-define("_INSTALL_L65","Your database user account on the host");
38
-define("_INSTALL_L29","Database Name");
39
-define("_INSTALL_L64","The name of database on the host. The installer will attempt to create the database if not exist");
40
-define("_INSTALL_L52","Database Password");
41
-define("_INSTALL_L68","Password for your database user account");
42
-define("_INSTALL_L30","Table Prefix");
43
-define("_INSTALL_L63","This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.");
44
-define("_INSTALL_L54","Use persistent connection?");
45
-define("_INSTALL_L69","Default is 'NO'. Choose 'NO' if you are unsure.");
46
-define("_INSTALL_L55","XOOPS Physical Path");
47
-define("_INSTALL_L59","Physical path to your main XOOPS directory WITHOUT trailing slash");
48
-define("_INSTALL_L56","XOOPS Virtual Path (URL)");
49
-define("_INSTALL_L58","Virtual path to your main XOOPS directory WITHOUT trailing slash");
50
-
51
-define("_INSTALL_L31","Could not create database. Contact the server administrator for details.");
52
-define("_INSTALL_L32","Installation Complete");
53
-define("_INSTALL_L33","Click <a href='../index.php'>HERE</a> to see the home page of your site.");
54
-define("_INSTALL_L35","If you had any errors, please contact the dev team at <a href='http://www.xoops.org/' target='_blank'>XOOPS.org</a>");
55
-define("_INSTALL_L36","Please choose your site admin's name and password.");
56
-define("_INSTALL_L37","Admin Name");
57
-define("_INSTALL_L38","Admin Email");
58
-define("_INSTALL_L39","Admin Password");
59
-define("_INSTALL_L74","Confirm Password");
60
-define("_INSTALL_L40","Create Tables");
61
-define("_INSTALL_L41","Please go back and type in all the required info.");
62
-define("_INSTALL_L42","Back");
63
-define("_INSTALL_L57","Please enter %s");
6
+define("_INSTALL_L1", "Open mainfile.php with your text editor and find the following codes on line 31:");
7
+define("_INSTALL_L2", "Now, change this line to:");
8
+define("_INSTALL_L3", "Next, on line 35, change %s to %s");
9
+define("_INSTALL_L4", "OK, I have set the above setings, let me try again!");
10
+define("_INSTALL_L5", "WARNING!");
11
+define("_INSTALL_L6", "There is a mismatch between your XOOPS_ROOT_PATH configuration on line 31 of mainfile.php and the root path info we have detected.");
12
+define("_INSTALL_L7", "Your setting: ");
13
+define("_INSTALL_L8", "We detected: ");
14
+define("_INSTALL_L9", "( On MS platforms, you may receive this error message even when your configuration is correct. If that is the case, please press the button below to continue)");
15
+define("_INSTALL_L10", "Plesae press the button below to continue if this is really ok.");
16
+define("_INSTALL_L11", "The server path to your XOOPS root directory: ");
17
+define("_INSTALL_L12", "URL to your XOOPS root directory: ");
18
+define("_INSTALL_L13", "If the above setting is correct, press the button below to continue.");
19
+define("_INSTALL_L14", "Next");
20
+define("_INSTALL_L15", "Please open mainfile.php and enter required DB settings data");
21
+define("_INSTALL_L16", "%s is the hostname of your database server.");
22
+define("_INSTALL_L17", "%s is the username of your database account.");
23
+define("_INSTALL_L18", "%s is the password required to access your database.");
24
+define("_INSTALL_L19", "%s is the name of your database in which XOOPS tables will be created.");
25
+define("_INSTALL_L20", "%s is the prefix for tables that will be made during the installation.");
26
+define("_INSTALL_L21", "The following database was not found on the server:");
27
+define("_INSTALL_L22", "Attempt to create it?");
28
+define("_INSTALL_L23", "Yes");
29
+define("_INSTALL_L24", "No");
30
+define("_INSTALL_L25", "We have detected the following database information from your configuration in mainfile.php. Please fix it now if this is not correct.");
31
+define("_INSTALL_L26", "Database Configuration");
32
+define("_INSTALL_L51", "Database");
33
+define("_INSTALL_L66", "Choose the database to be used");
34
+define("_INSTALL_L27", "Database Hostname");
35
+define("_INSTALL_L67", "Hostname of the database server. If you are unsure, 'localhost' works in most cases.");
36
+define("_INSTALL_L28", "Database Username");
37
+define("_INSTALL_L65", "Your database user account on the host");
38
+define("_INSTALL_L29", "Database Name");
39
+define("_INSTALL_L64", "The name of database on the host. The installer will attempt to create the database if not exist");
40
+define("_INSTALL_L52", "Database Password");
41
+define("_INSTALL_L68", "Password for your database user account");
42
+define("_INSTALL_L30", "Table Prefix");
43
+define("_INSTALL_L63", "This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.");
44
+define("_INSTALL_L54", "Use persistent connection?");
45
+define("_INSTALL_L69", "Default is 'NO'. Choose 'NO' if you are unsure.");
46
+define("_INSTALL_L55", "XOOPS Physical Path");
47
+define("_INSTALL_L59", "Physical path to your main XOOPS directory WITHOUT trailing slash");
48
+define("_INSTALL_L56", "XOOPS Virtual Path (URL)");
49
+define("_INSTALL_L58", "Virtual path to your main XOOPS directory WITHOUT trailing slash");
50
+
51
+define("_INSTALL_L31", "Could not create database. Contact the server administrator for details.");
52
+define("_INSTALL_L32", "Installation Complete");
53
+define("_INSTALL_L33", "Click <a href='../index.php'>HERE</a> to see the home page of your site.");
54
+define("_INSTALL_L35", "If you had any errors, please contact the dev team at <a href='http://www.xoops.org/' target='_blank'>XOOPS.org</a>");
55
+define("_INSTALL_L36", "Please choose your site admin's name and password.");
56
+define("_INSTALL_L37", "Admin Name");
57
+define("_INSTALL_L38", "Admin Email");
58
+define("_INSTALL_L39", "Admin Password");
59
+define("_INSTALL_L74", "Confirm Password");
60
+define("_INSTALL_L40", "Create Tables");
61
+define("_INSTALL_L41", "Please go back and type in all the required info.");
62
+define("_INSTALL_L42", "Back");
63
+define("_INSTALL_L57", "Please enter %s");
64 64
 
65 65
 // %s is database name
66
-define("_INSTALL_L43","Database %s created!");
66
+define("_INSTALL_L43", "Database %s created!");
67 67
 
68 68
 // %s is table name
69
-define("_INSTALL_L44","Unable to make %s");
70
-define("_INSTALL_L45","Table %s created.");
69
+define("_INSTALL_L44", "Unable to make %s");
70
+define("_INSTALL_L45", "Table %s created.");
71 71
 
72
-define("_INSTALL_L46","In order for the modules included in the package to work correctly, the following files must be writeable by the server. Please change the permission setting for these files. (i.e. 'chmod 666 file_name' and 'chmod 777 dir_name' on a UNIX/LINUX server, or check the properties of the file and make sure the read-only flag is not set on a Windows server)");
73
-define("_INSTALL_L47","Next");
72
+define("_INSTALL_L46", "In order for the modules included in the package to work correctly, the following files must be writeable by the server. Please change the permission setting for these files. (i.e. 'chmod 666 file_name' and 'chmod 777 dir_name' on a UNIX/LINUX server, or check the properties of the file and make sure the read-only flag is not set on a Windows server)");
73
+define("_INSTALL_L47", "Next");
74 74
 
75
-define("_INSTALL_L53","Please confirm the following submitted data:");
75
+define("_INSTALL_L53", "Please confirm the following submitted data:");
76 76
 
77
-define("_INSTALL_L60","Could not write into mainfile.php. Please check the file permission and try again.");
78
-define("_INSTALL_L61","Could not write to mainfile.php. Contact the server administrator for details.");
79
-define("_INSTALL_L62","Configuration data has been saved successfully to mainfile.php.");
80
-define("_INSTALL_L72","The following directories must be created with the write permission by the server. (i.e. 'chmod 777 directory_name' on a UNIX/LINUX server)");
81
-define("_INSTALL_L73","Invalid Email");
77
+define("_INSTALL_L60", "Could not write into mainfile.php. Please check the file permission and try again.");
78
+define("_INSTALL_L61", "Could not write to mainfile.php. Contact the server administrator for details.");
79
+define("_INSTALL_L62", "Configuration data has been saved successfully to mainfile.php.");
80
+define("_INSTALL_L72", "The following directories must be created with the write permission by the server. (i.e. 'chmod 777 directory_name' on a UNIX/LINUX server)");
81
+define("_INSTALL_L73", "Invalid Email");
82 82
 
83 83
 // add by haruki
84
-define("_INSTALL_L80","introduction");
85
-define("_INSTALL_L81","check file permissions");
86
-define("_INSTALL_L82","Checking file and directory permissions..");
87
-define("_INSTALL_L83","File %s is NOT writable.");
88
-define("_INSTALL_L84","File %s is writable.");
89
-define("_INSTALL_L85","Directory %s is NOT writable.");
90
-define("_INSTALL_L86","Directory %s is writable.");
91
-define("_INSTALL_L87","No errors detected.");
92
-define("_INSTALL_L89","general settings");
93
-define("_INSTALL_L90","General configuration");
94
-define("_INSTALL_L91","confirm");
95
-define("_INSTALL_L92","save settings");
96
-define("_INSTALL_L93","modify settings");
97
-define("_INSTALL_L88","Saving configuration data..");
98
-define("_INSTALL_L94","check path & URL");
99
-define("_INSTALL_L127","Checking file path & URL settings..");
100
-define("_INSTALL_L95","Could not detect the physical path to your XOOPS directory.");
101
-define("_INSTALL_L96","There is a conflict between the detected physical path (%s) and the one you input.");
102
-define("_INSTALL_L97","<b>Physical path</b> is correct.");
103
-
104
-define("_INSTALL_L99","<b>Physical path</b> must be a directory.");
105
-define("_INSTALL_L100","<b>Virtual path</b> is a valid URL.");
106
-define("_INSTALL_L101","<b>Virtual path</b> is not a valid URL.");
107
-define("_INSTALL_L102","confirm database settings");
108
-define("_INSTALL_L103","restart from the beginning");
109
-define("_INSTALL_L104","check database");
110
-define("_INSTALL_L105","atempt to create database");
111
-define("_INSTALL_L106","Could not connect to the database server.");
112
-define("_INSTALL_L107","Please check the database server and its configuration.");
113
-define("_INSTALL_L108","Connection to database server is OK.");
114
-define("_INSTALL_L109","Database %s does not exists.");
115
-define("_INSTALL_L110","Database %s exists and connectable.");
116
-define("_INSTALL_L111","Database connection is OK.<br />Press the button below to create database tables.");
117
-define("_INSTALL_L112","admin user setting");
118
-define("_INSTALL_L113","Table %s deleted.");
119
-define("_INSTALL_L114","Failed creating database tables.");
120
-define("_INSTALL_L115","Database tables created.");
121
-define("_INSTALL_L116","insert data");
122
-define("_INSTALL_L117","finish");
123
-
124
-define("_INSTALL_L118","Failed creating table %s.");
125
-define("_INSTALL_L119","%d entries inserted to table %s.");
126
-define("_INSTALL_L120","Failed inserting %d entries to table %s.");
127
-
128
-define("_INSTALL_L121","Constant %s written to %s.");
129
-define("_INSTALL_L122","Failed writing constant %s.");
130
-
131
-define("_INSTALL_L123","File %s stored in cache/ directory.");
132
-define("_INSTALL_L124","Failed storing file %s to cache/ directory.");
133
-
134
-define("_INSTALL_L125","File %s overwritten by %s.");
135
-define("_INSTALL_L126","Could not write to file %s.");
136
-
137
-define("_INSTALL_L130","The installer has detected tables for XOOPS 1.3.x in your database.<br />The installer will now attempt to upgrade your database to XOOPS2.");
138
-define("_INSTALL_L131","Tables for XOOPS2 already exist in your database.");
139
-define("_INSTALL_L132","update tables");
140
-define("_INSTALL_L133","Table %s updated.");
141
-define("_INSTALL_L134","Failed updating table %s.");
142
-define("_INSTALL_L135","Failed updating database tables.");
143
-define("_INSTALL_L136","Database tables updated.");
144
-define("_INSTALL_L137","update modules");
145
-define("_INSTALL_L138","update comments");
146
-define("_INSTALL_L139","update avatars");
147
-define("_INSTALL_L140","update smilies");
148
-define("_INSTALL_L141","The installer will now update each module to work with XOOPS2.<br />Make sure that you have uploaded all files in XOOPS2 package to your server.<br />This may take a while to complete.");
149
-define("_INSTALL_L142","Updating modules..");
150
-define("_INSTALL_L143","The installer will now update configuration data of XOOPS 1.3.x to be used with XOOPS2.");
151
-define("_INSTALL_L144","update config");
152
-define("_INSTALL_L145","Comment (ID: %s) inserted to the database.");
153
-define("_INSTALL_L146","Could not insert comment (ID: %s) to the database.");
154
-define("_INSTALL_L147","Updating comments..");
155
-define("_INSTALL_L148","Update complete.");
156
-define("_INSTALL_L149","The installer will now update comment posts in XOOPS 1.3.x to be used in XOOPS2.<br />This may take a while to complete.");
157
-define("_INSTALL_L150","The installer will now update the smiley and user rank images to be used with XOOPS2.<br />This may take a while to complete.");
158
-define("_INSTALL_L151","The installer will now update the user avatar images to be used in XOOPS2.<br />This may take a while to complete.");
159
-define("_INSTALL_L155","Updating smiley/rank images..");
160
-define("_INSTALL_L156","Updating user avatar images..");
161
-define("_INSTALL_L157","Select the default user group for each group type");
162
-define("_INSTALL_L158","Groups in 1.3.x");
163
-define("_INSTALL_L159","Webmasters");
164
-define("_INSTALL_L160","Register Users");
165
-define("_INSTALL_L161","Anonymous Users");
166
-define("_INSTALL_L162","You must select a default group for each group type.");
167
-define("_INSTALL_L163","Table %s dropped.");
168
-define("_INSTALL_L164","Failed deleting table %s.");
169
-define("_INSTALL_L165","The site is currently closed for maintainance. Please come back later.");
84
+define("_INSTALL_L80", "introduction");
85
+define("_INSTALL_L81", "check file permissions");
86
+define("_INSTALL_L82", "Checking file and directory permissions..");
87
+define("_INSTALL_L83", "File %s is NOT writable.");
88
+define("_INSTALL_L84", "File %s is writable.");
89
+define("_INSTALL_L85", "Directory %s is NOT writable.");
90
+define("_INSTALL_L86", "Directory %s is writable.");
91
+define("_INSTALL_L87", "No errors detected.");
92
+define("_INSTALL_L89", "general settings");
93
+define("_INSTALL_L90", "General configuration");
94
+define("_INSTALL_L91", "confirm");
95
+define("_INSTALL_L92", "save settings");
96
+define("_INSTALL_L93", "modify settings");
97
+define("_INSTALL_L88", "Saving configuration data..");
98
+define("_INSTALL_L94", "check path & URL");
99
+define("_INSTALL_L127", "Checking file path & URL settings..");
100
+define("_INSTALL_L95", "Could not detect the physical path to your XOOPS directory.");
101
+define("_INSTALL_L96", "There is a conflict between the detected physical path (%s) and the one you input.");
102
+define("_INSTALL_L97", "<b>Physical path</b> is correct.");
103
+
104
+define("_INSTALL_L99", "<b>Physical path</b> must be a directory.");
105
+define("_INSTALL_L100", "<b>Virtual path</b> is a valid URL.");
106
+define("_INSTALL_L101", "<b>Virtual path</b> is not a valid URL.");
107
+define("_INSTALL_L102", "confirm database settings");
108
+define("_INSTALL_L103", "restart from the beginning");
109
+define("_INSTALL_L104", "check database");
110
+define("_INSTALL_L105", "atempt to create database");
111
+define("_INSTALL_L106", "Could not connect to the database server.");
112
+define("_INSTALL_L107", "Please check the database server and its configuration.");
113
+define("_INSTALL_L108", "Connection to database server is OK.");
114
+define("_INSTALL_L109", "Database %s does not exists.");
115
+define("_INSTALL_L110", "Database %s exists and connectable.");
116
+define("_INSTALL_L111", "Database connection is OK.<br />Press the button below to create database tables.");
117
+define("_INSTALL_L112", "admin user setting");
118
+define("_INSTALL_L113", "Table %s deleted.");
119
+define("_INSTALL_L114", "Failed creating database tables.");
120
+define("_INSTALL_L115", "Database tables created.");
121
+define("_INSTALL_L116", "insert data");
122
+define("_INSTALL_L117", "finish");
123
+
124
+define("_INSTALL_L118", "Failed creating table %s.");
125
+define("_INSTALL_L119", "%d entries inserted to table %s.");
126
+define("_INSTALL_L120", "Failed inserting %d entries to table %s.");
127
+
128
+define("_INSTALL_L121", "Constant %s written to %s.");
129
+define("_INSTALL_L122", "Failed writing constant %s.");
130
+
131
+define("_INSTALL_L123", "File %s stored in cache/ directory.");
132
+define("_INSTALL_L124", "Failed storing file %s to cache/ directory.");
133
+
134
+define("_INSTALL_L125", "File %s overwritten by %s.");
135
+define("_INSTALL_L126", "Could not write to file %s.");
136
+
137
+define("_INSTALL_L130", "The installer has detected tables for XOOPS 1.3.x in your database.<br />The installer will now attempt to upgrade your database to XOOPS2.");
138
+define("_INSTALL_L131", "Tables for XOOPS2 already exist in your database.");
139
+define("_INSTALL_L132", "update tables");
140
+define("_INSTALL_L133", "Table %s updated.");
141
+define("_INSTALL_L134", "Failed updating table %s.");
142
+define("_INSTALL_L135", "Failed updating database tables.");
143
+define("_INSTALL_L136", "Database tables updated.");
144
+define("_INSTALL_L137", "update modules");
145
+define("_INSTALL_L138", "update comments");
146
+define("_INSTALL_L139", "update avatars");
147
+define("_INSTALL_L140", "update smilies");
148
+define("_INSTALL_L141", "The installer will now update each module to work with XOOPS2.<br />Make sure that you have uploaded all files in XOOPS2 package to your server.<br />This may take a while to complete.");
149
+define("_INSTALL_L142", "Updating modules..");
150
+define("_INSTALL_L143", "The installer will now update configuration data of XOOPS 1.3.x to be used with XOOPS2.");
151
+define("_INSTALL_L144", "update config");
152
+define("_INSTALL_L145", "Comment (ID: %s) inserted to the database.");
153
+define("_INSTALL_L146", "Could not insert comment (ID: %s) to the database.");
154
+define("_INSTALL_L147", "Updating comments..");
155
+define("_INSTALL_L148", "Update complete.");
156
+define("_INSTALL_L149", "The installer will now update comment posts in XOOPS 1.3.x to be used in XOOPS2.<br />This may take a while to complete.");
157
+define("_INSTALL_L150", "The installer will now update the smiley and user rank images to be used with XOOPS2.<br />This may take a while to complete.");
158
+define("_INSTALL_L151", "The installer will now update the user avatar images to be used in XOOPS2.<br />This may take a while to complete.");
159
+define("_INSTALL_L155", "Updating smiley/rank images..");
160
+define("_INSTALL_L156", "Updating user avatar images..");
161
+define("_INSTALL_L157", "Select the default user group for each group type");
162
+define("_INSTALL_L158", "Groups in 1.3.x");
163
+define("_INSTALL_L159", "Webmasters");
164
+define("_INSTALL_L160", "Register Users");
165
+define("_INSTALL_L161", "Anonymous Users");
166
+define("_INSTALL_L162", "You must select a default group for each group type.");
167
+define("_INSTALL_L163", "Table %s dropped.");
168
+define("_INSTALL_L164", "Failed deleting table %s.");
169
+define("_INSTALL_L165", "The site is currently closed for maintainance. Please come back later.");
170 170
 
171 171
 // %s is filename
172
-define("_INSTALL_L152","Could not open %s.");
173
-define("_INSTALL_L153","Could not update %s.");
174
-define("_INSTALL_L154","%s updated.");
172
+define("_INSTALL_L152", "Could not open %s.");
173
+define("_INSTALL_L153", "Could not update %s.");
174
+define("_INSTALL_L154", "%s updated.");
175 175
 
176 176
 define('_INSTALL_L128', 'Choose language to be used for the installation process');
177 177
 define('_INSTALL_L200', 'Reload');
178 178
 
179 179
 
180
-define('_INSTALL_CHARSET','ISO-8859-1');
181
-define('_MU_UPDATE','Upgrade EFQ Directory');
180
+define('_INSTALL_CHARSET', 'ISO-8859-1');
181
+define('_MU_UPDATE', 'Upgrade EFQ Directory');
182 182
 ?>
183 183
\ No newline at end of file
Please login to merge, or discard this patch.
submit.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,17 +38,17 @@  discard block
 block discarded – undo
38 38
 
39 39
 $moddir = $xoopsModule->getVar('dirname');
40 40
 if (isset($_POST["dirid"])) {
41
-    $dirid = intval($_POST["dirid"]);
41
+	$dirid = intval($_POST["dirid"]);
42 42
 } else if (isset($_GET["dirid"])) {
43
-    $dirid = intval($_GET["dirid"]);
43
+	$dirid = intval($_GET["dirid"]);
44 44
 }
45 45
 
46 46
 $eh = new ErrorHandler; //ErrorHandler object
47 47
 
48 48
 if (isset($_GET["op"])) {
49
-    $op =  $_GET["op"];
49
+	$op =  $_GET["op"];
50 50
 } else if (isset($_POST["op"])) {
51
-    $op =  $_POST["op"];
51
+	$op =  $_POST["op"];
52 52
 }
53 53
 
54 54
 if (empty($xoopsUser) and !$xoopsModuleConfig['anonpost']) {
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	$allcatsresult = $xoopsDB->query("SELECT cid FROM ".$xoopsDB->prefix("efqdiralpha1_cat")." WHERE dirid='".$dirid."' AND active='1'");
82 82
 	$numrows = $xoopsDB->getRowsNum($allcatsresult);
83 83
 	$count = 0;
84
-    if ( $numrows > 0 ) {
84
+	if ( $numrows > 0 ) {
85 85
 		while(list($cid) = $xoopsDB->fetchRow($allcatsresult)) {
86 86
 			if (isset($_POST["selected".$cid.""])) {
87 87
 				$sql = sprintf("INSERT INTO %s (xid, cid, itemid, active, created) VALUES (%u, %u, %u, '%s', '%s')", $xoopsDB->prefix("efqdiralpha1_item_x_cat"), $newid, $cid, $itemid, 1, time());
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 //	Based upon the mylinks and the mxDirectory modules						 //
31 31
 // ------------------------------------------------------------------------- //
32 32
 include "header.php";
33
-$myts =& MyTextSanitizer::getInstance();// MyTextSanitizer object
33
+$myts = & MyTextSanitizer::getInstance(); // MyTextSanitizer object
34 34
 include_once XOOPS_ROOT_PATH."/class/xoopstree.php";
35 35
 include_once XOOPS_ROOT_PATH."/class/module.errorhandler.php";
36 36
 include_once XOOPS_ROOT_PATH."/include/xoopscodes.php";
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
 $eh = new ErrorHandler; //ErrorHandler object
47 47
 
48 48
 if (isset($_GET["op"])) {
49
-    $op =  $_GET["op"];
49
+    $op = $_GET["op"];
50 50
 } else if (isset($_POST["op"])) {
51
-    $op =  $_POST["op"];
51
+    $op = $_POST["op"];
52 52
 }
53 53
 
54 54
 if (empty($xoopsUser) and !$xoopsModuleConfig['anonpost']) {
55
-	redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST);
55
+	redirect_header(XOOPS_URL."/user.php", 2, _MD_MUSTREGFIRST);
56 56
 	exit();
57 57
 }
58 58
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	$title = $myts->makeTboxData4Save($_POST["title"]);
66 66
 	$date = time();
67 67
 	$newid = $xoopsDB->genId($xoopsDB->prefix("efqdiralpha1_items")."_itemid_seq");
68
-	if ( $xoopsModuleConfig['autoapprove'] == 1 or $xoopsModuleConfig['autoapproveadmin'] == 1 ) {
68
+	if ($xoopsModuleConfig['autoapprove'] == 1 or $xoopsModuleConfig['autoapproveadmin'] == 1) {
69 69
 		$status = 1;
70 70
 	} else {
71 71
 		$status = 0;
@@ -81,20 +81,20 @@  discard block
 block discarded – undo
81 81
 	$allcatsresult = $xoopsDB->query("SELECT cid FROM ".$xoopsDB->prefix("efqdiralpha1_cat")." WHERE dirid='".$dirid."' AND active='1'");
82 82
 	$numrows = $xoopsDB->getRowsNum($allcatsresult);
83 83
 	$count = 0;
84
-    if ( $numrows > 0 ) {
85
-		while(list($cid) = $xoopsDB->fetchRow($allcatsresult)) {
84
+    if ($numrows > 0) {
85
+		while (list($cid) = $xoopsDB->fetchRow($allcatsresult)) {
86 86
 			if (isset($_POST["selected".$cid.""])) {
87 87
 				$sql = sprintf("INSERT INTO %s (xid, cid, itemid, active, created) VALUES (%u, %u, %u, '%s', '%s')", $xoopsDB->prefix("efqdiralpha1_item_x_cat"), $newid, $cid, $itemid, 1, time());
88 88
 				$xoopsDB->query($sql) or $eh->show("0013");
89
-				$count ++;
89
+				$count++;
90 90
 			}
91 91
 		}
92 92
 		if ($count == 0) {
93
-			redirect_header(XOOPS_URL."/modules/$moddir/submit.php?dirid=".$post_dirid."",2,_MD_NOCATEGORYMATCH);
93
+			redirect_header(XOOPS_URL."/modules/$moddir/submit.php?dirid=".$post_dirid."", 2, _MD_NOCATEGORYMATCH);
94 94
 			exit();
95 95
 		}
96 96
 	} else {
97
-		redirect_header(XOOPS_URL."/modules/$moddir/submit.php?dirid=".$post_dirid."",2,_MD_NOCATEGORIESAVAILABLE);
97
+		redirect_header(XOOPS_URL."/modules/$moddir/submit.php?dirid=".$post_dirid."", 2, _MD_NOCATEGORIESAVAILABLE);
98 98
 		exit();
99 99
 	}
100 100
 	
@@ -117,13 +117,13 @@  discard block
 block discarded – undo
117 117
 		redirect_header(XOOPS_URL."/modules/$moddir/edit.php?item=".$itemid."",2,_MD_SAVED);
118 118
 	}*/
119 119
 	
120
-	redirect_header(XOOPS_URL."/modules/$moddir/edit.php?item=".$itemid."",2,_MD_SAVED);
120
+	redirect_header(XOOPS_URL."/modules/$moddir/edit.php?item=".$itemid."", 2, _MD_SAVED);
121 121
 	exit();
122 122
 } else {
123 123
 	if (isset($_GET['dirid'])) {
124 124
 		$get_dirid = intval($_GET['dirid']);
125 125
 	} else {
126
-		redirect_header(XOOPS_URL."/modules/$moddir/index.php",2,_MD_NODIRECTORYSELECTED);
126
+		redirect_header(XOOPS_URL."/modules/$moddir/index.php", 2, _MD_NODIRECTORYSELECTED);
127 127
 	}
128 128
 	$xoopsOption['template_main'] = 'efqdiralpha1_submit.html';
129 129
 	include XOOPS_ROOT_PATH."/header.php";
@@ -132,17 +132,17 @@  discard block
 block discarded – undo
132 132
 	ob_start();
133 133
 	$form = new XoopsThemeForm(_MD_SUBMITLISTING_FORM, 'submitform', 'submit.php');
134 134
 	$form->setExtra('enctype="multipart/form-data"');
135
-	$editor = !empty($_REQUEST['editor'])?$_REQUEST['editor']:"";
136
-	if(!empty($editor)){
137
-		setcookie("editor",$editor); // save to cookie
138
-	}else
135
+	$editor = !empty($_REQUEST['editor']) ? $_REQUEST['editor'] : "";
136
+	if (!empty($editor)) {
137
+		setcookie("editor", $editor); // save to cookie
138
+	} else
139 139
 	// Or use user pre-selected editor through profile
140
-	if(is_object($xoopsUser)){
141
-		$editor =@ $xoopsUser->getVar("editor"); // Need set through user profile
140
+	if (is_object($xoopsUser)) {
141
+		$editor = @ $xoopsUser->getVar("editor"); // Need set through user profile
142 142
 	}
143 143
 	$editor = "koivi";
144
-	$options['name'] ='link_description';
145
-	$options['value'] = empty($_REQUEST['message'])?"":$_REQUEST['message'];
144
+	$options['name'] = 'link_description';
145
+	$options['value'] = empty($_REQUEST['message']) ? "" : $_REQUEST['message'];
146 146
 	$options['value'] = "";
147 147
 	//optional configs
148 148
 	$options['rows'] = 25; // default value = 5
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 	$editor = !empty($_REQUEST['editor'])?$_REQUEST['editor']:"";
136 136
 	if(!empty($editor)){
137 137
 		setcookie("editor",$editor); // save to cookie
138
-	}else
138
+	} else
139 139
 	// Or use user pre-selected editor through profile
140 140
 	if(is_object($xoopsUser)){
141 141
 		$editor =@ $xoopsUser->getVar("editor"); // Need set through user profile
Please login to merge, or discard this patch.
ipn.php 2 patches
Switch Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -28,33 +28,33 @@
 block discarded – undo
28 28
 //decide which post method to use
29 29
 switch($paypal['post_method']) { 
30 30
 
31
-case "libCurl": //php compiled with libCurl support
31
+	case "libCurl": //php compiled with libCurl support
32 32
 
33
-$result=libCurlPost($paypal['url'],$_POST); 
33
+	$result=libCurlPost($paypal['url'],$_POST); 
34 34
 
35 35
 
36
-break;
36
+	break;
37 37
 
38 38
 
39
-case "curl": //cURL via command line
39
+	case "curl": //cURL via command line
40 40
 
41
-$result=curlPost($paypal['url'],$_POST); 
42
-//print_r($result);
43
-break; 
41
+	$result=curlPost($paypal['url'],$_POST); 
42
+	//print_r($result);
43
+	break; 
44 44
 
45 45
 
46
-case "fso": //php fsockopen(); 
46
+	case "fso": //php fsockopen(); 
47 47
 
48
-$result=fsockPost($paypal['url'],$_POST); 
49
-//print_r($result);
50
-break; 
48
+	$result=fsockPost($paypal['url'],$_POST); 
49
+	//print_r($result);
50
+	break; 
51 51
 
52 52
 
53
-default: //use the fsockopen method as default post method
53
+	default: //use the fsockopen method as default post method
54 54
 
55
-$result=fsockPost($paypal['url'],$_POST);
56
-//print_r($result);
57
-break;
55
+	$result=fsockPost($paypal['url'],$_POST);
56
+	//print_r($result);
57
+	break;
58 58
 
59 59
 }
60 60
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
  */
14 14
 include "header.php";
15 15
 include_once XOOPS_ROOT_PATH."/class/module.errorhandler.php";
16
-$myts =& MyTextSanitizer::getInstance();// MyTextSanitizer object
16
+$myts = & MyTextSanitizer::getInstance(); // MyTextSanitizer object
17 17
 
18 18
 include_once 'class/class.subscription.php';
19 19
 
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
 
27 27
 
28 28
 //decide which post method to use
29
-switch($paypal['post_method']) { 
29
+switch ($paypal['post_method']) { 
30 30
 
31 31
 case "libCurl": //php compiled with libCurl support
32 32
 
33
-$result=libCurlPost($paypal['url'],$_POST); 
33
+$result = libCurlPost($paypal['url'], $_POST); 
34 34
 
35 35
 
36 36
 break;
@@ -38,21 +38,21 @@  discard block
 block discarded – undo
38 38
 
39 39
 case "curl": //cURL via command line
40 40
 
41
-$result=curlPost($paypal['url'],$_POST); 
41
+$result = curlPost($paypal['url'], $_POST); 
42 42
 //print_r($result);
43 43
 break; 
44 44
 
45 45
 
46 46
 case "fso": //php fsockopen(); 
47 47
 
48
-$result=fsockPost($paypal['url'],$_POST); 
48
+$result = fsockPost($paypal['url'], $_POST); 
49 49
 //print_r($result);
50 50
 break; 
51 51
 
52 52
 
53 53
 default: //use the fsockopen method as default post method
54 54
 
55
-$result=fsockPost($paypal['url'],$_POST);
55
+$result = fsockPost($paypal['url'], $_POST);
56 56
 //print_r($result);
57 57
 break;
58 58
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
 //check the ipn result received back from paypal
63 63
 
64
-if(eregi("VERIFIED",$result)) {
64
+if (eregi("VERIFIED", $result)) {
65 65
 	// Automatic update of the subscription is not yet included in the success page.
66 66
 	// This will need to be done manually.
67 67
 	include_once('ipn/ipn_success.php'); 
Please login to merge, or discard this patch.
ipn/ipn_error.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 // this is an include file - no functionality when
16 16
 // called directly
17 17
 
18
-if(isset($paypal['business']))
18
+if (isset($paypal['business']))
19 19
 {
20 20
 //log error to file or database
21 21
 	echo "some kind of error occurred.";
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
 {
20 20
 //log error to file or database
21 21
 	echo "some kind of error occurred.";
22
-}
23
-else
22
+} else
24 23
 {
25 24
 	die('This page is not directly accessible');
26 25
 }
Please login to merge, or discard this patch.