You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
719 B
24 lines
719 B
<?php
|
|
require_once dirname(__FILE__)."/database.php";
|
|
include "fun_global.php";
|
|
if (isset($_REQUEST["function_name"])) {
|
|
$function_name = $_REQUEST["function_name"];
|
|
$function_flag = True;
|
|
}else{
|
|
$function_name = "";
|
|
$function_flag = False;
|
|
}
|
|
|
|
/*****************************
|
|
* global:
|
|
* $token
|
|
* $token_link 含token的連結
|
|
* $user_id 使用者ID
|
|
* $user_name 使用者姓名
|
|
* $login_dt 登入時間
|
|
* $user_auth 使用權限:1,2,3
|
|
*****************************/
|
|
$token = $_REQUEST["token"];
|
|
$token_link = "token=".$_REQUEST["token"];
|
|
list($user_id, $enc_user_name, $login_dt) = explode(".", $token);
|
|
$user_name = urldecode(base64_decode($enc_user_name));
|
|
|