-
Notifications
You must be signed in to change notification settings - Fork 251
/
installwizard.php
executable file
·551 lines (522 loc) · 47.7 KB
/
installwizard.php
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
include_once('constants.php');
include_once('config.php');
/* We aren't using any TemplateUtility methods that require us to pull in
* any of its dependencies.
*/
/* Version check before we include this. */
$phpVersion = phpversion();
$phpVersionParts = explode('.', $phpVersion);
if ($phpVersionParts[0] >= 5)
{
include_once(LEGACY_ROOT . '/lib/TemplateUtility.php');
}
else
{
$php4 = true;
}
?>
<html>
<head>
<title>OpenCATS - Installation Wizard Script</title>
<script type="text/javascript" src="js/lib.js"></script>
<script type="text/javascript" src="js/install.js"></script>
<script type="text/javascript" src="js/submodal/subModal.js"></script>
<style type="text/css" media="all">@import "modules/install/install.css";</style>
</head>
<body>
<div id="headerBlock">
<span id="mainLogo">OpenCATS</span><br />
<span id="subMainLogo">Applicant Tracking System</span>
</div>
<div id="contents">
<div id="login">
<table>
<tr>
<td style="vertical-align: top; width: 200px;">
<table style="vertical-align: top; width: 200px; border: 1px solid #ccc;">
<tr>
<td>
<script type="text/javascript">
maxSteps = 7;
</script>
<div id="step1" style="text-align: left;">
Step 1: System Check<br /><br />
</div>
<div id="step2" style="text-align: left;">
Step 2: Database Connectivity<br /><br />
</div>
<div id="step3" style="text-align: left;">
Step 3: Loading Data<br /><br />
</div>
<div id="step4" style="text-align: left;">
Step 4: <nobr>Setup Resume Indexing</nobr><br /><br />
</div>
<div id="step5" style="text-align: left;">
Step 5: <nobr>Mail Settings</nobr><br /><br />
</div>
<div id="step6" style="text-align: left;">
Step 6: Loading Extras<br /><br />
</div>
<div id="step7" style="text-align: left;">
Step 7: Finishing Installation
</div>
</td>
</tr>
</table>
<br />
<input type="button" class="button" value="Restart Install" onclick="Installpage_populate('a=startInstall');" style="width:200px;">
</td>
<td style="vertical-align: top; width: 550px; padding-left: 15px;">
<table width="100%">
<tr>
<td style="vertical-align: top; text-align: left;" id="allSpans">
<div id="installLocked" style="display: none;">
<span style="font-weight: bold;">OpenCATS is already installed!</span><br />
<p>To run the installer again, you must first delete the file named INSTALL_BLOCK in the OpenCATS directory. After removing the file, you can click "Retry Installation" below.</p><br />
<input type="button" class="button" value="Retry Installation" onclick="Installpage_populate('a=startInstall');">
</div>
<div id="startInstall" style="display: none;">
<span style="font: normal normal bold 18px Arial, Tahoma, sans-serif">Welcome to OpenCATS!</span><br />
<p style="text-align: justify; margin-top: 15px;">This process will help you set up the OpenCATS environment
for the first time. Before we begin, OpenCATS needs to run some tests on your system to make sure that your
web environment can support OpenCATS and is configured properly.</p>
</div>
<div id="phpVersion" style="display: none;">
<span style="font: normal normal bold 18px Arial, Tahoma, sans-serif">Welcome to OpenCATS!</span><br />
<p style="text-align: justify; margin-top: 15px;">This process will help you set up the OpenCATS environment
for the first time. Before we begin, OpenCATS needs to run some tests on your system to make sure that your
web environment can support OpenCATS and is configured properly.</p>
<br />
<span style="font-weight: bold;">Test Results</span>
<table class="test_output">
<tr class="fail"><td>PHP 5.0.0 or greater is required to run OpenCATS. Found version: <?php echo(phpversion()); ?>.</td></tr>
</table>
</div>
<div id="databaseConnectivity" style="display: none;">
<span style="font-weight: bold;">Database Configuration</span><br />
<br />
The OpenCATS installer needs some information about your MySQL database to continue the installation.
If you do not know this information, then please contact your website host or administrator.
Please note that this is probably NOT the same as your FTP login information!<br />
<br />
<table width="100%">
<tr>
<td width="30%">Database Name: <span style="color: #ff0000">*</span></td>
<td><input type=text size=20 id="dbname" value="" /></td>
</tr>
<tr>
<td>Database User: <span style="color: #ff0000">*</span></td>
<td><input type=text size=20 id="dbuser" value="" /></td>
</tr>
<tr>
<td nowrap="nowrap">Database Password:</td>
<td valign="top"><input type="text" size="20" id="dbpass" value="" /></td>
</tr>
<tr>
<td>Database Host: <span style="color: #ff0000">*</span></td>
<td><input type="text" size="20" id="dbhost" value="localhost" /> (usually <i>localhost</i>)</td>
</tr>
</table>
<br />
<input type="button" class="button" id="testDatabaseConnectivity" value="Test Database Connectivity" onclick="Installpage_populate('a=databaseConnectivity&user='+escape(document.getElementById('dbuser').value)+'&pass='+escape(document.getElementById('dbpass').value)+'&host='+escape(document.getElementById('dbhost').value)+'&name='+escape(document.getElementById('dbname').value));" />
<img src="images/indicator.gif" id="testDatabaseConnectivityIndicator" alt="" style="visibility: hidden; margin-left: 5px;" height="16" width="16" />
</div>
<div id="resumeParsing" style="display: none;">
<span style="font-weight:bold;">Resume Indexing Configuration</span><br />
<br />
OpenCATS can index resumes for advanced searching with the assistance of external
document processing software. You need to configure the software below
to enable resume indexing.<br />
<br />
<a href="http://www.catsone.com/resumeIndexingSoftware.php?os=<?php echo(urlencode(PHP_OS)); ?>&server_software=<?php echo(urlencode($_SERVER['SERVER_SOFTWARE'])); ?>" target="resumeParsingSoftwareDownload">
Where can I get this software?
</a><br />
<br />
<input type="checkbox" id="docEnabled" checked onclick="if (this.checked) { document.getElementById('docExecutable').disabled = false; document.getElementById('docExecutable').value = document.getElementById('docExecutableOrg').value; } else { document.getElementById('docExecutable').disabled = true; document.getElementById('docExecutable').value = ''; }">
<img src="images/file/doc.gif" alt="" /> .doc file (Microsoft Word Document)
<table>
<tr>
<td width="10px;"> </td>
<td width="170px;">Path to Antiword Executable:</td>
<td>
<input type="text" name="docExecutable" id="docExecutable" style="width:250px;" />
<input type="hidden" name="docExecutableOrg" id="docExecutableOrg" />
</td>
</tr>
</table>
<br />
<input type="checkbox" id="pdfEnabled" checked onclick="if (this.checked) { document.getElementById('pdfExecutable').disabled = false; document.getElementById('pdfExecutable').value = document.getElementById('pdfExecutableOrg').value; } else { document.getElementById('pdfExecutable').disabled = true; document.getElementById('pdfExecutable').value = ''; }">
<img src="images/file/pdf.gif" alt="" /> .pdf file (Adobe Acrobat Document)
<table>
<tr>
<td width="10px;"> </td>
<td width="170px;">Path to PDFToText Executable:</td>
<td>
<input type="text" name="pdfExecutable" id="pdfExecutable" style="width:250px;" />
<input type="hidden" name="pdfExecutableOrg" id="pdfExecutableOrg" />
</td>
</tr>
</table>
<br />
<input type="checkbox" id="htmlEnabled" checked onclick="if (this.checked) { document.getElementById('htmlExecutable').disabled = false; document.getElementById('htmlExecutable').value = document.getElementById('htmlExecutableOrg').value; } else { document.getElementById('htmlExecutable').disabled = true; document.getElementById('htmlExecutable').value = ''; }">
<img src="images/file/txt.gif" alt="" /> .html file (Hypertext Markup Document)
<table>
<tr>
<td width="10px;"> </td>
<td width="170px;">Path to Html2Text Executable:</td>
<td>
<input type="text" name="htmlExecutable" id="htmlExecutable" style="width:250px;" />
<input type="hidden" name="htmlExecutableOrg" id="htmlExecutableOrg" />
</td>
</tr>
</table>
<br />
<input type="checkbox" id="rtfEnabled" checked onclick="if (this.checked) { document.getElementById('rtfExecutable').disabled = false; document.getElementById('rtfExecutable').value = document.getElementById('rtfExecutableOrg').value; } else { document.getElementById('rtfExecutable').disabled = true; document.getElementById('rtfExecutable').value = ''; }">
<img src="images/file/rtf.gif" alt="" /> .rtf file (Rich Text Document)
<table>
<tr>
<td width="10px;"> </td>
<td width="170px;">Path to UnRTF Executable:</td>
<td>
<input type="text" name="rtfExecutable" id="rtfExecutable" style="width:250px;" />
<input type="hidden" name="rtfExecutableOrg" id="rtfExecutableOrg" />
</td>
</tr>
</table>
<br />
<br />
<input type="button" class="button" value="Test Configuration" onclick="Installpage_populate('a=testResumeParsing&docExecutable='+escape(document.getElementById('docExecutable').value)+'&pdfExecutable='+escape(document.getElementById('pdfExecutable').value)+'&htmlExecutable='+escape(document.getElementById('htmlExecutable').value)+'&rtfExecutable='+escape(document.getElementById('rtfExecutable').value));" />
<input type="button" class="button" value="Skip this Step" onclick="document.getElementById('resumeParsing').style.display='none';showTextBlock('mailSettings');Installpage_populate('a=mailSettings');">
</div>
<div id="mailSettings" style="display: none;">
<span style="font-weight: bold;">Mail Settings</span><br />
<br />
Please enter your e-mail address (for where OpenCATS e-mails should be replied to, etc.).
<br />
<br />
<table width="100%">
<tr>
<td width="30%"><span id="mailFromAddressLabel">E-mail:</span> <span style="color: #ff0000">*</span></td>
<td><input type=text size=35 id="mailFromAddress" value="" /></td>
</tr>
</table>
<br />
<br />
OpenCATS sends automatic E-Mails on different events. Please choose the mechanism for E-Mail delivery via OpenCATS.<br />
<br />
<form name="mailForm">
<table width="100%">
<tr>
<td width="30%">Mail Support: <span style="color: #ff0000">*</span></td>
<td>
<select id="mailSupport" name="mailSupport" onChange="changeMailForm();" class="selectBox">
<option value="opt0">None</option>
<option value="opt1">PHP Built-In Mail Support (recommended)</option>
<option value="opt2">Sendmail</option>
<option value="opt3">SMTP</option>
<option value="opt4">SMTP w/Authorization</option>
</select>
</td>
</tr>
</table>
<div id="mailSendmailBox" style="display: none;">
<table width="100%">
<tr>
<td width="30%">Sendmail Location: <span style="color: #ff0000">*</span></td>
<td><input type=text size=20 id="mailSendmail" value="" /></td>
</tr>
</table>
</div>
<div id="mailSmtpBox" style="display: none;">
<table width="100%">
<tr>
<td width="30%">SMTP Host: <span style="color: #ff0000">*</span></td>
<td><input type=text size=20 id="mailSmtpHost" value="" /></td>
</tr>
<tr>
<td width="30%">SMTP Port: <span style="color: #ff0000">*</span></td>
<td><input type=text size=20 id="mailSmtpPort" value="" /></td>
</tr>
</table>
</div>
<div id="mailSmtpAuthorizationBox" style="display: none;">
<table width="100%">
<tr>
<td width="30%">SMTP Username: <span style="color: #ff0000">*</span></td>
<td><input type=text size=20 id="mailSmtpUsername" value="" /></td>
</tr>
<tr>
<td width="30%">SMTP Password: <span style="color: #ff0000">*</span></td>
<td><input type=text size=20 id="mailSmtpPassword" value="" /></td>
</tr>
</table>
</div>
</form>
<br />
<input style="float: right;" type="button" class="button" id="setMailSettings" value="Next -->" onclick="if (document.getElementById('mailFromAddress').value=='') alert('Please enter a reply E-Mail Address.'); else {Installpage_populate('a=setMailSettings&mailSupport='+escape(document.getElementById('mailSupport').value)+'&mailSendmail='+escape(document.getElementById('mailSendmail').value)+'&mailSmtpHost='+escape(document.getElementById('mailSmtpHost').value)+'&mailSmtpPort='+escape(document.getElementById('mailSmtpPort').value)+'&mailSmtpUsername='+escape(document.getElementById('mailSmtpUsername').value)+'&mailSmtpPassword='+escape(document.getElementById('mailSmtpPassword').value)+'&mailFromAddress='+escape(document.getElementById('mailFromAddress').value));}" />
</div>
<div id="detectingOptional" style="display: none;">
<span style="font-weight:bold;">Loading Extras - Detecting Installed Components</span><br />
<br />
Please wait while the installer checks what components you have installed...<br />
<br />
<img src="images/indicator.gif" alt="" />
</div>
<div id="installingComponents" style="display: none;">
<span style="font-weight:bold;">Loading Data - Installing</span><br />
<br />
Please wait while the selected components are installed...<br />
<br />
<img src="images/indicator.gif" alt="" />
</div>
<div id="installingComponentsExtra" style="display: none;">
<span style="font-weight:bold;">Loading Extras - Installing</span><br />
<br />
Please wait while the selected components are installed...<br />
<br />
<img src="images/indicator.gif" alt="" />
</div>
<div id="installingComponentsMaint" style="display: none;">
<span style="font-weight:bold;">Performing Maintenance</span><br />
<br />
Please wait whilst the OpenCATS database is brought up to date...<br />
<br />
<span id="upToDateModuleName">
</span><br /><br />
<div id="d3" style="background-color:#eeeeee;border:1px solid black;height:20px;width:300px;padding:0px;" align="left">
<div id="d2" style="position:relative;top:0px;left:0px;background-color:#2244ff;height:20px;width:0px;padding-top:5px;padding:0px;">
<div id="d1" style="position:relative;top:0px;left:0px;color:#ffffff;height:20px;text-align:center;font:bold;padding:0px;padding-top:1px;">
</div>
</div>
</div>
<br /><br />
<span id="upToDateSqlQueryLabel" style="display:none;">SQL Query Being Executed:</span><br />
<div id="upToDateSqlQuery" style="overflow:hidden; width: 350px; height:100px; padding: 5px; border: 1px solid #000; background-color: #fff;">
</div>
<br /><br />
<img src="images/indicator.gif" alt="" />
</div>
<div id="installingComponentsMaintResume" style="display: none;">
<span style="font-weight:bold;">Performing Maintenance</span><br />
<br />
Please wait while your unindexed resumes are reindexed...<br />
<br />
<img src="images/indicator.gif" alt="" />
</div>
<div id="emptyDatabase" style="display: none;">
<span style="font-weight:bold;">Loading Data - Empty Database</span><br />
<br />
The installer is ready to set up your OpenCATS data. Please pick the way you want the installer to set up OpenCATS:<br />
<br />
<input type="radio" name="installgroup" id="emptyCheckBox" value="empty" checked> New Installation (Recommended)<br />
<input type="radio" name="installgroup" value="demo"> Demonstration Installation<br />
<input type="radio" name="installgroup" value="restore"> Restore Installation from Backup<br />
<br />
You can always run the installer again to clear the database and choose a different option.<br />
<br />
<input style="float: right;" type="button" class="button" value="Next -->" onclick="Installpage_populate('a=selectDBType&type='+escape(getCheckedValue(document.getElementsByName('installgroup'))));" />
</div>
<div id="unknownDataInDatabase" style="display: none;">
<span style="font-weight:bold;">Loading Data - Unknown Data in the Database</span><br />
<br />
The installer has scanned the database and found unknown tables in the database. This could indicate that another application has been
installed in the database beforehand.<br />
<br />
<a href="javascript:void(0);" onclick="document.getElementById('tableNamesUnknown').style.display = ''" style="font-weight: bold;">View a list of tables in the database</a>
<br />
<span id="tableNamesUnknown" style="font-weight: bold; display: none;"></span>
<br />
Please remove all of the-non OpenCATS tables to continue.<br />
<br />
<input type="button" class="button" value="Remove Non-OpenCATS Tables" onclick="Installpage_populate('a=resetDatabase');">
<input type="button" class="button" value="Do Nothing and Retry Installation" onclick="Installpage_populate('a=startInstall');">
</div>
<div id="databaseUpgrade" style="display: none;">
<span style="font-weight:bold;">Loading Data - Upgrade</span><br />
<br />
The installer has scanned the database and found an older version of OpenCATS in the database (<span id="upgradeVersion"></span>). The installer
will upgrade your database version to the latest version automatically.<br />
<br />
<input style="float: right;" type="button" class="button" value="Next -->" onclick="document.getElementById('databaseUpgrade').style.display='none';showTextBlock('installingComponentsMaint');Installpage_populate('a=upgradeCats');" />
</div>
<div id="catsUpToDate" style="display: none;">
<span style="font-weight: bold;">Loading Data - Existing Database</span><br />
<br />
The installer has detected an existing installation of OpenCATS.<br />
How would you like to proceed?<br />
<br />
<input type="radio" name="installgroupexists" id="currentCheckBox" value="current" checked /> Use existing OpenCATS installation and automatically perform any necessary upgrade (recommended).<br />
<br />
<input type="radio" name="installgroupexists" value="empty" /> Delete existing data and create a new installation.<br />
<input type="radio" name="installgroupexists" value="demo" /> Delete existing data and install the OpenCATS demonstration database.<br />
<input type="radio" name="installgroupexists" value="restore" /> Delete existing data and restore a previous OpenCATS installation from backup.<br />
<br />
If you choose to use the existing OpenCATS installation, you can always run<br />
the installer again later and choose a different option.<br />
<br />
<input style="float: right;" type="button" class="button" value="Next -->" onclick="if (getCheckedValue(document.getElementsByName('installgroupexists')) == 'current') Installpage_populate('a=resumeParsing'); else {document.getElementById('catsUpToDate').style.display='none';showTextBlock('queryResetDatabase');}" />
</div>
<div id="queryInstallBackup" style="display: none;">
<span style="font-weight:bold;">Loading Data - Restore from Backup</span><br />
<br />
The installer is ready to restore your backup.<br />
<br />
Please upload the file catsbackup.bak into the <b>restore</b> directory. The installer will load the data
out of the catsbackup.bak and set up your site accordingly, and then it will delete the file (preventing
unauthorized access to the backup file).<br />
<br />
<input type="checkbox" id="continueRestoreCheck" onclick="if (this.checked) document.getElementById('continueRestoreButton').style.display = ''; else document.getElementById('continueRestoreButton').style.display = 'none';"> I have uploaded the file catsbackup.bak into the restore directory.<br />
<br />
<input type="button" class="button" value="Continue" id="continueRestoreButton" style="display: none;" onclick="document.getElementById('queryInstallBackup').style.display='none';showTextBlock('installingComponents');Installpage_populate('a=restoreFromBackup');" />
<input type="button" class="button" value="Cancel" onclick="Installpage_populate('a=detectRevision');" /><br /><br />
</div>
<div id="queryInstallDemo" style="display: none;">
<span style="font-weight:bold;">Loading Data - Demo</span><br />
<br />
The installer is about to install a demonstration database for the fictitious company 'MyCompany.NET'.<br />
<br />
The database will be pre-populated with test data that you can use to train new users on using OpenCATS. You can login using
username: [email protected], password john99 (or by clicking Login to demo on the login screen).<br /><br />
To clear the demo data and start a production system, run the installer again.<br />
<br />
<input type="button" class="button" value="Continue" onclick="document.getElementById('queryInstallDemo').style.display='none';showTextBlock('installingComponents');Installpage_populate('a=onLoadDemoData');" />
<input type="button" class="button" value="Cancel" onclick="Installpage_populate('a=detectRevision');" /><br /><br />
</div>
<div id="installCompleteProd" style="display: none;">
<span style="font-weight:bold;">Finishing Installation</span><br />
<br />
The installer has finished installing OpenCATS! The installer has been disabled to prevent unauthorized access. To run the installer again, delete the file 'INSTALL_BLOCK' in your OpenCATS directory.<br /><br />
<br />
You may now login to OpenCATS. If it is a new installation, use the following logon information:<br /><br />
Username: admin<br />
Password: admin<br />
<br />
<br />
OpenCATS will periodically check for new versions of the software from catsone.com, and will send non confidential information about your
installation including operating system version and web browser configuration back to catsone.com in order for us to improve OpenCATS. To see what information is sent, view
lib/NewVersionCheck.php.<br />
<br />
<input type="button" class="button" value="Start OpenCATS" onclick="window.location.href='index.php';" />
</div>
<div id="installCompleteDemo" style="display: none;">
<span style="font-weight:bold;">Finishing Installation - Demo</span><br />
<br />
The installer has finished installing OpenCATS! The installer has been disabled to prevent unauthorized access. To run the installer again, delete the file 'INSTALL_BLOCK' in your OpenCATS directory.<br /><br />
<br />
You may now login to OpenCATS. To login, either click "Login to Demo Account" on the logon screen or use the following logon information:<br /><br />
Username: [email protected]<br />
Password: john99<br />
<br />
<input type="button" class="button" value="Start OpenCATS" onclick="window.location.href='index.php';" />
</div>
<div id="queryResetDatabase" style="display: none;">
<span style="font-weight:bold;">Loading Data - Existing Database</span><br />
<br />
Warning: This option will delete ALL of the data in your current database. Are you sure you want to proceed?<br />
<br />
THIS ACTION CANNOT BE UNDONE! Make sure you have backed up and saved all your data before you do this!<br />
<br />
<input type="button" class="button" value="Yes - Delete All Data" onclick="document.getElementById('queryResetDatabase').style.display='none';showTextBlock('installingComponents');Installpage_populate('a=resetDatabase&type='+escape(getCheckedValue(document.getElementsByName('installgroupexists'))));" style="width:240px;" />
<input type="button" class="button" value="No - Do Not Delete Data" onclick="Installpage_populate('a=detectRevision');" style="width:240px;" />
</div>
<div id="pickOptionalComponents" style="display:none;">
<span style="font-weight: bold;">Loading Extras - Localization</span><br />
<br />
<table>
<tr>
<td>Please choose your time zone.</td>
</tr>
<tr>
<td style="padding-bottom: 10px;"><?php if (!isset($php4)) TemplateUtility::printTimeZoneSelect('timeZone', 'width: 420px;', '', OFFSET_GMT); ?></td>
</tr>
<tr>
<td>Please choose your preferred date format.</td>
</tr>
<tr>
<td>
<select id="dateFormat" name="dateFormat" style="width: 150px;" class="selectBox">
<option value="mdy" selected="selected">MM-DD-YYYY (US)</option>
<option value="dmy">DD-MM-YYYY (UK)</option>
</select>
</td>
</tr>
</table>
<br />
<br />
<span style="font-weight: bold;">Loading Extras - Choose Extras</span><br />
<br />
OpenCATS comes with some optional features. You can enable them below.<br />
<br />
To add or remove features in the future, run the installer again.<br />
<br />
<span id="extrasList"></span>
</div>
<span id="subFormBlock" style="font: normal normal normal 9pt Arial, Tahoma, sans-serif;"></span>
<div id="testPassed" style="display: none;">
<table class="footer_pass"><tr><td>All tests passed successfully!</td></tr></table>
<br />
<input style="float: right;" type="button" class="button" value="Next -->" onclick="Installpage_populate('a=databaseConnectivity');" />
</div>
<div id="testPassedParsing" style="display: none;">
<table class="footer_pass"><tr><td>All tests passed successfully!</td></tr></table>
<br />
<input style="float: right;" type="button" class="button" value="Next -->" onclick="document.getElementById('resumeParsing').style.display='none';document.getElementById('subFormBlock').style.display='none';document.getElementById('testPassedParsing').style.display='none';showTextBlock('mailSettings'); Installpage_populate('a=mailSettings');" />
</div>
<div id="testWarning" style="display: none;">
<table class="footer_warning"><tr><td>One or more tests issued a warning. You may still proceed, but read the warnings carefully and address them if you can.<br />
<br />
If you have any questions, visit the OpenCATS forums at <a href="http://www.opencats.org/forums/">http://www.opencats.org/forums/</a>.</td></tr></table><br />
<input style="float: right;" type="button" class="button" value="Next -->" onclick="Installpage_populate('a=databaseConnectivity');" />
</div>
<div id="testFailed" style="display: none;">
<table class="footer_fail"><tr><td>One or more tests failed. Please correct the errors and try again.<br />
<br />
If you have any questions, visit the OpenCATS forums at <a href="http://www.opencats.org/forums/">http://www.opencats.org/forums/</a>.</td></tr></table><br />
<input type="button" class="button" value="Retry Installation" onclick="Installpage_populate('a=startInstall');" />
</div>
<div id="testFailedWarning" style="display: none;"><table class="footer_warning"><tr><td>One or more tests issued a warning. You may still proceed, but read the warnings carefully and address them if you can.<br />
<br />
If you have any questions, visit the OpenCATS forums at <a href="http://www.opencats.org/forums/">http://www.opencats.org/forums/</a>.</td></tr></table>
<table class="footer_fail"><tr><td>One or more tests failed. Please correct the errors and try again.<br />
<br />
If you have any questions, visit the OpenCATS forums at <a href="http://www.opencats.org/forums/">http://www.opencats.org/forums/</a>.</td></tr></table><br />
<input type="button" class="button" value="Retry Installation" onclick="Installpage_populate('a=startInstall');" />
</div>
<div id="MySQLTestPassed" style="display: none;">
<table class="footer_pass"><tr><td>All tests passed successfully!</td></tr></table>
<br />
<input style="float: right;" type="button" class="button" value="Next -->" onclick="Installpage_populate('a=detectRevision');" />
</div>
<div id="MySQLTestFailed" style="display: none;">
<table class="footer_fail"><tr><td>One or more tests failed. Please correct the errors and try again.<br />
<br />
If you have any questions, visit the OpenCATS forums at <a href="http://www.opencats.org/forums/">http://www.opencats.org/forums/</a>.</td></tr></table>
</div>
<div style="clear: both;"></div>
<div id="execute" style="display: none;"><!--This is so we can execute incoming JS.--></div>
</td>
</tr>
</table>
<script type="text/javascript">
<?php if (!isset($php4)): ?>
Installpage_populate('a=startInstall');
<?php else: ?>
setActiveStep(1);
showTextBlock("phpVersion");
showTextBlock("testFailed");
<?php endif; ?>
</script>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>