3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename login.php ##
7 ## Developed by: Dzoki ##
8 ## License: TravianX Project ##
9 ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
11 #################################################################################
14 error_reporting(E_ALL
);
15 include("GameEngine/Account.php");
16 if(isset($_GET['del_cookie'])) {
17 setcookie("COOKUSR","",time()-3600*24,"/");
18 header("Location: login.php");
20 if(!isset($_COOKIE['COOKUSR'])) {
21 $_COOKIE['COOKUSR'] = "";
24 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
27 <title
><?php
echo SERVER_NAME
; ?
></title
>
28 <link REL
="shortcut icon" HREF
="favicon.ico"/>
29 <meta name
="content-language" content
="en" />
30 <meta http
-equiv
="cache-control" content
="max-age=0" />
31 <meta http
-equiv
="imagetoolbar" content
="no" />
32 <meta http
-equiv
="content-type" content
="text/html; charset=UTF-8" />
33 <script src
="mt-core.js?0faaa" type
="text/javascript"></script
>
34 <script src
="mt-more.js?0faaa" type
="text/javascript"></script
>
35 <script src
="unx.js?0faaa" type
="text/javascript"></script
>
36 <script src
="new.js?0faaa" type
="text/javascript"></script
>
37 <link href
="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel
="stylesheet" type
="text/css" />
38 <link href
="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel
="stylesheet" type
="text/css" />
39 <link href
="<?php echo GP_LOCATE ?>travian.css?f4b7c" rel
="stylesheet" type
="text/css" />
40 <link href
="<?php echo GP_LOCATE ?>lang/en/lang.css" rel
="stylesheet" type
="text/css" />
43 <body
class="v35 ie ie7" onload
="initCounter()">
46 <div id
="dynamic_header">
48 <div id
="header"></div
>
50 <?php
include("Templates/menu.tpl"); ?
>
52 <div id
="content" class="login">
54 <h1
><img
class="img_login" src
="img/x.gif" alt
="log in the game" /></h1
>
55 <h5
><img
class="img_u04" src
="img/x.gif" alt
="login" /></h5
>
56 <p
><?php
echo COOKIES
; ?
></p
>
58 <form method
="post" name
="snd" action
="login.php">
59 <input type
="hidden" name
="ft" value
="a4" />
61 <table cellpadding
="1" cellspacing
="1" id
="login_form">
64 <th
><?php
echo NAME
; ?
></th
>
65 <td
><input
class="text" type
="text" name
="user" value
="<?php echo $form->getDiff("user
",$_COOKIE['COOKUSR']); ?>" maxlength
="15" autocomplete
='off' /> <span
class="error"> <?php
echo $form->getError("user"); ?
></span
></td
>
68 <th
><?php
echo PASSWORD
; ?
></th
>
69 <td
><input
class="text" type
="password" name
="pw" value
="<?php echo $form->getValue("pw
");?>" maxlength
="20" autocomplete
='off' /> <span
class="error"><?php
echo $form->getError("pw"); ?
></span
></td
>
75 <!--<input type
="hidden" name
="e1d9d0c" value
="" />-->
76 <input type
="image" value
="login" name
="s1" onclick
="xy();" id
="btn_login" class="dynamic_img" src
="img/x.gif" alt
="login button" />
81 if ($form->getError("pw") == LOGIN_PW_ERROR
) {
82 echo "<p class=\"error_box\">
83 <span class=\"error\">".PW_FORGOTTEN
."</span><br>
85 <a href=\"activate.php?npw=71699\">".PW_GENERATE
."</a>
88 if($form->getError("activate") != "") {
89 echo "<p class=\"error_box\">
90 <span class=\"error\">".EMAIL_NOT_VERIFIED
."</span><br>
92 <a href=\"activate.php?usr=".$form->getError("activate")."\">".VERIFY_EMAIL
."</a>
97 <div id
="side_info" class="outgame">
99 if(NEWSBOX1
) { include("Templates/News/newsbox1.tpl"); }
100 if(NEWSBOX2
) { include("Templates/News/newsbox2.tpl"); }
101 if(NEWSBOX3
) { include("Templates/News/newsbox3.tpl"); }
105 <div
class="clear"></div
>
108 <div
class="footer-stopper outgame"></div
>
109 <div
class="clear"></div
>
111 <?php
include("Templates/footer.tpl"); ?
>