![]() |
Xataface 2.0
Xataface Application Framework
|
00001 <?php include 'install'.DIRECTORY_SEPARATOR.'install_header.inc.php';?> 00002 <h2>Install Pre-built Application</h2> 00003 <p>This form allows you to install a pre-built Dataface application provided in the form of a TAR archive.</p> 00004 <form <?php echo $context['attributes'];?>> 00005 <?php echo $context['javascript'].$context['hidden'];?> 00006 00007 <div class="errors"> 00008 <?php if (count($context['errors']) > 0):?> 00009 <ul> 00010 <?php foreach ($context['errors'] as $err):?> 00011 <?php echo $err;?> 00012 <?php endforeach; ?> 00013 </ul> 00014 <?php endif;?> 00015 00016 00017 00018 <div id="step1"><h3>Step 1: Choose Application</h3> 00019 <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> 00020 00021 <div><?php echo $context['elements']['archive']['html'];?></div> 00022 <input type="button" onclick="document.getElementById('step2').style.display=''" value="Proceed to next step" /> 00023 </div> 00024 00025 00026 <div id="step2" style="display:none"><h3>Step 2: Enter Database Connection Info</h3> 00027 00028 <p>Please enter the connection information that resulting Xataface application will 00029 use to connect to the database.</p> 00030 00031 <table> 00032 <tr><td width="175" valign="top">Database name</td><td><?php echo $context['elements']['database_name']['html'];?> 00033 <div class="instructions"> 00034 If this database does not exist, it will be created. 00035 </div> 00036 00037 </td></tr> 00038 00039 <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'];?> 00040 00041 <div class="instructions"> 00042 This is the username that your application should use to connect to the database. 00043 This install process uses the <em><?php echo $_SERVER['PHP_AUTH_USER'];?></em> user to create the database 00044 (and to create this user if you selected the <em>Create User</em> checkbox above), but username 00045 and password you enter here will be used by the installed application to interact with 00046 the database. 00047 </div> 00048 00049 </td></tr> 00050 00051 <tr><td>MySQL Password</td><td><?php echo $context['elements']['mysql_password']['html'];?></td></tr> 00052 00053 00054 </table> 00055 00056 00057 <div>If database connection info is correct, <input type="button" onclick="document.getElementById('step3').style.display='';return false;" value="proceed to next step" /></div> 00058 00059 </div> 00060 00061 00062 <div id="step3" style="display:none"><h3>Step 3: Select Installation Type</h3> 00063 00064 <p>You can either install the application directly on your web server (requires FTP 00065 connection information), or download the application as a tar archive, so that you 00066 can install it on your server manually.</p> 00067 00068 <p>Please select your preferred method of installation: 00069 00070 <?php echo $context['elements']['install_type']['html'];?></p> 00071 00072 </div> 00073 00074 00075 <div id="step4" style="display:none"><h3>Step 4: FTP Connection Details</h3> 00076 00077 <p>In order to install the application on your web server, Xataface needs to know 00078 the FTP connection details to connect to the server. This is because Xataface 00079 will make an FTP connection to your web server and copy the application directly 00080 to a directory of your choosing.</p> 00081 00082 <fieldset> 00083 <legend>FTP Connection Info</legend> 00084 <table> 00085 <?php $f =& $context['sections']['ftp_info']['elements']; ?> 00086 <tr><td>Host</td><td><?php echo $f['ftp_host']['html'];?> Use SSL: <?php echo $f['ftp_ssl']['html'];?> 00087 <div class="instructions"> 00088 e.g. weblite.ca 00089 </div> 00090 00091 00092 </td></tr> 00093 00094 <tr><td valign="top">Path</td><td><?php echo $f['ftp_path']['html'];?> (e.g. /var/www) 00095 <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> 00096 00097 </td></tr> 00098 00099 <tr><td>Username</td><td><?php echo $f['ftp_username']['html'];?></td></tr> 00100 00101 <tr><td>Password</td><td><?php echo $f['ftp_password']['html'];?></td></tr> 00102 00103 </table> 00104 00105 <p><input type="button" onclick="testftp(document.getElementById('fromarchive')); return false;" value="Test FTP Connection"></p> 00106 <div id="ftp-test-results"></div> 00107 <p>If FTP connection info is correct, <input type="button" onclick="document.getElementById('submitstep').style.display='';return false;" value="proceed to next step"></p> 00108 </fieldset> 00109 </div> 00110 00111 <div id="submitstep" style="text-align:center; display:none"><?php echo $f['submit']['html'];?></div> 00112 00113 </form> 00114 00115 00116 <?php include 'install'.DIRECTORY_SEPARATOR.'install_footer.inc.php';?>