// Get the UA and trim it down
$userAgent = trim(detectUserAgent(TRUE));
- // It should not be empty, if so it is better a spider/bot
+ // It should not be empty, if so it is better a browser
if (empty($userAgent)) {
- // It is a spider/bot
- return TRUE;
+ // It is a browser that blocks its UA string
+ return FALSE;
} // END - if
// Is it a spider?
<div align="center">
-<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&reset_pass=1%}" method="post">
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&reset_pass=1&hash=$content%}" method="post">
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td class="table_header bottom" colspan="2">
<strong>{--ADMIN_VALIDATE_HASH_TITLE--}</strong>
</td>
</tr>
+
<tr>
<td class="bottom">
{--ADMIN_ENTER_LOGIN--}
<input type="text" class="form_field" name="login" size="20" maxlength="255" />
</td>
</tr>
+
<tr>
<td class="table_footer" colspan="2">
- <input type="hidden" name="hash" value="$content" />
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
<input type="submit" name="validate_hash" class="form_submit" value="{--ADMIN_VALIDATE_HASH_SUBMIT--}" />
</td>