Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
egg.eemo.co.kr
/
public_html
/
super5
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/egg.eemo.co.kr/public_html/super5/fcm_save_token_do.php
<? // server should keep session data for AT LEAST 1 hour ini_set('session.gc_maxlifetime', 8886400); // each client should remember their session id for EXACTLY 1 hour session_set_cookie_params(8886400); session_cache_limiter('no-cache, must-revalidate'); session_start(); header("Pragma: no-cache"); header("Cache-Control: no-cache,must-revalidate"); header("Content-Type: text/html; charset=utf-8"); include_once("dbconn.php"); include_once("lib.php"); foreach($_GET as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } foreach($_POST as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } mysql_query("update admin_member set fcm_token='$token' where no='$vmem_no' ") or die(); $rst['rst']='1'; echo json_encode($rst); ?>