|
From: Benjamin C. <bc...@us...> - 2002-03-28 20:47:13
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv17805/templates/default
Modified Files:
login.html
Log Message:
Add the ability to restrict the bug tracker from anonymous browsing
Index: login.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/login.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- login.html 1 Aug 2001 13:55:56 -0000 1.1
+++ login.html 28 Mar 2002 20:47:06 -0000 1.2
@@ -1,21 +1,7 @@
-<?php
-
-global $formvars;
-if (!$formvars) {
- $formvars = htmlentities(serialize($GLOBALS[HTTP_POST_VARS]));
-}
-?>
-
<html>
<head>
<title>phpBugTracker Login</title>
- <!--<link rel="StyleSheet" href="/siteadmin.css" type="text/css">-->
- <style>
- td { font-family: "Verdana","Tahoma","Arial","Helvetica","Times";
- color: rgb(0,0,0);
- font-size: 9px; }
-
- </style>
+ <link rel="StyleSheet" href="css.php" type="text/css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#004433" alink="#004433" vlink="#004433">
<center>
@@ -25,8 +11,7 @@
<div align='center'><b>User Login</b></div>
<br>
- <form action='<?php print $GLOBALS[REQUEST_URI] ?>' method='post'>
- <input type="hidden" name="formvars" value="<?php echo $formvars ?>">
+ <form action='index.php' method='post'>
<table border="0">
<?php global $username, $emailsuccess; if (isset($username)) { ?>
<tr>
@@ -44,10 +29,10 @@
</tr>
<?php } ?>
<tr>
- <td>Login (Email):</td>
+ <td><?php echo EMAIL_IS_LOGIN ? 'Email' : 'Login' ?></td>
</tr>
<tr>
- <td><input size="30" name='username' value='<?php if (isset($this->auth["uname"])) print $this->auth["uname"] ?>'></td>
+ <td><input size="30" name='username' value='<?php if (isset($_sv["uname"])) print $_sv["uname"] ?>'></td>
</tr>
<tr>
<td>Password:</td>
@@ -57,10 +42,12 @@
</tr>
<tr>
<td align="right">
- <input type="submit" name="emailpass" value="Email my password">
+ <input type="submit" name="sendpass" value="Email my password">
<input type="submit" value="Go">
+ <input type="hidden" name="dologin" value="1">
</td>
</tr>
+ <?php if (!NEW_ACCOUNTS_DISABLED) { ?>
<tr>
<td align="center">
<hr size="1" color="#000000" width="140">
@@ -69,6 +56,7 @@
<a href="newaccount.php">Open a new account</a>
</td>
</tr>
+ <?php } ?>
</table>
</form>
</center>
|