emlog 判断某个插件是否激活
$DB = Database::getInstance();
$sql = $DB->query("SELECT * FROM `" . DB_PREFIX . "options` WHERE `option_value` like '%插件名称%'");
if ($DB->num_rows($sql) > 0) {
echo '激活';
} else {
echo '未激活';
}
$DB = Database::getInstance();
$sql = $DB->query("SELECT * FROM `" . DB_PREFIX . "options` WHERE `option_value` like '%插件名称%'");
if ($DB->num_rows($sql) > 0) {
echo '激活';
} else {
echo '未激活';
}