1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Incompatible plugins alert.

This commit is contained in:
Cameron
2013-04-22 03:29:10 -07:00
parent aaf787b0e6
commit 3c01ebbec9

View File

@@ -64,6 +64,35 @@ if (is_dir(e_ADMIN.'htmlarea') || is_dir(e_HANDLER.'htmlarea'))
$mes->addWarning($HANDLERS_DIRECTORY."htmlarea/<br />".$ADMIN_DIRECTORY."htmlarea/");
}
// ------------- Compatibility Check -----------------------------
$installedPlugs = e107::getPref('plug_installed');
$incompat = array(
'banhelper' => 1.7,
'slir_admin' => 1.0
);
$inCompatText = "";
$incompatFolders = array_keys($incompat);
foreach($incompat as $folder => $version)
{
if(vartrue($installedPlugs[$folder]) && $version == $installedPlugs[$folder])
{
$inCompatText .= "<li>".$folder." v".$installedPlugs[$folder]."</li>";
}
}
if($inCompatText)
{
$text = "<ul>".$inCompatText."</ul>";
$mes->addWarning("The following plugins are not compatible with this version of e107 and should be <a href='".e_ADMIN."plugin.php'>uninstalled</a>: ".$text);
}
/* Not used in 0.8
// check for old modules.
if(getperms('0') && isset($pref['modules']) && $pref['modules'] && $sql->db_Field("plugin",5) == "plugin_addons")