include_once("include.html");
//**** SSL Only
$gotossl="";
if($otherconfig["SSLPORT"] && $HTTPS=="OFF")
{
$url = $_SERVER['HTTP_HOST'];
if (strpos($url, ":")) list($url,$port) = explode(":", $url);
$url = $url.':'.$otherconfig["SSLPORT"].$_SERVER['REQUEST_URI'];
if ($otherconfig["SSLONLY"] && $HTTPS=="OFF") {
header ("Location: https://".$url);
exit;
}
$gotossl='
'.$lang[MSG_LINKS_SSLLOGIN].'';
}
function trimcolon2($string) { if ($pos = strpos($string, ":")) return substr($string, 0, $pos); else return $string; }
//skin zakladni data
$skindata['title'] = $otherconfig["TITLETEXT"];
$skindata['login']['user'] = trimcolon2($otherconfig["EMAILLOGIN"] ? $lang[MSG_EMAILADDR] : $lang[MSG_USERNAME]);
$skindata['login']['pass'] = trimcolon2($lang[MSG_PASSWORD]);
$skindata['login']['submit'] = trimcolon2($lang[MSG_LOGINBUTTON]);
$skindata['login']['fastlogin'] = $loginpage_fastlogin_html;
$skindata['login']['signup']="";
//Forgot your password?
if(!$otherconfig['DISABLEFORGOTPASS'])
$skindata['login']['signup'] = ''.$lang['MSG_LINKS_FORGOTPASS'].'
';
//echo $gotossl;
$skindata['login']['signup'] .= $gotossl;
if ($selfcreate) $skindata['login']['signup'] .= $loginpage_signup_html;
//pokud je zapnuta volba vice domen
if (!$otherconfig["FULLMERAK"] && strpos($domain, ";")) {
$skindata['login']['domain'] = trimcolon2($lang[MSG_DOMAIN]);
$skindata['login']['domains'] = showdomains();
}
$skindata['message'] = showmessage($loggedout["MESSAGE"],'','', true, "", true, false);
$skindata['copyright'] = copyright(true);
logoutuser($id);
if($otherconfig["LOGGING"])
{
include_once("inc/function.login.php");
dolog($config['USER'],2);
}
$skindata['login']['cipher']=$lang[MSG_CIPHER];
if($otherconfig[FULLMERAK]) $skindata['integrate']=1;
$skindata['unique'] =uniqid("").time();
if($js_cipher) $skindata['xcipher']="checked";
echo template($skin_dir . 'login.tpl', $skindata);
?>