<?
    $GLOBALS
['highlight'] = 'home';

    
$_cache = isset($_GET['cache']) ? trim(strval($_GET['cache'])) : '';
    
    
$cache mysql_query("SELECT email FROM members_create WHERE cache = " sq($_cache));
    if (!
$cache_row mysql_fetch_assoc($cache))
    {
        
make_cookie('notice''Sorry, there was a problem with that link, please try again.');
        
header('Location: ./?s=password');
        die;
    }

    include(
'include/parts/header.php');
?>

<div class="header">Set New Password</div>

<div class="content">
<form action="?a=password_complete&cache=<?= $_cache ?>" method="post" class="form">
<table width="100%" border="0">
<tr><td width="150" style="text-align: right;">Password:</td><td><input type="password" name="pass1" size="40" style="border: solid 2px black; margin: 0px; padding: 3px;"></td></tr>
<tr><td width="150" style="text-align: right;">Retype Password:</td><td><input type="password" name="pass2" size="40" style="border: solid 2px black; margin: 0px; padding: 3px;"></td></tr>
<tr><td width="150" style="text-align: right;"></td><td><input type="submit" value="Set New Password" style="border: solid 1px green; background: black; color: green;"></td></tr>
</table>
</form>
</div>

<?
    
include('include/parts/footer.php');
?>