<?php
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
        header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
        header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
        header("Cache-Control: post-check=0, pre-check=0", false);
        header("Pragma: no-cache");

	$reqHeaderArr = array('latitude','longitude','tsv-referrer-module','user-agent','os-version','app-version-name','notification-token','os-name','unique-id','app-version-code','tsv-build-id','app-version','tsv-product-id','app-version-name','auth-api-key','product-category-code','dhani-application-id','dhani-lang','dhani-topup-leadid','brand','model','dhani-crm-id');

?>
<!doctype html>

<html>

<head>
<meta charset="utf-8">
    <title>DhaniPayWeb</title>
    <base href="/">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <script>
<?php
    $headers = [];

    function getallheadersNew() {
        foreach($_SERVER as $name => $value) {
            if (substr($name, 0, 5) == 'HTTP_') {
                $headers[str_replace(' ', '-', (strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
            }
        }
        return $headers;
    }

    $headers = getallheadersNew();

    if ((isset($headers['auth-api-key'])) && ($headers['auth-api-key'] != null)) {
?>
        localStorage.clear();
<?php
    }
    foreach($headers as $k => $v) {
            if (in_array(strtolower($k), $reqHeaderArr)) {
?>
                localStorage.setItem("<?php echo $k; ?>", "<?php echo $v; ?>");
<?php
            }
        }
?>
   </script>
<link rel="stylesheet" href="styles.9daea1903fe291ac1288.css"></head>

<body> 
<app-root></app-root>
<script src="polyfills-es5.a83ac866abc867bfd530.js" nomodule defer></script><script src="polyfills-es2015.0fe6949bc5ff4b784062.js" type="module"></script><script src="scripts.11b86738544c4cad824e.js" defer></script><script src="runtime-es2015.7bb3edcb6b4aba03f82d.js" type="module"></script><script src="main-es2015.611839f7d2e78e18cbc9.js" type="module"></script><script src="runtime-es5.7bb3edcb6b4aba03f82d.js" nomodule defer></script><script src="main-es5.611839f7d2e78e18cbc9.js" nomodule defer></script></body>

</html>
