<?php // mail ready // addnews ready // translator ready define("ALLOW_ANONYMOUS", true); require_once "common.php"; require_once "lib/systemmail.php"; require_once "lib/checkban.php"; require_once "lib/http.php"; tlschema("login"); translator_setup(); $op = httpget('op'); $name = httppost('name'); $iname = getsetting("innname", LOCATION_INN); $vname = getsetting("villagename", LOCATION_FIELDS); if ($name != "") { if ($session['loggedin']) { redirect("badnav.php"); } else { $password = httppost('password'); $password = stripslashes($password); if (substr($password, 0, 5) == "!md5!") { $password = md5(substr($password, 5)); } elseif (substr($password, 0, 6) == "!md52!") { // && strlen($password) == 38) { $force = httppost('force'); if ($force) { $password = addslashes(substr($password, 6)); } else { $password = '******';
/** * Page header for popup windows. * * @param string $title The title of the popup window */ function popup_header($title = "Legend of the Green Dragon") { global $header, $template; translator_setup(); prepare_template(); modulehook("header-popup"); $arguments = func_get_args(); if (!$arguments || count($arguments) == 0) { $arguments = array("Legend of the Green Dragon"); } $title = call_user_func_array("sprintf_translate", $arguments); // $title = holidayize($title,'title'); $header = $template['popuphead']; $header = str_replace("{title}", $title, $header); }