Show login form when login is required

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-11-05 19:27:17 +01:00
committed by Chris Morgan
parent 70e4306e2b
commit 734a4f8a1f
4 changed files with 27 additions and 9 deletions

View File

@@ -55,6 +55,20 @@ function values($arr)
return $res;
}
/* Display a login form */
function login_form($bShowHeader = true)
{
global $aClean;
$aClean['sReturnTo'] = urlencode($_SERVER['REQUEST_URI']);
if($bShowHeader)
apidb_header("Login");
include(BASE."include/"."form_login.php");
if($bShowHeader)
apidb_footer();
}
// print the month, day, year, hour, minute, second
function print_date($sTimestamp)
{