/** * Basic information about the plugin. * * @return Plugin info array. */ function google_seo_plugin_info() { global $lang, $settings, $plugins_cache; // Check for edit action. google_seo_plugin_edit(); $info = array("name" => "Google SEO", "website" => "http://mods.mybb.com/view/google-seo", "description" => "{$lang->googleseo_plugin_description}", "author" => "Andreas Klauer", "authorsite" => "mailto:Andreas.Klauer@metamorpher.de", "version" => "1.6.8", "guid" => "8d12371391e1c95392dd567617e40f7f", "compatibility" => "16*,18*"); // Provide some additional status information, if the plugin is enabled. if (google_seo_plugin_is_installed() && is_array($plugins_cache) && is_array($plugins_cache['active']) && $plugins_cache['active']['google_seo']) { $info['description'] = $info['description'] . google_seo_plugin_status(); } return $info; }
function google_seo_is_installed() { require_once MYBB_ROOT . "inc/plugins/google_seo/plugin.php"; return google_seo_plugin_is_installed(); }