define('__ZBXE__',true);
header("Content-Type: text/html; charset=euc-kr");
require_once("../config/config.inc.php");
$oContext = &Context::getInstance();
$oContext->init();
function Unescape($str) // UnescapeFunc는 아래에 정의되어 있음
{
return urldecode(preg_replace_callback('/%u([[:alnum:]]{4})/', 'UnescapeFunc', $str));
}
function UnescapeFunc($str)
{
return iconv('UTF-16LE', 'UTF-8', chr(hexdec(substr($str[1], 2, 2))).chr(hexdec(substr($str[1],0,2))));
}
$c_var = Unescape($c_var);
function reset_persons_DB(){
mysql_query("DELETE FROM relay_persons_2016");
}
$qry = "DELETE FROM relay_persons_2016";
$result = mysql_query( $qry ) or die( mysql_error() . "
" . $qry );
reset_persons_DB();
echo 'Reset Complete.
Click here to Get a MRM data again.';
?>