删除 More/t.php.bak
This commit is contained in:
17
Main/CheckIn/index.php
Normal file
17
Main/CheckIn/index.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
include_once "../Hv4.Logged.php";
|
||||
if (!$未签到) {
|
||||
定义输出("msg","已经签到过啦");
|
||||
定义输出("code",100);
|
||||
终止并输出();
|
||||
} else {
|
||||
$获取积分 = mt_rand(80, 200);
|
||||
$语句 = "UPDATE `users`
|
||||
SET `last_sign_in_date` = CURRENT_DATE
|
||||
WHERE `id` = $用户ID;";
|
||||
@数据库运行($语句);
|
||||
@设置用户积分($积分+$获取积分);
|
||||
定义输出("msg","获得积分 ".$获取积分);
|
||||
定义输出("code",200);
|
||||
终止并输出();
|
||||
}
|
||||
Reference in New Issue
Block a user