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

📄 index12.php

📁 QQ算命程序+完整数据(php无zend)
💻 PHP
字号:
<?php

require "includes/class.template.php";
$template = new verySimpleTemplate();

if( !@$_POST['qq'] )
{
	$template->deal( 'template/header.tpl' );
	$h = $template->template;
	$template->deal( 'template/qBody.tpl' );
	$b = $template->template;
	$template->deal( 'template/footer.tpl' );
	$f = $template->template;
	echo $h . $b . $f;
	exit();
}
else
{
	$q = str_replace( '.', '', @$_POST['qq'] );
}
if( strlen( $q ) > 9 or strlen( $q ) < 5 or !is_numeric( $q ) or $q < 0 )
{
	error( '对不起,你输入的QQ号码无效.请重新输入.' );
	exit();
}
else
{
	$li = $q % 81;
	$c = file( 'data/luck.dat' );
	$t = explode( '|', $c[$li] );
	$arrayVar = array();
	$template->deal( 'template/header.tpl' );
	$h = $template->template;
	$template->deal( 'template/qBody.tpl' );
	$b = $template->template;
	$arrayVar = array (
						'QQ'	=> $q,
						'LUCKY'	=> $t[1],
						'DES'	=> $t[0],
						'TYPE'	=> $t[2]
					  );
	$template->deal( 'template/qRender.tpl', $arrayVar );
	$r = $template->template;
	$template->deal( 'template/footer.tpl' );
	$f = $template->template;
	echo $h . $b . $r . $f;

}

function error( $e )
{
	global $template;
	$arrayVar = array();
	$template->deal( 'template/header.tpl' );
	$h = $template->template;
	$template->deal( 'template/qBody.tpl' );
	$b = $template->template;
	$arrayVar = array ( 
						'ERROR'  => $e
					  );
	$template->deal( 'template/errorRender.tpl', $arrayVar );
	$r = $template->template;
	$template->deal( 'template/footer.tpl' );
	$f = $template->template;
	echo $h . $b . $r . $f;
}

?>

⌨️ 快捷键说明

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