后台用户管理界面
This commit is contained in:
@@ -183,4 +183,16 @@ function linkcurl($url,$method,$params=false,$header=false){
|
||||
curl_close( $ch );
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//将utf-8字符串转换成字节
|
||||
function cToMd5($str){
|
||||
$md5hex=md5($str);
|
||||
$len=strlen($md5hex)/2;
|
||||
$md5raw="";
|
||||
for($i=0;$i<$len;$i++) {
|
||||
$md5raw=$md5raw . chr(hexdec(substr($md5hex,$i*2,2)));
|
||||
}
|
||||
$keyMd5=base64_encode($md5raw);
|
||||
return $keyMd5;
|
||||
}
|
||||
Reference in New Issue
Block a user