Index: php/lib/auth.php =================================================================== --- php/lib/auth.php (revision 225) +++ php/lib/auth.php (working copy) @@ -77,7 +77,7 @@ function auth_create_session($user,$secure=0) { session_name('mozilla-mirror-admin'); - session_set_cookie_params(0,'/',$_SERVER['HTTP_HOST'],$secure); + session_set_cookie_params(0,'/'); session_start(); db_query("INSERT INTO sessions(session_id,username) VALUES('".session_id()."','{$user['username']}')"); $_SESSION['user']=$user; Index: php/admin/login.php =================================================================== --- php/admin/login.php (revision 225) +++ php/admin/login.php (working copy) @@ -30,10 +30,10 @@ require_once(LIB.'/auth.php'); // authenticate -if (!empty($_POST['submit'])) { +if (isset($_POST['password']) && isset($_POST['username'])) { if ($auth = auth_mysql($_POST['username'],$_POST['password'])) { auth_create_session($auth); - header('Location: http://'.$_SERVER['HTTP_HOST'].WEBPATH.'/admin/'); + header('Location: http://'.$_SERVER['HTTP_HOST'].WEBPATH.'/admin/'); exit; } else { $msg = 'Authentication failed. Please check username and password and try again.'; @@ -43,15 +43,16 @@ $title='Login'; $body_tags=' onload="document.getElementById(\'username\').focus();" '; require_once(HEADER); + ?>

Bouncer Login

-'.$msg.'':null?> -
+'.$msg.'':null?> +
-
+
Index: php/inc/forms/os.php =================================================================== --- php/inc/forms/os.php (revision 225) +++ php/inc/forms/os.php (working copy) @@ -35,9 +35,4 @@ form_text('os_path', 'p', '', $posts['os_path'], 30, 100); echo '

'; -echo '
'; -form_label('OS Extension', 'e','label-small'); -form_text('os_extension', 'e', '', $posts['os_extension'], 30, 100); -echo '

'; - ?> Index: php/inc/header.php =================================================================== --- php/inc/header.php (revision 225) +++ php/inc/header.php (working copy) @@ -50,9 +50,11 @@