new.php 444 B

12345678910111213141516
  1. <?php
  2. session_start();
  3. $http_host = $_SERVER["HTTP_HOST"];
  4. $doc_root = $_SERVER["DOCUMENT_ROOT"] . "/";
  5. include $doc_root . "functions.php";
  6. $proto = get_protocol();
  7. $con = start_db();
  8. $server = $proto . $http_host;
  9. $pserver = substr($server, 0, strpos($http_host, ':')); // public server
  10. if (!check_session($con)){
  11. header("Location: /authentication.php");
  12. exit(-1);
  13. }
  14. else{
  15. }
  16. ?>