function update_all_actions($act, $log) { if ($act == 'prepare') { core_actions('getrep', $log); } elseif ($act == 'update') { $updates = getUpdates(); foreach ($updates as $mod => $item) { doAction($mod, 'update', $log); } } }
function doActions($act_func, $log) { global $nav_log; if (!isset($_REQUEST['act'])) { return; } $act = $_REQUEST['act']; if (function_exists($act_func)) { call_user_func($act_func, $act, $log); } elseif (function_exists('core_actions')) { core_actions($act, $log); } if ($nav_log) { ?> </pre></div></div> <script> log_look(); </script> <?php ob_implicit_flush(false); } }