<?php
// Some Chess, a PHP multi-player chess server.
// Copyright (C) 2006 Jon Link
function validate($value){
if(get_magic_quotes_gpc()) $value = stripslashes($value);
if(!is_numeric($value)) $value = mysql_real_escape_string(strip_tags($value));
return $value;
}
?>