| [960] | 1 | {* |
|---|
| [347] | 2 | |
|---|
| [960] | 3 | /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ |
|---|
| 4 | |
|---|
| 5 | // +-------------------------------------------------------------------+ |
|---|
| 6 | // | WiFiDog Authentication Server | |
|---|
| 7 | // | ============================= | |
|---|
| 8 | // | | |
|---|
| 9 | // | The WiFiDog Authentication Server is part of the WiFiDog captive | |
|---|
| 10 | // | portal suite. | |
|---|
| 11 | // +-------------------------------------------------------------------+ |
|---|
| 12 | // | PHP version 5 required. | |
|---|
| 13 | // +-------------------------------------------------------------------+ |
|---|
| 14 | // | Homepage: http://www.wifidog.org/ | |
|---|
| 15 | // | Source Forge: http://sourceforge.net/projects/wifidog/ | |
|---|
| 16 | // +-------------------------------------------------------------------+ |
|---|
| 17 | // | This program is free software; you can redistribute it and/or | |
|---|
| 18 | // | modify it under the terms of the GNU General Public License as | |
|---|
| 19 | // | published by the Free Software Foundation; either version 2 of | |
|---|
| 20 | // | the License, or (at your option) any later version. | |
|---|
| 21 | // | | |
|---|
| 22 | // | This program is distributed in the hope that it will be useful, | |
|---|
| 23 | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
|---|
| 24 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
|---|
| 25 | // | GNU General Public License for more details. | |
|---|
| 26 | // | | |
|---|
| 27 | // | You should have received a copy of the GNU General Public License | |
|---|
| 28 | // | along with this program; if not, contact: | |
|---|
| 29 | // | | |
|---|
| 30 | // | Free Software Foundation Voice: +1-617-542-5942 | |
|---|
| 31 | // | 59 Temple Place - Suite 330 Fax: +1-617-542-2652 | |
|---|
| 32 | // | Boston, MA 02111-1307, USA gnu@gnu.org | |
|---|
| 33 | // | | |
|---|
| 34 | // +-------------------------------------------------------------------+ |
|---|
| 35 | |
|---|
| 36 | /** |
|---|
| 37 | * Resend validation email page |
|---|
| 38 | * |
|---|
| 39 | * @package WiFiDogAuthServer |
|---|
| 40 | * @subpackage Templates |
|---|
| 41 | * @author Philippe April |
|---|
| [1031] | 42 | * @author Benoit Grégoire <bock@step.polymtl.ca> |
|---|
| [960] | 43 | * @author Max Horvath <max.horvath@maxspot.de> |
|---|
| 44 | * @copyright 2004-2006 Philippe April |
|---|
| [1031] | 45 | * @copyright 2004-2006 Benoit Grégoire, Technologies Coeus inc. |
|---|
| [960] | 46 | * @copyright 2006 Max Horvath, maxspot GmbH |
|---|
| 47 | * @version Subversion $Id$ |
|---|
| 48 | * @link http://www.wifidog.org/ |
|---|
| 49 | */ |
|---|
| 50 | |
|---|
| 51 | *} |
|---|
| 52 | |
|---|
| 53 | {if $sectionTOOLCONTENT} |
|---|
| 54 | {* |
|---|
| 55 | BEGIN section TOOLCONTENT |
|---|
| 56 | *} |
|---|
| 57 | <div id="login_form"> |
|---|
| 58 | <h1>{"I'm having difficulties"|_}:</h1> |
|---|
| 59 | |
|---|
| 60 | <ul> |
|---|
| [1020] | 61 | <li><a href="{$base_url_path}lost_username.php">{"I Forgot my username"|_}</a></li> |
|---|
| 62 | <li><a href="{$base_url_path}lost_password.php">{"I Forgot my password"|_}</a></li> |
|---|
| 63 | <li><a href="{$base_url_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> |
|---|
| 64 | <li><a href="{$base_url_path}faq.php">{"Frequently asked questions"|_}</a></li> |
|---|
| [960] | 65 | </ul> |
|---|
| 66 | </div> |
|---|
| 67 | {* |
|---|
| 68 | END section TOOLCONTENT |
|---|
| 69 | *} |
|---|
| 70 | {/if} |
|---|
| 71 | |
|---|
| 72 | {if $sectionMAINCONTENT} |
|---|
| 73 | {* |
|---|
| 74 | BEGIN section MAINCONTENT |
|---|
| 75 | *} |
|---|
| 76 | <fieldset class="pretty_fieldset"> |
|---|
| 77 | <legend>{"Re-send validation email"|_}</legend> |
|---|
| 78 | |
|---|
| [1142] | 79 | <form name="form" method="post" {* onsubmit="return false" *} action="{$base_ssl_path}resend_validation.php"> |
|---|
| [1018] | 80 | <input type="hidden" name="form_request" value="resend_validation"> |
|---|
| [960] | 81 | {if $SelectNetworkUI} |
|---|
| 82 | {$SelectNetworkUI} |
|---|
| 83 | {/if} |
|---|
| 84 | |
|---|
| 85 | <table> |
|---|
| 86 | <tr> |
|---|
| 87 | <th>{"Your username"|_}:</th> |
|---|
| [1142] | 88 | <td><input type="text" name="username" value="{$username}" size="20" id="form_username" {* onkeypress="return focusNext(this.form, 'form_submit', event)"*}></td> |
|---|
| [960] | 89 | </tr> |
|---|
| 90 | <tr> |
|---|
| 91 | <th></th> |
|---|
| [1142] | 92 | <td><input class="submit" type="submit" name="form_submit" value="{"Re-send"|_}"{* onclick="if (validateForm(this.form)) this.form.submit()" *}></td> |
|---|
| [960] | 93 | </tr> |
|---|
| 94 | </table> |
|---|
| [347] | 95 | </form> |
|---|
| [960] | 96 | </fieldset> |
|---|
| 97 | |
|---|
| [347] | 98 | <div id="help"> |
|---|
| [1018] | 99 | {"Please enter your username and the validation email will be resent to your email address"|_}. |
|---|
| [347] | 100 | </div> |
|---|
| [960] | 101 | |
|---|
| [1018] | 102 | <div id="form_errormsg" class="errormsg"> |
|---|
| 103 | {if $error} |
|---|
| 104 | {$error} |
|---|
| 105 | {/if} |
|---|
| 106 | </div> |
|---|
| 107 | |
|---|
| [1142] | 108 | {* If no one steps-in to maintain this, it will be removed benoitg 2006-11-26 |
|---|
| 109 | |
|---|
| 110 | <script type="text/javascript"> |
|---|
| [1018] | 111 | <!-- |
|---|
| 112 | {literal} |
|---|
| 113 | var messages = { |
|---|
| 114 | {/literal} |
|---|
| 115 | username_required: "{'Username is required.'|_}", |
|---|
| 116 | username_invalid: "{'Username contains invalid characters.'|_}", |
|---|
| 117 | {literal} |
|---|
| 118 | }; |
|---|
| 119 | |
|---|
| 120 | document.getElementById("form_username").focus(); |
|---|
| 121 | |
|---|
| 122 | function validateForm(form) { |
|---|
| 123 | if (!isValidUsername(form.username)) { |
|---|
| 124 | if (isEmpty(form.username)) |
|---|
| 125 | document.getElementById("form_errormsg").innerHTML = messages.username_required; |
|---|
| 126 | else |
|---|
| 127 | document.getElementById("form_errormsg").innerHTML = messages.username_invalid; |
|---|
| 128 | |
|---|
| 129 | return false; |
|---|
| 130 | } |
|---|
| 131 | |
|---|
| 132 | return true; |
|---|
| 133 | } |
|---|
| 134 | {/literal} |
|---|
| 135 | //--> |
|---|
| [1142] | 136 | </script> *} |
|---|
| [960] | 137 | {* |
|---|
| 138 | END section MAINCONTENT |
|---|
| 139 | *} |
|---|
| [1018] | 140 | {/if} |
|---|