<?php
# Author: Oleg Kulaga (Cyber_Shot);
# Package: WGame Engine;
# Version: 0.1;
if (!defined("APP")) die("Access Denied");
function data_in($var)
{
if (is_numeric($var))
{
$var = abs(intval($var));
}
return $var;
}
function data_out($var)
{
if (is_numeric($var))
{
$var = abs(intval($var));
}
else
{
$var = strip_tags(trim(strtr(htmlentities(stripcslashes($var),ENT_QUOTES,'UTF-8'), array('$'=>'$','%'=>'%','_'=>'_'))));
}
return $var;
}