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: .
*/
/*
Version: 2.0.2
Stable tag: 2.0.2
Framework: WS-W-2.2
WordPress Compatible: yes
WP Multisite Compatible: yes
Multisite Blog Farm Compatible: yes
Tested up to: 3.0
Requires at least: 2.9.2
Requires: WordPress® 2.9.2+, PHP 5.2+
Copyright: © 2009 WebSharks, Inc.
License: GNU General Public License
Contributors: WebSharks, PriMoThemes
Author URI: http://www.primothemes.com/
Author: PriMoThemes.com / WebSharks, Inc.
Donate link: http://www.primothemes.com/donate/
Plugin Name: Ad Codes Widget
Plugin URI: http://www.primothemes.com/post/ad-codes-widget/
Forum URI: http://www.primothemes.com/forums/viewforum.php?f=8
Description: The Ad Codes Widget allows you to place ANY size banner ( ad, ads, advertisements ) into a widget-ready bar for WordPress®. It supports AdSense®, Javascript, XHTML and more.
Tags: widget, widgets, ad codes, ads, adsense, google, sponsors, advertise, advertisements, banners, ad networks, banner rotation, options panel included, websharks framework, w3c validated code, multi widget support, includes extensive documentation, highly extensible
*/
/*
Direct access denial.
*/
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
exit;
/*
Compatibility checks.
*/
if (version_compare (PHP_VERSION, "5.2", ">=") && version_compare (get_bloginfo ("version"), "2.9.2", ">=") && !isset ($GLOBALS["WS_WIDGET__"]["ad_codes"]))
{
/*
Record the location of this file.
*/
$GLOBALS["WS_WIDGET__"]["ad_codes"]["l"] = __FILE__;
/*
Function includes.
*/
include_once dirname (__FILE__) . "/includes/funcs.inc.php";
/*
Syscon includes.
*/
include_once dirname (__FILE__) . "/includes/syscon.inc.php";
/*
Hook includes.
*/
include_once dirname (__FILE__) . "/includes/hooks.inc.php";
}
/*
Else handle incompatibilities.
*/
else if (is_admin () || ($_GET["preview"] && $_GET["template"]))
{
if (!version_compare (PHP_VERSION, "5.2", ">="))
{
register_shutdown_function (create_function ('', 'echo \'\';'));
}
else if (!version_compare (get_bloginfo ("version"), "2.9.2", ">="))
{
register_shutdown_function (create_function ('', 'echo \'\';'));
}
}
?>