function general_message($errortpl, $errorhook, $errormsg, $errorurl, $EOS) { extract($GLOBALS, EXTR_SKIP); if ($errorurl == null) { $errorurl = getRefererURL(); } if (!empty($errorurl)) { $js_errorurl = html_entity_decode($errorurl, ENT_NOQUOTES); $errorurl = preg_replace('~&(?!amp;)~i', '&', $errorurl); } else { $js_errorurl = $errorurl = "javascript:history.back(-1)"; } if (!isset($my->p)) { $my->p = $slog->Permissions(); } $breadcrumb->Add($lang->phrase('breadcrumb_errorok')); if (!$tpl->tplsent('header') && !$tpl->tplsent('popup/header')) { echo $tpl->parse('header'); } ($code = $plugins->load('frontend_' . $errorhook)) ? eval($code) : null; $tpl->globalvars(compact("errormsg", "errorurl", "js_errorurl")); echo $tpl->parse("main/{$errortpl}"); $slog->updatelogged(); $zeitmessung = t2(); $tpl->globalvars(compact("zeitmessung")); if ($EOS != null) { echo $tpl->parse($EOS); } elseif ($tpl->tplsent('popup/header')) { echo $tpl->parse('popup/footer'); } else { echo $tpl->parse('footer'); } $phpdoc->Out(); $db->close(); exit; }
$db->query("UPDATE {$db->pre}user SET pw = '{$md5}' WHERE id = '{$user['id']}' LIMIT 1", __LINE__, __FILE__); $user = $gpc->plain_str($user); $data = $lang->get_mail('pwremind2'); $to = array('0' => array('name' => $user['name'], 'mail' => $user['mail'])); $from = array(); xmail($to, $from, $data['title'], $data['comment']); ($code = $plugins->load('log_pwremind3_success')) ? eval($code) : null; ok($lang->phrase('log_pwremind_changed'), "log.php?action=login" . SID2URL_x); } else { ($code = $plugins->load('log_pwremind3_failed')) ? eval($code) : null; error($lang->phrase('log_pwremind_wrong_code'), "log.php?action=pwremind" . SID2URL_x); } } else { $loc = getRedirectURL(false); if (empty($loc)) { $loc = getRefererURL(); } $loc = htmlspecialchars($loc); if ($my->vlogin) { error($lang->phrase('log_already_logged'), $loc); } $breadcrumb->Add($lang->phrase('log_title')); echo $tpl->parse("header"); echo $tpl->parse("menu"); ($code = $plugins->load('log_login_form_start')) ? eval($code) : null; echo $tpl->parse("log/login"); ($code = $plugins->load('log_login_form_end')) ? eval($code) : null; $slog->updatelogged(); } ($code = $plugins->load('log_end')) ? eval($code) : null; $zeitmessung = t2();