<?php
	require_once "conf.php"; //common configuration constants and error function defined
    require_once 'ErrorDetail.php';
    ini_set('display_errors', 1);
    error_reporting(E_ALL);
    ini_set('memory_limit',-1);
    $id = $_GET['id'];
    try{
        $hreflang_data = $mongoDB->hreflang_data->findOne(array( '_id' => new MongoId($id)));
    }
    catch (Exception $e)
    {
        echo "<pre>";
        var_dump($e);
    }
    if (isset($hreflang_data) && count($hreflang_data))
    {
        $res = array('response_code'=>100,'result'=>json_encode($hreflang_data));
        echo json_encode($res);
    }
?>