' . $directory . ' must be writeable.

'; } } if (!defined('PHP_MAJOR_VERSION') && PHP_MAJOR_VERSION > 5) { echo '

PHP 5 not supported. Please upgrade to 7.0 or higher.

'; } if (@$_POST) { try { $dbh = new pdo('mysql:host=' . $_POST["database_host"] . ';dbname=' . $_POST["database_name"], $_POST["database_user"], $_POST["database_password"], array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); } catch (PDOException $ex) { die('

Could not connect to the database. Please check credentials.

'); } $site_url = $_POST["url"]; $lang = $_POST["language"]; $template = 'material'; $purchase_code = $_POST["purchase_code"]; $title = $_POST["title"]; $description = $_POST["description"]; $author = $_POST["author"]; $email = $_POST["email"]; $fingerprint = create_fingerprint(str_ireplace("www.", "", parse_url($site_url, PHP_URL_HOST)), $purchase_code); $response = array('url' => $site_url, 'language' => $lang, 'template' => $template, 'purchase_code' => $purchase_code, 'version' => '1.7.0', 'title' => $title, 'description' => $description, 'author' => $author, 'email' => $email, 'download_suffix' => null, 'fingerprint' => $fingerprint); $response = json_encode($response); $json = $response; $response = json_decode($response, true); if (!isset($response["error"])) { if ($_POST["password"] != $_POST["password_2"]) { echo '

Passwords does not same!

'; die(); } $admin_password = sha1($_POST["password"]); $original_db_config = file_get_contents(__DIR__ . "/system/db.php"); $db_config = str_replace("{{host}}", $_POST["database_host"], $original_db_config); $db_config = str_replace("{{name}}", $_POST["database_name"], $db_config); $db_config = str_replace("{{user}}", $_POST["database_user"], $db_config); $db_config = str_replace("{{pass}}", $_POST["database_password"], $db_config); file_put_contents(__DIR__ . "/system/db.php", $db_config); $db = new PDO("mysql:host=" . $_POST["database_host"] . ";dbname=" . $_POST["database_name"] . ";charset=utf8mb4", $_POST["database_user"], $_POST["database_password"]); $sql = file_get_contents(__DIR__ . '/db.sql'); $sql = str_replace("{{general_settings}}", $db->quote($json), $sql); $sql = str_replace("{{admin_email}}", $_POST["email"], $sql); $sql = str_replace("{{admin_pass}}", $admin_password, $sql); $sql = str_replace("{{admin_name}}", $_POST["author"], $sql); file_put_contents(__DIR__ . "/db.sql", $sql); $robots = file_get_contents(__DIR__ . "/robots.txt"); $robots = str_replace("{{website_url}}", $_POST["url"], $robots); file_put_contents(__DIR__ . "/robots.txt", $robots); $qr = $db->exec($sql); echo '

Installation completed! Go to website Go to admin panel

'; echo '

Do not forget to delete "install.php" and "db.sql" file!

'; if (file_exists(__DIR__ . '/upload.zip')) { echo '

Do not forget to delete "upload.zip"!

'; } } else { echo '

' . $response["error"] . '

'; } } ?> all in one video downloader

AIO Video Downloader Installation

Version




">

© 2018