Released under the terms of the GNU General Public License.
You should have received a copy of the GNU General Public License,
along with this software. In the main directory, see: /licensing/
If not, see: .
*/
/*
Direct access denial.
*/
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
exit ("Do not access this file directly.");
/**/
if (!class_exists ("c_ws_widget__ad_squares_utils_conds"))
{
class c_ws_widget__ad_squares_utils_conds
{
/*
Determines whether or not this is the Network Admin panel.
*/
public static function is_network_admin ()
{
if (version_compare (get_bloginfo ("version"), "3.1-RC", ">="))
return is_network_admin ();
/**/
return is_admin ();
}
/*
Determines whether or not this is a Blog Admin panel.
*/
public static function is_blog_admin ()
{
if (version_compare (get_bloginfo ("version"), "3.1-RC", ">="))
return is_blog_admin ();
/**/
return is_admin ();
}
/*
Determines whether or not this is a User Admin panel.
*/
public static function is_user_admin ()
{
if (version_compare (get_bloginfo ("version"), "3.1-RC", ">="))
return is_user_admin ();
/**/
return is_admin ();
}
/*
Determines whether or not this is a Multisite Farm.
*/
public static function is_multisite_farm ()
{
return (is_multisite () && defined ("MULTISITE_FARM") && MULTISITE_FARM);
}
}
}
?>