2007-08-08 00:19:05 +02:00
< html >
2007-08-17 16:54:51 +02:00
< head >
< title > SilverStripe CMS Installation< / title >
< script type = "text/js" >
function show(id) {
document.getElementById(id).style.display = '';
}
function hide(id) {
document.getElementById(id).style.display = 'none';
}
< / script >
2007-08-20 08:04:15 +02:00
< link rel = "stylesheet" type = "text/css" href = "themes/blackcandy/css/layout.css" / >
< link rel = "stylesheet" type = "text/css" href = "themes/blackcandy/css/typography.css" / >
< link rel = "stylesheet" type = "text/css" href = "themes/blackcandy/css/form.css" / >
2007-08-17 16:54:51 +02:00
< link rel = "stylesheet" type = "text/css" href = "config-form.css" / >
< / head >
< body >
2007-08-20 08:04:15 +02:00
< div id = "BgContainer" >
< div id = "Container" >
< div id = "Header" >
< h1 > SilverStripe CMS Installation< / h1 >
< p > Version <?= $silverstripe_version ?> < / p >
< / div >
< div id = "Layout" >
< div class = "typography" >
2007-08-29 05:32:26 +02:00
< h1 > Welcome to SilverStripe< / h1 >
< p > Thanks for choosing to use SilverStripe! Please follow the instructions below to get SilverStripe installed.< / p >
2007-08-20 08:04:15 +02:00
< form action = "install.php" method = "post" >
<?php if(isset($hasErrorOtherThanDatabase)) { ?>
< p class = "error" >
2007-08-29 05:32:26 +02:00
You aren't currently able to install the software. Please < a href = "#requirements" > see below< / a > for details.
2007-08-20 08:04:15 +02:00
< / p >
<?php } else { ?>
<?php if($req->hasWarnings()) { ?>
< p class = "warning" >
There are some issues that we recommend you look at before installing, however, you are still able to install the software.
Please see below for details.
< / p >
<?php } else if(!$dbReq->hasErrors()) { ?>
< p class = "good" >
You're ready to install!
< / p >
<?php } ?>
< p >
< b > Template to install:< / b >
< / p >
< p >
< input type = "radio" name = "template" value = "default" checked = "checked" > BlackCandy, default template ready to use.< / input > < br / >
< input type = "radio" name = "template" value = "tutorial" > Empty template, ready to begin the tutorial.< / input > < br / >
< / p >
< p > You can change the template or download another from the SilverStripe website after installation.< / p >
<?php if($alreadyInstalled) { ?>
< p >
< b > Note:< / b > It seems as though SilverStripe is already installed here. If you ask me to install, I will overwrite
the < b > .htaccess< / b > and < b > mysite/_config.php< / b > files. < br / > < br / >
< label style = "cursor: pointer" >
< input type = "checkbox" name = "force_reinstall" onclick = "document.getElementById('install_button').disabled = !this.checked" / > That's okay, please re-install SilverStripe and overwrite these files.
< / label >
< / p >
<? } ?>
< p >
<?php if($alreadyInstalled) { ?>
< input id = "install_button" type = "submit" disabled = "disabled" name = "go" value = "Install SilverStripe" onclick = "document.getElementById('saving_top').style.display = ''; this.value = 'Installing SilverStripe...'" / >
<?php } else { ?>
< input id = "install_button" type = "submit" name = "go" value = "Install SilverStripe" onclick = "document.getElementById('saving_top').style.display = ''; this.value = 'Installing SilverStripe...'" / >
<? } ?>
< span id = "saving_top" style = "display: none" >
< img src = "cms/images/network-save.gif" / >
(this will take a minute or so)
< / span >
< / p >
<?php } ?>
< input type = "hidden" name = "database" value = "MySQLDatabase" / >
2007-08-29 05:32:26 +02:00
< h4 > MySQL Database< / h4 >
2007-08-20 08:04:15 +02:00
<?php if($dbReq->hasErrors()) { ?>
2007-08-29 05:32:26 +02:00
< p class = "error" > <!-- class="error" -->
2007-08-20 08:04:15 +02:00
These database details don't appear to be correct. Please enter the correct details before installing.
< / p >
<?php } else { ?>
< p class = "good" >
These database details look all good!
< / p >
<?php } ?>
2007-08-29 05:32:26 +02:00
< p id = "mysql_credentials" >
< label for = "mysql_server" > MySQL server:< / label >
< span class = "middleColumn" > < input id = "mysql_server" class = "text" type = "text" name = "mysql[server]" value = "<?= $databaseConfig['server'] ?>" / > < / span >
< label for = "mysql_username" > MySQL username:< / label >
< span class = "middleColumn" > < input id = "mysql_username" class = "text" type = "text" name = "mysql[username]" value = "<?= $databaseConfig['username'] ?>" / > < / span >
< label for = "mysql_password" > MySQL password:< / label >
< span class = "middleColumn" > < input id = "mysql_password" class = "text" type = "password" name = "mysql[password]" value = "<?= $databaseConfig['password'] ?>" / > < / span >
< label for = "mysql_database" > MySQL database:< / label >
< span class = "middleColumn" > < input id = "mysql_database" class = "text" type = "text" name = "mysql[database]" value = "<?= $databaseConfig['database'] ?>" onchange = "this.value = this.value.replace(/[^A-Za-z0-9_]+/g,'');" / > < / span >
< input type = "submit" class = "action" value = "Re-check requirements" / >
2007-08-20 08:04:15 +02:00
< / p >
2007-08-29 05:32:26 +02:00
< p class = "mysql" > SilverStripe stores its content in a MySQL database. Please provide the username and password to connect to the server here. If this account has permission to create databases, then we will create the database for you; otherwise, you must give the name of a database that already exists.< / p >
< div class = "clear" > <!-- --> < / div >
< h5 > Details< / h5 >
2007-08-20 08:04:15 +02:00
<?php $dbReq->showTable("MySQL Configuration"); ?>
< br / >
2007-08-29 05:32:26 +02:00
< h4 > SilverStripe Administration Account< / h4 >
< p id = "AdminAccount" >
< label for = "username" > Administrator email:< / label >
< span class = "middleColumn" > < input type = "text" class = "text" name = "username" id = "username" value = "admin" / > < / span >
< label for = "password" > Administrator password:< / label >
< span class = "middleColumn" > < input type = "text" class = "text" name = "password" id = "password" value = "password" / > < / span >
< label for = "firstname" > Administrator first name:< / label >
< span class = "middleColumn" > < input type = "text" class = "text" name = "firstname" id = "firstname" value = "" / > < / span >
< label for = "surname" > Administrator surname:< / label >
< span class = "middleColumn" > < input type = "text" class = "text" name = "surname" id = "surname" value = "" / > < / span >
< / p >
< p class = "adminAcc" >
2007-08-20 08:04:15 +02:00
We will set up 1 administrator account for you automatically. Enter the email address and password. If you'd
rather log-in with a username instead of an email address, enter that instead.
< / p >
< br / >
2007-08-29 05:32:26 +02:00
< h4 id = "requirements" > Requirements< / h4 >
2007-08-20 08:04:15 +02:00
< ?php
$req->showTable();
2007-08-17 16:54:51 +02:00
?>
2007-08-20 08:04:15 +02:00
< / form >
< / div >
< / div >
< / div >
< div id = "Footer" >
< p > Copyright © 2007 | Powered by < a href = "http://www.silverstripe.com" > SilverStripe Open Source CMS< / a > < / p >
< / div >
2007-08-17 16:54:51 +02:00
< / div >
< / body >
< / html >