mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-30 23:27:14 +00:00
The first release of the refactored version
It's still a work in progress, there are a lot of things that will change in the final release
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<div id="content" class="activate">
|
||||
{if empty($del) and empty($activated)}
|
||||
{include file={$smarty.const.TEMPLATES_DIR}|cat:'account/activation/needToActivate.tpl'}
|
||||
{elseif !empty($activated)}
|
||||
{include file={$smarty.const.TEMPLATES_DIR}|cat:'account/activation/activated.tpl'}
|
||||
{else}
|
||||
{include file={$smarty.const.TEMPLATES_DIR}|cat:'account/activation/delete.tpl'}
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div id="content" class="activate">
|
||||
<h1>
|
||||
<img src="assets/img/x.gif" class="anmelden"
|
||||
alt="register for the game" />
|
||||
</h1>
|
||||
<h5>
|
||||
<img src="assets/img/x.gif" class="img_u05" alt="registration" />
|
||||
</h5>
|
||||
<p class="f9">Your account has been successfully activated.</p>
|
||||
<p class="f9">
|
||||
Follow this link to <a href="login.php">log in</a>
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,47 @@
|
||||
<div id="content" class="activate">
|
||||
<h1>
|
||||
<img src="assets/img/x.gif" class="anmelden" alt="register for the game">
|
||||
</h1>
|
||||
|
||||
<h6>No email received?</h6>
|
||||
In order to play Travian you need a valid email address to which the
|
||||
activation code can be send. There are exceptional cases when this
|
||||
email might not arrive.
|
||||
<p class="f10 e b">Following causes are possible:</p>
|
||||
<div class="f10">
|
||||
<ul>
|
||||
<li>Typos in the email address</li>
|
||||
<li>The email account`s storage limit is reached</li>
|
||||
<li>Wrong domain: There is e.g. no @aol.de, only @aol.com</li>
|
||||
<li>The email has been moved to the spam/junk folder</li>
|
||||
</ul>
|
||||
<br />
|
||||
<br />You can undo the registration and re-register with a <u>different
|
||||
email address</u>. Then the activation code will be send again
|
||||
</div>
|
||||
<form action="activate.php" method="POST">
|
||||
<input type="hidden" name="del" value="{$del}"/>
|
||||
<table>
|
||||
<tr class="top">
|
||||
<th>Nickname</th>
|
||||
<td class="Username">
|
||||
{$del}
|
||||
<span class="error">{$delError}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="btm">
|
||||
<th>Password</th>
|
||||
<td>
|
||||
<input class="text" type="password" name="Password" maxlength="20" value="{$Password}"/>
|
||||
<span class="error">{$PasswordError}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="btn">
|
||||
<button class="trav_buttons" id="btn_delete" value="deleteActivation" name="action">Delete</button>
|
||||
</p>
|
||||
</form>
|
||||
{if $del}
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,54 @@
|
||||
<div id="content" class="signup">
|
||||
{if $isServerStarted}
|
||||
{if empty($code) and !empty($activate)}
|
||||
<h1><img src="assets/img/x.gif" class="anmelden" alt="register for the game"></h1>
|
||||
<h5><img src="assets/img/x.gif" class="img_u05" alt="registration"/></h5>
|
||||
<p>
|
||||
Hello {$activate},
|
||||
<br /><br />
|
||||
The registration was successful. In the next few minutes you will receive an email with the access information.
|
||||
<br /><br />
|
||||
The email will be sent to following address: <span class="important">{$email}</span>
|
||||
</p>
|
||||
<p>In order to activate your account enter the code or click on the link in your email.</p>
|
||||
<div id="activation">
|
||||
<form action="activate.php" method="post">
|
||||
<p class="important">
|
||||
Activation code:
|
||||
</p>
|
||||
<input class="text" type="text" name="code" maxlength="10" />
|
||||
<p>
|
||||
<button id="btn_send" value="activate" name="action" class="trav_buttons"> Send </button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<div id="no_mail">
|
||||
<p>
|
||||
<a href="activate.php?del={$activate}"><span class="important">No email received?</span></a>
|
||||
</p>
|
||||
<p>
|
||||
Sometimes the email is moved to the spam folder. <br />For further help click <a href="activate.php?del={$activate}">here</a>
|
||||
</p>
|
||||
</div>
|
||||
{else}
|
||||
<div id="activation">
|
||||
<form action="activate.php" method="post">
|
||||
<p class="important">
|
||||
Activation code:
|
||||
</p>
|
||||
<input class="text" type="text" name="code" maxlength="10" value="{$code}"/>
|
||||
<p>
|
||||
<span class="error">{$codeError}</span>
|
||||
</p>
|
||||
<p>
|
||||
<button id="btn_send" value="activate" name="action" class="trav_buttons"> Send </button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
{/if}
|
||||
{else}
|
||||
<br/>
|
||||
<div style="text-align: center"><big>Activation Available in: </big></div>
|
||||
<div class="timer" id="activation_time">{$serverStartsIn}</div>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,97 @@
|
||||
{if $smarty.const.REG_OPEN}
|
||||
<div id="content" class="signup">
|
||||
|
||||
<h1><img src="assets/img/x.gif" class="anmelden" alt="register for the game" /></h1>
|
||||
<h5><img src="assets/img/x.gif" class="img_u05" alt="registration"/></h5>
|
||||
|
||||
<p>{$smarty.const.BEFORE_REGISTER}</p>
|
||||
|
||||
<form name="snd" method="post" action="anmelden.php">
|
||||
{if $Ref}
|
||||
<input type="hidden" name="Ref" value="{$Ref}">
|
||||
{/if}
|
||||
<table id="sign_input">
|
||||
<tbody>
|
||||
<tr class="top">
|
||||
<th>{$smarty.const.NICKNAME}</th>
|
||||
<td><input class="text" type="text" name="Username" value="{$Username}" maxlength="15" />
|
||||
<span class="error">{$UsernameError}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$smarty.const.EMAIL}</th>
|
||||
<td>
|
||||
<input class="text" type="text" name="Email" value="{$Email}" maxlength="30"/>
|
||||
<span class="error">{$EmailError}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$smarty.const.PASSWORD}</th>
|
||||
<td>
|
||||
<input class="text" type="password" name="Password" value="{$Password}" maxlength="100" />
|
||||
<span class="error">{$PasswordError}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table id="sign_select">
|
||||
<tbody>
|
||||
<tr class="top">
|
||||
<th><img src="assets/img/x.gif" class="img_u06" alt="choose tribe" /></th>
|
||||
<th colspan="2"><img src="assets/img/x.gif" class="img_u07" alt="starting position" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nat"><label><input class="radio" type="radio" name="Tribe" value="1" {if $Tribe == 1}checked{/if} /> {$smarty.const.ROMANS}</label></td>
|
||||
<td class="pos1"><label><input class="radio" type="radio" name="Sector" value="0" {if $Sector == 0 and isset($Sector)}checked{/if}/> {$smarty.const.RANDOM}</label></td>
|
||||
<td class="pos2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label><input class="radio" type="radio" name="Tribe" value="2" {if $Tribe == 2}checked{/if}/> {$smarty.const.TEUTONS}</label></td>
|
||||
<td><label><input class="radio" type="radio" name="Sector" value="1" {if $Sector == 1}checked{/if}> {$smarty.const.NW} <b>(-|+)</b> </label></td>
|
||||
<td><label><input class="radio" type="radio" name="Sector" value="2" {if $Sector == 2}checked{/if} /> {$smarty.const.NE} <b>(+|+)</b></label></td>
|
||||
</tr>
|
||||
<tr class="btm">
|
||||
<td><label><input class="radio" type="radio" name="Tribe" value="3" {if $Tribe == 3}checked{/if}/> {$smarty.const.GAULS}</label></td>
|
||||
<td><label><input class="radio" type="radio" name="Sector" value="3" {if $Sector == 3}checked{/if}/> {$smarty.const.SW} <b>(-|-)</b></label></td>
|
||||
<td><label><input class="radio" type="radio" name="Sector" value="4" {if $Sector == 4}checked{/if}/> {$smarty.const.SE} <b>(+|-)</b></label></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<ul class="important">
|
||||
{if !empty($TribeError)}
|
||||
<li>{$TribeError}</li>
|
||||
{/if}
|
||||
{if !empty($SectorError)}
|
||||
<li>{$SectorError}</li>
|
||||
{/if}
|
||||
{if !empty($RefError)}
|
||||
<li>{$RefError}</li>
|
||||
{/if}
|
||||
{if !empty($RulesError)}
|
||||
<li>{$RulesError}</li>
|
||||
{/if}
|
||||
</ul>
|
||||
<p>
|
||||
<input class="check" type="checkbox" name="Rules" value="1" {if $Rules}checked{/if}/>{$smarty.const.ACCEPT_RULES}</p>
|
||||
|
||||
<p class="btn">
|
||||
<button value="register" name="action" id="btn_signup" class="trav_buttons"> {$smarty.const.REG} </button>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<p class="info">{$smarty.const.ONE_PER_SERVER}</p>
|
||||
</div>
|
||||
|
||||
{else}
|
||||
|
||||
<div id="content" class="signup">
|
||||
|
||||
<h1><img src="assets/img/x.gif" class="anmelden" alt="register for the game" /></h1>
|
||||
<h5><img src="assets/img/x.gif" class="img_u05" alt="registration"/></h5>
|
||||
|
||||
<p>{$smarty.const.REGISTER_CLOSED}</p>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
@@ -0,0 +1,95 @@
|
||||
<div id="content" class="login">
|
||||
<h1>
|
||||
<img class="img_login" src="assets/img/x.gif" alt="log in the game" />
|
||||
</h1>
|
||||
|
||||
{if $smarty.const.COMMENCE > $smarty.now}
|
||||
|
||||
<p>
|
||||
<font color="red" size="6">{$smarty.const.NOT_OPENED_YET}</font>
|
||||
</p>
|
||||
|
||||
{else}
|
||||
|
||||
<h5>
|
||||
<img class="img_u04" src="assets/img/x.gif" alt="login" />
|
||||
</h5>
|
||||
<p>{$smarty.const.COOKIES}</p>
|
||||
|
||||
{if !$isServerStarted} <br />
|
||||
<div style="text-align: center; font-size: 25px">{$smarty.const.SERVER_NAME}
|
||||
will start in:</div>
|
||||
<div class="timer" id="activation_time">{$serverStartsIn}</div>
|
||||
|
||||
{else}
|
||||
|
||||
<form method="post" action="login.php">
|
||||
{literal}
|
||||
<script>
|
||||
Element.implement({
|
||||
//imgid: if an arrow belongs to the link this can be "opened"
|
||||
showOrHide: function(imgid) {
|
||||
//insert
|
||||
if (this.getStyle('display') == 'none')
|
||||
{
|
||||
if (imgid != '')
|
||||
{
|
||||
$(imgid).className = 'open';
|
||||
}
|
||||
}
|
||||
//hide
|
||||
else
|
||||
{
|
||||
if (imgid != '')
|
||||
{
|
||||
$(imgid).className = 'close';
|
||||
}
|
||||
}
|
||||
this.toggleClass('hide');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<table id="login_form">
|
||||
<tbody>
|
||||
<tr class="top">
|
||||
<th>{$smarty.const.NAME}</th>
|
||||
<td><input class="text" type="text" name="Username"
|
||||
value="{if isset($Username)}{$Username}{else}{$UsernameCookie}{/if}"
|
||||
maxlength="30" /> <span class="error">{$UsernameError}</span></td>
|
||||
</tr>
|
||||
<tr class="btm">
|
||||
<th>{$smarty.const.PASSWORD}</th>
|
||||
<td><input class="text" type="password" name="Password"
|
||||
value="{$Password}" maxlength="100" /> <span class="error">{$PasswordError}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p class="btn">
|
||||
<button value="login" name="action" onclick="xy();" id="btn_login"
|
||||
class="trav_buttons">Login</button>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if !empty($Password) and !empty($Username) and !empty($PasswordError)}
|
||||
<p class="error_box">
|
||||
<span class="error">{$smarty.const.PW_FORGOTTEN}</span><br>{$smarty.const.PW_REQUEST}<br>
|
||||
<a href="password.php">{$smarty.const.PW_GENERATE}</a>
|
||||
</p>
|
||||
{elseif !empty($EmailError)}
|
||||
<p class="error_box">
|
||||
<span class="error">{$EmailError}</span><br>{$smarty.const.EMAIL_FOLLOW}<br>
|
||||
<a href="activate.php?usr={$Username}">{$smarty.const.VERIFY_EMAIL}</a>
|
||||
</p>
|
||||
{elseif !empty($VacationError)}
|
||||
<p class="error_box">
|
||||
<span class="error">{$VacationError}</span>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div id="content" class="logout">
|
||||
<h1>{$smarty.const.LOGOUT_SUCCESSFUL}</h1>
|
||||
<img class="roman" src="assets/img/x.gif"/>
|
||||
<p>{$smarty.const.LOGOUT_THANK_YOU}</p>
|
||||
<p>{$smarty.const.LOGOUT_OTHER_PEOPLE_WARNING}<br />
|
||||
<a href="login.php?deleteCookies">» {$smarty.const.LOGOUT_DELETE_COOKIES}</a></p>
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
<div id="content" class="activate">
|
||||
|
||||
<h1><img src="assets/img/x.gif" class="passwort" alt="{$smarty.const.NEW_PASSWORD}" /></h1>
|
||||
<h5><img src="assets/img/x.gif" class="img_u22" alt="{$smarty.const.FORGOTTEN_PASSWORD}" /></h5>
|
||||
{if $password == 'sent'}
|
||||
<p>{$smarty.const.PASSWORD_SENT}</p>
|
||||
{elseif $password == 'error'}
|
||||
<p>
|
||||
{$smarty.const.NEW_PASSWORD_ERROR}
|
||||
</p>
|
||||
{elseif $password == 'success'}
|
||||
<p>
|
||||
{$smarty.const.PASSWORD_SET_SUCCESS}
|
||||
</p>
|
||||
{else}
|
||||
<p>{$smarty.const.NEW_PASSWORD_DESC}</p>
|
||||
<form action="password.php" method="post">
|
||||
<p>
|
||||
<b>{$smarty.const.EMAIL}</b><br />
|
||||
<input class="text" type="text" name="Email" value="{$Email}" maxlength="30" />
|
||||
<span class="error">{$EmailError}</span>
|
||||
</p>
|
||||
<p>
|
||||
<button value="generateNewPassword" name="action" class="trav_buttons" id="btn_ok"> OK </button>
|
||||
</p>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
Reference in New Issue
Block a user