|
@@ -54,41 +54,41 @@ $install->check_form();
|
54
|
54
|
|
55
|
55
|
<div class="tabla">
|
56
|
56
|
<form action="install.php" method="post" id="config_form" autocomplete="off" class="newpost">
|
57
|
|
- <fieldset>
|
|
57
|
+ <fieldset class="install">
|
58
|
58
|
<legend class="install">Database Settings</legend>
|
59
|
59
|
<ul>
|
60
|
60
|
<li><label for="login">User:</label>
|
61
|
|
- <input type="text" name="db_login" id="db_login" value="" class="txt"/><?php echo $install->mostrarerror("1")?></li>
|
|
61
|
+ <input type="text" name="db_login" id="db_login" value="<?php echo $install->data['db_login']?>" class="txt"/><?php echo $install->mostrarerror("10")?></li>
|
62
|
62
|
<li><label for="password">Password:</label>
|
63
|
|
- <input type="password" name="db_password" id="db_password" value="" class="txt"/><?php echo $install->mostrarerror("2")?></li>
|
|
63
|
+ <input type="password" name="db_password" id="db_password" value="" class="txt"/></li>
|
64
|
64
|
<li><label for="password2">Re-type password:</label>
|
65
|
|
- <input type="password" name="db_password2" id="db_password2" value="" class="txt"/><?php echo $install->mostrarerror("3")?></li>
|
|
65
|
+ <input type="password" name="db_password2" id="db_password2" value="" class="txt"/><?php echo $install->mostrarerror("9")?></li>
|
66
|
66
|
<li><label for="email">Database Host:</label>
|
67
|
|
- <input type="text" name="db_host" id="db_host" value="localhost" class="txt"/><?php echo $install->mostrarerror("7")?></li>
|
|
67
|
+ <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>
|
68
|
68
|
<li><label for="email">Database Name:</label>
|
69
|
|
- <input type="text" name="db_name" id="db_name" value="gelatocms" class="txt"/><?php echo $install->mostrarerror("8")?></li>
|
|
69
|
+ <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>
|
70
|
70
|
</ul>
|
71
|
71
|
</fieldset><br />
|
72
|
|
- <fieldset>
|
|
72
|
+ <fieldset class="install">
|
73
|
73
|
<legend class="install">Admin user</legend>
|
74
|
74
|
<ul>
|
75
|
75
|
<li><label for="login">User:</label>
|
76
|
|
- <input type="text" name="login" id="login" value="" class="txt"/><?php echo $install->mostrarerror("1")?></li>
|
|
76
|
+ <input type="text" name="login" id="login" value="<?php echo $install->data['login']?>" class="txt"/><?php echo $install->mostrarerror("1")?></li>
|
77
|
77
|
<li><label for="password">Password:</label>
|
78
|
78
|
<input type="password" name="password" id="password" value="" class="txt"/><?php echo $install->mostrarerror("2")?></li>
|
79
|
79
|
<li><label for="password2">Re-type password:</label>
|
80
|
80
|
<input type="password" name="password2" id="password2" value="" class="txt"/><?php echo $install->mostrarerror("3")?></li>
|
81
|
81
|
<li><label for="email">E-mail:</label>
|
82
|
|
- <input type="text" name="email" id="email" value="" class="txt"/><?php echo $install->mostrarerror("4")?></li>
|
|
82
|
+ <input type="text" name="email" id="email" value="<?php echo $install->data['email']?>" class="txt"/><?php echo $install->mostrarerror("4")?></li>
|
83
|
83
|
</ul>
|
84
|
84
|
</fieldset><br />
|
85
|
|
- <fieldset>
|
|
85
|
+ <fieldset class="install">
|
86
|
86
|
<legend class="install">Tumblelog configuration</legend>
|
87
|
87
|
<ul>
|
88
|
88
|
<li><label for="title">Title:</label>
|
89
|
|
- <input type="text" name="title" id="title" value="" class="txt"/></li>
|
|
89
|
+ <input type="text" name="title" id="title" value="<?php echo $install->data['title']?>" class="txt"/></li>
|
90
|
90
|
<li><label for="description">Description:</label>
|
91
|
|
- <input type="text" name="description" id="description" value="" class="txt"/></li>
|
|
91
|
+ <input type="text" name="description" id="description" value="<?php echo $install->data['description']?>" class="txt"/></li>
|
92
|
92
|
<li><label for="url_installation">Installation URL</label>
|
93
|
93
|
<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>
|
94
|
94
|
<li><label for="posts_limit">Post limit:</label>
|
|
@@ -167,7 +167,7 @@ $install->check_form();
|
167
|
167
|
<option value="9.50,Australia/Adelaide">(GMT +9:30) Adelaide</option>
|
168
|
168
|
<option value="9.50Australia/Darwin">(GMT +9:30) Darwin</option>
|
169
|
169
|
<option value="10,Australia/Brisbane">(GMT +10:00) Brisbane, Guam, Port Moresby</option>
|
170
|
|
- <option value="10,Australia/Canberra">(GMT +10:00) Canberra, Hobart, Melbourne, Sydney, Vladivostok</option>
|
|
170
|
+ <option value="10,Australia/Canberra">(GMT +10:00) Canberra, Hobart, Melbourne, Sydney</option>
|
171
|
171
|
<option value="11,Asia/Magadan">(GMT +11:00) Magadan, Soloman Is., New Caledonia</option>
|
172
|
172
|
<option value="12,Pacific/Auckland">(GMT +12:00) Auckland, Wellington</option>
|
173
|
173
|
<option value="12,Pacific/Fiji">(GMT +12:00) Fiji, Kamchatka, Marshall Is.</option>
|