Passed
Branch v3.5 (f0ef26)
by Samir
36:09
created
web_interface/astpp/application/config/doctypes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! defined ( 'BASEPATH' )) {
4
-	exit ( 'No direct script access allowed' );
3
+if ( ! defined('BASEPATH')) {
4
+	exit ('No direct script access allowed');
5 5
 }
6 6
 
7
-$_doctypes = array (
7
+$_doctypes = array(
8 8
 		'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
9 9
 		'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
10 10
 		'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
Please login to merge, or discard this patch.
web_interface/astpp/application/config/cron.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! defined ( 'CRON' )) {
4
-	exit ( 'CLI script access allowed only' );
3
+if ( ! defined('CRON')) {
4
+	exit ('CLI script access allowed only');
5 5
 }
6 6
 
7 7
 /*
@@ -10,10 +10,10 @@  discard block
 block discarded – undo
10 10
  * |--------------------------------------------------------------------------
11 11
  */
12 12
 
13
-$astpp_config = parse_ini_file ( "/var/lib/astpp/astpp-config.conf" );
13
+$astpp_config = parse_ini_file("/var/lib/astpp/astpp-config.conf");
14 14
 $config ['SERVER_NAME'] = $astpp_config ['base_url']; // Your web site url
15 15
 $config ['CRON_TIME_LIMIT'] = 0; // 0 = no time limit
16
-$config ['argv'] = array (
16
+$config ['argv'] = array(
17 17
 		"LowBalance" => "lowbalance/low_balance",
18 18
 		"CurrencyUpdate" => "currencyupdate/update_currency",
19 19
 								/*ASTPP_invoice_changes_05_05_start*/
Please login to merge, or discard this patch.
web_interface/astpp/application/config/database.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! defined ( 'BASEPATH' )) {
4
-	exit ( 'No direct script access allowed' );
3
+if ( ! defined('BASEPATH')) {
4
+	exit ('No direct script access allowed');
5 5
 }
6 6
 /*
7 7
  * | -------------------------------------------------------------------
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
  * | The $active_record variables lets you determine whether or not to load
49 49
  * | the active record class
50 50
  */
51
-$astpp_config = parse_ini_file ( "/var/lib/astpp/astpp-config.conf" );
51
+$astpp_config = parse_ini_file("/var/lib/astpp/astpp-config.conf");
52 52
 
53 53
 $active_group = 'default';
54 54
 $active_record = TRUE;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 $db ['default'] ['username'] = $astpp_config ['dbuser'];
58 58
 $db ['default'] ['password'] = $astpp_config ['dbpass'];
59 59
 $db ['default'] ['database'] = $astpp_config ['dbname'];
60
-$db ['default'] ['dbdriver'] = strtolower ( $astpp_config ['astpp_dbengine'] );
60
+$db ['default'] ['dbdriver'] = strtolower($astpp_config ['astpp_dbengine']);
61 61
 $db ['default'] ['dbprefix'] = '';
62 62
 $db ['default'] ['pconnect'] = FALSE;
63 63
 $db ['default'] ['db_debug'] = "1";
Please login to merge, or discard this patch.
web_interface/astpp/application/config/hooks.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! defined ( 'BASEPATH' )) {
4
-	exit ( 'No direct script access allowed' );
3
+if ( ! defined('BASEPATH')) {
4
+	exit ('No direct script access allowed');
5 5
 }
6 6
 /*
7 7
  * | -------------------------------------------------------------------------
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
  * Purpose : Display logo based on domain name
19 19
  *
20 20
  */
21
-$hook ['pre_system'] = array (
21
+$hook ['pre_system'] = array(
22 22
 		'class' => 'Router',
23 23
 		'function' => 'route',
24 24
 		'filename' => 'router.php',
25 25
 		'filepath' => 'hooks' 
26 26
 );
27 27
 
28
-$hook ['pre_controller'] = array (
28
+$hook ['pre_controller'] = array(
29 29
 		'class' => 'Router',
30 30
 		'function' => 'config',
31 31
 		'filename' => 'router.php',
Please login to merge, or discard this patch.
web_interface/astpp/application/config/mimes.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! defined ( 'BASEPATH' )) {
4
-	exit ( 'No direct script access allowed' );
3
+if ( ! defined('BASEPATH')) {
4
+	exit ('No direct script access allowed');
5 5
 }
6 6
 /*
7 7
  * | -------------------------------------------------------------------
@@ -12,10 +12,10 @@  discard block
 block discarded – undo
12 12
  * |
13 13
  */
14 14
 
15
-$mimes = array (
15
+$mimes = array(
16 16
 		'hqx' => 'application/mac-binhex40',
17 17
 		'cpt' => 'application/mac-compactpro',
18
-		'csv' => array (
18
+		'csv' => array(
19 19
 				'text/x-comma-separated-values',
20 20
 				'text/comma-separated-values',
21 21
 				'application/octet-stream',
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 		'dms' => 'application/octet-stream',
32 32
 		'lha' => 'application/octet-stream',
33 33
 		'lzh' => 'application/octet-stream',
34
-		'exe' => array (
34
+		'exe' => array(
35 35
 				'application/octet-stream',
36 36
 				'application/x-msdownload' 
37 37
 		),
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 		'sea' => 'application/octet-stream',
42 42
 		'dll' => 'application/octet-stream',
43 43
 		'oda' => 'application/oda',
44
-		'pdf' => array (
44
+		'pdf' => array(
45 45
 				'application/pdf',
46 46
 				'application/x-download' 
47 47
 		),
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
 		'smi' => 'application/smil',
52 52
 		'smil' => 'application/smil',
53 53
 		'mif' => 'application/vnd.mif',
54
-		'xls' => array (
54
+		'xls' => array(
55 55
 				'application/excel',
56 56
 				'application/vnd.ms-excel',
57 57
 				'application/msexcel' 
58 58
 		),
59
-		'ppt' => array (
59
+		'ppt' => array(
60 60
 				'application/powerpoint',
61 61
 				'application/vnd.ms-powerpoint' 
62 62
 		),
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
 		'swf' => 'application/x-shockwave-flash',
78 78
 		'sit' => 'application/x-stuffit',
79 79
 		'tar' => 'application/x-tar',
80
-		'tgz' => array (
80
+		'tgz' => array(
81 81
 				'application/x-tar',
82 82
 				'application/x-gzip-compressed' 
83 83
 		),
84 84
 		'xhtml' => 'application/xhtml+xml',
85 85
 		'xht' => 'application/xhtml+xml',
86
-		'zip' => array (
86
+		'zip' => array(
87 87
 				'application/x-zip',
88 88
 				'application/zip',
89 89
 				'application/x-zip-compressed' 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 		'midi' => 'audio/midi',
93 93
 		'mpga' => 'audio/mpeg',
94 94
 		'mp2' => 'audio/mpeg',
95
-		'mp3' => array (
95
+		'mp3' => array(
96 96
 				'audio/mpeg',
97 97
 				'audio/mpg',
98 98
 				'audio/mpeg3',
@@ -106,29 +106,29 @@  discard block
 block discarded – undo
106 106
 		'rpm' => 'audio/x-pn-realaudio-plugin',
107 107
 		'ra' => 'audio/x-realaudio',
108 108
 		'rv' => 'video/vnd.rn-realvideo',
109
-		'wav' => array (
109
+		'wav' => array(
110 110
 				'audio/x-wav',
111 111
 				'audio/wave',
112 112
 				'audio/wav' 
113 113
 		),
114
-		'bmp' => array (
114
+		'bmp' => array(
115 115
 				'image/bmp',
116 116
 				'image/x-windows-bmp' 
117 117
 		),
118 118
 		'gif' => 'image/gif',
119
-		'jpeg' => array (
119
+		'jpeg' => array(
120 120
 				'image/jpeg',
121 121
 				'image/pjpeg' 
122 122
 		),
123
-		'jpg' => array (
123
+		'jpg' => array(
124 124
 				'image/jpeg',
125 125
 				'image/pjpeg' 
126 126
 		),
127
-		'jpe' => array (
127
+		'jpe' => array(
128 128
 				'image/jpeg',
129 129
 				'image/pjpeg' 
130 130
 		),
131
-		'png' => array (
131
+		'png' => array(
132 132
 				'image/png',
133 133
 				'image/x-png' 
134 134
 		),
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 		'shtml' => 'text/html',
141 141
 		'txt' => 'text/plain',
142 142
 		'text' => 'text/plain',
143
-		'log' => array (
143
+		'log' => array(
144 144
 				'text/plain',
145 145
 				'text/x-log' 
146 146
 		),
@@ -158,13 +158,13 @@  discard block
 block discarded – undo
158 158
 		'doc' => 'application/msword',
159 159
 		'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
160 160
 		'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
161
-		'word' => array (
161
+		'word' => array(
162 162
 				'application/msword',
163 163
 				'application/octet-stream' 
164 164
 		),
165 165
 		'xl' => 'application/excel',
166 166
 		'eml' => 'message/rfc822',
167
-		'json' => array (
167
+		'json' => array(
168 168
 				'application/json',
169 169
 				'text/json' 
170 170
 		) 
Please login to merge, or discard this patch.
web_interface/astpp/application/config/migration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' );
3
+defined('BASEPATH') or exit ('No direct script access allowed');
4 4
 /*
5 5
  * |--------------------------------------------------------------------------
6 6
  * | Enable/Disable Migrations
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
  * | Also, writing permission is required within the migrations path.
35 35
  * |
36 36
  */
37
-$config ['migration_path'] = APPPATH . 'migrations/';
37
+$config ['migration_path'] = APPPATH.'migrations/';
38 38
 
39 39
 
40 40
 /* End of file migration.php */
Please login to merge, or discard this patch.
web_interface/astpp/application/config/smileys.php 1 patch
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! defined ( 'BASEPATH' )) {
4
-	exit ( 'No direct script access allowed' );
3
+if ( ! defined('BASEPATH')) {
4
+	exit ('No direct script access allowed');
5 5
 }
6 6
 /*
7 7
  * | -------------------------------------------------------------------
@@ -16,263 +16,263 @@  discard block
 block discarded – undo
16 16
  * |
17 17
  */
18 18
 
19
-$smileys = array (
19
+$smileys = array(
20 20
 		
21 21
 		// smiley image name width height alt
22 22
 		
23
-		':-)' => array (
23
+		':-)' => array(
24 24
 				'grin.gif',
25 25
 				'19',
26 26
 				'19',
27 27
 				'grin' 
28 28
 		),
29
-		':lol:' => array (
29
+		':lol:' => array(
30 30
 				'lol.gif',
31 31
 				'19',
32 32
 				'19',
33 33
 				'LOL' 
34 34
 		),
35
-		':cheese:' => array (
35
+		':cheese:' => array(
36 36
 				'cheese.gif',
37 37
 				'19',
38 38
 				'19',
39 39
 				'cheese' 
40 40
 		),
41
-		':)' => array (
41
+		':)' => array(
42 42
 				'smile.gif',
43 43
 				'19',
44 44
 				'19',
45 45
 				'smile' 
46 46
 		),
47
-		';-)' => array (
47
+		';-)' => array(
48 48
 				'wink.gif',
49 49
 				'19',
50 50
 				'19',
51 51
 				'wink' 
52 52
 		),
53
-		';)' => array (
53
+		';)' => array(
54 54
 				'wink.gif',
55 55
 				'19',
56 56
 				'19',
57 57
 				'wink' 
58 58
 		),
59
-		':smirk:' => array (
59
+		':smirk:' => array(
60 60
 				'smirk.gif',
61 61
 				'19',
62 62
 				'19',
63 63
 				'smirk' 
64 64
 		),
65
-		':roll:' => array (
65
+		':roll:' => array(
66 66
 				'rolleyes.gif',
67 67
 				'19',
68 68
 				'19',
69 69
 				'rolleyes' 
70 70
 		),
71
-		':-S' => array (
71
+		':-S' => array(
72 72
 				'confused.gif',
73 73
 				'19',
74 74
 				'19',
75 75
 				'confused' 
76 76
 		),
77
-		':wow:' => array (
77
+		':wow:' => array(
78 78
 				'surprise.gif',
79 79
 				'19',
80 80
 				'19',
81 81
 				'surprised' 
82 82
 		),
83
-		':bug:' => array (
83
+		':bug:' => array(
84 84
 				'bigsurprise.gif',
85 85
 				'19',
86 86
 				'19',
87 87
 				'big surprise' 
88 88
 		),
89
-		':-P' => array (
89
+		':-P' => array(
90 90
 				'tongue_laugh.gif',
91 91
 				'19',
92 92
 				'19',
93 93
 				'tongue laugh' 
94 94
 		),
95
-		'%-P' => array (
95
+		'%-P' => array(
96 96
 				'tongue_rolleye.gif',
97 97
 				'19',
98 98
 				'19',
99 99
 				'tongue rolleye' 
100 100
 		),
101
-		';-P' => array (
101
+		';-P' => array(
102 102
 				'tongue_wink.gif',
103 103
 				'19',
104 104
 				'19',
105 105
 				'tongue wink' 
106 106
 		),
107
-		':P' => array (
107
+		':P' => array(
108 108
 				'raspberry.gif',
109 109
 				'19',
110 110
 				'19',
111 111
 				'raspberry' 
112 112
 		),
113
-		':blank:' => array (
113
+		':blank:' => array(
114 114
 				'blank.gif',
115 115
 				'19',
116 116
 				'19',
117 117
 				'blank stare' 
118 118
 		),
119
-		':long:' => array (
119
+		':long:' => array(
120 120
 				'longface.gif',
121 121
 				'19',
122 122
 				'19',
123 123
 				'long face' 
124 124
 		),
125
-		':ohh:' => array (
125
+		':ohh:' => array(
126 126
 				'ohh.gif',
127 127
 				'19',
128 128
 				'19',
129 129
 				'ohh' 
130 130
 		),
131
-		':grrr:' => array (
131
+		':grrr:' => array(
132 132
 				'grrr.gif',
133 133
 				'19',
134 134
 				'19',
135 135
 				'grrr' 
136 136
 		),
137
-		':gulp:' => array (
137
+		':gulp:' => array(
138 138
 				'gulp.gif',
139 139
 				'19',
140 140
 				'19',
141 141
 				'gulp' 
142 142
 		),
143
-		'8-/' => array (
143
+		'8-/' => array(
144 144
 				'ohoh.gif',
145 145
 				'19',
146 146
 				'19',
147 147
 				'oh oh' 
148 148
 		),
149
-		':down:' => array (
149
+		':down:' => array(
150 150
 				'downer.gif',
151 151
 				'19',
152 152
 				'19',
153 153
 				'downer' 
154 154
 		),
155
-		':red:' => array (
155
+		':red:' => array(
156 156
 				'embarrassed.gif',
157 157
 				'19',
158 158
 				'19',
159 159
 				'red face' 
160 160
 		),
161
-		':sick:' => array (
161
+		':sick:' => array(
162 162
 				'sick.gif',
163 163
 				'19',
164 164
 				'19',
165 165
 				'sick' 
166 166
 		),
167
-		':shut:' => array (
167
+		':shut:' => array(
168 168
 				'shuteye.gif',
169 169
 				'19',
170 170
 				'19',
171 171
 				'shut eye' 
172 172
 		),
173
-		':-/' => array (
173
+		':-/' => array(
174 174
 				'hmm.gif',
175 175
 				'19',
176 176
 				'19',
177 177
 				'hmmm' 
178 178
 		),
179
-		'>:(' => array (
179
+		'>:(' => array(
180 180
 				'mad.gif',
181 181
 				'19',
182 182
 				'19',
183 183
 				'mad' 
184 184
 		),
185
-		':mad:' => array (
185
+		':mad:' => array(
186 186
 				'mad.gif',
187 187
 				'19',
188 188
 				'19',
189 189
 				'mad' 
190 190
 		),
191
-		'>:-(' => array (
191
+		'>:-(' => array(
192 192
 				'angry.gif',
193 193
 				'19',
194 194
 				'19',
195 195
 				'angry' 
196 196
 		),
197
-		':angry:' => array (
197
+		':angry:' => array(
198 198
 				'angry.gif',
199 199
 				'19',
200 200
 				'19',
201 201
 				'angry' 
202 202
 		),
203
-		':zip:' => array (
203
+		':zip:' => array(
204 204
 				'zip.gif',
205 205
 				'19',
206 206
 				'19',
207 207
 				'zipper' 
208 208
 		),
209
-		':kiss:' => array (
209
+		':kiss:' => array(
210 210
 				'kiss.gif',
211 211
 				'19',
212 212
 				'19',
213 213
 				'kiss' 
214 214
 		),
215
-		':ahhh:' => array (
215
+		':ahhh:' => array(
216 216
 				'shock.gif',
217 217
 				'19',
218 218
 				'19',
219 219
 				'shock' 
220 220
 		),
221
-		':coolsmile:' => array (
221
+		':coolsmile:' => array(
222 222
 				'shade_smile.gif',
223 223
 				'19',
224 224
 				'19',
225 225
 				'cool smile' 
226 226
 		),
227
-		':coolsmirk:' => array (
227
+		':coolsmirk:' => array(
228 228
 				'shade_smirk.gif',
229 229
 				'19',
230 230
 				'19',
231 231
 				'cool smirk' 
232 232
 		),
233
-		':coolgrin:' => array (
233
+		':coolgrin:' => array(
234 234
 				'shade_grin.gif',
235 235
 				'19',
236 236
 				'19',
237 237
 				'cool grin' 
238 238
 		),
239
-		':coolhmm:' => array (
239
+		':coolhmm:' => array(
240 240
 				'shade_hmm.gif',
241 241
 				'19',
242 242
 				'19',
243 243
 				'cool hmm' 
244 244
 		),
245
-		':coolmad:' => array (
245
+		':coolmad:' => array(
246 246
 				'shade_mad.gif',
247 247
 				'19',
248 248
 				'19',
249 249
 				'cool mad' 
250 250
 		),
251
-		':coolcheese:' => array (
251
+		':coolcheese:' => array(
252 252
 				'shade_cheese.gif',
253 253
 				'19',
254 254
 				'19',
255 255
 				'cool cheese' 
256 256
 		),
257
-		':vampire:' => array (
257
+		':vampire:' => array(
258 258
 				'vampire.gif',
259 259
 				'19',
260 260
 				'19',
261 261
 				'vampire' 
262 262
 		),
263
-		':snake:' => array (
263
+		':snake:' => array(
264 264
 				'snake.gif',
265 265
 				'19',
266 266
 				'19',
267 267
 				'snake' 
268 268
 		),
269
-		':exclaim:' => array (
269
+		':exclaim:' => array(
270 270
 				'exclaim.gif',
271 271
 				'19',
272 272
 				'19',
273 273
 				'excaim' 
274 274
 		),
275
-		':question:' => array (
275
+		':question:' => array(
276 276
 				'question.gif',
277 277
 				'19',
278 278
 				'19',
Please login to merge, or discard this patch.
web_interface/astpp/application/config/config.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (! defined ( 'BASEPATH' ))
3
-	exit ( 'No direct script access allowed' );
2
+if ( ! defined('BASEPATH'))
3
+	exit ('No direct script access allowed');
4 4
 	
5 5
 	/*
6 6
  * |--------------------------------------------------------------------------
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * |
18 18
  */
19 19
 
20
-$astpp_config = parse_ini_file ( "/var/lib/astpp/astpp-config.conf" );
20
+$astpp_config = parse_ini_file("/var/lib/astpp/astpp-config.conf");
21 21
 $config ['base_url'] = $astpp_config ['base_url'];
22 22
 
23 23
 // $config['perl_url'] = $astpp_config['base_url']."cgi-bin/astpp-admin/";
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
  * |
368 368
  */
369 369
 $config ['proxy_ips'] = '';
370
-$config ['Origination-rates-field'] = array (
370
+$config ['Origination-rates-field'] = array(
371 371
 		'code' => 'pattern',
372 372
 		'destination' => 'comment',
373 373
 		'connect cost' => 'connectcost',
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 		'initial increment' => 'init_inc',
377 377
 		'increment' => 'inc' 
378 378
 );
379
-$config ['Termination-rates-field'] = array (
379
+$config ['Termination-rates-field'] = array(
380 380
 		'code' => 'pattern',
381 381
 		'destination' => 'comment',
382 382
 		'connect cost' => 'connectcost',
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 		'strip' => "strip",
389 389
 		'prepend' => 'prepend' 
390 390
 );
391
-$config ['DID-rates-field'] = array (
391
+$config ['DID-rates-field'] = array(
392 392
 		'DID' => 'number',
393 393
 		'Country' => 'country_id',
394 394
 		'Account' => 'accountid',
@@ -401,11 +401,11 @@  discard block
 block discarded – undo
401 401
 		'Destination' => 'extensions',
402 402
 		"Status" => 'status' 
403 403
 );
404
-$config ['invoices_path'] = FCPATH . "invoices/";
405
-$config ['invoice_screen'] = FCPATH . APPPATH . "controllers/";
406
-$config ['rates-file-path'] = ASSETSDIR . "Rates_File/uploaded_files/";
404
+$config ['invoices_path'] = FCPATH."invoices/";
405
+$config ['invoice_screen'] = FCPATH.APPPATH."controllers/";
406
+$config ['rates-file-path'] = ASSETSDIR."Rates_File/uploaded_files/";
407 407
 $config ['db_upload-file-path'] = "/tmp/";
408
-$config ['Origin-rates-field'] = array (
408
+$config ['Origin-rates-field'] = array(
409 409
 		'code' => 'pattern',
410 410
 		'prepend' => 'prepend',
411 411
 		'destination' => 'comment',
@@ -416,13 +416,13 @@  discard block
 block discarded – undo
416 416
 		'precedence' => 'precedence',
417 417
 		'strip' => "strip" 
418 418
 );
419
-$config ['package-code-field'] = array (
419
+$config ['package-code-field'] = array(
420 420
 		'code' => 'patterns',
421 421
 		'destination' => 'destination' 
422 422
 );
423
-$config ['invoices_path'] = FCPATH . "invoices/";
424
-$config ['invoice_template'] = APPPATH . "views/";
425
-$config ['invoice_screen'] = APPPATH . "controllers/";
423
+$config ['invoices_path'] = FCPATH."invoices/";
424
+$config ['invoice_template'] = APPPATH."views/";
425
+$config ['invoice_screen'] = APPPATH."controllers/";
426 426
 $config ['gzip-path'] = "/bin/gzip";
427 427
 $config ['gunzip-path'] = "/bin/gunzip";
428 428
 /* End of file config.php */
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (! defined ( 'BASEPATH' ))
2
+if (! defined ( 'BASEPATH' )) {
3 3
 	exit ( 'No direct script access allowed' );
4
+}
4 5
 	
5 6
 	/*
6 7
  * |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
web_interface/astpp/application/config/constants.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! defined ( 'BASEPATH' )) {
4
-	exit ( 'No direct script access allowed' );
3
+if ( ! defined('BASEPATH')) {
4
+	exit ('No direct script access allowed');
5 5
 }
6 6
 
7 7
 /*
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
  * | always be used to set the mode correctly.
18 18
  * |
19 19
  */
20
-define ( 'FILE_READ_MODE', 0644 );
21
-define ( 'FILE_WRITE_MODE', 0666 );
22
-define ( 'DIR_READ_MODE', 0755 );
23
-define ( 'DIR_WRITE_MODE', 0777 );
20
+define('FILE_READ_MODE', 0644);
21
+define('FILE_WRITE_MODE', 0666);
22
+define('DIR_READ_MODE', 0755);
23
+define('DIR_WRITE_MODE', 0777);
24 24
 
25 25
 /*
26 26
  * |--------------------------------------------------------------------------
@@ -31,15 +31,15 @@  discard block
 block discarded – undo
31 31
  * |
32 32
  */
33 33
 
34
-define ( 'FOPEN_READ', 'rb' );
35
-define ( 'FOPEN_READ_WRITE', 'r+b' );
36
-define ( 'FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb' ); // truncates existing file data, use with care
37
-define ( 'FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b' ); // truncates existing file data, use with care
38
-define ( 'FOPEN_WRITE_CREATE', 'ab' );
39
-define ( 'FOPEN_READ_WRITE_CREATE', 'a+b' );
40
-define ( 'FOPEN_WRITE_CREATE_STRICT', 'xb' );
41
-define ( 'FOPEN_READ_WRITE_CREATE_STRICT', 'x+b' );
42
-define ( "RESELLERPROFILE_ARRAY", serialize ( array (
34
+define('FOPEN_READ', 'rb');
35
+define('FOPEN_READ_WRITE', 'r+b');
36
+define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
37
+define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
38
+define('FOPEN_WRITE_CREATE', 'ab');
39
+define('FOPEN_READ_WRITE_CREATE', 'a+b');
40
+define('FOPEN_WRITE_CREATE_STRICT', 'xb');
41
+define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
42
+define("RESELLERPROFILE_ARRAY", serialize(array(
43 43
 		"My Profile" => "user/user_myprofile/",
44 44
 		"Change Password" => "user/user_change_password/",
45 45
 		"Subscriptions" => "user/user_subscriptions/",
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
 		"CDRs" => "user/user_cdrs/",
52 52
 		"Emails" => "user/user_emails/",
53 53
 		"Alert Threshold" => "user/user_alert_threshold/" 
54
-) ) );
55
-define ( "CUSTOMEREDIT_ARRAY", serialize ( array (
54
+)));
55
+define("CUSTOMEREDIT_ARRAY", serialize(array(
56 56
 		"Customer Profile" => "accounts/customer_edit/",
57 57
 		"SIP Devices" => "accounts/customer_sipdevices/",
58 58
 		"Opensips Device" => "accounts/customer_opensips/",
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
 		"CDRs" => "accounts/customer_cdrs/",
69 69
 		"Emails" => "accounts/customer_emailhistory/",
70 70
 		"Alert Threshold" => "accounts/customer_alert_threshold/" 
71
-) ) );
71
+)));
72 72
 
73
-define ( "PROVIDEREDIT_ARRAY", serialize ( array (
73
+define("PROVIDEREDIT_ARRAY", serialize(array(
74 74
 		"Provider Profile" => "accounts/provider_edit/",
75 75
 		"SIP Devices" => "accounts/provider_sipdevices/",
76 76
 		"Opensips Device" => "accounts/provider_opensips/",
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
 		"CDRs" => "accounts/provider_cdrs/",
87 87
 		"Emails" => "accounts/provider_emailhistory/",
88 88
 		"Alert Threshold" => "accounts/provider_alert_threshold/" 
89
-) ) );
90
-define ( "RESELLEREDIT_ARRAY", serialize ( array (
89
+)));
90
+define("RESELLEREDIT_ARRAY", serialize(array(
91 91
 		"Reseller Profile" => "accounts/reseller_edit/",
92 92
 		"DID" => "accounts/reseller_dids/",
93 93
 		"Subscription" => "accounts/reseller_subscription/",
@@ -99,18 +99,18 @@  discard block
 block discarded – undo
99 99
 		"CDRs" => "accounts/reseller_cdrs/",
100 100
 		"Emails" => "accounts/reseller_emailhistory/",
101 101
 		"Alert Threshold" => "accounts/reseller_alert_threshold/" 
102
-) ) );
103
-define ( "PACKAGEEDIT_ARRAY", serialize ( array (
102
+)));
103
+define("PACKAGEEDIT_ARRAY", serialize(array(
104 104
 		"Package Details" => "package/package_edit/",
105 105
 		"Package Codes" => "package/package_pattern_list/" 
106
-) ) );
107
-define ( "CUSTOMERPROFILE_ARRAY", serialize ( array (
106
+)));
107
+define("CUSTOMERPROFILE_ARRAY", serialize(array(
108 108
 		"My Profile" => "user/user_myprofile/",
109 109
 		"Change Password" => "user/user_change_password" 
110
-) ) );
111
-define ( "DATABASE_DIRECTORY", FCPATH . 'database_backup' . DIRECTORY_SEPARATOR );
112
-define ( 'LOCALE_REQUEST_PARAM', 'lang' );
113
-define ( 'WEBSITE_DOMAIN', 'messages' );
110
+)));
111
+define("DATABASE_DIRECTORY", FCPATH.'database_backup'.DIRECTORY_SEPARATOR);
112
+define('LOCALE_REQUEST_PARAM', 'lang');
113
+define('WEBSITE_DOMAIN', 'messages');
114 114
 
115 115
 /* End of file constants.php */
116 116
 /* Location: ./application/config/constants.php */
Please login to merge, or discard this patch.