qq等级查询php源码,基于PHP的QQ等级计算器input.php
QQ等级计算器
body {
font-size: 13px;
line-height: 22px;
}
无证驾驶处罚
-->
font-size: 13px;
line-height: 22px;
}
欢迎使⽤QQ等级计算器!
请输⼊您的QQ号码:
请输⼊此号码现在的活跃天数:
您在QQ聊天时是否使⽤QQ拼⾳输⼊法:是 否
您是QQ会员么?是 否
描写公园景的作文
如果您是QQ会员,您是以何种⽅式开通的QQ会员:
年费会员财付通/⽹银包⽉Q点/Q币/QQ卡/固定电话/移动充值卡包⽉移动⼿机/联通⼿机/⼩灵通/CDMA/ADSL宽带账号
如果您是QQ会员,请输⼊您现在的会员成长值:
请输⼊您要查询的⽬标级别:
output.php
QQ等级计算器-计算结果
body {
font-size: 13px;
line-height: 22px;
}
-->
font-size: 13px;
line-height: 22px;
}
/*获取VIP状态权值*/
function vipstatusrank($vipstatus){
if ($vipstatus=="yes") return(1);
else return(0);
}
/*获取拼⾳状态权值*/
function pinyinstatusrank($pinyinstatus){
if ($pinyinstatus=="yes") return(0.1);
else return(0);
}
/*获取会员⽇增成长值*/
function vipscoreadd($payway){
if ($payway=="1") return(15);
elseif ($payway=="2") return(12);
elseif ($payway=="3") return(10);
else return(5);
}
/*获取相应等级的会员的权值*/西安解封了吗
function viplevelrank($vipscore){
if ($vipscore<0) alert("VIP会员成长值应为正数!请检查您的输⼊!");
elseif ((0
elseif ((600
elseif ((1800
elseif ((3600
elseif ((6000
else return(0.6);
}
/*将QQ等级转换为活跃天*/
function level2days($level){
$days=$level*$level+4*$level;
张艺上和黄景瑜return($days);
}
/*从input.php获取参数值*/
$checkQQ=$_POST["QQ"];
if (($checkQQ>10000)&&($checkQQ<=9999999999)) $QQ=$checkQQ;
else echo "请输⼊正确的QQ号码!
";
$checknowdays=$_POST["nowdays"];
if ((0
else echo "请输⼊正确的活跃天数!
";
$pinyinstatus=$_POST["pinyinstatus"];
$vipstatus=$_POST["vipstatus"];
$payway=$_POST["payway"];
$checkvipscore=$_POST["vipscore"];
if (($checkvipscore>0)&&($checkvipscore<=30000)) $vipscore=$checkvipscore;
else echo "请输⼊正确的VIP成长值!
";
$checklevel=$_POST["level"];
if (($checklevel>0)&&($checklevel<=100)) $level=$checklevel;
else echo "请输⼊正确的⽬标级别!
";
$needdays=0;
/*计算⽤户输⼊数据的相应值*/
$pinyinstatusrank=pinyinstatusrank($pinyinstatus);
$vipstatusrank=vipstatusrank($vipstatus);
$vipscoreadd=vipscoreadd($payway);家有好男儿
$days=level2days($level);
/*开始计算等级*/
六一儿童节祝福语大全集while ($nowdays
$viplevelrank=viplevelrank($vipscore);
$needdays++;
$nowdays=$nowdays+1+$pinyinstatusrank+($vipstatusrank*$viplevelrank); $vipscore+=$vipscoreadd;
}
echo "您输⼊的的QQ号码为:",$checkQQ,"
";
echo "您升级到",$level,"级还需",$needdays,"天";
>