ok

Mini Shell

Direktori : /home2/selectio/public_html/obnovit-tracking/android-api/config/
Upload File :
Current File : /home2/selectio/public_html/obnovit-tracking/android-api/config/config.php

<?php
ini_set('error_reporting', E_ALL);
date_default_timezone_set('Asia/Kolkata');

$app_name="Obnovit";
$access_key="obnovit-333";

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_obnovit_tracking';
$dbuser = 'selectio_obnovit_tracking';
$dbpass = 'selectio_obnovit_tracking';

try {
	$pdo = new PDO("mysql:host={$dbhost};dbname={$dbname}", $dbuser, $dbpass);
	$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

	$con = mysqli_connect($dbhost,$dbuser,$dbpass,$dbname);
	$conn = mysqli_connect($dbhost,$dbuser,$dbpass,$dbname);
	if (mysqli_connect_errno())
	{
		  echo "Failed to connect to MySQL: " . mysqli_connect_error();
	}
}
catch( PDOException $exception ) {
	echo "Connection error :" . $exception->getMessage();
}

Zerion Mini Shell 1.0