diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-04-23 07:31:05 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-04-23 07:31:05 +0000 |
commit | a31560aec4f004e58930277758f5412d86c62adc (patch) | |
tree | 845ff6947d26b22a0f4527901dbefc97bca89d78 /templates/show_login_form.inc | |
parent | 8b27d66add7ca9ba57d7e9488612cb54be4b11c1 (diff) | |
download | ampache-a31560aec4f004e58930277758f5412d86c62adc.tar.gz ampache-a31560aec4f004e58930277758f5412d86c62adc.tar.bz2 ampache-a31560aec4f004e58930277758f5412d86c62adc.zip |
it technically logs in and streams.. but thats it, complete rewrite almost everything broken
Diffstat (limited to 'templates/show_login_form.inc')
-rw-r--r-- | templates/show_login_form.inc | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/templates/show_login_form.inc b/templates/show_login_form.inc index 7ff9bbe3..b46d77ff 100644 --- a/templates/show_login_form.inc +++ b/templates/show_login_form.inc @@ -1,6 +1,6 @@ <?php /* - Copyright (c) 2001 - 2006 Ampache.org + Copyright (c) 2001 - 2007 Ampache.org All Rights Reserved This program is free software; you can redistribute it and/or @@ -21,29 +21,44 @@ /* Check and see if their remember me is the same or lower then local * if so disable the checkbox */ -if (conf('local_length') >= conf('remember_length')) { +if (Config::get('session_length') >= Config::get('remember_length')) { $remember_disabled = 'disabled="disabled"'; } +$htmllang = str_replace("_","-",Config::get('lang')); ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::get('site_charset'); ?>" /> +<link rel="shortcut icon" href="<?php echo Config::get('web_path'); ?>/favicon.ico" /> +<link rel="stylesheet" href="templates/print.css" type="text/css" media="print" /> +<link rel="stylesheet" href="templates/handheld.css" type="text/css" media="handheld" /> +<link rel="stylesheet" href="<?php echo Config::get('web_path'); ?><?php echo Config::get('theme_path'); ?>/templates/default.css" type="text/css" media="screen" /> +<title> <?php echo Config::get('site_title'); ?> </title> +<script type="text/javascript" language="javascript"> +function focus(){ document.login.username.focus(); } +</script> +</head> +<body bgcolor="#D3D3D3" onload="focus();"> <div id="container"> - <h1><span><?php echo conf('site_title'); ?></span></h1> + <h1><span><?php echo Config::get('site_title'); ?></span></h1> <div> - <p id="loginp_0"><?php echo conf('site_title'); ?></p> - <form name="login" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ; ?>/login.php" style="Display:inline"> + <p id="loginp_0"><?php echo Config::get('site_title'); ?></p> + <form name="login" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ; ?>/login.php" style="Display:inline"> <p class="loginp_1"><span><?php echo _('Login'); ; ?>:</span> <input class="text_input" type="text" name="username" value="<?php echo $_REQUEST['username']; ; ?>" /></p> <p class="loginp_1"><span><?php echo _('Password'); ; ?>:</span> <input class="text_input" type="password" name="password" value="" /></p> <p class="loginp_1"><?php echo _('Remember Me'); ?><input class="check_input" type="checkbox" name="rememberme" <?php echo $remember_disabled; ?> /></p> - <?php echo conf('login_message'); ; ?> - <?php $GLOBALS['error']->print_error('general'); ?> + <?php echo Config::get('login_message'); ?> + <?php Error::display('general'); ?> <p><input class="button" type="submit" value="<?php echo _('Login'); ?>" /></p> <input type="hidden" name="referrer" value="<?php echo scrub_out($_SERVER['HTTP_REFERRER']); ?>" /> <input type="hidden" name="action" value="login" /> </form> - <?php if (conf('allow_public_registration')) { ?> + <?php if (Config::get('allow_public_registration')) { ?> <span class="text-action"> <a href="<?php echo conf('web_path'); ?>/register.php"><?php echo _('Register'); ?></a> </span> |