ok
Direktori : /proc/self/root/home2/selectio/www/y1jobportal.in/admin/api/config/ |
Current File : //proc/self/root/home2/selectio/www/y1jobportal.in/admin/api/config/config.php |
<?php ob_start(); session_start(); ini_set('error_reporting', E_ALL); date_default_timezone_set('Asia/Kolkata'); $app_name="Y1 Job Portal"; $access_key="2bee92e7-3df8-4fe5-8923-4a40751b3715"; $site_url="https://y1jobportal.in/admin/"; /*if (!isset($_POST['accesskey']) || trim($_POST['accesskey']) != $access_key) { $response['error'] = true; $response['message'] = "No Accsess key found!"; print_r(json_encode($response)); return false; exit(); }*/ $dbhost = 'localhost'; $dbname = 'selectio_y1_jobportal'; $dbuser = 'selectio_y1_jobportal'; $dbpass = 'y1_jobportal'; try { $pdo = new PDO("mysql:host={$dbhost};dbname={$dbname}", $dbuser, $dbpass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } } catch( PDOException $exception ) { echo "Connection error :" . $exception->getMessage(); }