public static function is($what)
{
switch (strtolower($what)) {
case 'main':
case 'primary':
if (Site::$config_type == Site::CONFIG_LOCAL) {
return true;
} else {
return false;
}
break;
case 'multi':
if (Site::$config_type != Site::CONFIG_LOCAL) {
return true;
} else {
return false;
}
break;
}
}