$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, $additional = false) { global $ns; $text = "
"; $updates = 0; foreach($dbupdate as $func => $rmks) { if (function_exists("update_".$func)) { $text .= ""; if (call_user_func("update_".$func)) { $text .= ""; } else { $updates++; $text .= ""; } $text .= ""; } } $text .= "
".LAN_UPDATE." ".LAN_UPDATE_2."
{$rmks}".LAN_UPDATE_3."
"; $ns->tablerender(($additional ? (defined("LAN_UPDATE_11") ? LAN_UPDATE_11 : '.617 to .7 Update Continued') : LAN_UPDATE_10), $text); } if ($_POST) { $message = run_updates($dbupdate); } if($sql->db_Select("plugin", "plugin_version", "plugin_path = 'forum' AND plugin_installflag='1' ")) { if(file_exists(e_PLUGIN.'forum/forum_update_check.php')) { include_once(e_PLUGIN.'forum/forum_update_check.php'); } } if ($sql -> db_Query("SHOW COLUMNS FROM ".MPREFIX."stat_info") && $sql -> db_Select("plugin", "*", "plugin_path = 'log' AND plugin_installflag='1'")) { if(file_exists(e_PLUGIN.'log/log_update_check.php')) { include_once(e_PLUGIN.'log/log_update_check.php'); } } if($sql->db_Select("plugin", "plugin_version", "plugin_path = 'content' AND plugin_installflag='1' ")) { if(file_exists(e_PLUGIN.'content/content_update_check.php')) { include_once(e_PLUGIN.'content/content_update_check.php'); } } if ($sql->db_Select("plugin", "plugin_version", "plugin_path = 'pm' AND plugin_installflag='1' ")) { if(file_exists(e_PLUGIN.'pm/pm_update_check.php')) { include_once(e_PLUGIN.'pm/pm_update_check.php'); } } if ($_POST) { $message = run_updates($dbupdatep); } if (isset($dbupdatep)) { show_updates($dbupdatep, true); } show_updates($dbupdate); require_once("footer.php"); ?>