query("UPDATE plugins SET pluginStatus = ".(isset($_POST['pluginEnable']) ? 1 : 0)." WHERE pluginId = $_POST[pluginId]")) redirect(get_current_link()); else array_push($error, $_locale['plugin_not_updated']); } echo "
{locale:plugin_name} | {locale:description} | {locale:scope} | {locale:status} |
$pinfo[name] | $pinfo[description] | $pinfo[paths] |
$_locale[plugins_empty]
"; if ($handle = opendir('./plugins')) { while (false !== ($entry = readdir($handle))) { if (!in_array($entry, $plugins) && file_exists('./plugins/'.$entry.'/info.json')) if ($_sql->query("INSERT INTO plugins (pluginLib, pluginStatus) VALUES ('$entry', 0)")) array_push($info, $_locale['plugin_added'].$entry); else array_push($error, $_locale['plugin_not_added'].$entry); } closedir($handle); }