⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phpcms_mirror.php

📁 phpcms2007很好的cms内容管理系统,操作方便
💻 PHP
字号:
<?phpinclude './phpcms_mirror_config.inc.php';$auth = phpcms_decode($_GET['auth'], $MIRROR['auth_key']);if(!$auth) msg($MSG['badparameter'], $MIRROR['redirect']);parse_str($auth);if(!$fileurl || !file_exists($fileurl)) msg($MSG['notfound'], $MIRROR['redirect']);if(!$endtime || time()+$MIRROR['time_difference'] > $endtime)  msg($MSG['timeout'], $MIRROR['redirect']);if($MIRROR['download_mode']){	file_down($fileurl);}else{	header("location:".$fileurl);	exit;}function file_down($file, $filename = ''){	global $PHP_TIME;	if(!file_exists($file)) showmessage("The file $file is not exists !");	$filename = $filename ? $filename : basename($file);	$filetype = trim(substr(strrchr($filename, '.'), 1));	$filesize = filesize($file);    ob_end_clean();	@set_time_limit(900);	header('Cache-control: max-age=31536000');	header('Expires: '.gmdate('D, d M Y H:i:s', $PHP_TIME + 31536000).' GMT');	header('Content-Encoding: none');	header('Content-Length: '.$filesize);	header('Content-Disposition: attachment; filename='.$filename);	header('Content-Type: '.$filetype);	readfile($file);	exit;}function msg($alert, $goback=''){	if(empty($goback)) 	{		exit("<script>alert('$alert');</script>");	}	elseif($goback=='goback')	{		exit("<script>alert('$alert');history.go(-1);</script>"); 	}	elseif($goback=='close')	{		exit("<script>alert('$alert');window.close();</script>"); 	}	else	{		exit("<script>alert('$alert');window.location.href='$goback';</script>");	}}function phpcms_decode($txt, $key) {	$txt = phpcms_key(base64_decode($txt), $key);	$tmp = '';	for ($i = 0;$i < strlen($txt); $i++)	{		$md5 = $txt[$i];		$tmp .= $txt[++$i] ^ $md5;	}	return $tmp;}function phpcms_key($txt, $encrypt_key){	$encrypt_key = md5($encrypt_key);	$ctr = 0;	$tmp = '';	for($i = 0; $i < strlen($txt); $i++)	{		$ctr = $ctr == strlen($encrypt_key) ? 0 : $ctr;		$tmp .= $txt[$i] ^ $encrypt_key[$ctr++];	}	return $tmp;}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -