<html>
<head>
<title>deltasql - Install Page</title>
<link rel="stylesheet" type="text/css" href="deltasql.css">
<link rel="shortcut icon" href="pictures/favicon.ico" />
</head>
<body>
<?php
include("utils/constants.inc.php");
include("utils/utils.inc.php");
include("utils/components.inc.php");
// check if deltasql is already installed
if (file_exists($configurationfile)) {
die ("<p><font color=\"red\"><b>FATAL ERROR: deltasql is already installed!</h2> <p>Do not use this page but modify <i>$configurationfile</i> instead!
<br>If you would like to repeat the installation procedure drop user and database and delete the mentioned configuration file.
<br>You can then visit this page again and it will show all fields to repeat the install step.</font></p>");
}
if (!isset($dbdefault)) $dbdefault="Oracle";
?>
<h2>Install Page</h2>
<form action="install_execution.php" method="post">
<h3>deltasql Settings</h3>
<p>
In this section you specify the password for the <b>admin</b> user of deltasql. This user is needed to create all other users, and to setup deltasql
in the beginning. <b>Please remember the password you set here.</b> After this page, if everything went okay, you can login with the user admin into deltasql and start to work.
</p>
<table>
<tr><td>Administrator Password for deltasql (user <b>admin</b>):</td><td> <input type="text" name="deltasqladminpassword" value="" size="17"></td></tr>
</table>
<h3>Apache Settings</h3>
<p>Here you should set the URL where deltasql is published. <b>Please do not add a SLASH at the end</b>.
<b>This parameter is important, if is set wrong, charts and other minor features will not work correctly.</b></p>
<table>
<tr><td>Published on:</td><td> <input type="text" name="dnsname" value="http://127.0.0.1/deltasql" size="50"></td></tr>
</table>
<h3>mySQL Settings</h3>
<p>
deltasql is backed by a mySQL database. Here you are required to specify information about the mySQL database.
<i>mySQL host</i> is the computer where deltasql runs. If the Apache Webserver runs on the same machine as mySQL,
you can leave the default <i>localhost</i>. <i>mySQL Root Password</i> is the main password of the mySQL database.
This install page uses the root password to create the mySQL schema (the mySQL user has the same name as the mySQL schema)
which will have the password as you define in this table.
</p>
<table>
<tr><td>mySQL host:</td><td> <input type="text" name="mysqlhost" value="localhost"></td></tr>
<tr><td>mySQL Root User:</td><td> <input type="text" name="mysqlrootuser" value="root"></td></tr>
<tr><td>mySQL Root Password:</td><td> <input type="text" name="mysqlrootpassword"></td></tr>
</table>
<p>The database user will be created by the mySQL root user and used for connections between deltasql and mySQL. <b>Please note:</b> Setting the mySQL root user and database user as the same user is supported by the install routines, but it is not recommended.</p>
<table>
<tr><td>Database name:</td><td> <input type="text" name="deltasqlschemaname" value="deltasql"></td></tr>
<tr><td>Database user:</td><td> <input type="text" name="deltasqlschemauser" value="deltasqluser"></td></tr>
<tr><td>Database Password:</td><td> <input type="text" name="deltasqlschemapassword" value="deltapass"></td></tr>
</table>
<br><br>
<h3>Customization Settings</h3>
<p>
In this section, you can choose which default database type deltasql will manage and which edition of deltasql you would like to run. The Open Source Edition has a link to the
Official Wiki of deltasql and the deltasql logo is shown on most pages. If you would like to customize deltasql with the logo
of your company, you can put a picture in the <i>pictures</i> subfolder of deltasql and adapt the name below. You can also
define a link here, which will be shown on the entry page of deltasql.
</p>
<table>
<tr><td>Which database type will be managed with deltasql:</td><td><?php printDatabaseComboBox($dbdefault); ?></td></tr>
<tr><td>Which Edition:</td>
<td>
<input type="radio" name="editiongroup" value="enterpriseedition"> Enterprise Edition
<input type="radio" name="editiongroup" value="openedition" checked> Open Source Edition
</td></tr>
<tr><td>Enterprise Logo (if Enterprise Edition): </td><td><input type="text" name="enterpriselogo" value="pictures/enterprise_logo.jpg" size="40"></td></tr>
<tr><td>Enterprise Link Text (if Enterprise Edition): </td><td><input type="text" name="enterpriselinktext" value="Enterprise Wiki"></td></tr>
<tr><td>Enterprise Link Url (if Enterprise Edition): </td><td><input type="text" name="enterpriselinkurl" value="http://"></td></tr>
</table>
<h3>Further Options</h3>
<p>For email notification, you need sendmail to be <a href="faq.php#email">installed on your system</a>.
For the rest, most people can probably leave with the defaults. You can disable SQL highlighting if your deltasql will have more than 10000 SQL scripts, or
if deltasql runs on an old server with poor performance. SQL highlighting is only disabled in the synchronization script generation, but not for browsing scripts,
as it helps the eye. If the test option is enabled, you can change the underlying deltasql schema without having deltasql complaining about it.
</p>
<p>
By default, deltasql shows the scripts also to guests which are not logged in. You can now choose to protect the entire content from occasional visitors with the first option in the following list.
</P>
<table>
<tr><td>Keep entire content protected by login: </td>
<td>
<input type="radio" name="privacy" value="yes"> Yes
<input type="radio" name="privacy" value="no" checked> No
</td>
</tr>
<tr><td>Use SQL highlighting: </td>
<td>
<input type="radio" name="sqlgroup" value="usesqlhighlighting" checked> Yes
<input type="radio" name="sqlgroup" value="donotusesqlhighlighting"> No
</td></tr>
<tr><td>Enable Top Ten Statistics (requires browser with Flash): </td>
<td>
<input type="radio" name="toptengroup" value="yes" checked> Yes
<input type="radio" name="toptengroup" value="no"> No
</td></tr>
<tr><td>Enable Server Statistics (requires browser with Flash): </td>
<td>
<input type="radio" name="statsgroup" value="yes" checked> Yes
<input type="radio" name="statsgroup" value="no"> No
</td></tr>
<tr><td>Enable email notification for new scripts (requires an additional <a href="faq.php#email">sendmail setup</a>): </td>
<td>
<input type="radio" name="emailgroup" value="yes"> Yes
<input type="radio" name="emailgroup" value="no" checked> No
</td></tr>
<tr><td>Enable Copy-Paste functionality by default (requires modern browser and sql client): </td>
<td>
<input type="radio" name="copypastegroup" value="yes" checked> Yes
<input type="radio" name="copypastegroup" value="no"> No
</td></tr>
<tr><td>Install deltasql server with Test Data Set: </td>
<td>
<input type="radio" name="testgroup" value="testsystemyes" checked> Yes
<input type="radio" name="testgroup" value="testsystemno"> No
</td></tr>
<tr><td>Enable database integrity checks when upgrading deltasql server from older versions: </td>
<td>
<input type="radio" name="dbintegrity" value="yes" checked> Yes
<input type="radio" name="dbintegrity" value="no"> No
</td></tr>
</table>
<br></br>
<p>
Pressing on the <b>Setup deltasql</b> button will generate the configuration file under <i><?php echo "$configurationfile"; ?></i> and create a user and schema on your mySQL instance.
If all settings are correct, deltasql is ready to use. <font color="red">If not, you need to delete <i><?php echo "$configurationfile"; ?></i> manually, and drop both the created user and schema on your mySQL instance</font>.
</p>
<input type="Submit" value="Setup deltasql"> <a href="index.php">Cancel</a>
</form>
</body>
</html>