$rmks)
{
if(function_exists('update_'.$func)) // Legacy Method.
{
$installed = call_user_func("update_".$func);
//?! (LAN_UPDATE == $_POST[$func])
if(varsettrue($_POST['update_core'][$func]) && !$installed)
{
if(function_exists("update_".$func))
{
$message = LAN_UPDATE_7." {$rmks}";
$error = call_user_func("update_".$func, "do");
if($error != '')
{
$mes->add($message, E_MESSAGE_ERROR);
$mes->add($error, E_MESSAGE_ERROR);
}
else $mes->add($message, E_MESSAGE_SUCCESS);
}
}
}
}
}
function run_updates_plugin($func,$check=TRUE) // New for {plugin}_setup.php
{
if(class_exists($func.'_setup'))
{
$class = $func.'_setup';
$setObj = new $class;
if(method_exists($setObj,'upgrade_post'))
{
return $setObj->upgrade_post($check);
}
// print_a($setObj);
// echo "
Found: ".$func;
}
}
function show_updates($dbupdate, $what)
{
global $frm;
$mes = e107::getMessage();
$caption = constant('LAN_UPDATE_CAPTION_'.strtoupper($what));
$text = "