public static function ajaxAllowHost($host1, $host2 = null, $host3 = null)
{
$loop = is_array($host1) ? $host1 : func_get_args();
foreach ($loop as $host) {
if ($host && !in_array($host, self::$ajaxAllowedHosts)) {
self::$ajaxAllowedHosts[] = $host;
}
}
}