bernd
Mehr config-optionen und config via Wrapper-Funktion benutzen
bernd commited d96a86a at 2009-05-23 15:24:52
<?php
require_once('inc/base.php');
require_once('session/start.php');
require_role(ROLE_SYSTEMUSER);
$title = 'Drupal 6 einrichten';
$section = 'webapps_install';
// Wurde beim Schreiben in die Session schon verifiziert
$docroot = $_SESSION['webapp_docroot'];
$url = $_SESSION['webapp_url'];
if (! $docroot)
{
system_failure('Kann die Session-Daten nicht auslesen. So geht das nicht.');
}
if (isset($_POST['submit']))
{
require_once('install-drupal6.php');
require_once('webapp-installer.php');
check_form_token('install_drupal6');
$data = validate_data($_POST);
if (! $data)
system_failure('wtf?!');
create_new_webapp('drupal6', $docroot, $url, $data);
output('<h2>Drupal 6 installieren</h2>
<p>Ihr Drupal wird jetzt installiert. Sie erhalten eine E-Mail, sobald die Website betriebsbereit ist.</p>
');
}
else
{
require_once('modules/vhosts/include/vhosts.php');
$vhosts = list_vhosts();
output('<h3>Drupal 6 installieren</h3>
<p>Die Einrichtung von Drupal erfordert die Angabe ein paar weniger Daten.</p>
');
$form = '
<h4>Basisdaten</h4>
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX