function updateSwitchHelp($param) { global $gbl, $sgbl, $login, $ghtml; if ($gbl->isOn('show_help')) { $this->getSpecialObject('sp_specialplay')->show_help = 'off'; $gbl->setSessionV('show_help', 'off'); } else { if (!if_demo()) { $this->getSpecialObject('sp_specialplay')->show_help = 'on'; } $gbl->setSessionV('show_help', 'on'); } $special = $this->sp_specialplay_o; $special->setUpdateSubaction('switchhelp'); $login->was(); save_login(); $ghtml->print_redirect_left_panel("/htmllib/mibin/lpanel.php"); return null; }
function lx_frm_inc() { global $gbl, $sgbl, $login, $ghtml; if (!$ghtml->iset("frm_action")) { die("Action Not set <br> "); } $caction = $ghtml->frm_action; $cgi_action = "__ac_desc_{$ghtml->frm_action}"; if (!function_exists($cgi_action)) { die("Action not supported..\n"); } try { switch ($caction) { case "add": __ac_desc_add($gbl->__c_object); break; case "addform": __ac_desc_addform($gbl->__c_object); break; case "update": __ac_desc_update($gbl->__c_object); break; case "delete": __ac_desc_delete($gbl->__c_object); break; default: $cgi_action($gbl->__c_object); break; } $login->was(); if ($login->isAuxiliary()) { $login->__auxiliary_object->setUpdateSubaction(); $login->__auxiliary_object->write(); } if ($caction === 'add' || $caction === 'delete') { //collect_quota_later(); } $gbl->unsetSessionV('__tmp_redirect_var'); } catch (Exception $e) { //save_login(); log_log("redirect_error", "exception"); $gbl->setSessionV('__tmp_redirect_var', $ghtml->__http_vars); $gbl->c_session->write(); if (is_array($e->variable)) { $evlist = implode(",", $e->variable); } else { $evlist = $e->variable; } //dprint("$e"); $ghtml->print_redirect_back($e->getMessage(), $evlist, $e->value); exit; } //log_log("redirect_error", "here"); // If redirecting, too, ssession wont be saved.... if ($gbl->__this_redirect) { save_login(); if ($gbl->__this_warning) { $m = $gbl->__this_warning['message']; $gbl->__this_redirect .= "&frm_emessage={$m}"; } $windowurl = null; if (isset($gbl->__this_window_url)) { $windowurl = $gbl->__this_window_url; } $ghtml->print_redirect($gbl->__this_redirect, $windowurl); } // Thsi is a misnomer.. It jsut saves the lx_http_refer, ssession variables... And also saves the login, if it exists. exit_program(); if (function_exists("after_exit_program")) { after_exit_program(); } if (isset($gbl->__this_function)) { dprint("Calling {$gbl->__this_function} <br> <br> "); call_user_func_array($gbl->__this_function, $gbl->__this_functionargs); } }