1 <?php include
'install'.DIRECTORY_SEPARATOR.
'install_header.inc.php';?>
2 <h2>Install Pre-built Application</h2>
3 <p>This form allows you to install a pre-built Dataface application provided in the form of a TAR archive.</p>
4 <form <?php echo $context['attributes'];?>>
5 <?php echo $context[
'javascript'].$context[
'hidden'];?>
8 <?php
if (count($context[
'errors']) > 0):?>
10 <?php
foreach ($context[
'errors'] as $err):?>
18 <div
id=
"step1"><h3>Step 1: Choose Application</h3>
19 <p>Please select archive file
for your application located on your local drive. The application should be stored as a .tar or .tar.gz archive.</p>
21 <div><?php echo $context[
'elements'][
'archive'][
'html'];?></div>
22 <input type=
"button" onclick=
"document.getElementById('step2').style.display=''" value=
"Proceed to next step" />
26 <div
id=
"step2" style=
"display:none"><h3>Step 2: Enter Database Connection Info</h3>
28 <p>Please enter the connection information that resulting Xataface application will
29 use to connect to the database.</p>
32 <tr><td width=
"175" valign=
"top">Database name</td><td><?php echo $context[
'elements'][
'database_name'][
'html'];?>
33 <div
class=
"instructions">
34 If
this database does not exist, it will be created.
39 <tr><td width=
"175" valign=
"top">MySQL Username</td><td><?php echo $context[
'elements'][
'mysql_user'][
'html'];?> Create user? <?php echo $context[
'elements'][
'create_user'][
'html'];?>
41 <div
class=
"instructions">
42 This is the username that your application should use to connect to the database.
43 This install process uses the <em><?php echo
$_SERVER[
'PHP_AUTH_USER'];?></em> user to create the database
44 (and to create
this user
if you selected the <em>Create User</em> checkbox above), but username
45 and password you enter here will be used by the installed application to interact with
51 <tr><td>MySQL Password</td><td><?php echo $context[
'elements'][
'mysql_password'][
'html'];?></td></tr>
57 <div>If database connection info is correct, <input type=
"button" onclick=
"document.getElementById('step3').style.display='';return false;" value=
"proceed to next step" /></div>
62 <div
id=
"step3" style=
"display:none"><h3>Step 3: Select Installation Type</h3>
64 <p>You can either install the application directly on your web server (requires
FTP
65 connection information), or download the application as a tar archive, so that you
66 can install it on your server manually.</p>
68 <p>Please select your preferred method of installation:
70 <?php echo $context[
'elements'][
'install_type'][
'html'];?></p>
75 <div
id=
"step4" style=
"display:none"><h3>Step 4:
FTP Connection Details</h3>
77 <p>In order to install the application on your web server, Xataface needs to know
78 the
FTP connection details to connect to the server. This is because Xataface
79 will make an
FTP connection to your web server and copy the application directly
80 to a directory of your choosing.</p>
83 <legend>
FTP Connection Info</legend>
85 <?php
$f =& $context[
'sections'][
'ftp_info'][
'elements']; ?>
86 <tr><td>Host</td><td><?php echo $f[
'ftp_host'][
'html'];?> Use SSL: <?php echo $f[
'ftp_ssl'][
'html'];?>
87 <div
class=
"instructions">
94 <tr><td valign=
"top">Path</td><td><?php echo $f[
'ftp_path'][
'html'];?> (e.g. /var/www)
95 <div
class=
"instructions">This should be the parent directory of your application. Your application will be created in a directory of the same name as the database. E.g. If your database is named <em>my_db</em> and you enter path <em>/var/www</em> in
this field, then
this installer will create the directory <em>/var/www/my_db</em>
for your application.</div>
99 <tr><td>Username</td><td><?php echo $f[
'ftp_username'][
'html'];?></td></tr>
101 <tr><td>Password</td><td><?php echo $f[
'ftp_password'][
'html'];?></td></tr>
105 <p><input type=
"button" onclick=
"testftp(document.getElementById('fromarchive')); return false;" value=
"Test FTP Connection"></p>
106 <div
id=
"ftp-test-results"></div>
107 <p>If
FTP connection info is correct, <input type=
"button" onclick=
"document.getElementById('submitstep').style.display='';return false;" value=
"proceed to next step"></p>
111 <div
id=
"submitstep" style=
"text-align:center; display:none"><?php echo $f[
'submit'][
'html'];?></div>
116 <?php include
'install'.DIRECTORY_SEPARATOR.
'install_footer.inc.php';?>