Permalink
Browse files

add get curl agent info

  • Loading branch information...
1 parent 67e3a19 commit bffe263e782daea506f999532d1f57272bf041b7 @ronalfei committed Nov 28, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/core/util.class.php
View
@@ -54,6 +54,11 @@ public static function getUserBroswer()
@header('Browser:IE9');
return 'ie9';
}
+ elseif(preg_match('/curl/i',$agent))
+ {
+ @header('Browser:Curl');
+ return 'ie9';
+ }
else
{
@header('Browser:else');
@@ -66,7 +71,6 @@ public static function getUserBroswer()
*/
public static function createUuId()
{
-
$time = microtime();
$tmp = explode(" ", $time);
$milTime = $tmp[1].$tmp[0]*1000000;

0 comments on commit bffe263

Please sign in to comment.