// $Id$ include_once 'check_upgrade.php'; ?> <html> <head> <title>dotProject Installer</title> <meta name="Description" content="dotProject Installer"> <link rel="stylesheet" type="text/css" href="../style/default/main.css"> </head> <body> <h1><img src="dp.png" align="middle" alt="dotProject Logo"/> dotProject Installer</h1> <?php if ($_POST['mode'] == 'upgrade') { @(include_once '../includes/config.php'); } else { if (dPcheckUpgrade() == 'upgrade') { die('Security Check: dotProject seems to be already configured. Install aborted!'); } else { @(include_once '../includes/config-dist.php'); } } ?> <form name="instFrm" action="do_install_db.php" method="post"> <input type='hidden' name='mode' value='<?php echo $_POST['mode']; ?> ' /> <table cellspacing="0" cellpadding="3" border="0" class="tbl" width="100%" align="center"> <tr> <td class="title" colspan="2">Database Settings</td> </tr>
<?php // $Id$ //Max Execution Time in Installation No Limit set_time_limit(0); include_once 'check_upgrade.php'; if ($_POST['mode'] == 'install' && dPcheckUpgrade() == 'upgrade') { die('Security Check: dotProject seems to be already configured. Communication broken for Security Reasons!'); } ###################################################################################################################### $baseUrl = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https://' : 'http://'; $baseUrl .= isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : getenv('HTTP_HOST'); $baseUrl .= isset($_SERVER['SCRIPT_NAME']) ? dirname(dirname($_SERVER['SCRIPT_NAME'])) : dirname(dirname(getenv('SCRIPT_NAME'))); require_once DP_BASE_DIR . '/install/install.inc.php'; $AppUI = new InstallerUI(); // Fake AppUI class to appease the db_connect utilities. $dbMsg = ''; $cFileMsg = 'Not Created'; $dbErr = false; $cFileErr = false; $dbtype = trim(dPInstallGetParam($_POST, 'dbtype', 'mysql')); $dbhost = trim(dPInstallGetParam($_POST, 'dbhost', '')); $dbname = trim(dPInstallGetParam($_POST, 'dbname', '')); $dbuser = trim(dPInstallGetParam($_POST, 'dbuser', '')); $dbpass = trim(dPInstallGetParam($_POST, 'dbpass', '')); $dbdrop = dPInstallGetParam($_POST, 'dbdrop', false); $mode = dPInstallGetParam($_POST, 'mode', 'upgrade'); $dbpersist = dPInstallGetParam($_POST, 'dbpersist', false); $dobackup = isset($_POST['dobackup']); $do_db = isset($_POST['do_db']); $do_db_cfg = isset($_POST['do_db_cfg']);
the Free Software Foundation; either version 2 of the License, or (at your option) any later version. dotProject is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with dotProject; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA The full text of the GPL is in the COPYING file. */ require_once "check_upgrade.php"; $mode = dPcheckUpgrade(); ?> <html> <head> <title>Simple dotProject Installer</title> <meta name="Description" content="Simple dotProject Installer"> <link rel="stylesheet" type="text/css" href="../style/default/main.css"> <script src="install.js"></script> </head> <body onresize="resize()" onload="resize()"> <center> <h1 id="idTitle"><img src="dp.png" align="middle" alt="Simple dotProject Logo"/> Simple dotProject Installer</h1> <div id="idContents" style="overflow: auto; width: 100%" align="center"> <table cellspacing="0" cellpadding="3" border="0" class="list" width="750px" align="center"> <tr> <td class="item" colspan="2"><div style="float: left"><img src="installation.png"> </div><div style="margin-left: 56px; padding: 8px">Welcome to the Simple dotProject Installer! It will setup the database for Simple dotProject and create an appropriate configuration files. In some cases a manual installation cannot be avoided.</div>