1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
<?php /** * @version $Id: install1.php 2510 2006-02-21 04:59:41Z stingrey $ * @package Joomla * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */
/** Include common.php */ require_once( 'common.php' );
$DBhostname = mosGetParam( $_POST, 'DBhostname', '' ); $DBuserName = mosGetParam( $_POST, 'DBuserName', '' ); $DBpassword = mosGetParam( $_POST, 'DBpassword', '' ); $DBname = mosGetParam( $_POST, 'DBname', '' ); $DBPrefix = mosGetParam( $_POST, 'DBPrefix', 'jos_' ); $DBDel = intval( mosGetParam( $_POST, 'DBDel', 0 ) ); $DBBackup = intval( mosGetParam( $_POST, 'DBBackup', 0 ) ); $DBSample = intval( mosGetParam( $_POST, 'DBSample', 1 ) );
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Joomla - Web Installer</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="shortcut icon" href="../images/favicon.ico" /> <link rel="stylesheet" href="install.css" type="text/css" /> <script type="text/javascript"> <!-- function check() { // form validation check var formValid=false; var f = document.form; if ( f.DBhostname.value == '' ) { alert('Please enter a Host name'); f.DBhostname.focus(); formValid=false; } else if ( f.DBuserName.value == '' ) { alert('Please enter a Database User Name'); f.DBuserName.focus(); formValid=false; } else if ( f.DBname.value == '' ) { alert('Please enter a Name for your new Database'); f.DBname.focus(); formValid=false; } else if ( f.DBPrefix.value == '' ) { alert('You must enter a MySQL Table Prefix for Joomla to operate correctly.'); f.DBPrefix.focus(); formValid=false; } else if ( f.DBPrefix.value == 'old_' ) { alert('You cannot use "old_" as the MySQL Table Prefix because Joomla uses this prefix for backup tables.'); f.DBPrefix.focus(); formValid=false; } else if ( confirm('Are you sure these settings are correct? \nJoomla will now attempt to populate a Database with the settings you have supplied')) { formValid=true; }
return formValid; } //--> </script> </head> <body onload="document.form.DBhostname.focus();"> <div id="wrapper"> <div id="header"> <div id="joomla"><img src="header_install.png" alt="Joomla Installation" /></div> </div> </div> <div id="ctr" align="center"> <form action="install2.php" method="post" name="form" id="form" onsubmit="return check();"> <div class="install"> <div id="stepbar"> <div class="step-off"> pre-installation check </div> <div class="step-off"> license </div> <div class="step-on"> step 1 </div> <div class="step-off"> step 2 </div> <div class="step-off"> step 3 </div> <div class="step-off"> step 4 </div> </div> <div id="right"> <div class="far-right"> <input class="button" type="submit" name="next" value="Next >>"/> </div> <div id="step"> step 1 </div> <div class="clr"></div> <h1>MySQL database configuration:</h1> <div class="install-text"> <p>Setting up Joomla to run on your server involves 4 simple steps...</p> <p>Please enter the hostname of the server Joomla is to be installed on.</p> <p>Enter the MySQL username, password and database name you wish to use with Joomla.</p> <p>Enter a table name prefix to be used by this Joomla! install and select what to do with existing tables from former installations.</p> <p>Install the sample data unless you are an experienced Joomla! User wanting to start with a completely empty site.</p> </div> <div class="install-form"> <div class="form-block"> <table class="content2"> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td colspan="2"> Host Name <br/> <input class="inputbox" type="text" name="DBhostname" value="<?php echo "$DBhostname"; ?>" /> </td> <td> <em>This is usually 'localhost'</em> </td> </tr> <tr> <td colspan="2"> MySQL User Name <br/> <input class="inputbox" type="text" name="DBuserName" value="<?php echo "$DBuserName"; ?>" /> </td> <td> <em>Either something as 'root' or a username given by the hoster</em> </td> </tr> <tr> <td colspan="2"> MySQL Password <br/> <input class="inputbox" type="text" name="DBpassword" value="<?php echo "$DBpassword"; ?>" /> </td> <td> <em>For site security using a password for the mysql account in mandatory</em> </td> </tr> <tr> <td colspan="2"> MySQL Database Name <br/> <input class="inputbox" type="text" name="DBname" value="<?php echo "$DBname"; ?>" /> </td> <td> <em>Some hosts allow only a certain DB name per site. Use table prefix in this case for distinct Joomla sites.</em> </td> </tr> <tr> <td colspan="2"> MySQL Table Prefix <br/> <input class="inputbox" type="text" name="DBPrefix" value="<?php echo "$DBPrefix"; ?>" /> </td> <td> <!-- <em>Don't use 'old_' since this is used for backup tables</em> --> </td> </tr> <tr> <td> <input type="checkbox" name="DBDel" id="DBDel" value="1" <?php if ($DBDel) echo 'checked="checked"'; ?> /> </td> <td> <label for="DBDel">Drop Existing Tables</label> </td> <td> </td> </tr> <tr> <td> <input type="checkbox" name="DBBackup" id="DBBackup" value="1" <?php if ($DBBackup) echo 'checked="checked"'; ?> /> </td> <td> <label for="DBBackup">Backup Old Tables</label> </td> <td> <em>Any existing backup tables from former Joomla installations will be replaced</em> </td> </tr> <tr> <td> <input type="checkbox" name="DBSample" id="DBSample" value="1" <?php if ($DBSample) echo 'checked="checked"'; ?> /> </td> <td> <label for="DBSample">Install Sample Data</label> </td> <td> <em>Don't uncheck this option unless you are experienced in using Joomla!</em> </td> </tr> </table> </div> </div> </div> <div class="clr"></div> </div> </form> </div> <div class="clr"></div> <div class="ctr"> <a href="http://www.joomla.org" target="_blank">Joomla!</a> is Free Software released under the GNU/GPL License. </div> </body> </html>
|