plgDir = dirname(__FILE__); $this->plgURL = plugin_dir_url(__FILE__); $this->isPro = file_exists("{$this->plgDir}/admin/options-advanced.php"); $this->strPro = ' Lite'; if ($this->isPro) { $this->strPro = ' Pro'; } if (is_admin()) { require_once($this->plgDir . '/EzTran.php'); $this->domain = 'ads-ez'; $this->ezTran = new EzTran(__FILE__, "Ads EZ{$this->strPro}", $this->domain); $this->ezTran->setLang(); } } function displayAd($atts, $content = '') { $query = "?wp"; $vars = array("cat" => "", "type" => "banner", "size" => "300x250"); $vars = shortcode_atts($vars, $atts); foreach ($vars as $k => $v) { if (!empty($v)) { $query .= "&$k=$v"; } } list($w, $h) = explode("x", $vars['size']); $adLink = ""; return $adLink; } static function install() { $mOptions = "adsEz"; $ezOptions = get_option($mOptions); if (empty($ezOptions)) { // create the necessary tables $isInstallingWP = true; chdir(dirname(__FILE__) . '/admin'); require_once('dbSetup.php'); $ezOptions['isSetup'] = true; } update_option($mOptions, $ezOptions); } static function uninstall() { $mOptions = "adsEz"; delete_option($mOptions); } function printAdminPage() { if (!empty($_POST['adsez_force_admin'])) { update_option('adsez_force_admin', true); } $forceAdmin = get_option('adsez_force_admin'); if (!empty($_POST['adsez_force_admin_again'])) { update_option('adsez_force_admin_again', true); } $forceAdminAgain = get_option('adsez_force_admin_again'); $testFile = plugins_url("admin/promo.php", __FILE__); if (!$forceAdmin && !@file_get_contents($testFile)) { // index cannot be used for testing ?>
This plugin needs direct access to its files so that they can be loaded in an iFrame. Looks like you have some security setting denying the required access. If you have an .htaccess file in your wp-content or wp-content/pluginsfolder, please remove it or modify it to allow access to the php files in plgDir; ?>/.
If you would like the plugin to try to open the admin page, please set the option here:
Note that if the plugin still cannot load the admin page after forcing it, you may see a blank or error page here upon reload. If that happens, please deactivate and delete the plugin. It is not compatible with your blog setup.