$rmks) {
$installed = call_user_func("update_".$func);
if ((LAN_UPDATE == $_POST[$func]) && !$installed) {
if (function_exists("update_".$func)) {
$message .= LAN_UPDATE_7." {$rmks}
";
$error=call_user_func("update_".$func, "do");
if ($error!='') {
$message = $error;
}
}
}
}
if ($message) {
$ns->tablerender(LAN_UPDATE, $message);
}
}
function show_updates($dbupdate)
{
global $ns;
$text = "
";
$ns->tablerender(LAN_UPDATE, $text);
return $updates; // Number of updates to do
}
if ($_POST)
{
$message = run_updates($dbupdate);
}
if ($_POST)
{ // Do plugin updates
$message = run_updates($dbupdatep);
}
$total_updates = 0;
if (isset($dbupdatep))
{ // Show plugin updates done
$total_updates += show_updates($dbupdatep);
}
// Show core updates done
$total_updates += show_updates($dbupdate);
if ($total_updates == 0)
{ // No updates needed - clear the cache to be sure
$e107cache->set_sys("nq_admin_updatecheck", time().', 1, '.$e107info['e107_version'], TRUE);
}
require_once("footer.php");
?>