Parcourir la source

* Some changes on install.class.php & install.php

Victor De la Rocha il y a 16 ans
Parent
révision
8e5cfd09e4
3 fichiers modifiés avec 193 ajouts et 186 suppressions
  1. 168 0
      admin/themes/admin/install.htm
  2. 2 4
      classes/install.class.php
  3. 23 182
      install.php

+ 168 - 0
admin/themes/admin/install.htm Voir le fichier

@@ -0,0 +1,168 @@
1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+<html xmlns="http://www.w3.org/1999/xhtml">
3
+<head>
4
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+	<meta name="generator" content="gelato cms {version}" />
6
+	<title>gelato :: installation</title>
7
+	<link rel="shortcut icon" href="images/favicon.ico" />
8
+	<style type="text/css" media="screen">
9
+		@import "admin/css/style.css";
10
+	</style>
11
+</head>
12
+<body>
13
+<div id="cont">
14
+	<div id="head">
15
+		<h1><a href="index.php" title="gelato :: home">gelato cms</a></h1>
16
+	</div>
17
+
18
+	<div id="main">
19
+	{if {$showForm}}
20
+		<div class="box">
21
+			<ul class="menu manage">
22
+			<h3>gelato :: installation</h3>
23
+
24
+			<li class="selected"><a>Install</a></li>
25
+			</ul>
26
+
27
+			<div class="tabla">
28
+				<form action="install.php" method="post" id="config_form" autocomplete="off" class="newpost">
29
+					<fieldset class="install">
30
+						<legend class="install">Database Settings</legend>
31
+						<ul>
32
+							<li><label for="login">User:</label>
33
+								<input type="text" name="db_login" id="db_login" value="{db_login}" class="txt"/>{error.10}</li>
34
+							<li><label for="password">Password:</label>
35
+								<input type="password" name="db_password" id="db_password" value="" class="txt"/></li>
36
+							<li><label for="password2">Re-type password:</label>
37
+								<input type="password" name="db_password2" id="db_password2" value="" class="txt"/>{error.9}</li>
38
+							<li><label for="email">Database Host:</label>
39
+								<input type="text" name="db_host" id="db_host" value="{db_host}" class="txt"/>{error.7}</li>
40
+							<li><label for="email">Database Name:</label>
41
+								<input type="text" name="db_name" id="db_name" value="{db_name}" class="txt"/>{error.8}</li>
42
+						</ul>
43
+					</fieldset><br  />
44
+					<fieldset class="install">
45
+						<legend class="install">Admin user</legend>
46
+						<ul>
47
+							<li><label for="login">User:</label>
48
+								<input type="text" name="login" id="login" value="{login}" class="txt"/>{error.1}</li>
49
+							<li><label for="password">Password:</label>
50
+								<input type="password" name="password" id="password" value="" class="txt"/>{error.2}</li>
51
+							<li><label for="password2">Re-type password:</label>
52
+								<input type="password" name="password2" id="password2" value="" class="txt"/>{error.3}</li>
53
+							<li><label for="email">E-mail:</label>
54
+								<input type="text" name="email" id="email" value="{email}" class="txt"/>{error.4}</li>
55
+						</ul>
56
+					</fieldset><br  />
57
+					<fieldset class="install">
58
+						<legend class="install">Tumblelog configuration</legend>
59
+						<ul>
60
+							<li><label for="title">Title:</label>
61
+								<input type="text" name="title" id="title" value="{title}" class="txt"/></li>
62
+							<li><label for="description">Description:</label>
63
+								<input type="text" name="description" id="description" value="{description}" class="txt"/></li>
64
+							<li><label for="url_installation">Installation URL</label>
65
+								<input type="text" name="url_installation" id="url_installation" value="{url_installation}" class="txt"/>{error.5}</li>
66
+							<li><label for="posts_limit">Post limit:</label>
67
+								<input type="text" name="posts_limit" id="posts_limit" value="10" class="txt"/></li>
68
+							<li><label for="lang">Language:</label>
69
+								<select id="lang" name="lang">
70
+									<option value="en" selected="selected">english</option>
71
+								</select>
72
+							</li>
73
+							<li><label for="template">Template:</label>
74
+								<select id="template" name="template">
75
+									{block {$themes} as {$theme}}
76
+										<option value="{$theme}">{$theme}</option>
77
+									{/block}
78
+								</select>
79
+							<li>
80
+							<li><label for="time_offsets">Time Offset:</label>
81
+								<select id="time_offsets" name="time_offsets">
82
+									<option value="-12,Pacific/Kwajalein">(GMT -12:00) International Date Line West</option>
83
+									<option value="-11,Pacific/Samoa">(GMT -11:00) Midway Island, Samoa</option>
84
+									<option value="-10,Pacific/Honolulu">(GMT -10:00) Hawaii</option>
85
+									<option value="-9,US/Alaska">(GMT -9:00) Alaska</option>
86
+									<option value="-8,US/Pacific">(GMT -8:00) Pacific Time (US &amp; Canada); Tijuana</option>
87
+									<option value="-7,US/Mountain">(GMT -7:00) Mountain Time (US &amp; Canada)</option>
88
+									<option value="-7,US/Arizona">(GMT -7:00) Arizona</option>
89
+									<option value="-7,Mexico/BajaNorte">(GMT -7:00) Chihuahua, La Paz, Mazatlan</option>
90
+									<option value="-6,US/Central">(GMT -6:00) Central Time (US &amp; Canada)</option>
91
+									<option value="-6,America/Costa_Rica">(GMT -6:00) Central America</option>
92
+									<option value="-6,Mexico/General" selected="selected">(GMT -6:00) Guadalajara, Mexico City, Monterrey</option>
93
+									<option value="-6,Canada/Saskatchewan">(GMT -6:00) Saskatchewan</option>
94
+									<option value="-5,US/Eastern">(GMT -5:00) Eastern Time (US &amp; Canada)</option>
95
+									<option value="-5,America/Bogota">(GMT -5:00) Bogota, Lima, Quito</option>
96
+									<option value="-5,US/East-Indiana">(GMT -5:00) Indiana (East)</option>
97
+									<option value="-4,Canada/Eastern">(GMT -4:00) Atlantic Time (Canada)</option>
98
+									<option value="-4,America/Caracas">(GMT -4:00) Caracas, La Paz</option>
99
+									<option value="-4,America/Santiago">(GMT -4:00) Santiago</option>
100
+									<option value="-3.50,Canada/Newfoundland">(GMT -3:30) Newfoundland</option>
101
+									<option value="-3,Canada/Atlantic">(GMT -3:00) Brasilia, Greenland</option>
102
+									<option value="-3,America/Buenos_Aires">(GMT -3:00) Buenos Aires, Georgetown</option>
103
+									<option value="-2,Atlantic/Central">(GMT -2:00) Atlantic Central</option>
104
+									<option value="-1,Atlantic/Cape_Verde">(GMT -1:00) Cape Verde Is.</option>
105
+									<option value="-1,Atlantic/Azores">(GMT -1:00) Azores</option>
106
+									<option value="0,Africa/Casablanca">(GMT) Casablanca, Monrovia</option>
107
+									<option value="0,Europe/Dublin">(GMT) Greenwich Mean Time : Dublin, Edinburgh, London</option>
108
+									<option value="1,Europe/Amsterdam">(GMT +1:00) Amsterdam, Berlin, Rome, Stockholm, Vienna</option>
109
+									<option value="1,Europe/Prague">(GMT +1:00) Belgrade, Bratislava, Budapest, Prague</option>
110
+									<option value="1,Europe/Paris">(GMT +1:00) Brussels, Copenhagen, Madrid, Paris</option>
111
+									<option value="1,Europe/Warsaw">(GMT +1:00) Sarajevo, Skopje, Warsaw, Zagreb</option>
112
+									<option value="1,Africa/Bangui">(GMT +1:00) West Central Africa</option>
113
+									<option value="2,Europe/Istanbul">(GMT +2:00) Athens, Beirut, Bucharest, Cairo, Istanbul	</option>
114
+									<option value="2,Asia/Jerusalem">(GMT +2:00) Harare, Jerusalem, Pretoria</option>
115
+									<option value="2,Europe/Kiev">(GMT +2:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius</option>
116
+									<option value="3,Asia/Riyadh">(GMT +3:00) Kuwait, Nairobi, Riyadh</option>
117
+									<option value="3,Europe/Moscow">(GMT +3:00) Baghdad, Moscow, St. Petersburg, Volgograd</option>
118
+									<option value="3.50,Asia/Tehran">(GMT +3:30) Tehran</option>
119
+									<option value="4,Asia/Muscat">(GMT +4:00) Abu Dhabi, Muscat</option>
120
+									<option value="4,Asia/Baku">(GMT +4:00) Baku, Tbilsi, Yerevan</option>
121
+									<option value="4.50,Asia/Kabul">(GMT +4:30) Kabul</option>
122
+									<option value="5,Asia/Yekaterinburg">(GMT +5:00) Yekaterinburg</option>
123
+									<option value="5,Asia/Karachi">(GMT +5:00) Islamabad, Karachi, Tashkent</option>
124
+									<option value="5.50,Asia/Calcutta">(GMT +5:30) Chennai, Calcutta, Mumbai, New Delhi</option>
125
+									<option value="5.75,Asia/Katmandu">(GMT +5:45) Katmandu</option>
126
+									<option value="6,Asia/Almaty">(GMT +6:00) Almaty, Novosibirsk</option>
127
+									<option value="6,Asia/Dhaka">(GMT +6:00) Astana, Dhaka, Sri Jayawardenepura</option>
128
+									<option value="6.50,Asia/Rangoon">(GMT +6:30) Rangoon</option>
129
+									<option value="7,Asia/Bangkok">(GMT +7:00) Bangkok, Hanoi, Jakarta</option>
130
+									<option value="7,Asia/Krasnoyarsk">(GMT +7:00) Krasnoyarsk</option>
131
+									<option value="8,Asia/Hong_Kong">(GMT +8:00) Beijing, Chongqing, Hong Kong, Urumqi</option>
132
+									<option value="8,Asia/Irkutsk">(GMT +8:00) Irkutsk, Ulaan Bataar</option>
133
+									<option value="8,Asia/Singapore">(GMT +8:00) Kuala Lumpar, Perth, Singapore, Taipei</option>
134
+									<option value="9,Asia/Tokyo">(GMT +9:00) Osaka, Sapporo, Tokyo</option>
135
+									<option value="9,Asia/Seoul">(GMT +9:00) Seoul</option>
136
+									<option value="9,Asia/Yakutsk">(GMT +9:00) Yakutsk</option>
137
+									<option value="9.50,Australia/Adelaide">(GMT +9:30) Adelaide</option>
138
+									<option value="9.50Australia/Darwin">(GMT +9:30) Darwin</option>
139
+									<option value="10,Australia/Brisbane">(GMT +10:00) Brisbane, Guam, Port Moresby</option>
140
+									<option value="10,Australia/Canberra">(GMT +10:00) Canberra, Hobart, Melbourne, Sydney</option>
141
+									<option value="11,Asia/Magadan">(GMT +11:00) Magadan, Soloman Is., New Caledonia</option>
142
+									<option value="12,Pacific/Auckland">(GMT +12:00) Auckland, Wellington</option>
143
+									<option value="12,Pacific/Fiji">(GMT +12:00) Fiji, Kamchatka, Marshall Is.</option>
144
+								</select>
145
+							</li>
146
+						</ul>
147
+					</fieldset>
148
+					<p>
149
+						<input type="hidden" name="website" id="website" value="" />
150
+						<input type="hidden" name="about" id="about" value="" />
151
+						<input type="hidden" name="action" id="action" value="config" />
152
+						<input type="submit" name="btnsubmit" id="btnsubmit" value="<< Install >>" class="submit"/>
153
+					</p>
154
+				</form>
155
+			</div>
156
+			<div class="footer-box">&nbsp;</div>
157
+		</div>
158
+	{else}
159
+		<p><em>Finished!</em></p>
160
+		<p>Now you can <a href="login.php" class="inslnl">log in</a> with your <strong>username</strong> and <strong>password</strong></p>
161
+	{/if}
162
+	</div>
163
+	<div id="foot">
164
+		<a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
165
+	</div>
166
+</div>
167
+</body>
168
+</html>

+ 2 - 4
classes/install.class.php Voir le fichier

@@ -141,11 +141,9 @@ class Install {
141 141
 	}
142 142
 
143 143
 	function inerrors($n) {
144
-		if ( strpos($this->errors,$n)===false) {
144
+		if(strpos($this->errors,(string)$n)===false)
145 145
 			return false;
146
-		} else {
147
-			return true;
148
-		}
146
+		return true;
149 147
 	}
150 148
 
151 149
 	function mostrarerror($n) {

+ 23 - 182
install.php Voir le fichier

@@ -18,192 +18,33 @@ $configFile = Absolute_Path."config.php";
18 18
 if(file_exists($configFile)){
19 19
 	require_once($configFile);
20 20
 }else{
21
-	exit("You need to rename config-sample.php to config.php and fill out the required details.");
21
+	exit('You need to rename config-sample.php to config.php and fill out the required details.');
22 22
 }
23 23
 
24 24
 global $user, $conf, $tumble;
25 25
 $install = new Install();
26
+if($install->is_gelato_installed()){
27
+	header("location: index.php");
28
+	exit;
29
+}
26 30
 $install->data = $_POST;
27 31
 $install->check_form();
32
+$theme = new themes;
33
+$theme->set('version',version());
34
+$theme->set('showForm',$install->showForm);
35
+
36
+$theme->set('db_login',isset($install->data['db_login'])? $install->data['db_login'] : '');
37
+$theme->set('db_host',(!empty($install->data['db_host']))? $install->data['db_host'] : 'localhost');
38
+$theme->set('db_name',(!empty($install->data['db_name']))?  $install->data['db_name'] : 'gelatocms');
39
+$theme->set('login',isset($install->data['login'])?$install->data['login']:'');
40
+$theme->set('email',isset($install->data['email'])?$install->data['email']:'');
41
+$theme->set('title',isset($install->data['title'])?$install->data['title']:'');
42
+$theme->set('description',isset($install->data['description'])?$install->data['description']:'');
43
+$theme->set('url_installation',isset($_SERVER['SCRIPT_URI'])?substr($_SERVER["SCRIPT_URI"], 0, -12):'');
44
+$theme->set('themes',getThemes());
45
+
46
+for($c=1;$c<=10;$c++)$errores[$c] = $install->mostrarerror($c);
47
+$theme->set('error',$errores);
48
+
49
+$theme->display(Absolute_Path.'admin/themes/admin/install.htm');
28 50
 ?>
29
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
30
-<html xmlns="http://www.w3.org/1999/xhtml">
31
-<head>
32
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
33
-	<meta name="generator" content="gelato cms <?php echo version();?>" />
34
-	<title>gelato :: installation</title>
35
-	<link rel="shortcut icon" href="images/favicon.ico" />
36
-	<style type="text/css" media="screen">
37
-		@import "admin/css/style.css";
38
-	</style>
39
-</head>
40
-<body>
41
-<div id="cont">
42
-	<div id="head">
43
-		<h1><a href="index.php" title="gelato :: home">gelato cms</a></h1>
44
-	</div>
45
-
46
-	<div id="main">
47
-
48
-<?php
49
-
50
-	if ($install->showForm) {
51
-?>
52
-
53
-	<div class="box">
54
-		<ul class="menu manage">
55
-		<h3>gelato :: installation</h3>
56
-
57
-		<li class="selected"><a>Install</a></li>
58
-		</ul>
59
-
60
-		<div class="tabla">
61
-			<form action="install.php" method="post" id="config_form" autocomplete="off" class="newpost">
62
-				<fieldset class="install">
63
-					<legend class="install">Database Settings</legend>
64
-					<ul>
65
-						<li><label for="login">User:</label>
66
-							<input type="text" name="db_login" id="db_login" value="<?php echo isset($install->data['db_login'])?$install->data['db_login']:''?>" class="txt"/><?php echo $install->mostrarerror("10")?></li>
67
-						<li><label for="password">Password:</label>
68
-							<input type="password" name="db_password" id="db_password" value="" class="txt"/></li>
69
-						<li><label for="password2">Re-type password:</label>
70
-							<input type="password" name="db_password2" id="db_password2" value="" class="txt"/><?php echo $install->mostrarerror("9")?></li>
71
-						<li><label for="email">Database Host:</label>
72
-							<input type="text" name="db_host" id="db_host" value="<?php echo (!empty($install->data['db_host']))?  $install->data['db_host'] : 'localhost'?>" class="txt"/><?php echo $install->mostrarerror("7")?></li>
73
-						<li><label for="email">Database Name:</label>
74
-							<input type="text" name="db_name" id="db_name" value="<?php echo (!empty($install->data['db_name']))?  $install->data['db_name'] : 'gelatocms'?>" class="txt"/><?php echo $install->mostrarerror("8")?></li>
75
-					</ul>
76
-				</fieldset><br  />
77
-				<fieldset class="install">
78
-					<legend class="install">Admin user</legend>
79
-					<ul>
80
-						<li><label for="login">User:</label>
81
-							<input type="text" name="login" id="login" value="<?php echo isset($install->data['login'])?$install->data['login']:''?>" class="txt"/><?php echo $install->mostrarerror("1")?></li>
82
-						<li><label for="password">Password:</label>
83
-							<input type="password" name="password" id="password" value="" class="txt"/><?php echo $install->mostrarerror("2")?></li>
84
-						<li><label for="password2">Re-type password:</label>
85
-							<input type="password" name="password2" id="password2" value="" class="txt"/><?php echo $install->mostrarerror("3")?></li>
86
-						<li><label for="email">E-mail:</label>
87
-							<input type="text" name="email" id="email" value="<?php echo isset($install->data['email'])?$install->data['email']:''?>" class="txt"/><?php echo $install->mostrarerror("4")?></li>
88
-					</ul>
89
-				</fieldset><br  />
90
-				<fieldset class="install">
91
-					<legend class="install">Tumblelog configuration</legend>
92
-					<ul>
93
-						<li><label for="title">Title:</label>
94
-							<input type="text" name="title" id="title" value="<?php echo isset($install->data['title'])?$install->data['title']:''?>" class="txt"/></li>
95
-						<li><label for="description">Description:</label>
96
-							<input type="text" name="description" id="description" value="<?php echo isset($install->data['description'])?$install->data['description']:''?>" class="txt"/></li>
97
-						<li><label for="url_installation">Installation URL</label>
98
-							<input type="text" name="url_installation" id="url_installation" value="<?php if(isset($_SERVER['SCRIPT_URI']))echo substr($_SERVER["SCRIPT_URI"], '0', '-12'); ?>" class="txt"/><?php echo $install->mostrarerror("5")?></li>
99
-						<li><label for="posts_limit">Post limit:</label>
100
-							<input type="text" name="posts_limit" id="posts_limit" value="10" class="txt"/></li>
101
-						<li><label for="lang">Language:</label>
102
-							<select id="lang" name="lang">
103
-								<option value="en" selected="selected">english</option>
104
-							</select>
105
-						</li>
106
-						<li><label for="template">Template:</label>
107
-							<select id="template" name="template">
108
-<?php
109
-							$themes = getThemes();
110
-							foreach ($themes as $theme) {
111
-								echo "<option value=\"".$theme."\" selected=\"true\">".$theme."</option>\n";
112
-
113
-							}
114
-?>							</select>
115
-						<li>
116
-						<li><label for="time_offsets">Time Offset:</label>
117
-							<select id="time_offsets" name="time_offsets">
118
-								<option value="-12,Pacific/Kwajalein">(GMT -12:00) International Date Line West</option>
119
-								<option value="-11,Pacific/Samoa">(GMT -11:00) Midway Island, Samoa</option>
120
-								<option value="-10,Pacific/Honolulu">(GMT -10:00) Hawaii</option>
121
-								<option value="-9,US/Alaska">(GMT -9:00) Alaska</option>
122
-								<option value="-8,US/Pacific">(GMT -8:00) Pacific Time (US &amp; Canada); Tijuana</option>
123
-								<option value="-7,US/Mountain">(GMT -7:00) Mountain Time (US &amp; Canada)</option>
124
-								<option value="-7,US/Arizona">(GMT -7:00) Arizona</option>
125
-								<option value="-7,Mexico/BajaNorte">(GMT -7:00) Chihuahua, La Paz, Mazatlan</option>
126
-								<option value="-6,US/Central">(GMT -6:00) Central Time (US &amp; Canada)</option>
127
-								<option value="-6,America/Costa_Rica">(GMT -6:00) Central America</option>
128
-								<option value="-6,Mexico/General" selected="selected">(GMT -6:00) Guadalajara, Mexico City, Monterrey</option>
129
-								<option value="-6,Canada/Saskatchewan">(GMT -6:00) Saskatchewan</option>
130
-								<option value="-5,US/Eastern">(GMT -5:00) Eastern Time (US &amp; Canada)</option>
131
-								<option value="-5,America/Bogota">(GMT -5:00) Bogota, Lima, Quito</option>
132
-								<option value="-5,US/East-Indiana">(GMT -5:00) Indiana (East)</option>
133
-								<option value="-4,Canada/Eastern">(GMT -4:00) Atlantic Time (Canada)</option>
134
-								<option value="-4,America/Caracas">(GMT -4:00) Caracas, La Paz</option>
135
-								<option value="-4,America/Santiago">(GMT -4:00) Santiago</option>
136
-								<option value="-3.50,Canada/Newfoundland">(GMT -3:30) Newfoundland</option>
137
-								<option value="-3,Canada/Atlantic">(GMT -3:00) Brasilia, Greenland</option>
138
-								<option value="-3,America/Buenos_Aires">(GMT -3:00) Buenos Aires, Georgetown</option>
139
-								<option value="-2,Atlantic/Central">(GMT -2:00) Atlantic Central</option>
140
-								<option value="-1,Atlantic/Cape_Verde">(GMT -1:00) Cape Verde Is.</option>
141
-								<option value="-1,Atlantic/Azores">(GMT -1:00) Azores</option>
142
-								<option value="0,Africa/Casablanca">(GMT) Casablanca, Monrovia</option>
143
-								<option value="0,Europe/Dublin">(GMT) Greenwich Mean Time : Dublin, Edinburgh, London</option>
144
-								<option value="1,Europe/Amsterdam">(GMT +1:00) Amsterdam, Berlin, Rome, Stockholm, Vienna</option>
145
-								<option value="1,Europe/Prague">(GMT +1:00) Belgrade, Bratislava, Budapest, Prague</option>
146
-								<option value="1,Europe/Paris">(GMT +1:00) Brussels, Copenhagen, Madrid, Paris</option>
147
-								<option value="1,Europe/Warsaw">(GMT +1:00) Sarajevo, Skopje, Warsaw, Zagreb</option>
148
-								<option value="1,Africa/Bangui">(GMT +1:00) West Central Africa</option>
149
-								<option value="2,Europe/Istanbul">(GMT +2:00) Athens, Beirut, Bucharest, Cairo, Istanbul	</option>
150
-								<option value="2,Asia/Jerusalem">(GMT +2:00) Harare, Jerusalem, Pretoria</option>
151
-								<option value="2,Europe/Kiev">(GMT +2:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius</option>
152
-								<option value="3,Asia/Riyadh">(GMT +3:00) Kuwait, Nairobi, Riyadh</option>
153
-								<option value="3,Europe/Moscow">(GMT +3:00) Baghdad, Moscow, St. Petersburg, Volgograd</option>
154
-								<option value="3.50,Asia/Tehran">(GMT +3:30) Tehran</option>
155
-								<option value="4,Asia/Muscat">(GMT +4:00) Abu Dhabi, Muscat</option>
156
-								<option value="4,Asia/Baku">(GMT +4:00) Baku, Tbilsi, Yerevan</option>
157
-								<option value="4.50,Asia/Kabul">(GMT +4:30) Kabul</option>
158
-								<option value="5,Asia/Yekaterinburg">(GMT +5:00) Yekaterinburg</option>
159
-								<option value="5,Asia/Karachi">(GMT +5:00) Islamabad, Karachi, Tashkent</option>
160
-								<option value="5.50,Asia/Calcutta">(GMT +5:30) Chennai, Calcutta, Mumbai, New Delhi</option>
161
-								<option value="5.75,Asia/Katmandu">(GMT +5:45) Katmandu</option>
162
-								<option value="6,Asia/Almaty">(GMT +6:00) Almaty, Novosibirsk</option>
163
-								<option value="6,Asia/Dhaka">(GMT +6:00) Astana, Dhaka, Sri Jayawardenepura</option>
164
-								<option value="6.50,Asia/Rangoon">(GMT +6:30) Rangoon</option>
165
-								<option value="7,Asia/Bangkok">(GMT +7:00) Bangkok, Hanoi, Jakarta</option>
166
-								<option value="7,Asia/Krasnoyarsk">(GMT +7:00) Krasnoyarsk</option>
167
-								<option value="8,Asia/Hong_Kong">(GMT +8:00) Beijing, Chongqing, Hong Kong, Urumqi</option>
168
-								<option value="8,Asia/Irkutsk">(GMT +8:00) Irkutsk, Ulaan Bataar</option>
169
-								<option value="8,Asia/Singapore">(GMT +8:00) Kuala Lumpar, Perth, Singapore, Taipei</option>
170
-								<option value="9,Asia/Tokyo">(GMT +9:00) Osaka, Sapporo, Tokyo</option>
171
-								<option value="9,Asia/Seoul">(GMT +9:00) Seoul</option>
172
-								<option value="9,Asia/Yakutsk">(GMT +9:00) Yakutsk</option>
173
-								<option value="9.50,Australia/Adelaide">(GMT +9:30) Adelaide</option>
174
-								<option value="9.50Australia/Darwin">(GMT +9:30) Darwin</option>
175
-								<option value="10,Australia/Brisbane">(GMT +10:00) Brisbane, Guam, Port Moresby</option>
176
-								<option value="10,Australia/Canberra">(GMT +10:00) Canberra, Hobart, Melbourne, Sydney</option>
177
-								<option value="11,Asia/Magadan">(GMT +11:00) Magadan, Soloman Is., New Caledonia</option>
178
-								<option value="12,Pacific/Auckland">(GMT +12:00) Auckland, Wellington</option>
179
-								<option value="12,Pacific/Fiji">(GMT +12:00) Fiji, Kamchatka, Marshall Is.</option>
180
-							</select>
181
-						</li>
182
-					</ul>
183
-				</fieldset>
184
-				<p>
185
-					<input type="hidden" name="website" id="website" value="" />
186
-					<input type="hidden" name="about" id="about" value="" />
187
-					<input type="hidden" name="action" id="action" value="config" />
188
-					<input type="submit" name="btnsubmit" id="btnsubmit" value="<< Install >>" class="submit"/>
189
-				</p>
190
-			</form>
191
-		</div>
192
-		<div class="footer-box">&nbsp;</div>
193
-	</div>
194
-
195
-<?php
196
-	} else {
197
-		echo "<p><em>Finished!</em></p>";
198
-		echo "<p>Now you can <a href=\"login.php\" class=\"inslnl\">log in</a> with your <strong>username</strong> and <strong>password</strong></p>";
199
-	}
200
-
201
-?>
202
-	</div>
203
-	<div id="foot">
204
-		<a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
205
-	</div>
206
-
207
-</div>
208
-</body>
209
-</html>