? '; if (empty($string)) return true; for ($i = 0; $i < strlen($cfgBadChars); $i++): if (strstr($string, $cfgBadChars[$i])) return true; endfor; return false; } // The function filter is the value $ojb what you will check function char_filter($ojb) { $badchars='Ý`~!@$%^()+-_=[]{}\'\\:"|,/<>? '; // The characters not allowed are listed here for ($i=0;$i'.$message.''; } else { echo '
'.$message.'
Redirect me now!
'; echo ''; } } function serverStatusCheck( $ip, $port ) { $fp = @fsockopen($ip, $port, $errno, $errstr,1); if (!$fp) { return 'Offline'; } else { return 'Online'; fclose($fp); } } ?>