cacert-webdb/pages/index/4.php

46 lines
2.7 KiB
PHP
Raw Normal View History

2004-10-16 00:28:17 +00:00
<? /*
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
This file is part of CAcert.
CAcert has been released under the CAcert Source License
which can be found included with these source files or can
be downloaded from the internet from the following address:
http://www.cacert.org/src-lic.php
CAcert is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the License for more details.
*/ ?>
2005-03-12 19:40:24 +00:00
<?=$_SERVER['SSL_CLIENT_M_SERIAL']?>
<? if($_SESSION['_config']['hostname'] == $_SESSION['_config']['securehostname']) { ?>
2004-10-16 00:28:17 +00:00
<p><?=_("Warning! You've attempted to log into the system with a client certificate, but the login failed due to the certificate being expired, revoked or simply not valid for this site. You can login using your Email/Pass Phrase to get a new certificate, by clicking on 'Normal Login' to the right of your screen.")?></p>
<? } else { ?>
2007-01-10 04:01:15 +00:00
<style>
2007-01-28 18:37:19 +00:00
.box2 {width:100%;text-align:center;}
.box {background:#F5F7F7;border:2px solid #cccccc;align:center;height:250px;width:300px;padding:1em;}
2007-01-10 04:01:15 +00:00
.smalltext {font-size:10px;}
label {width:100px;display:block;float:left;}
text {width:166px;display:block;float:left;}
br {clear:left;}
h1 {font-size:1.9em;text-align:center;}
</style>
2007-01-28 18:37:19 +00:00
<div class='box2'>
2007-01-10 04:01:15 +00:00
<div class='box'>
<form action='index.php' method='post'<? if($_REQUEST['noauto'] == 1) echo " autocomplete='off'"; ?>>
2006-08-14 18:06:23 +00:00
<? if($_REQUEST['noauto'] == 1) { ?><input type="hidden" name="noauto" value="1"><? } ?>
2007-01-10 04:01:15 +00:00
<h1><?=_("Login")?></h1>
<p class='smalltext'><?=_("Warning! This site requires cookies to be enabled to ensure your privacy and security. This site uses session cookies to store temporary values to prevent people from copying and pasting the session ID to someone else exposing their account, personal details and identity theft as a result.")?></p>
2007-07-03 19:58:54 +00:00
<label for="email"><?=_("Email Address")?>:</label><input type='text' name="email" value="<?=sanitizeHTML($_REQUEST['email'])?>" /><br />
2007-01-10 04:01:15 +00:00
<label for="pword"><?=_("Pass Phrase")?>:</label><input type='password' name='pword' /><br />
<input type='submit' name="process" value="<?=_("Login")?>" /><br /><br />
<a href='https://www.cacert.org/index.php?id=4'>Password Login</a> -
<a href='https://www.cacert.org/index.php?id=5'>Lost Password</a> -
<a href='https://www.cacert.org/index.php?id=4&amp;noauto=1'>Net Cafe Login</a><br />
<p class='smalltext'><?=sprintf(_("If you are having trouble with your username or password, please visit our %swiki page%s for more information"), "<a href='http://wiki.cacert.org/wiki/FAQ/LostPasswordOrAccount' target='_new'>", "</a>");?></p>
2004-10-16 00:28:17 +00:00
<input type="hidden" name="oldid" value="<?=$id?>">
2007-01-10 04:01:15 +00:00
</form>
</div>
2007-01-28 18:37:19 +00:00
</div>
2004-10-16 00:28:17 +00:00
<? } ?>