芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/minscoop.com/install/database.php
$_POST['db_host'], 'db_user' => $_POST['db_user'], 'db_password' => $_POST['db_password'], 'db_name' => $_POST['db_name'] ]; try { $mysqli = new mysqli($data['db_host'], $data['db_user'], $data['db_password'], $data['db_name']); if ($mysqli->connect_error) { $error = "The database could not be created, please check your database credentials!"; } else { //create tables $sqlFile = file_get_contents('sql/install_varient.sql'); if (!$mysqli->multi_query($sqlFile)) { $error = "The database could not be created, please check your database credentials!"; } else { //write config if (!write_config($data)) { $error = "The database configuration file could not be written, please change the file permission of the app/Config/Database.php file to 755."; } else { header("Refresh: 15; admin.php?license_code=" . $license_code . "&purchase_code=" . $purchase_code); $installing = 1; } } //close connection $mysqli->close(); } } catch (Exception $e) { $error = "The database could not be created, please check your database credentials!"; } } else { $license_code = $_GET["license_code"]; $purchase_code = $_GET["purchase_code"]; if (!isset($license_code) || !isset($purchase_code)) { header("Location: index.php"); exit(); } } ?>
Varient - Installer
Varient
Welcome to the Installer
Start
System Requirements
Folder Permissions
Database
Settings
= $error; ?>
The database is being created. Please wait!
Database
Host
Database Name
Username
Password
Prev
Next