isPro = file_exists("{$this->plgDir}/admin/options-advanced.php"); if ($this->isPro) { $this->strPro = 'Pro'; } else { $this->strPro = 'Lite'; } } static function install($dir, $mOptions) { $ezOptions = get_option($mOptions); if (empty($ezOptions)) { // create the necessary tables $GLOBALS['isInstallingWP'] = true; chdir($dir . '/admin'); require_once('dbSetup.php'); $ezOptions['isSetup'] = true; } update_option($mOptions, $ezOptions); } static function uninstall($mOptions) { delete_option($mOptions); } function printAdminPage() { $forceAdminKey = $this->key . '_force_admin'; $forceAgainKey = $forceAdminKey . '_again'; if (!empty($_POST[$forceAdminKey])) { update_option($forceAdminKey, true); } $forceAdmin = get_option($forceAdminKey); if (!empty($_POST[$forceAgainKey])) { update_option($forceAgainKey, true); } $forceAgain = get_option($forceAgainKey); // index cannot be used for testing, because it may forward to some other file $testFile = "{$this->plgURL}admin/promo.php"; $divTop = "

{$this->name} loads its admin pages in an iFrame, which may look like an ad to some client side ad blockers. If you are running AdBlock or similar extensions, please disable it for your blog domain, and see if the admin page appears.

The plugin also needs direct access to its files so that they can be loaded in an iFrame. If you have some security setting or plugin denying the required access, you will see this message. Please disable such security settings (temporarily) to see if the admin page appears.

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 {$this->plgDir}/.

"; if (!$forceAdmin && !@file_get_contents($testFile)) { ?>

If you would like the plugin to try to open the admin page despite the restriction, 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.

plgURL}/admin/index.php?inframe"; ?> "; } } //End Class EzPlugin }