Browse files

Corrects $site_index_page

  • Loading branch information...
1 parent 04de58c commit 04378749a60298d6a3ab9e7b3d732212ce593d28 @t0xicCode t0xicCode committed May 25, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 SERVER/SERVER.php
View
8 SERVER/SERVER.php
@@ -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);

0 comments on commit 0437874

Please sign in to comment.