git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
cec9252
Branches
Tags
master
ticket
webinterface.git
modules
webapps
include
install-drupal7.php
Webapp-Installer für Drupal-7
bernd
commited
cec9252
at 2011-01-13 15:53:05
install-drupal7.php
Blame
History
Raw
<?php require_once('inc/debug.php'); require_once('webapp-installer.php'); function validate_data($post) { DEBUG('Validating Data:'); DEBUG($post); $fields = array('adminuser', 'adminpassword', 'adminemail', 'sitename', 'siteemail'); foreach ($fields AS $field) if ((! isset($post[$field])) || $post[$field] == '') system_failure('Nicht alle Werte angegeben ('.$field.')'); $dbdata = create_webapp_mysqldb('drupal7', $post['sitename']); $data = "adminuser={$post['adminuser']} adminpassword={$post['adminpassword']} adminemail={$post['adminemail']} sitename={$post['sitename']} siteemail={$post['siteemail']} dbname={$dbdata['dbname']} dbuser={$dbdata['dbuser']} dbpass={$dbdata['dbpass']}"; DEBUG($data); return $data; }