Skip to content
Browse files

Merge branch 'master' of github.com:sivann/itdb

  • Loading branch information...
2 parents 1f54021 + 95272c9 commit b344ed2195ddeb01aae3e6c0c1f4357a08204666 Spiros Ioannou committed Apr 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 init.php
View
3 init.php
@@ -20,11 +20,12 @@
}
//wscriptdir: www relative address of base itdb directory (/itdb)
+//used for cookie setting
$wscriptdir=dirname($_SERVER['SCRIPT_NAME']);
if (basename($wscriptdir)=="php") {
$wscriptdir=preg_replace('#/php$#','',$wscriptdir);
}
-
+if ($wscriptdir=="") $wscriptdir="/"; //itdb installed under /
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
$remaddr=$_SERVER['HTTP_X_FORWARDED_FOR'];

0 comments on commit b344ed2

Please sign in to comment.
Something went wrong with that request. Please try again.