if (!empty($liteName)) { $ezActive[$lite] = $liteName; } } if (count($ezActive) > 1) { $ezAdminNotice = '<ul>'; foreach ($ezActive as $k => $p) { $ezAdminNotice .= "<li><code>{$k}</code>: <b>{$p}</b></li>\n"; } $ezAdminNotice .= "</ul>"; EzKillLite::$adminNotice .= '<div class="error"><p><b><em>Ads EZ Family of Plugins</em></b>: Please have only one of these plugins active.</p>' . $ezAdminNotice . 'Otherwise they will interfere with each other and work as the last one.</div>'; add_action('admin_notices', array('EzKillLite', 'admin_notices')); } } if (class_exists("GoogleAdSense")) { $gAd = new GoogleAdSense(); if (isset($gAd)) { if (method_exists($gAd, 'verifyDB')) { $gAd->verifyDB(); } add_action('admin_menu', array($gAd, 'addAdminPage')); $gAd->addWidgets(); $file = dirname(__FILE__) . '/google-adsense.php'; register_activation_hook($file, array("GoogleAdSense", 'install')); add_action('switch_theme', array("GoogleAdSense", 'switchTheme')); } } } else { require plugin_dir_path(__FILE__) . 'EzGA.php'; EzGA::doPluginActions(); }