Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrects $site_index_page

  • Loading branch information...
commit 04378749a60298d6a3ab9e7b3d732212ce593d28 1 parent 04de58c
Xavier L. t0xicCode authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 SERVER/SERVER.php
8 SERVER/SERVER.php
View
@@ -183,10 +183,10 @@ function _run($URL, $OriginalRequestURL, $remote_ip, $client_id)
$site_index_page = "";
if (file_exists($SERVER['root_path']."index.php")){ $site_index_page = "index.php"; }
-elseif (file_exists($SERVER['root_path']."index.php")){ $site_index_page = "index.html"; }
-elseif (file_exists($SERVER['root_path']."index.php")){ $site_index_page = "index.htm"; }
-elseif (file_exists($SERVER['root_path']."index.php")){ $site_index_page = "index.jpg"; }
-elseif (file_exists($SERVER['root_path']."index.php")){ $site_index_page = "index.png"; }
+elseif (file_exists($SERVER['root_path']."index.html")){ $site_index_page = "index.html"; }
+elseif (file_exists($SERVER['root_path']."index.htm")){ $site_index_page = "index.htm"; }
+elseif (file_exists($SERVER['root_path']."index.jpg")){ $site_index_page = "index.jpg"; }
+elseif (file_exists($SERVER['root_path']."index.png")){ $site_index_page = "index.png"; }
else{ $site_index_page = ""; }
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
Please sign in to comment.
Something went wrong with that request. Please try again.