3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename activate.php ##
7 ## Developed by: Dixie ##
8 ## License: TravianX Project ##
9 ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
11 #################################################################################
13 include('GameEngine/Account.php');
15 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
18 <title
><?php
echo SERVER_NAME
; ?
></title
>
19 <link REL
="shortcut icon" HREF
="favicon.ico"/>
20 <meta name
="content-language" content
="en" />
21 <meta http
-equiv
="cache-control" content
="max-age=0" />
22 <meta http
-equiv
="imagetoolbar" content
="no" />
23 <meta http
-equiv
="content-type" content
="text/html; charset=UTF-8" />
24 <script src
="mt-core.js?0faaa" type
="text/javascript"></script
>
25 <script src
="mt-more.js?0faaa" type
="text/javascript"></script
>
26 <script src
="unx.js?0faaa" type
="text/javascript"></script
>
27 <script src
="new.js?0faaa" type
="text/javascript"></script
>
28 <link href
="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel
="stylesheet" type
="text/css" />
29 <link href
="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel
="stylesheet" type
="text/css" />
30 <link href
="<?php echo GP_LOCATE ?>travian.css?f4b7c" rel
="stylesheet" type
="text/css" />
31 <link href
="<?php echo GP_LOCATE ?>lang/en/lang.css" rel
="stylesheet" type
="text/css" />
34 <body
class="v35 ie ie7" onload
="initCounter()">
37 <div id
="dynamic_header">
39 <div id
="header"></div
>
41 <?php
include("Templates/menu.tpl"); ?
>
42 <div id
="content" class="activate">
44 if(isset($_GET['e'])) {
47 include("Templates/activate/delete.tpl");
50 include("Templates/activate/activated.tpl");
53 include("Templates/activate/cantfind.tpl");
56 } else if(isset($_GET['id']) && isset($_GET['c'])) {
57 $c=$database->getActivateField($_GET['id'],"email",0);
58 if($_GET['c'] == $generator->encodeStr($c,5)){
59 include("Templates/activate/delete.tpl");
60 } else { include("Templates/activate/activate.tpl"); }
62 include("Templates/activate/activate.tpl");
65 /*if(isset($_GET['e'])) {
68 include("Templates/activate/delete.tpl");
71 include("Templates/activate/activated.tpl");
74 include("Templates/activate/cantfind.tpl");
78 if(isset($_GET['id']) && isset($_GET['c']) && $_GET['c'] == $generator->encodeStr($_COOKIE['COOKEMAIL'],5)) {
79 include("Templates/activate/delete.tpl");
81 if(isset($_GET['id']) && !isset($_GET['c']) && !isset($_GET['e'])) {
82 include("Templates/activate/activate.tpl");
84 else if(isset($_GET['usr']) && !isset($_GET['c']) && !isset($_GET['e'])) {
85 $_COOKIE['COOKUSR'] = $_GET['usr'];
86 $_COOKIE['COOKEMAIL'] = $database->getUserField($_GET['usr'],"email",1);
87 include("Templates/activate/activate.tpl");
89 if(isset($_GET['npw'])) {
96 <div id
="side_info" class="outgame">
99 <div
class="clear"></div
>
102 <div
class="footer-stopper outgame"></div
>
103 <div
class="clear"></div
>
105 <?php
include("Templates/footer.tpl"); ?
>