From 7f8f8271e49a2834a87012ea838099c8b46cf63f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 14 Mar 2015 00:22:11 +0100 Subject: redo the whole lot of commits I've deleted while trying Gitlab/Framasoft mirroring --- install/index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'install') diff --git a/install/index.php b/install/index.php index 69957283..7a6eaf3a 100755 --- a/install/index.php +++ b/install/index.php @@ -89,7 +89,7 @@ else if (isset($_POST['install'])) { try { if ($_POST['db_engine'] == 'mysql') { - if ($_POST['mysql_server'] != "") {$server = $_POST['mysql_server'];} + if ($_POST['mysql_server'] != "") {$server = $_POST['mysql_server'];} // if server and database are filled if ($_POST['mysql_database'] != "") {$database = $_POST['mysql_database'];} if (isset($_POST['mysql_utf8_mb4'])) { @@ -100,6 +100,7 @@ else if (isset($_POST['install'])) { )); $content = str_replace("define ('MYSQL_USE_UTF8MB4', FALSE);", "define ('MYSQL_USE_UTF8MB4', TRUE);", $content); } else { // regular UTF8 + $content = str_replace(" DEFAULT CHARSET=utf8mb4", "", $content); // replace the UTF8-MB4 occurences inside the mysql.sql file $db_path = 'mysql:host=' . $server . ';dbname=' . $database; $handle = new PDO($db_path, $_POST['mysql_user'], $_POST['mysql_password']); } @@ -117,7 +118,6 @@ else if (isset($_POST['install'])) { $moreQueries[] = "INSERT INTO `tags` (`id`, `value`) VALUES (1, 'opensource');"; $moreQueries[] = "INSERT INTO `tags_entries` (`id`, `entry_id`, `tag_id`) VALUES (1, 2, 1);"; - $sql_structure = file_get_contents('install/mysql.sql'); } else if ($_POST['db_engine'] == 'postgres') { if ($_POST['pg_server'] != "") {$server = $_POST['pg_server'];} @@ -645,8 +645,8 @@ php composer.phar install

All fields have to be filled.