Completed
Push — 14.2 ( e07840...cec2da )
by Ralf
83:18 queued 52:04
created
etemplate/inc/class.xul_io.inc.php 1 patch
Switch Indentation   +93 added lines, -93 removed lines patch added patch discarded remove patch
@@ -214,112 +214,112 @@
 block discarded – undo
214 214
 		}
215 215
 		switch ($type)
216 216
 		{
217
-		case 'nextmatch':
218
-			$tpls = $cell['size'] = explode(',', $cell['size']);	// template,hide_header,header_left,header_right
219
-			unset($tpls[1]);	// hide_header is no template
220
-			foreach($tpls as $n => $tpl)
221
-			{
222
-				if (empty($tpl)) continue;
223
-				$embeded = new boetemplate($tpl,$this->load_via);
224
-				if ($embeded_too)
217
+			case 'nextmatch':
218
+				$tpls = $cell['size'] = explode(',', $cell['size']);	// template,hide_header,header_left,header_right
219
+				unset($tpls[1]);	// hide_header is no template
220
+				foreach($tpls as $n => $tpl)
225 221
 				{
226
-					$this->add_etempl($embeded,$embeded_too);
222
+					if (empty($tpl)) continue;
223
+					$embeded = new boetemplate($tpl,$this->load_via);
224
+					if ($embeded_too)
225
+					{
226
+						$this->add_etempl($embeded,$embeded_too);
227
+					}
228
+					$cell['size'][$n] = $embeded->name;
229
+					unset($embeded);
227 230
 				}
228
-				$cell['size'][$n] = $embeded->name;
229
-				unset($embeded);
230
-			}
231
-			$cell['size'] = implode(',', $cell['size']);
232
-			break;
233
-		case 'tabbox':
234
-			$labels = explode('|',$cell['label']);  unset($cell['label']);
235
-			$helps  = explode('|',$cell['help']);   unset($cell['help']);
236
-			if (strpos($tab_names=$cell['name'],'=') !== false)
237
-			{
238
-				list($cell['name'],$tab_names) = explode('=',$cell['name']);
239
-			}
240
-			$names  = explode('|',$tab_names);
241
-			for ($n = 0; $n < count($labels); ++$n)
242
-			{
243
-				$tab = new xmlnode('tab');
244
-				$tab->set_attribute('id',$names[$n]);
245
-				$tab->set_attribute('label',$labels[$n]);
246
-				if ($helps[$n]) $tab->set_attribute('statustext',$helps[$n]);
247
-				$child->add_node($tab);
231
+				$cell['size'] = implode(',', $cell['size']);
232
+				break;
233
+			case 'tabbox':
234
+				$labels = explode('|',$cell['label']);  unset($cell['label']);
235
+				$helps  = explode('|',$cell['help']);   unset($cell['help']);
236
+				if (strpos($tab_names=$cell['name'],'=') !== false)
237
+				{
238
+					list($cell['name'],$tab_names) = explode('=',$cell['name']);
239
+				}
240
+				$names  = explode('|',$tab_names);
241
+				for ($n = 0; $n < count($labels); ++$n)
242
+				{
243
+					$tab = new xmlnode('tab');
244
+					$tab->set_attribute('id',$names[$n]);
245
+					$tab->set_attribute('label',$labels[$n]);
246
+					if ($helps[$n]) $tab->set_attribute('statustext',$helps[$n]);
247
+					$child->add_node($tab);
248 248
 
249
-				$embeded = new boetemplate($names[$n],$this->load_via);
250
-				if ($embeded_too)
249
+					$embeded = new boetemplate($names[$n],$this->load_via);
250
+					if ($embeded_too)
251
+					{
252
+						$this->add_etempl($embeded,$embeded_too);
253
+					}
254
+					$template = new xmlnode('template');
255
+					$template->set_attribute('id',$embeded->name);
256
+					$child2->add_node($template);
257
+					unset($embeded);
258
+					unset($template);
259
+				}
260
+				break;
261
+			case 'menulist':	// id,options belongs to the 'menupopup' child
262
+				if ($cell['span'])
251 263
 				{
252
-					$this->add_etempl($embeded,$embeded_too);
264
+					list($span, $class) = explode(',', $cell['span']);
265
+					if (!empty($span)) $this->set_attributes($widget, 'span', $span);
266
+					if (!empty($class))
267
+					{
268
+						$cell['span'] = ','.$class;
269
+					}
270
+					else
271
+					{
272
+						unset($cell['span']);
273
+					}
253 274
 				}
254
-				$template = new xmlnode('template');
255
-				$template->set_attribute('id',$embeded->name);
256
-				$child2->add_node($template);
257
-				unset($embeded);
258
-				unset($template);
259
-			}
260
-			break;
261
-		case 'menulist':	// id,options belongs to the 'menupopup' child
262
-			if ($cell['span'])
263
-			{
264
-				list($span, $class) = explode(',', $cell['span']);
265
-				if (!empty($span)) $this->set_attributes($widget, 'span', $span);
266
-				if (!empty($class))
275
+				// fall-through
276
+			case 'listbox':
277
+				if ($cell['type'] != 'select')	// one of the sub-types
267 278
 				{
268
-					$cell['span'] = ','.$class;
279
+					$attr_widget->set_attribute('type',$cell['type']);
269 280
 				}
270
-				else
281
+				break;
282
+			case 'groupbox':
283
+				if ($cell['label'])
271 284
 				{
272
-					unset($cell['span']);
285
+					$caption = new xmlnode('caption');
286
+					$caption->set_attribute('label',$cell['label']);
287
+					$widget->add_node($caption);
288
+					unset($cell['label']);
273 289
 				}
274
-			}
275
-			// fall-through
276
-		case 'listbox':
277
-			if ($cell['type'] != 'select')	// one of the sub-types
278
-			{
279
-				$attr_widget->set_attribute('type',$cell['type']);
280
-			}
281
-			break;
282
-		case 'groupbox':
283
-			if ($cell['label'])
284
-			{
285
-				$caption = new xmlnode('caption');
286
-				$caption->set_attribute('label',$cell['label']);
287
-				$widget->add_node($caption);
288
-				unset($cell['label']);
289
-			}
290
-			// fall-through
291
-		case 'split':
292
-		case 'vbox':
293
-		case 'hbox':
294
-		case 'box':
295
-		case 'deck':
296
-			list($anz,$orient,$options) = explode(',',$cell['size'],3);
297
-			for ($n = 1; $n <= $anz; ++$n)
298
-			{
299
-				$this->add_widget($widget,$cell[$n],$embeded_too);
300
-				unset($cell[$n]);
301
-			}
302
-			// no sure where the data key gets set, but it gives a warning in xml serialization (empty array)
303
-			unset($cell['data']);
304
-			if (!empty($orient)) $cell['orient'] = $orient;
305
-			$cell['size'] = $options;
306
-			break;
290
+				// fall-through
291
+			case 'split':
292
+			case 'vbox':
293
+			case 'hbox':
294
+			case 'box':
295
+			case 'deck':
296
+				list($anz,$orient,$options) = explode(',',$cell['size'],3);
297
+				for ($n = 1; $n <= $anz; ++$n)
298
+				{
299
+					$this->add_widget($widget,$cell[$n],$embeded_too);
300
+					unset($cell[$n]);
301
+				}
302
+				// no sure where the data key gets set, but it gives a warning in xml serialization (empty array)
303
+				unset($cell['data']);
304
+				if (!empty($orient)) $cell['orient'] = $orient;
305
+				$cell['size'] = $options;
306
+				break;
307 307
 
308
-		case 'template':
309
-			if ($cell['name'][0] != '@' && $embeded_too)
310
-			{
311
-				$templ = new boetemplate();
312
-				if ($templ->read(boetemplate::expand_name($cell['name'],0,0),'default','default',0,'',$this->load_via))
308
+			case 'template':
309
+				if ($cell['name'][0] != '@' && $embeded_too)
313 310
 				{
314
-					$this->add_etempl($templ,$embeded_too);
311
+					$templ = new boetemplate();
312
+					if ($templ->read(boetemplate::expand_name($cell['name'],0,0),'default','default',0,'',$this->load_via))
313
+					{
314
+						$this->add_etempl($templ,$embeded_too);
315
+					}
316
+					unset($templ);
315 317
 				}
316
-				unset($templ);
317
-			}
318
-			break;
318
+				break;
319 319
 
320
-		case 'grid':
321
-			$this->add_grid($parent,$cell,$embeded_too);
322
-			return;	// grid is already added
320
+			case 'grid':
321
+				$this->add_grid($parent,$cell,$embeded_too);
322
+				return;	// grid is already added
323 323
 		}
324 324
 		foreach($cell as $attr => $val)
325 325
 		{
Please login to merge, or discard this patch.
emailadmin/inc/class.emailadmin_imap.inc.php 1 patch
Switch Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -580,16 +580,16 @@  discard block
 block discarded – undo
580 580
 		$mailbox = '';
581 581
 		if ( is_int( $restriction_search ) ){
582 582
 			switch ( $restriction_search ) {
583
-			case 0:
584
-				$searchstring = $reference."*";
585
-				break;
586
-			case 1:
587
-				$mailbox = $searchstring = $reference;
588
-				//$reference = '%';
589
-				break;
590
-			case 2:
591
-				$searchstring = $reference."%";
592
-				break;
583
+				case 0:
584
+					$searchstring = $reference."*";
585
+					break;
586
+				case 1:
587
+					$mailbox = $searchstring = $reference;
588
+					//$reference = '%';
589
+					break;
590
+				case 2:
591
+					$searchstring = $reference."%";
592
+					break;
593 593
 			}
594 594
 		}else{
595 595
 			if ( is_string( $restriction_search ) ){
@@ -664,16 +664,16 @@  discard block
 block discarded – undo
664 664
 		$mailbox = '';
665 665
 		if ( is_int( $restriction_search ) ){
666 666
 			switch ( $restriction_search ) {
667
-			case 0:
668
-				$searchstring = $reference."*";
669
-				break;
670
-			case 1:
671
-				$mailbox = $searchstring = $reference;
672
-				//$reference = '%';
673
-				break;
674
-			case 2:
675
-				$searchstring = $reference."%";
676
-				break;
667
+				case 0:
668
+					$searchstring = $reference."*";
669
+					break;
670
+				case 1:
671
+					$mailbox = $searchstring = $reference;
672
+					//$reference = '%';
673
+					break;
674
+				case 2:
675
+					$searchstring = $reference."%";
676
+					break;
677 677
 			}
678 678
 		}else{
679 679
 			if ( is_string( $restriction_search ) ){
@@ -730,16 +730,16 @@  discard block
 block discarded – undo
730 730
 
731 731
 		if ( is_int( $restriction_search ) ){
732 732
 			switch ( $restriction_search ) {
733
-			case 0:
734
-				$mailbox = $reference."*";
735
-				break;
736
-			case 1:
737
-				$mailbox = $reference;
738
-				$reference = '%';
739
-				break;
740
-			case 2:
741
-				$mailbox = "%";
742
-				break;
733
+				case 0:
734
+					$mailbox = $reference."*";
735
+					break;
736
+				case 1:
737
+					$mailbox = $reference;
738
+					$reference = '%';
739
+					break;
740
+				case 2:
741
+					$mailbox = "%";
742
+					break;
743 743
 			}
744 744
 		}else{
745 745
 			if ( is_string( $restriction_search ) ){
Please login to merge, or discard this patch.
setup/setup-cli.php 1 patch
Switch Indentation   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -66,91 +66,91 @@
 block discarded – undo
66 66
 
67 67
 switch($action)
68 68
 {
69
-	case '--version':
70
-	case '--check':
71
-		setup_cmd::check_installed($arguments[0],0,true);
72
-		break;
73
-
74
-	case '--create-header':
75
-	case '--edit-header':
76
-	case '--upgrade-header':
77
-	case '--update-header':
78
-		do_header($action == '--create-header',$arguments);
79
-		break;
80
-
81
-	case '--install':
82
-		do_install($arguments);
83
-		break;
84
-
85
-	case '--config':
86
-		do_config($arguments);
87
-		break;
88
-
89
-	case '--admin':
90
-		do_admin($arguments[0]);
91
-		break;
92
-
93
-	case '--update':
94
-		do_update($arguments[0]);
95
-		break;
96
-
97
-	case '--register-hooks':
98
-	case '--register-all-hooks':
99
-		do_hooks($arguments[0]);
100
-		break;
101
-
102
-	case '--backup':
103
-		do_backup($arguments[0]);
104
-		break;
105
-
106
-	case '--languages':
107
-		echo html_entity_decode(file_get_contents('lang/languages'),ENT_COMPAT,'utf-8');
108
-		break;
109
-
110
-	case '--charsets':
111
-		echo html_entity_decode(implode("\n",$GLOBALS['egw_setup']->translation->get_charsets(false)),ENT_COMPAT,'utf-8')."\n";
112
-		break;
113
-
114
-	case '--exit-codes':
115
-		list_exit_codes();
116
-		break;
117
-
118
-	case '--help':
119
-	case '--usage':
120
-		do_usage($arguments[0]);
121
-		break;
122
-
123
-	default:
124
-		// we allow to call admin_cmd classes directly, if they define the constant SETUP_CLI_CALLABLE
125
-		if (substr($action,0,2) == '--' && class_exists($class = str_replace('-','_',substr($action,2))) &&
126
-			is_subclass_of($class,'admin_cmd') && @constant($class.'::SETUP_CLI_CALLABLE'))
127
-		{
128
-			$args = array();
129
-			list($args['domain']) = explode(',', array_shift($arguments));	// domain must be first argument, to ensure right domain get's selected in header-include
130
-			foreach($arguments as $arg)
69
+		case '--version':
70
+		case '--check':
71
+			setup_cmd::check_installed($arguments[0],0,true);
72
+			break;
73
+
74
+		case '--create-header':
75
+		case '--edit-header':
76
+		case '--upgrade-header':
77
+		case '--update-header':
78
+			do_header($action == '--create-header',$arguments);
79
+			break;
80
+
81
+		case '--install':
82
+			do_install($arguments);
83
+			break;
84
+
85
+		case '--config':
86
+			do_config($arguments);
87
+			break;
88
+
89
+		case '--admin':
90
+			do_admin($arguments[0]);
91
+			break;
92
+
93
+		case '--update':
94
+			do_update($arguments[0]);
95
+			break;
96
+
97
+		case '--register-hooks':
98
+		case '--register-all-hooks':
99
+			do_hooks($arguments[0]);
100
+			break;
101
+
102
+		case '--backup':
103
+			do_backup($arguments[0]);
104
+			break;
105
+
106
+		case '--languages':
107
+			echo html_entity_decode(file_get_contents('lang/languages'),ENT_COMPAT,'utf-8');
108
+			break;
109
+
110
+		case '--charsets':
111
+			echo html_entity_decode(implode("\n",$GLOBALS['egw_setup']->translation->get_charsets(false)),ENT_COMPAT,'utf-8')."\n";
112
+			break;
113
+
114
+		case '--exit-codes':
115
+			list_exit_codes();
116
+			break;
117
+
118
+		case '--help':
119
+		case '--usage':
120
+			do_usage($arguments[0]);
121
+			break;
122
+
123
+		default:
124
+			// we allow to call admin_cmd classes directly, if they define the constant SETUP_CLI_CALLABLE
125
+			if (substr($action,0,2) == '--' && class_exists($class = str_replace('-','_',substr($action,2))) &&
126
+				is_subclass_of($class,'admin_cmd') && @constant($class.'::SETUP_CLI_CALLABLE'))
131 127
 			{
132
-				list($name,$value) = explode('=',$arg,2);
133
-				if(property_exists('admin_cmd',$name))		// dont allow to overwrite admin_cmd properties
134
-				{
135
-					throw new egw_exception_wrong_userinput(lang("Invalid argument '%1' !!!",$arg),90);
136
-				}
137
-				if (substr($name,-1) == ']')	// allow 1-dim. arrays
128
+				$args = array();
129
+				list($args['domain']) = explode(',', array_shift($arguments));	// domain must be first argument, to ensure right domain get's selected in header-include
130
+				foreach($arguments as $arg)
138 131
 				{
139
-					list($name,$sub) = explode('[',substr($name,0,-1),2);
140
-					$args[$name][$sub] = $value;
141
-				}
142
-				else
143
-				{
144
-					$args[$name] = $value;
132
+					list($name,$value) = explode('=',$arg,2);
133
+					if(property_exists('admin_cmd',$name))		// dont allow to overwrite admin_cmd properties
134
+					{
135
+						throw new egw_exception_wrong_userinput(lang("Invalid argument '%1' !!!",$arg),90);
136
+					}
137
+					if (substr($name,-1) == ']')	// allow 1-dim. arrays
138
+					{
139
+						list($name,$sub) = explode('[',substr($name,0,-1),2);
140
+						$args[$name][$sub] = $value;
141
+					}
142
+					else
143
+					{
144
+						$args[$name] = $value;
145
+					}
145 146
 				}
147
+				$cmd = new $class($args);
148
+				$msg = $cmd->run($time=null, $set_modifier=true, $skip_checks=false, $check_only=$dry_run);
149
+				if (is_array($msg)) $msg = print_r($msg,true);
150
+				echo "$msg\n";
151
+				break;
146 152
 			}
147
-			$cmd = new $class($args);
148
-			$msg = $cmd->run($time=null, $set_modifier=true, $skip_checks=false, $check_only=$dry_run);
149
-			if (is_array($msg)) $msg = print_r($msg,true);
150
-			echo "$msg\n";
151
-			break;
152
-		}
153
-		throw new egw_exception_wrong_userinput(lang("Unknown option '%1' !!!",$action),90);
153
+			throw new egw_exception_wrong_userinput(lang("Unknown option '%1' !!!",$action),90);
154 154
 }
155 155
 exit(0);
156 156
 
Please login to merge, or discard this patch.
setup/index.php 1 patch
Switch Indentation   +92 added lines, -92 removed lines patch added patch discarded remove patch
@@ -180,17 +180,17 @@  discard block
 block discarded – undo
180 180
 
181 181
 switch($GLOBALS['egw_info']['setup']['stage']['db'])
182 182
 {
183
-	case 1:
184
-		$setup_tpl->set_var('dbnotexist','<b>'.lang('Your Database is not working!').'</b>: '.$GLOBALS['egw_setup']->db->Error);
185
-		$setup_tpl->set_var('makesure',lang('Make sure that your database is created and the account permissions are set'));
186
-		$setup_tpl->set_var('notcomplete',lang('not complete'));
187
-		$setup_tpl->set_var('oncesetup',lang('Once the database is setup correctly'));
188
-		$setup_tpl->set_var('createdb','<b>'.lang('Or we can attempt to create the database for you:').'</b>');
189
-		$setup_tpl->set_var('create_database',lang('Create database'));
190
-		$setup_tpl->set_var('instr','');
191
-		$info = $GLOBALS['egw_domain'][$GLOBALS['egw_setup']->ConfigDomain];
192
-		switch ($info['db_type'])
193
-		{
183
+		case 1:
184
+			$setup_tpl->set_var('dbnotexist','<b>'.lang('Your Database is not working!').'</b>: '.$GLOBALS['egw_setup']->db->Error);
185
+			$setup_tpl->set_var('makesure',lang('Make sure that your database is created and the account permissions are set'));
186
+			$setup_tpl->set_var('notcomplete',lang('not complete'));
187
+			$setup_tpl->set_var('oncesetup',lang('Once the database is setup correctly'));
188
+			$setup_tpl->set_var('createdb','<b>'.lang('Or we can attempt to create the database for you:').'</b>');
189
+			$setup_tpl->set_var('create_database',lang('Create database'));
190
+			$setup_tpl->set_var('instr','');
191
+			$info = $GLOBALS['egw_domain'][$GLOBALS['egw_setup']->ConfigDomain];
192
+			switch ($info['db_type'])
193
+			{
194 194
 			case 'mysql':
195 195
 			case 'mysqli':
196 196
 			case 'mysqlt':
@@ -223,76 +223,76 @@  discard block
 block discarded – undo
223 223
 				//break;
224 224
 			default:
225 225
 				$setup_tpl->parse('V_db_stage_1','B_db_stage_1a');
226
-		}
226
+			}
227 227
 		$db_filled_block = $setup_tpl->get_var('V_db_stage_1');
228 228
 		$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
229 229
 		break;
230
-	case 2:
231
-		$setup_tpl->set_var('prebeta',lang('You appear to be running a pre-beta version of eGroupWare.<br />These versions are no longer supported, and there is no upgrade path for them in setup.<br /> You may wish to first upgrade to 0.9.10 (the last version to support pre-beta upgrades) <br />and then upgrade from there with the current version.'));
232
-		$setup_tpl->set_var('notcomplete',lang('not complete'));
233
-		$setup_tpl->parse('V_db_stage_2','B_db_stage_2');
234
-		$db_filled_block = $setup_tpl->get_var('V_db_stage_2');
235
-		$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
236
-		break;
237
-	case 3:
238
-		$setup_tpl->set_var('dbexists','<b>'.lang('Your database is working, but you dont have any applications installed').'</b>');
239
-		$setup_tpl->set_var('install',lang('Install'));
240
-		$setup_tpl->set_var('proceed',lang('We can proceed'));
241
-		$setup_tpl->set_var('coreapps',lang('all applications'));
242
-		$setup_tpl->set_var('lang_debug',lang('enable for extra debug-messages'));
243
-		$setup_tpl->set_var('lang_restore',lang('Or you can install a previous backup.'));
244
-		$setup_tpl->set_var('upload','<input type="file" name="uploaded" /> &nbsp;'.
245
-			'<input type="submit" name="upload" value="'.htmlspecialchars(lang('install backup')).'" title="'.htmlspecialchars(lang("uploads a backup and installs it on your DB")).'" />');
246
-		$setup_tpl->set_var('convert_checkbox','<input type="checkbox" name="convert_charset" id="convert_checkbox" value="1"/>');
247
-		$setup_tpl->set_var('lang_convert_charset','<label for="convert_checkbox">'.
248
-			lang('Convert backup to charset selected above').'</label>');
249
-		$setup_tpl->parse('V_db_stage_3','B_db_stage_3');
250
-		$db_filled_block = $setup_tpl->get_var('V_db_stage_3');
251
-		$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
252
-		break;
253
-	case 4:
254
-		$setup_tpl->set_var('hidden_vars', html::input_hidden('csrf_token', egw_csrf::token(__FILE__)));
255
-		$setup_tpl->set_var('oldver',lang('You appear to be running version %1 of eGroupWare',$setup_info['phpgwapi']['currentver']));
256
-		$setup_tpl->set_var('automatic',lang('We will automatically update your tables/records to %1',$setup_info['phpgwapi']['version']));
257
-		$setup_tpl->set_var('backupwarn',lang('but we <u>highly recommend backing up</u> your tables in case the script causes damage to your data.<br /><strong>These automated scripts can easily destroy your data.</strong>'));
258
-		$setup_tpl->set_var('lang_backup',lang('create a backup before upgrading the DB'));
259
-		$setup_tpl->set_var('lang_debug',lang('enable for extra debug-messages'));
260
-		$setup_tpl->set_var('upgrade',lang('Upgrade'));
261
-		$setup_tpl->set_var('goto',lang('Go to'));
262
-		$setup_tpl->set_var('configuration',lang('configuration'));
263
-		$setup_tpl->set_var('admin_account',lang('Create admin account'));
264
-		$setup_tpl->set_var('applications',lang('Manage Applications'));
265
-		$setup_tpl->set_var('db_backup',lang('DB backup and restore'));
266
-		$setup_tpl->set_var('language_management',lang('Manage Languages'));
267
-		$setup_tpl->set_var('uninstall_all_applications',lang('Uninstall all applications'));
268
-		$setup_tpl->set_var('dont_touch_my_data',lang('Dont touch my data'));
269
-		$setup_tpl->set_var('dropwarn',lang('Your tables will be dropped and you will lose data'));
230
+		case 2:
231
+			$setup_tpl->set_var('prebeta',lang('You appear to be running a pre-beta version of eGroupWare.<br />These versions are no longer supported, and there is no upgrade path for them in setup.<br /> You may wish to first upgrade to 0.9.10 (the last version to support pre-beta upgrades) <br />and then upgrade from there with the current version.'));
232
+			$setup_tpl->set_var('notcomplete',lang('not complete'));
233
+			$setup_tpl->parse('V_db_stage_2','B_db_stage_2');
234
+			$db_filled_block = $setup_tpl->get_var('V_db_stage_2');
235
+			$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
236
+			break;
237
+		case 3:
238
+			$setup_tpl->set_var('dbexists','<b>'.lang('Your database is working, but you dont have any applications installed').'</b>');
239
+			$setup_tpl->set_var('install',lang('Install'));
240
+			$setup_tpl->set_var('proceed',lang('We can proceed'));
241
+			$setup_tpl->set_var('coreapps',lang('all applications'));
242
+			$setup_tpl->set_var('lang_debug',lang('enable for extra debug-messages'));
243
+			$setup_tpl->set_var('lang_restore',lang('Or you can install a previous backup.'));
244
+			$setup_tpl->set_var('upload','<input type="file" name="uploaded" /> &nbsp;'.
245
+				'<input type="submit" name="upload" value="'.htmlspecialchars(lang('install backup')).'" title="'.htmlspecialchars(lang("uploads a backup and installs it on your DB")).'" />');
246
+			$setup_tpl->set_var('convert_checkbox','<input type="checkbox" name="convert_charset" id="convert_checkbox" value="1"/>');
247
+			$setup_tpl->set_var('lang_convert_charset','<label for="convert_checkbox">'.
248
+				lang('Convert backup to charset selected above').'</label>');
249
+			$setup_tpl->parse('V_db_stage_3','B_db_stage_3');
250
+			$db_filled_block = $setup_tpl->get_var('V_db_stage_3');
251
+			$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
252
+			break;
253
+		case 4:
254
+			$setup_tpl->set_var('hidden_vars', html::input_hidden('csrf_token', egw_csrf::token(__FILE__)));
255
+			$setup_tpl->set_var('oldver',lang('You appear to be running version %1 of eGroupWare',$setup_info['phpgwapi']['currentver']));
256
+			$setup_tpl->set_var('automatic',lang('We will automatically update your tables/records to %1',$setup_info['phpgwapi']['version']));
257
+			$setup_tpl->set_var('backupwarn',lang('but we <u>highly recommend backing up</u> your tables in case the script causes damage to your data.<br /><strong>These automated scripts can easily destroy your data.</strong>'));
258
+			$setup_tpl->set_var('lang_backup',lang('create a backup before upgrading the DB'));
259
+			$setup_tpl->set_var('lang_debug',lang('enable for extra debug-messages'));
260
+			$setup_tpl->set_var('upgrade',lang('Upgrade'));
261
+			$setup_tpl->set_var('goto',lang('Go to'));
262
+			$setup_tpl->set_var('configuration',lang('configuration'));
263
+			$setup_tpl->set_var('admin_account',lang('Create admin account'));
264
+			$setup_tpl->set_var('applications',lang('Manage Applications'));
265
+			$setup_tpl->set_var('db_backup',lang('DB backup and restore'));
266
+			$setup_tpl->set_var('language_management',lang('Manage Languages'));
267
+			$setup_tpl->set_var('uninstall_all_applications',lang('Uninstall all applications'));
268
+			$setup_tpl->set_var('dont_touch_my_data',lang('Dont touch my data'));
269
+			$setup_tpl->set_var('dropwarn',lang('Your tables will be dropped and you will lose data'));
270 270
 
271
-		$setup_tpl->parse('V_db_stage_4','B_db_stage_4');
272
-		$db_filled_block = $setup_tpl->get_var('V_db_stage_4');
273
-		$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
274
-		break;
275
-	case 5:
276
-		$setup_tpl->set_var('hidden_vars', html::input_hidden('csrf_token', egw_csrf::token(__FILE__)));
277
-		$setup_tpl->set_var('are_you_sure',lang('ARE YOU SURE?'));
278
-		$setup_tpl->set_var('really_uninstall_all_applications',lang('REALLY Uninstall all applications'));
279
-		$setup_tpl->set_var('dropwarn',lang('Your tables will be dropped and you will lose data'));
280
-		$setup_tpl->set_var('cancel',lang('cancel'));
281
-		$setup_tpl->parse('V_db_stage_5','B_db_stage_5');
282
-		$db_filled_block = $setup_tpl->get_var('V_db_stage_5');
283
-		$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
284
-		break;
285
-	case 6:
286
-		$setup_tpl->set_var('status',lang('Status'));
287
-		$setup_tpl->set_var('notcomplete',lang('not complete'));
288
-		$setup_tpl->set_var('tblchange',lang('Table Change Messages'));
289
-		$setup_tpl->parse('V_db_stage_6_pre','B_db_stage_6_pre');
290
-		$db_filled_block = $setup_tpl->get_var('V_db_stage_6_pre');
291
-		$setup_tpl->set_var('tableshave',lang('If you did not receive any errors, your applications have been'));
271
+			$setup_tpl->parse('V_db_stage_4','B_db_stage_4');
272
+			$db_filled_block = $setup_tpl->get_var('V_db_stage_4');
273
+			$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
274
+			break;
275
+		case 5:
276
+			$setup_tpl->set_var('hidden_vars', html::input_hidden('csrf_token', egw_csrf::token(__FILE__)));
277
+			$setup_tpl->set_var('are_you_sure',lang('ARE YOU SURE?'));
278
+			$setup_tpl->set_var('really_uninstall_all_applications',lang('REALLY Uninstall all applications'));
279
+			$setup_tpl->set_var('dropwarn',lang('Your tables will be dropped and you will lose data'));
280
+			$setup_tpl->set_var('cancel',lang('cancel'));
281
+			$setup_tpl->parse('V_db_stage_5','B_db_stage_5');
282
+			$db_filled_block = $setup_tpl->get_var('V_db_stage_5');
283
+			$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
284
+			break;
285
+		case 6:
286
+			$setup_tpl->set_var('status',lang('Status'));
287
+			$setup_tpl->set_var('notcomplete',lang('not complete'));
288
+			$setup_tpl->set_var('tblchange',lang('Table Change Messages'));
289
+			$setup_tpl->parse('V_db_stage_6_pre','B_db_stage_6_pre');
290
+			$db_filled_block = $setup_tpl->get_var('V_db_stage_6_pre');
291
+			$setup_tpl->set_var('tableshave',lang('If you did not receive any errors, your applications have been'));
292 292
 
293
-		try {	// catch DB errors to report them
294
-			switch ($GLOBALS['egw_info']['setup']['currentver']['phpgwapi'])
295
-			{
293
+			try {	// catch DB errors to report them
294
+				switch ($GLOBALS['egw_info']['setup']['currentver']['phpgwapi'])
295
+				{
296 296
 				case 'dbcreate':
297 297
 					$GLOBALS['egw_setup']->db->create_database($_POST['db_root'], $_POST['db_pass'], 'utf8',	// create all new db's with utf8
298 298
 						!preg_match('/^[0-9.a-z_]+$/i', $_POST['db_grant_host']) ? 'localhost' : $_POST['db_grant_host']);
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 						$GLOBALS['egw_info']['setup']['currentver']['phpgwapi'] = 'oldversion';
372 372
 					}
373 373
 					break;
374
-			}
374
+				}
375 375
 		}
376 376
 		catch (egw_exception_db $e)
377 377
 		{
@@ -383,21 +383,21 @@  discard block
 block discarded – undo
383 383
 		$db_filled_block = $db_filled_block . $setup_tpl->get_var('V_db_stage_6_post');
384 384
 		$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
385 385
 		break;
386
-	case 10:
387
-		$setup_tpl->set_var('tablescurrent',lang('Your eGroupWare API is current'));
388
-		$setup_tpl->set_var('uninstall_all_applications',lang('Uninstall all applications'));
389
-		$setup_tpl->set_var('dropwarn',lang('Your tables will be dropped and you will lose data'));
390
-		$setup_tpl->set_var('deletetables',lang('Uninstall all applications'));
391
-		$setup_tpl->parse('V_db_stage_10','B_db_stage_10');
392
-		$db_filled_block = $setup_tpl->get_var('V_db_stage_10');
393
-		$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
394
-		break;
395
-	default:
396
-		$setup_tpl->set_var('dbnotexist',lang('Your database does not exist'));
397
-		$setup_tpl->parse('V_db_stage_default','B_db_stage_default');
398
-		$db_filled_block = $setup_tpl->get_var('V_db_stage_default');
399
-		$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
400
-		break;
386
+		case 10:
387
+			$setup_tpl->set_var('tablescurrent',lang('Your eGroupWare API is current'));
388
+			$setup_tpl->set_var('uninstall_all_applications',lang('Uninstall all applications'));
389
+			$setup_tpl->set_var('dropwarn',lang('Your tables will be dropped and you will lose data'));
390
+			$setup_tpl->set_var('deletetables',lang('Uninstall all applications'));
391
+			$setup_tpl->parse('V_db_stage_10','B_db_stage_10');
392
+			$db_filled_block = $setup_tpl->get_var('V_db_stage_10');
393
+			$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
394
+			break;
395
+		default:
396
+			$setup_tpl->set_var('dbnotexist',lang('Your database does not exist'));
397
+			$setup_tpl->parse('V_db_stage_default','B_db_stage_default');
398
+			$db_filled_block = $setup_tpl->get_var('V_db_stage_default');
399
+			$setup_tpl->set_var('V_db_filled_block',$db_filled_block);
400
+			break;
401 401
 }
402 402
 
403 403
 // Config Section
Please login to merge, or discard this patch.
phpgwapi/inc/adodb/drivers/adodb-oracle.inc.php 1 patch
Switch Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -310,30 +310,30 @@
 block discarded – undo
310 310
 		}
311 311
 
312 312
 		switch (strtoupper($t)) {
313
-		case 'VARCHAR':
314
-		case 'VARCHAR2':
315
-		case 'CHAR':
316
-		case 'VARBINARY':
317
-		case 'BINARY':
318
-				if ($len <= $this->blobSize) return 'C';
319
-		case 'LONG':
320
-		case 'LONG VARCHAR':
321
-		case 'CLOB':
322
-		return 'X';
323
-		case 'LONG RAW':
324
-		case 'LONG VARBINARY':
325
-		case 'BLOB':
326
-				return 'B';
327
-
328
-		case 'DATE': return 'D';
329
-
330
-		//case 'T': return 'T';
331
-
332
-		case 'BIT': return 'L';
333
-		case 'INT':
334
-		case 'SMALLINT':
335
-		case 'INTEGER': return 'I';
336
-		default: return 'N';
313
+			case 'VARCHAR':
314
+			case 'VARCHAR2':
315
+			case 'CHAR':
316
+			case 'VARBINARY':
317
+			case 'BINARY':
318
+					if ($len <= $this->blobSize) return 'C';
319
+			case 'LONG':
320
+			case 'LONG VARCHAR':
321
+			case 'CLOB':
322
+			return 'X';
323
+			case 'LONG RAW':
324
+			case 'LONG VARBINARY':
325
+			case 'BLOB':
326
+					return 'B';
327
+
328
+			case 'DATE': return 'D';
329
+
330
+			//case 'T': return 'T';
331
+
332
+			case 'BIT': return 'L';
333
+			case 'INT':
334
+			case 'SMALLINT':
335
+			case 'INTEGER': return 'I';
336
+			default: return 'N';
337 337
 		}
338 338
 	}
339 339
 }
Please login to merge, or discard this patch.