Файл: upload/admin/config.php
Строк: 28
<?php
// Error Reporting Turn On
ini_set('error_reporting', E_ALL);
// Setting up the time zone
date_default_timezone_set('Asia/Dhaka');
// Host Name
$dbhost = 'database_host_name';
// Database Name
$dbname = 'database_name';
// Database Username
$dbuser = 'database_username';
// Database Password
$dbpass = 'database_password';
// Defining base url
define("BASE_URL", "http://yourwebsite.com/");
// Getting Admin url
define("ADMIN_URL", BASE_URL . "admin" . "/");
try {
$pdo = new PDO("mysql:host={$dbhost};dbname={$dbname}", $dbuser, $dbpass);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch( PDOException $ex ) {
echo "Connection error :" . $ex->getMessage();
}
?>