From 82d40e32363c4e96996eca7ee44ade879589aa0e Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 26 Apr 2020 16:33:36 +0200 Subject: Expand tabs and remove trailing whitespace --- ratatoeskr/setup/create_tables.php | 22 +-- ratatoeskr/setup/setup.php | 312 ++++++++++++++++++------------------- 2 files changed, 167 insertions(+), 167 deletions(-) (limited to 'ratatoeskr/setup') diff --git a/ratatoeskr/setup/create_tables.php b/ratatoeskr/setup/create_tables.php index ef226d8..b0c2075 100644 --- a/ratatoeskr/setup/create_tables.php +++ b/ratatoeskr/setup/create_tables.php @@ -1,7 +1,7 @@ diff --git a/ratatoeskr/setup/setup.php b/ratatoeskr/setup/setup.php index ef2c510..f51f1a9 100644 --- a/ratatoeskr/setup/setup.php +++ b/ratatoeskr/setup/setup.php @@ -15,240 +15,240 @@ $ste->vars["rel_path_to_root"] = $rel_path_to_root; $ste->vars["translations"] = array(); foreach($languages as $langcode => $langinfo) { - if($langinfo["translation_exist"]) - $ste->vars["translations"][$langcode] = $langinfo["language"]; + if($langinfo["translation_exist"]) + $ste->vars["translations"][$langcode] = $langinfo["language"]; } if(isset($_GET["lang"]) and (@$languages[$_GET["lang"]]["translation_exist"])) { - load_language($_GET["lang"]); - $lang = $_GET["lang"]; - $ste->vars["lang"] = $_GET["lang"]; + load_language($_GET["lang"]); + $lang = $_GET["lang"]; + $ste->vars["lang"] = $_GET["lang"]; } else - die($ste->exectemplate("/systemtemplates/setup_select_lang.html")); + die($ste->exectemplate("/systemtemplates/setup_select_lang.html")); if(isset($_POST["apply_setup"])) { - if(empty($_POST["admin_username"]) or empty($_POST["admin_init_password"])) - $ste->vars["error"] = $translation["admin_data_must_be_filled_out"]; - else - { - $config["mysql"]["server"] = $_POST["mysql_host"]; - $config["mysql"]["db"] = $_POST["mysql_database"]; - $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; - $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 = <<