Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
archive2app.inc.php
Go to the documentation of this file.
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'];?>
6 
7  <div class="errors">
8  <?php if (count($context['errors']) > 0):?>
9  <ul>
10  <?php foreach ($context['errors'] as $err):?>
11  <?php echo $err;?>
12  <?php endforeach; ?>
13  </ul>
14  <?php endif;?>
15 
16 
17 
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>
20 
21  <div><?php echo $context['elements']['archive']['html'];?></div>
22  <input type="button" onclick="document.getElementById('step2').style.display=''" value="Proceed to next step" />
23  </div>
24 
25 
26  <div id="step2" style="display:none"><h3>Step 2: Enter Database Connection Info</h3>
27 
28  <p>Please enter the connection information that resulting Xataface application will
29  use to connect to the database.</p>
30 
31  <table>
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.
35  </div>
36 
37  </td></tr>
38 
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'];?>
40 
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
46  the database.
47  </div>
48 
49  </td></tr>
50 
51  <tr><td>MySQL Password</td><td><?php echo $context['elements']['mysql_password']['html'];?></td></tr>
52 
53 
54  </table>
55 
56 
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>
58 
59  </div>
60 
61 
62  <div id="step3" style="display:none"><h3>Step 3: Select Installation Type</h3>
63 
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>
67 
68  <p>Please select your preferred method of installation:
69 
70  <?php echo $context['elements']['install_type']['html'];?></p>
71 
72  </div>
73 
74 
75  <div id="step4" style="display:none"><h3>Step 4: FTP Connection Details</h3>
76 
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>
81 
82  <fieldset>
83  <legend>FTP Connection Info</legend>
84  <table>
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">
88  e.g. weblite.ca
89  </div>
90 
91 
92  </td></tr>
93 
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>
96 
97  </td></tr>
98 
99  <tr><td>Username</td><td><?php echo $f['ftp_username']['html'];?></td></tr>
100 
101  <tr><td>Password</td><td><?php echo $f['ftp_password']['html'];?></td></tr>
102 
103  </table>
104 
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>
108  </fieldset>
109  </div>
110 
111  <div id="submitstep" style="text-align:center; display:none"><?php echo $f['submit']['html'];?></div>
112 
113 </form>
114 
115 
116 <?php include 'install'.DIRECTORY_SEPARATOR.'install_footer.inc.php';?>