Changeset 18514
- Timestamp:
- 05/27/16 09:46:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.php
r17681 r18514 16 16 global $groupDN; 17 17 18 if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) 19 return "Unauthorized"; 20 18 21 $username = $_SERVER['PHP_AUTH_USER']; 19 22 $password = $_SERVER['PHP_AUTH_PW']; 20 21 if (!isset($username) || !isset($password))22 return "Unauthorized";23 23 24 24 $con = @ldap_connect($ldaphost); … … 101 101 if (isset($_GET['load'])) 102 102 { 103 require_once('log/Browscap.php');103 //require_once('log/Browscap.php'); 104 104 105 105 $d = date("Y/m"); … … 117 117 $dns = gethostbyaddr($addr); 118 118 119 $bcap = new phpbrowscap\Browscap('log/cache');120 $info = $bcap->getBrowser();119 //$bcap = new phpbrowscap\Browscap('log/cache'); 120 //$info = $bcap->getBrowser(); 121 121 122 122 $file = fopen($path."/smartfact.log", "a"); 123 123 fwrite($file, 124 124 date("Y-m-d H:i:s\t").$addr. 125 "\t". $info->Platform.126 "\t". $info->Browser.127 "\t". $info->Version.128 "\t". ($info->isMobileDevice?"mobile":"").125 "\t".//$info->Platform. 126 "\t".//$info->Browser. 127 "\t".//$info->Version. 128 "\t".//($info->isMobileDevice?"mobile":""). 129 129 "\t".$user. 130 130 "\t".$dns."\n");
Note:
See TracChangeset
for help on using the changeset viewer.