[ Index ]
 

Code source de dotProject 2.1 RC1

Accédez au Source d'autres logiciels libres | Soutenez Angelica Josefina !

title

Body

[fermer]

/install/ -> db.php (source)

   1  <?php // $Id: db.php,v 1.14.4.2 2006/04/21 07:14:55 ajdonnison Exp $
   2  include_once  'check_upgrade.php';
   3  ?>
   4  <html>
   5  <head>
   6      <title>dotProject Installer</title>
   7      <meta name="Description" content="dotProject Installer">
   8       <link rel="stylesheet" type="text/css" href="../style/default/main.css">
   9  </head>
  10  <body>
  11  <h1><img src="dp.png" align="middle" alt="dotProject Logo"/>&nbsp;dotProject Installer</h1>
  12  <?php
  13  if ( $_POST['mode'] == 'upgrade')
  14      @include_once  "../includes/config.php";
  15  else if (dPcheckUpgrade() == 'upgrade')
  16      die("Security Check: dotProject seems to be already configured. Install aborted!");
  17  else
  18      @include_once  "../includes/config-dist.php";
  19  
  20  ?>
  21  <form name="instFrm" action="do_install_db.php" method="post">
  22  <input type='hidden' name='mode' value='<?php echo $_POST['mode']; ?>' />
  23  <table cellspacing="0" cellpadding="3" border="0" class="tbl" width="100%" align="center">
  24          <tr>
  25              <td class="title" colspan="2">Database Settings</td>
  26          </tr>
  27           <tr>
  28              <td class="item">Database Server Type <span class='warning'>Note - currently only MySQL is known to work correctly</span></td>
  29              <td align="left">
  30          <select name="dbtype" size="1" style="width:200px;" class="text">
  31  <?php
  32     if (strstr('WIN', strtoupper(PHP_OS)) !== false) {
  33  ?>
  34              <option value="access">MS Access</option>
  35              <option value="ado">Generic ADO</option>
  36              <option value="ado_access">ADO to MS Access Backend</option>
  37              <option value="ado_mssql">ADO to MS SQL Server</option>
  38  
  39              <option value="vfp">MS Visual FoxPro</option>
  40              <option value="fbsql">FrontBase</option>
  41  <?php
  42  }
  43  ?>
  44              <option value="db2">IBM DB2</option>
  45              <option value="ibase">Interbase 6 or earlier</option>
  46              <option value="firebird">Firebird</option>
  47              <option value="borland_ibase">Borland Interbase 6.5 and Later</option>
  48  
  49              <option value="informix">Informix 7.3 or later</option>
  50              <option value="informix72">Informix 7.2 or earlier</option>
  51              <option value="ldap">LDAP</option>
  52              <option value="mssql">MS SQL Server 7 and later</option>
  53              <option value="mssqlpro">Portable MS SQL Server</option>
  54              <option value="mysql" selected="selected">MySQL - Recommended</option>
  55  
  56              <option value="mysqlt">MySQL With Transactions</option>
  57              <option value="maxsql">MySQL MaxDB</option>
  58              <option value="oci8">Oracle 8/9</option>
  59              <option value="oci805">Oracle 8.0.5</option>
  60              <option value="oci8po">Oracle 8/9 Portable</option>
  61              <option value="odbc">ODBC</option>
  62  
  63              <option value="odbc_mssql">MS SQL Server via ODBC</option>
  64              <option value="odbc_oracle">Oracle via ODBC</option>
  65              <option value="odbtp">Generic Odbtp</option>
  66              <option value="odbtp_unicode">Odbtp With Unicode Support</option>
  67              <option value="oracle">Older Oracle</option>
  68              <option value="netezza">Netezza</option>
  69  
  70              <option value="postgres">Generic PostgreSQL</option>
  71              <option value="postgres64">PostreSQL 6.4 and earlier</option>
  72              <option value="postgres7">PostgreSQL 7</option>
  73              <option value="sapdb">SAP DB</option>
  74              <option value="sqlanywhere">Sybase SQL Anywhere</option>
  75              <option value="sqlite">SQLite</option>
  76  
  77              <option value="sqlitepo">Portable SQLite</option>
  78              <option value="sybase">Sybase</option>
  79          </select>
  80         </td>
  81         </tr>
  82           <tr>
  83              <td class="item">Database Host Name</td>
  84              <td align="left"><input class="button" type="text" name="dbhost" value="<?php echo $dPconfig['dbhost']; ?>" title="The Name of the Host the Database Server is installed on" /></td>
  85            </tr>
  86             <tr>
  87              <td class="item">Database Name</td>
  88              <td align="left"><input class="button" type="text" name="dbname" value="<?php echo  $dPconfig['dbname']; ?>" title="The Name of the Database dotProject will use and/or install" /></td>
  89            </tr>
  90            <tr>
  91              <td class="item">Database User Name</td>
  92              <td align="left"><input class="button" type="text" name="dbuser" value="<?php echo $dPconfig['dbuser']; ?>" title="The Database User that dotProject uses for Database Connection" /></td>
  93            </tr>
  94            <tr>
  95              <td class="item">Database User Password</td>
  96              <td align="left"><input class="button" type="password" name="dbpass" value="<?php echo $dPconfig['dbpass']; ?>" title="The Password according to the above User." /></td>
  97            </tr>
  98             <tr>
  99              <td class="item">Use Persistent Connection?</td>
 100              <td align="left"><input type="checkbox" name="dbpersist" value="1" <?php echo ($dPconfig['dbpersist']==true) ? 'checked="checked"' : ''; ?> title="Use a persistent Connection to your Database Server." /></td>
 101            </tr>
 102  <?php if ($_POST['mode'] == 'install') { ?>
 103            <tr>
 104              <td class="item">Drop Existing Database?</td>
 105              <td align="left"><input type="checkbox" name="dbdrop" value="1" title="Deletes an existing Database before installing a new one. This deletes all data in the given database. Data cannot be restored." /><span class="item"> If checked, existing Data will be lost!</span></td>
 106          </tr>
 107  <?php } ?>
 108          </tr>
 109            <tr>
 110              <td class="title" colspan="2">&nbsp;</td>
 111          </tr>
 112            <tr>
 113              <td class="title" colspan="2">Download existing Data (Recommended)</td>
 114          </tr>
 115          <tr>
 116              <td class="item" colspan="2">Download a XML Schema File containing all Tables for the database entered above
 117              by clicking on the Button labeled 'Download XML' below. This file can be used with the Backup module to restore a previous system. Depending on database size and system environment this process can take some time.
 118          <br/>PLEASE CHECK THE RECEIVED FILE IMMEDIATELY FOR CONTENT AND CONSISTENCY AS ERROR MESSAGES ARE PRINTED INTO THIS FILE.<br/><br /><b>THIS FILE CAN ONLY BE RESTORED WITH A WORKING DOTPROJECT 2.x SYSTEM WITH THE BACKUP MODULE INSTALLED. DO NOT RELY ON THIS AS YOUR ONLY BACKUP.</b></td>
 119          </tr>
 120          <tr>
 121              <td class="item">Receive XML Backup Schema File</td>
 122              <td align="left"><input class="button" type="submit" name="dobackup" value="Download XML" title="Click here to retrieve a XML file containing your data that can be stored on your local system." /></td>
 123          </tr>
 124            <tr>
 125              <td align="left"><br /><input class="button" type="submit" name="do_db" value="<?php echo $_POST['mode']; ?> db only" title="Try to set up the database with the given information." />
 126          &nbsp;<input class="button" type="submit" name="do_cfg" value="write config file only" title="Write a config file with the details only." /></td>
 127        <td align="right" class="item"><br />(Recommended) &nbsp;<input class="button" type="submit" name="do_db_cfg" value="<?php echo $_POST['mode']; ?> db & write cfg" title="Write config file and setup the database with the given information." />
 128             </td>
 129            </tr>
 130          </table>
 131  </form>
 132  </body>
 133  </html>


Généré le : Sun Feb 18 19:46:52 2007 par Balluche grâce à PHPXref 0.7