aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/setup/setup.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-03-01 22:02:42 +0100
committerKevin Chabowski <kevin@kch42.de>2012-03-01 22:02:42 +0100
commitacf697cd1bbc2749460332bd45ab098a4e367382 (patch)
tree90dfdf4ea722f964732e1ca612aa2a742250a175 /ratatoeskr/setup/setup.php
parenta940213bc467fce611854002e15b05fef5a0d3c8 (diff)
downloadratatoeskr-cms-acf697cd1bbc2749460332bd45ab098a4e367382.tar.gz
ratatoeskr-cms-acf697cd1bbc2749460332bd45ab098a4e367382.tar.bz2
ratatoeskr-cms-acf697cd1bbc2749460332bd45ab098a4e367382.zip
Debug now toggleable in backend; used new STE features.
* If __DEBUG__ is true, STE will be in a more verbose mode. * Ratatöskr's frontend STETags now uses the \ste\RuntimeError exception This will also be Beta 3
Diffstat (limited to 'ratatoeskr/setup/setup.php')
-rw-r--r--ratatoeskr/setup/setup.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/ratatoeskr/setup/setup.php b/ratatoeskr/setup/setup.php
index 0eb6d83..86478ed 100644
--- a/ratatoeskr/setup/setup.php
+++ b/ratatoeskr/setup/setup.php
@@ -54,6 +54,7 @@ if(isset($_POST["apply_setup"]))
$ratatoeskr_settings["comment_textprocessor"] = "Markdown";
$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 = <<<STYLE
@@ -227,6 +228,16 @@ STYLE;
$article->allow_comments = True;
$article->set_section($section);
$article->save();
+
+ try
+ {
+ Repository::create("http://repo-community.ratatoeskr-cms.net/");
+ Repository::create("http://repo-official.ratatoeskr-cms.net/");
+ }
+ catch(RepositoryUnreachableOrInvalid $e)
+ {
+ $ste->vars["notice"] = $translation["could_not_initialize_repos"];
+ }
/* Almost done. Give the user the config file. */
$config = "<?php\n\ndefine(\"__DEBUG__\", False);\ndefine(\"CONFIG_FILLED_OUT\", True);\ndefine(\"PLUGINS_ENABLED\", True);\n\n\$config[\"mysql\"][\"server\"] = '" . addcslashes($config["mysql"]["server"], "'") . "';\n\$config[\"mysql\"][\"db\"] = '" . addcslashes($config["mysql"]["db"], "'") . "';\n\$config[\"mysql\"][\"user\"] = '" . addcslashes($config["mysql"]["user"], "'") . "';\n\$config[\"mysql\"][\"passwd\"] = '" . addcslashes($config["mysql"]["passwd"], "'") . "';\n\$config[\"mysql\"][\"prefix\"] = '" . addcslashes($config["mysql"]["prefix"], "'") . "';\n\n?>";
@@ -242,4 +253,4 @@ STYLE;
echo $ste->exectemplate("/systemtemplates/setup_dbsetup.html");
-?>
+?> \ No newline at end of file