From 3b382c7f8060714b0751a590a4b7e93bcffbfdb6 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 16 Jun 2012 14:09:02 +0200 Subject: setup.php installs default ACLs now. --- ratatoeskr/setup/setup.php | 67 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 57 insertions(+), 10 deletions(-) (limited to 'ratatoeskr/setup/setup.php') diff --git a/ratatoeskr/setup/setup.php b/ratatoeskr/setup/setup.php index 86478ed..35580a9 100644 --- a/ratatoeskr/setup/setup.php +++ b/ratatoeskr/setup/setup.php @@ -39,15 +39,15 @@ if(isset($_POST["apply_setup"])) $config["mysql"]["user"] = $_POST["mysql_user"]; $config["mysql"]["passwd"] = $_POST["mysql_password"]; $config["mysql"]["prefix"] = $_POST["table_prefix"]; - + try { db_connect(); create_mysql_tables(); - + /* Writing some demo data to database */ require_once(dirname(__FILE__) . "/../sys/models.php"); - + $ratatoeskr_settings["default_language"] = $lang; $ratatoeskr_settings["comment_visible_defaut"] = True; $ratatoeskr_settings["allow_comments_default"] = True; @@ -55,7 +55,7 @@ if(isset($_POST["apply_setup"])) $ratatoeskr_settings["languages"] = $lang == "en" ? array("en") : array($lang, "en"); $ratatoeskr_settings["last_db_cleanup"] = time(); $ratatoeskr_settings["debugmode"] = False; - + $style = Style::create("default"); $style->code = <<