<?php
header('Access-Control-Allow-Origin: *');
echo $_SERVER["HTTP_HOST"];
die();
?>
<!DOCTYPE html>
<html>
  <head>
    <title>NoPayN Vending Portal</title>
    <link rel="shortcut icon" href="favicon.png" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="css/default.css?<?php echo time(); ?>" />
    <link rel="stylesheet" type="text/css" href="css/menu.css?<?php echo time(); ?>" />
    <script src="https://code.jquery.com/jquery-3.6.0.js"></script>
    <script src="./jscripts/functions.js?<?php echo time();?>"></script>
    <script src="./jscripts/ajax.js?<?php echo time();?>"></script>
    <script src="./jscripts/main.js?<?php echo time();?>"></script>
    <script src="./jscripts/socket_main.js?<?php echo time();?>"></script>
  </head>
  <body>
    <img id="waiting" src="img/icons8-time-machine.gif" alt="">
    <div id="alert" class="popup"><table><tr class="alert_line alert_head"><td></td></tr><tr><td id="alert_text"></td></tr><tr class="alert_line alert_foot"><td></td></tr></table></div>
    <div id="heading" class="frame">
      <div id="selected_organization">
        <label for="select_organization">Selected organization</label>
        <select id="select_organization" name="select_organization"></select>
      </div>
      <div id="selected_country">
        <label for="select_country">Country</label>
        <select id="select_country" name="select_country"></select>
      </div>
      <div id="selected_language">
        <label for="select_language">Language</label>
        <select id="select_language" name="select_language"></select>
      </div>
    </div>
    <div id="left_menu" class="frame">
      <div id="logo_container">
      </div>
      <div id="menu_left" class="menu_left"></div>
    </div>
    <div id="contents" class="frame">
    </div>
    <div id="chat">
      <img id="chatImage" alt="Chat" title="Chat" src="img/chat.png" onclick="toggleChat()" style="margin-left: 10px; margin-top: 10px;" />
      <span id="chatHeading">Chat in progress...</span>
    </div>
    <div id="footing" class="frame"><div id='web_status' style='margin-top: 5px; margin-left:20px'>Powered by
      <img id='powered_by' src='/img/logos/nopayn_logo_standard.png' alt='' style='height:15px; margin-left:5px; margin-bottom:-5px; margin-right:10px' />
      Status:
      <img id='web_image' src='img/lamps/LampOff.gif' alt='' /></div>
      <div id='user_name'></div>
    <div id='is_alive' style='display:none'>Automatic logoff in<span id = 'is_alive_time'>x seconds</span></div></div>
    <div id="cover"></div>
  </body>
</html>