Index: trunk/FACT++/www/smartfact/index.php
===================================================================
--- trunk/FACT++/www/smartfact/index.php	(revision 18513)
+++ trunk/FACT++/www/smartfact/index.php	(revision 18514)
@@ -16,9 +16,9 @@
     global $groupDN;
 
+    if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW']))
+        return "Unauthorized";
+
     $username = $_SERVER['PHP_AUTH_USER'];
     $password = $_SERVER['PHP_AUTH_PW'];
-
-    if (!isset($username) || !isset($password))
-        return "Unauthorized";
 
     $con = @ldap_connect($ldaphost);
@@ -101,5 +101,5 @@
 if (isset($_GET['load']))
 {
-    require_once('log/Browscap.php');
+    //require_once('log/Browscap.php');
 
     $d = date("Y/m");
@@ -117,14 +117,14 @@
     $dns  = gethostbyaddr($addr);
 
-    $bcap = new phpbrowscap\Browscap('log/cache');
-    $info = $bcap->getBrowser();
+    //$bcap = new phpbrowscap\Browscap('log/cache');
+    //$info = $bcap->getBrowser();
 
     $file = fopen($path."/smartfact.log", "a");
     fwrite($file,
            date("Y-m-d H:i:s\t").$addr.
-           "\t".$info->Platform.
-           "\t".$info->Browser.
-           "\t".$info->Version.
-           "\t".($info->isMobileDevice?"mobile":"").
+           "\t".//$info->Platform.
+           "\t".//$info->Browser.
+           "\t".//$info->Version.
+           "\t".//($info->isMobileDevice?"mobile":"").
            "\t".$user.
            "\t".$dns."\n");
