mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 03:44:23 +00:00
update install and email activation + add friends inviting system
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<div style="margin-top: 50px;">
|
||||
<center>
|
||||
<h1>404 - File not found</h1>
|
||||
<img src="../../gpack/travian_default/img/misc/404.gif" title="Not Found" alt="Not Found"><br />
|
||||
<img src="../../<?php echo GP_LOCATE; ?>img/misc/404.gif" title="Not Found" alt="Not Found"><br />
|
||||
<p>We looked 404 times already but can't find anything, Not even an X marking the spot.</p>
|
||||
<p>This system is not complete yet. So the page probably does not exist.</p><br>
|
||||
</center>
|
||||
|
||||
@@ -19,7 +19,7 @@ if(isset($id))
|
||||
$varray = $database->getProfileVillages($id);
|
||||
$varmedal = $database->getProfileMedal($id); ?>
|
||||
|
||||
<link href="../gpack/travian_default/lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
input.dynamic_img, img.dynamic_img
|
||||
{
|
||||
@@ -29,7 +29,7 @@ if(isset($id))
|
||||
input#btn_send
|
||||
{
|
||||
width: 97px;
|
||||
background-image: url(../gpack/travian_default/lang/en/b/send.gif);
|
||||
background-image: url(../<?php echo GP_LOCATE; ?>lang/en/b/send.gif);
|
||||
}
|
||||
div.messages div#write_content #heading input
|
||||
{
|
||||
@@ -43,12 +43,12 @@ if(isset($id))
|
||||
<div id="content" class="messages">
|
||||
<div id="read_head" class="msg_head"></div>
|
||||
<div id="read_content" class="msg_content">
|
||||
<img src="../../gpack/travian_default/lang/en/msg/block_bg24b.gif" id="label" class="read" alt="">
|
||||
<img src="../../<?php echo GP_LOCATE; ?>lang/en/msg/block_bg24b.gif" id="label" class="read" alt="">
|
||||
|
||||
<div id="heading">
|
||||
<input type="hidden" name="uid" value="<?php echo $id; ?>">
|
||||
<div><a href="admin.php?p=player&uid=<?php echo $user['id']; ?>"><?php echo $user['username']; ?></a></div>
|
||||
<div><input type="text" value="Message From Admin" name="topic" id="subject" value="" maxlength="35" style="background-image: url('../gpack/travian_default/img/msg/underline.gif'); background-position: left -2px; background-repeat: repeat-x; outline: none; border: medium none; width: 267px; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"></div>
|
||||
<div><input type="text" value="Message From Admin" name="topic" id="subject" value="" maxlength="35" style="background-image: url('../<?php echo GP_LOCATE; ?>img/msg/underline.gif'); background-position: left -2px; background-repeat: repeat-x; outline: none; border: medium none; width: 267px; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"></div>
|
||||
</div>
|
||||
<div id="time">
|
||||
<div><?php echo date('d.m.y'); ?></div>
|
||||
@@ -57,7 +57,7 @@ if(isset($id))
|
||||
<div class="clear"></div>
|
||||
<div class="line"></div>
|
||||
<div class="message" style="margin-top: 10px;">
|
||||
<textarea id="message" name="message" style="background-image: url('../gpack/travian_default/img/msg/underline.gif'); background-repeat: repeat; font-size: 12px; border: medium none; height: 258px; line-height: 16px; width: 412px; font-family: Verdana,Arial,Helvetica,sans-serif;">Message Here</textarea>
|
||||
<textarea id="message" name="message" style="background-image: url('../<?php echo GP_LOCATE; ?>img/msg/underline.gif'); background-repeat: repeat; font-size: 12px; border: medium none; height: 258px; line-height: 16px; width: 412px; font-family: Verdana,Arial,Helvetica,sans-serif;">Message Here</textarea>
|
||||
</div>
|
||||
<p class="btn">
|
||||
<input type="image" value="submit" name="s1" id="btn_send" class="dynamic_img clicked" src="../img/admin/x.gif" alt="send" tabindex="4;">
|
||||
|
||||
@@ -65,11 +65,11 @@ error_reporting(0);
|
||||
<tr>
|
||||
<td><a href=\"?p=player&uid=".$uid."\">".$active[$i]['username']." [".$active[$i]['access']."]</a></td>
|
||||
<td>".date("H:i:s",$active[$i]['timestamp'])."</td>
|
||||
<td><img src=\"../../gpack/travian_default/img/u/".$img."9.gif\" title=\"$tribe\" alt=\"$tribe\"></td>
|
||||
<td><img src=\"../../<?php echo GP_LOCATE; ?>img/u/".$img."9.gif\" title=\"$tribe\" alt=\"$tribe\"></td>
|
||||
<td>".$totalpop."</td>
|
||||
<td>".count($varray)."</td>
|
||||
<td><img src=\"../img/admin/gold.gif\" class=\"gold\" alt=\"Gold\" title=\"This user has: ".$active[$i]['gold']." gold\"/> ".$active[$i]['gold']."</td>
|
||||
<td><img src=\"../gpack/travian_default/img/a/online1.gif\"></td>
|
||||
<td><img src=\"../<?php echo GP_LOCATE; ?>img/a/online1.gif\"></td>
|
||||
</tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -190,104 +190,104 @@ if(isset($id))
|
||||
else if($user['tribe'] == 4){ ?>
|
||||
</tr></thead><tbody>
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/31.gif"></img> <?php echo U31; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/31.gif"></img> <?php echo U31; ?></td>
|
||||
<td class="addTroops"><input class="addTroops" name="u31" id="u31" value="<?php echo $units['u31']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u31']; ?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/32.gif"></img> <?php echo U32; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/32.gif"></img> <?php echo U32; ?></td>
|
||||
<td><input class="addTroops" name="u32" id="u32" value="<?php echo $units['u32']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u32']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/33.gif"></img> <?php echo U33; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/33.gif"></img> <?php echo U33; ?></td>
|
||||
<td><input class="addTroops" name="u33" id="u33" value="<?php echo $units['u33']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u33']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/34.gif"></img> <?php echo U34; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/34.gif"></img> <?php echo U34; ?></td>
|
||||
<td><input class="addTroops" name="u34" id="u34" value="<?php echo $units['u34']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u34']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/35.gif"></img> <?php echo U35; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/35.gif"></img> <?php echo U35; ?></td>
|
||||
<td><input class="addTroops" name="u35" id="u35" value="<?php echo $units['u35']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u35']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/36.gif"></img> <?php echo U36; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/36.gif"></img> <?php echo U36; ?></td>
|
||||
<td><input class="addTroops" name="u36" id="u36" value="<?php echo $units['u36']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u36']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/37.gif"></img> <?php echo U37; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/37.gif"></img> <?php echo U37; ?></td>
|
||||
<td><input class="addTroops" name="u37" id="u37" value="<?php echo $units['u37']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u37']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/38.gif"></img> <?php echo U38; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/38.gif"></img> <?php echo U38; ?></td>
|
||||
<td><input class="addTroops" name="u38" id="u38" value="<?php echo $units['u38']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u38']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/39.gif"></img> <?php echo U39; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/39.gif"></img> <?php echo U39; ?></td>
|
||||
<td><input class="addTroops" name="u39" id="u39" value="<?php echo $units['u39']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u39']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/40.gif"></img> <?php echo U40; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/40.gif"></img> <?php echo U40; ?></td>
|
||||
<td><input class="addTroops" name="u40" id="u40" value="<?php echo $units['u40']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u40']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
else if($user['tribe'] == 5){ ?>
|
||||
</tr></thead><tbody>
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/41.gif"></img> <?php echo U41; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/41.gif"></img> <?php echo U41; ?></td>
|
||||
<td class="addTroops"><input class="addTroops" name="u41" id="u41" value="<?php echo $units['u41']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u41']; ?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/42.gif"></img> <?php echo U42; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/42.gif"></img> <?php echo U42; ?></td>
|
||||
<td><input class="addTroops" name="u42" id="u42" value="<?php echo $units['u42']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u42']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/43.gif"></img> <?php echo U43; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/43.gif"></img> <?php echo U43; ?></td>
|
||||
<td><input class="addTroops" name="u43" id="u43" value="<?php echo $units['u43']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u43']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/44.gif"></img> <?php echo U44; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/44.gif"></img> <?php echo U44; ?></td>
|
||||
<td><input class="addTroops" name="u44" id="u44" value="<?php echo $units['u44']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u44']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/45.gif"></img> <?php echo U45; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/45.gif"></img> <?php echo U45; ?></td>
|
||||
<td><input class="addTroops" name="u45" id="u45" value="<?php echo $units['u45']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u45']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/46.gif"></img> <?php echo U46; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/46.gif"></img> <?php echo U46; ?></td>
|
||||
<td><input class="addTroops" name="u46" id="u46" value="<?php echo $units['u46']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u46']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/47.gif"></img> <?php echo U47; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/47.gif"></img> <?php echo U47; ?></td>
|
||||
<td><input class="addTroops" name="u47" id="u47" value="<?php echo $units['u47']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u47']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/48.gif"></img> <?php echo U48; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/48.gif"></img> <?php echo U48; ?></td>
|
||||
<td><input class="addTroops" name="u48" id="u48" value="<?php echo $units['u48']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u48']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/49.gif"></img> <?php echo U49; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/49.gif"></img> <?php echo U49; ?></td>
|
||||
<td><input class="addTroops" name="u49" id="u49" value="<?php echo $units['u49']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u49']; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="addTroops"><img src="../gpack/travian_default/img/u/50.gif"></img> <?php echo U50; ?></td>
|
||||
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/50.gif"></img> <?php echo U50; ?></td>
|
||||
<td><input class="addTroops" name="u50" id="u50" value="<?php echo $units['u50']; ?>" maxlength="10"> <font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u50']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@@ -271,8 +271,8 @@ if($_GET['aid'])
|
||||
if($row['type'] == 1) { $type = 'Confederation Pact'; }
|
||||
if($row['type'] == 2) { $type = 'Non Agression Pact'; }
|
||||
if($row['type'] == 3) { $type = 'Declaration of War'; }
|
||||
if($row['accepted'] == 0) { $accepted = "<img src=\"../../gpack/travian_default/img/a/del.gif\">"; }
|
||||
if($row['accepted'] ==1) { $accepted = "<img src=\"../../gpack/travian_default/img/a/acc.gif\">"; }
|
||||
if($row['accepted'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
|
||||
if($row['accepted'] ==1) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/acc.gif\">"; }
|
||||
|
||||
$ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2'].""));
|
||||
echo '
|
||||
@@ -306,8 +306,8 @@ if($_GET['aid'])
|
||||
if($row['type'] == 1) { $type = 'Confederation Pact'; }
|
||||
if($row['type'] == 2) { $type = 'Non Agression Pact'; }
|
||||
if($row['type'] == 3) { $type = 'Declaration of War'; }
|
||||
if($row['accepted'] == 0) { $accepted = "<img src=\"../../gpack/travian_default/img/a/del.gif\">"; }
|
||||
if($row['accepted'] ==1) { $accepted = "<img src=\"../../gpack/travian_default/img/a/acc.gif\">"; }
|
||||
if($row['accepted'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
|
||||
if($row['accepted'] ==1) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/acc.gif\">"; }
|
||||
|
||||
$ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli1'].""));
|
||||
echo '
|
||||
@@ -342,8 +342,8 @@ if($_GET['aid'])
|
||||
if($row['type'] == 1) { $type = 'Confederation Pact'; }
|
||||
if($row['type'] == 2) { $type = 'Non Agression Pact'; }
|
||||
if($row['type'] == 3) { $type = 'Declaration of War'; }
|
||||
if($row['accepted'] == 0) { $accepted = "<img src=\"../../gpack/travian_default/img/a/del.gif\">"; }
|
||||
if($row['accepted'] == 1) { $accepted = "<img src=\"../../gpack/travian_default/img/a/acc.gif\">"; }
|
||||
if($row['accepted'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
|
||||
if($row['accepted'] == 1) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/acc.gif\">"; }
|
||||
|
||||
$ally1 = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli1'].""));
|
||||
$ally2 = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2'].""));
|
||||
@@ -351,7 +351,7 @@ if($_GET['aid'])
|
||||
<tr>
|
||||
<td><a href="admin.php?p=alliance&aid='.$row['alli1'].'">'.$ally1['tag'].'</a> & <a href="admin.php?p=alliance&aid='.$row['alli2'].'">'.$ally2['tag'].'</a></td>
|
||||
<td>'.$type.'</td>
|
||||
<td><img src="../../gpack/travian_default/img/a/acc.gif"></td>
|
||||
<td><img src="../../<?php echo GP_LOCATE; ?>img/a/acc.gif"></td>
|
||||
</tr>';
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -48,9 +48,9 @@
|
||||
<td>$rank</td>
|
||||
<td>$week</td>
|
||||
<td>$points</td>
|
||||
<td><img src=\"../gpack/travian_default/img/t/".$medal['img'].".jpg\"></td>
|
||||
<td><img src=\"../<?php echo GP_LOCATE; ?>img/t/".$medal['img'].".jpg\"></td>
|
||||
<td>
|
||||
<input type=\"image\" name=\"medalid\" value=\"".$medal['id']."\" style=\"background-image: url('../gpack/travian_default/img/a/del.gif'); height: 12px; width: 12px;\" src=\"../gpack/travian_default/img/a/x.gif\">
|
||||
<input type=\"image\" name=\"medalid\" value=\"".$medal['id']."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\">
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
@@ -80,7 +80,7 @@
|
||||
<form action="../GameEngine/Admin/Mods/delallymedalbyaid.php" method="POST">
|
||||
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
|
||||
<input type="hidden" name="aid" value="<?php echo $_GET['aid']; ?>">
|
||||
<input type="image" name="allyid" value="<?php echo $id; ?>" style="background-image: url('../gpack/travian_default/img/a/del.gif'); height: 12px; width: 12px;" src="../gpack/travian_default/img/a/x.gif">
|
||||
<input type="image" name="allyid" value="<?php echo $id; ?>" style="background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;" src="../<?php echo GP_LOCATE; ?>img/a/x.gif">
|
||||
</form>
|
||||
</td>
|
||||
</tbody>
|
||||
|
||||
@@ -80,7 +80,7 @@ $nummedals = mysql_num_rows($sql);
|
||||
echo "<tr>
|
||||
<td>$newweek</td>
|
||||
<td>$tot</td>
|
||||
<td><input type=\"image\" name=\"deleteweek\" value=\"".$newweek."\" style=\"background-image: url('../gpack/travian_default/img/a/del.gif'); height: 12px; width: 12px;\" src=\"../gpack/travian_default/img/a/x.gif\"></td>";
|
||||
<td><input type=\"image\" name=\"deleteweek\" value=\"".$newweek."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\"></td>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
@@ -139,7 +139,7 @@ $nummedals = mysql_num_rows($sql);
|
||||
<tr>
|
||||
<td>$i</td>
|
||||
<td>[#$bb]</td>
|
||||
<td><img src=\"../../gpack/travian_default/img/t/".$row['img'].".jpg\"></td>
|
||||
<td><img src=\"../../<?php echo GP_LOCATE; ?>img/t/".$row['img'].".jpg\"></td>
|
||||
<td>$alliance</td>
|
||||
<td>$rank</td>
|
||||
<td>$week</td>
|
||||
|
||||
@@ -80,7 +80,7 @@ $nummedals = mysql_num_rows($sql);
|
||||
$sql = mysql_query("SELECT * FROM ".TB_PREFIX."medal WHERE week = $newweek");
|
||||
$tot = mysql_num_rows($sql);
|
||||
|
||||
echo "<tr><td>$newweek</td><td>$tot</td><td><input type=\"image\" name=\"medalweek\" value=\"".$newweek."\" style=\"background-image: url('../gpack/travian_default/img/a/del.gif'); height: 12px; width: 12px;\" src=\"../gpack/travian_default/img/a/x.gif\"></td>";
|
||||
echo "<tr><td>$newweek</td><td>$tot</td><td><input type=\"image\" name=\"medalweek\" value=\"".$newweek."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\"></td>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
@@ -152,7 +152,7 @@ $nummedals = mysql_num_rows($sql);
|
||||
<tr>
|
||||
<td>$i</td>
|
||||
<td>[#$bb]</td>
|
||||
<td><img src=\"../../gpack/travian_default/img/t/".$row['img'].".jpg\"></td>
|
||||
<td><img src=\"../../<?php echo GP_LOCATE; ?>img/t/".$row['img'].".jpg\"></td>
|
||||
<td>$player</td>
|
||||
<td>$rank</td>
|
||||
<td>$week</td>
|
||||
|
||||
@@ -19,7 +19,7 @@ $fdata = $database->getResourceLevel($village['wref']);
|
||||
if(isset($id))
|
||||
{
|
||||
include("search2.tpl"); ?>
|
||||
<link href="../gpack/travian_default/lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<form action="../GameEngine/Admin/Mods/editResources.php" method="POST">
|
||||
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
|
||||
<input type="hidden" name="did" id="did" value="<?php echo $_GET['did']; ?>">
|
||||
|
||||
@@ -19,7 +19,7 @@ $fdata = $database->getResourceLevel($village['wref']);
|
||||
if(isset($id))
|
||||
{
|
||||
include("search2.tpl"); ?>
|
||||
<link href="../gpack/travian_default/lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<form action="../GameEngine/Admin/Mods/editBuildings.php" method="POST">
|
||||
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
|
||||
<input type="hidden" name="id" value="<?php echo $_GET['did']; ?>" />
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<img src="../img/admin/admin.gif" width="468" height="60" border="0">
|
||||
</div>
|
||||
|
||||
<img src="../gpack/travian_default/lang/en/t1/login.gif">
|
||||
<img src="../<?php echo GP_LOCATE; ?>lang/en/t1/login.gif">
|
||||
|
||||
<form method="post" action="admin.php">
|
||||
<input type="hidden" name="action" value="login">
|
||||
@@ -48,5 +48,5 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</p>
|
||||
<img align="right" src="../gpack/travian_default/img/new/background_plus.png" width="500">
|
||||
<img align="right" src="../<?php echo GP_LOCATE; ?>img/new/background_plus.png" width="500">
|
||||
</form>
|
||||
@@ -12,7 +12,7 @@
|
||||
<style>
|
||||
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
|
||||
</style>
|
||||
<link href="../gpack/travian_default/lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<table id="member" style="width:225px">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
$msg = $database->getMessage($_GET['nid'],3);;
|
||||
if($msg)
|
||||
{ ?>
|
||||
<link href="../gpack/travian_default/lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<link href="../gpack/travian_default/lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<link href="../gpack/travian_default/travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||
<link href="../gpack/travian_default/lang/en/lang.css?e21d2" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?e21d2" rel="stylesheet" type="text/css">
|
||||
|
||||
|
||||
<br />
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<td>Give how much Gold?</td>
|
||||
<td>
|
||||
<input class="give_gold" name="gold" value="0">
|
||||
<input type="image" src="../gpack/travian_default/img/new/tick.png" value="submit">
|
||||
<input type="image" src="../<?php echo GP_LOCATE; ?>img/new/tick.png" value="submit">
|
||||
<a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a></td>
|
||||
</tr>
|
||||
</form><?php
|
||||
@@ -118,7 +118,7 @@
|
||||
{
|
||||
$tsdiffact = $datetime - $now;
|
||||
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
|
||||
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['protect']+3600*2).'">';
|
||||
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['protect']+3600*2).'">';
|
||||
echo "<font color=\"blue\"> $timetoecho</font>";
|
||||
}
|
||||
}
|
||||
@@ -172,7 +172,7 @@
|
||||
<td>Add how many CP?</td>
|
||||
<td>
|
||||
<input class="give_gold" name="cp" value="0">
|
||||
<input type="image" src="../gpack/travian_default/img/new/tick.png" value="submit">
|
||||
<input type="image" src="../<?php echo GP_LOCATE; ?>img/new/tick.png" value="submit">
|
||||
<a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -53,9 +53,9 @@
|
||||
<td>$rank</td>
|
||||
<td>$week</td>
|
||||
<td>$points</td>
|
||||
<td><img src=\"../gpack/travian_default/img/t/".$medal['img'].".jpg\"></td>
|
||||
<td><img src=\"../<?php echo GP_LOCATE; ?>img/t/".$medal['img'].".jpg\"></td>
|
||||
<td>
|
||||
<input type=\"image\" name=\"medalid\" value=\"".$medal['id']."\" style=\"background-image: url('../gpack/travian_default/img/a/del.gif'); height: 12px; width: 12px;\" src=\"../gpack/travian_default/img/a/x.gif\">
|
||||
<input type=\"image\" name=\"medalid\" value=\"".$medal['id']."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\">
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
@@ -84,7 +84,7 @@
|
||||
<td>
|
||||
<form action="../GameEngine/Admin/Mods/deletemedalbyuser.php" method="POST">
|
||||
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
|
||||
<input type="image" name="userid" value="<?php echo $id; ?>" style="background-image: url('../gpack/travian_default/img/a/del.gif'); height: 12px; width: 12px;" src="../gpack/travian_default/img/a/x.gif">
|
||||
<input type="image" name="userid" value="<?php echo $id; ?>" style="background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;" src="../<?php echo GP_LOCATE; ?>img/a/x.gif">
|
||||
</form>
|
||||
</td>
|
||||
</tbody>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
{
|
||||
$tsdiffact = $datetime - $now;
|
||||
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
|
||||
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['plus']+3600*2).'">';
|
||||
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['plus']+3600*2).'">';
|
||||
echo "<font color=\"blue\"> $timetoecho</font>";
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@
|
||||
{
|
||||
$tsdiffact = $datetime - $now;
|
||||
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
|
||||
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b1']+3600*2).'">';
|
||||
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b1']+3600*2).'">';
|
||||
echo "<font color=\"blue\"> $timetoecho</font>";
|
||||
}
|
||||
}
|
||||
@@ -93,7 +93,7 @@
|
||||
{
|
||||
$tsdiffact = $datetime - $now;
|
||||
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
|
||||
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b2']+3600*2).'">';
|
||||
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b2']+3600*2).'">';
|
||||
echo "<font color=\"blue\"> $timetoecho</font>";
|
||||
}
|
||||
}
|
||||
@@ -131,7 +131,7 @@
|
||||
{
|
||||
$tsdiffact = $datetime - $now;
|
||||
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
|
||||
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b3']+3600*2).'">';
|
||||
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b3']+3600*2).'">';
|
||||
echo "<font color=\"blue\"> $timetoecho</font>";
|
||||
}
|
||||
}
|
||||
@@ -169,7 +169,7 @@
|
||||
{
|
||||
$tsdiffact = $datetime - $now;
|
||||
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
|
||||
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b4']+3600*2).'">';
|
||||
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b4']+3600*2).'">';
|
||||
echo "<font color=\"blue\"> $timetoecho</font>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ $result = $admin->search_village($_POST['s']);
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="5" style="background-image: url(../../gpack/travian_default/img/f/c4.gif);">
|
||||
<td colspan="5" style="background-image: url(../../<?php echo GP_LOCATE; ?>img/f/c4.gif);">
|
||||
<center>
|
||||
<font color="red">'.count($result).'</font> Villages Found "<font color="red">'.$_POST['s'].'</font>"
|
||||
</center>
|
||||
@@ -79,7 +79,7 @@ $result = $admin->search_village($_POST['s']);
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="5" style="background-image: url(../../gpack/travian_default/img/f/c4.gif);">
|
||||
<td colspan="5" style="background-image: url(../../<?php echo GP_LOCATE; ?>img/f/c4.gif);">
|
||||
<center>
|
||||
<font color="#9F9F90">No Villages Called</font> <font color="red">'.$_POST['s'].'</font>
|
||||
</center>
|
||||
|
||||
@@ -100,7 +100,7 @@ $users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users"
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><img src="../../gpack/travian_default/img/a/gold.gif" alt="Gold" title="Gold"> Gold</td>
|
||||
<td><img src="../../<?php echo GP_LOCATE; ?>img/a/gold.gif" alt="Gold" title="Gold"> Gold</td>
|
||||
<td><?php $gold = mysql_query("SELECT SUM(gold) AS sumofgold FROM ".TB_PREFIX."users"); $getgold=mysql_fetch_assoc($gold); echo $getgold['sumofgold']; ?></td>
|
||||
<td><?php $gold = mysql_query("SELECT SUM(gold) AS sumofgold FROM ".TB_PREFIX."users"); $getgold=mysql_fetch_assoc($gold); echo round($getgold['sumofgold'] / $users);?></td>
|
||||
</tr>
|
||||
@@ -115,7 +115,7 @@ $users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users"
|
||||
<?php
|
||||
for($i=1; $i<11; $i++)
|
||||
{
|
||||
echo '<td class="on"><img src="../../gpack/travian_default/img/u/'.$i.'.gif"></td>';
|
||||
echo '<td class="on"><img src="../../<?php echo GP_LOCATE; ?>img/u/'.$i.'.gif"></td>';
|
||||
}
|
||||
echo '</thead><tbody>';
|
||||
for($i=1; $i<11; $i++)
|
||||
@@ -128,7 +128,7 @@ $users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users"
|
||||
echo "</tr>";
|
||||
for($i=11; $i<21; $i++)
|
||||
{
|
||||
echo '<td class="on"><img src="../../gpack/travian_default/img/u/'.$i.'.gif"></td>';
|
||||
echo '<td class="on"><img src="../../<?php echo GP_LOCATE; ?>img/u/'.$i.'.gif"></td>';
|
||||
}
|
||||
echo '</thead><tbody>';
|
||||
for($i=11; $i<21; $i++)
|
||||
@@ -141,7 +141,7 @@ $users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users"
|
||||
echo "</tr>";
|
||||
for($i=21; $i<31; $i++)
|
||||
{
|
||||
echo '<td class="on"><img src="../../gpack/travian_default/img/u/'.$i.'.gif"></td>';
|
||||
echo '<td class="on"><img src="../../<?php echo GP_LOCATE; ?>img/u/'.$i.'.gif"></td>';
|
||||
}
|
||||
echo '</thead><tbody>';
|
||||
for($i=21; $i<31; $i++)
|
||||
@@ -154,7 +154,7 @@ $users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users"
|
||||
echo "</tr>";
|
||||
for($i=31; $i<41; $i++)
|
||||
{
|
||||
echo '<td class="on"><img src="../../gpack/travian_default/img/u/'.$i.'.gif"></td>';
|
||||
echo '<td class="on"><img src="../../<?php echo GP_LOCATE; ?>img/u/'.$i.'.gif"></td>';
|
||||
}
|
||||
echo '</thead><tbody>';
|
||||
for($i=31; $i<41; $i++)
|
||||
@@ -167,7 +167,7 @@ $users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users"
|
||||
echo "</tr>";
|
||||
for($i=41; $i<51; $i++)
|
||||
{
|
||||
echo '<td class="on"><img src="../../gpack/travian_default/img/u/'.$i.'.gif"></td>';
|
||||
echo '<td class="on"><img src="../../<?php echo GP_LOCATE; ?>img/u/'.$i.'.gif"></td>';
|
||||
}
|
||||
echo '</thead><tbody>';
|
||||
for($i=41; $i<51; $i++)
|
||||
|
||||
+20
-20
@@ -207,16 +207,16 @@
|
||||
echo '
|
||||
</tr></thead><tbody>
|
||||
<tr>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/31.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/32.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/33.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/34.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/35.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/36.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/37.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/38.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/39.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/40.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/31.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/32.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/33.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/34.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/35.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/36.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/37.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/38.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/39.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/40.gif"></img></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><center />'.$u31.'</td>
|
||||
@@ -237,16 +237,16 @@
|
||||
echo '
|
||||
</tr></thead><tbody>
|
||||
<tr>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/41.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/42.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/43.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/44.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/45.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/46.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/47.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/48.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/49.gif"></img></td>
|
||||
<td><center /><img src="../gpack/travian_default/img/u/50.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/41.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/42.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/43.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/44.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/45.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/46.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/47.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/48.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/49.gif"></img></td>
|
||||
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/50.gif"></img></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ if(isset($id))
|
||||
<style>
|
||||
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
|
||||
</style>
|
||||
<link href="../gpack/travian_default/lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||
<br />
|
||||
|
||||
<table id="profile" cellpadding="1" cellspacing="1" >
|
||||
|
||||
+232
-223
@@ -1,226 +1,235 @@
|
||||
<?php
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename Account.php ##
|
||||
## Developed by: Dzoki ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
<?php
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename Account.php ##
|
||||
## Developed by: Dzoki ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
include("Session.php");
|
||||
include("Session.php");
|
||||
|
||||
class Account {
|
||||
|
||||
function Account() {
|
||||
global $session;
|
||||
if(isset($_POST['ft'])) {
|
||||
switch($_POST['ft']) {
|
||||
case "a1":
|
||||
$this->Signup();
|
||||
break;
|
||||
case "a2":
|
||||
$this->Activate();
|
||||
break;
|
||||
case "a3":
|
||||
$this->Unreg();
|
||||
break;
|
||||
case "a4":
|
||||
$this->Login();
|
||||
break;
|
||||
}
|
||||
} if(isset($_GET['code'])) {
|
||||
$_POST['id'] = $_GET['code']; $this->Activate();
|
||||
}
|
||||
else {
|
||||
if($session->logged_in && in_array("logout.php",explode("/",$_SERVER['PHP_SELF']))) {
|
||||
$this->Logout();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function Signup() {
|
||||
global $database,$form,$mailer,$generator,$session;
|
||||
if(!isset($_POST['name']) || $_POST['name'] == "") {
|
||||
$form->addError("name",USRNM_EMPTY);
|
||||
}
|
||||
else {
|
||||
if(strlen($_POST['name']) < USRNM_MIN_LENGTH) {
|
||||
$form->addError("name",USRNM_SHORT);
|
||||
}
|
||||
else if(!USRNM_SPECIAL && preg_match('/[^0-9A-Za-z]/',$_POST['name'])) {
|
||||
$form->addError("name",USRNM_CHAR);
|
||||
}
|
||||
else if($database->checkExist($_POST['name'],0)) {
|
||||
$form->addError("name",USRNM_TAKEN);
|
||||
}
|
||||
else if($database->checkExist_activate($_POST['name'],0)) {
|
||||
$form->addError("name",USRNM_TAKEN);
|
||||
}
|
||||
|
||||
}
|
||||
if(!isset($_POST['pw']) || $_POST['pw'] == "") {
|
||||
$form->addError("pw",PW_EMPTY);
|
||||
}
|
||||
else {
|
||||
if(strlen($_POST['pw']) < PW_MIN_LENGTH) {
|
||||
$form->addError("pw",PW_SHORT);
|
||||
}
|
||||
else if($_POST['pw'] == $_POST['name']) {
|
||||
$form->addError("pw",PW_INSECURE);
|
||||
}
|
||||
}
|
||||
if(!isset($_POST['email'])) {
|
||||
$form->addError("email",EMAIL_EMPTY);
|
||||
}
|
||||
else {
|
||||
if(!$this->validEmail($_POST['email'])) {
|
||||
$form->addError("email",EMAIL_INVALID);
|
||||
}
|
||||
else if($database->checkExist($_POST['email'],1)) {
|
||||
$form->addError("email",EMAIL_TAKEN);
|
||||
}
|
||||
else if($database->checkExist_activate($_POST['email'],1)) {
|
||||
$form->addError("email",EMAIL_TAKEN);
|
||||
}
|
||||
}
|
||||
if(!isset($_POST['vid'])) {
|
||||
$form->addError("tribe",TRIBE_EMPTY);
|
||||
}
|
||||
if(!isset($_POST['agb'])) {
|
||||
$form->addError("agree",AGREE_ERROR);
|
||||
}
|
||||
if($form->returnErrors() > 0) {
|
||||
$_SESSION['errorarray'] = $form->getErrors();
|
||||
$_SESSION['valuearray'] = $_POST;
|
||||
|
||||
header("Location: anmelden.php");
|
||||
}
|
||||
else {
|
||||
if(AUTH_EMAIL){
|
||||
$act = $generator->generateRandStr(10);
|
||||
$act2 = $generator->generateRandStr(5);
|
||||
$uid = $database->activate($_POST['name'],md5($_POST['pw']),$_POST['email'],$_POST['vid'],$_POST['kid'],$act,$act2);
|
||||
if($uid) {
|
||||
|
||||
$mailer->sendActivate($_POST['email'],$_POST['name'],$_POST['pw'],$act);
|
||||
header("Location: activate.php?id=$uid&q=$act2");
|
||||
}
|
||||
}
|
||||
else {
|
||||
$uid = $database->register($_POST['name'],md5($_POST['pw']),$_POST['email'],$_POST['vid'],$_POST['kid'],$act);
|
||||
if($uid) {
|
||||
setcookie("COOKUSR",$_POST['name'],time()+COOKIE_EXPIRE,COOKIE_PATH);
|
||||
setcookie("COOKEMAIL",$_POST['email'],time()+COOKIE_EXPIRE,COOKIE_PATH);
|
||||
|
||||
$database->updateUserField($uid,"act","",1);
|
||||
$this->generateBase($_POST['kid'],$uid,$_POST['name']);
|
||||
header("Location: login.php");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function Activate() {
|
||||
global $database;
|
||||
$q = "SELECT * FROM ".TB_PREFIX."activate where act = '".$_POST['id']."'";
|
||||
$result = mysql_query($q, $database->connection);
|
||||
$dbarray = mysql_fetch_array($result);
|
||||
if($dbarray['act'] == $_POST['id']) {
|
||||
$uid = $database->register($dbarray['username'],$dbarray['password'],$dbarray['email'],$dbarray['tribe'],$dbarray['location'],"");
|
||||
if($uid) {
|
||||
$database->unreg($dbarray['username']);
|
||||
$this->generateBase($dbarray['kid'],$uid,$dbarray['username']);
|
||||
header("Location: activate.php?e=2");
|
||||
}
|
||||
}
|
||||
else {
|
||||
header("Location: activate.php?e=3");
|
||||
}
|
||||
}
|
||||
|
||||
private function Unreg() {
|
||||
global $database;
|
||||
$q = "SELECT * FROM ".TB_PREFIX."activate where id = '".$_POST['id']."'";
|
||||
$result = mysql_query($q, $database->connection);
|
||||
$dbarray = mysql_fetch_array($result);
|
||||
if(md5($_POST['pw']) == $dbarray['password']) {
|
||||
$database->unreg($dbarray['username']);
|
||||
header("Location: anmelden.php");
|
||||
}
|
||||
else {
|
||||
header("Location: activate.php?e=3");
|
||||
}
|
||||
}
|
||||
|
||||
private function Login() {
|
||||
global $database,$session,$form;
|
||||
if(!isset($_POST['user']) || $_POST['user'] == "") {
|
||||
$form->addError("user",LOGIN_USR_EMPTY);
|
||||
}
|
||||
else if(!$database->checkExist($_POST['user'],0)) {
|
||||
$form->addError("user",USR_NT_FOUND);
|
||||
}
|
||||
if(!isset($_POST['pw']) || $_POST['pw'] == "") {
|
||||
$form->addError("pw",LOGIN_PASS_EMPTY);
|
||||
}
|
||||
else if(!$database->login($_POST['user'],$_POST['pw']) && !$database->sitterLogin($_POST['user'],$_POST['pw'])) {
|
||||
$form->addError("pw",LOGIN_PW_ERROR);
|
||||
}
|
||||
if($database->getUserField($_POST['user'],"act",1) != "") {
|
||||
$form->addError("activate",$_POST['user']);
|
||||
}
|
||||
if($form->returnErrors() > 0) {
|
||||
$_SESSION['errorarray'] = $form->getErrors();
|
||||
$_SESSION['valuearray'] = $_POST;
|
||||
|
||||
header("Location: login.php");
|
||||
}
|
||||
else {
|
||||
setcookie("COOKUSR",$_POST['user'],time()+COOKIE_EXPIRE,COOKIE_PATH);
|
||||
$database->UpdateOnline("login" ,$_POST['user'],time());
|
||||
$session->login($_POST['user']);
|
||||
}
|
||||
}
|
||||
|
||||
private function Logout() {
|
||||
global $session,$database;
|
||||
unset($_SESSION['wid']);
|
||||
$database->activeModify($session->username,1);
|
||||
$database->UpdateOnline("logout") or die(mysql_error());
|
||||
$session->Logout();
|
||||
}
|
||||
|
||||
private function validEmail($email) {
|
||||
$regexp="/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/i";
|
||||
if ( !preg_match($regexp, $email) ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function generateBase($kid,$uid,$username) {
|
||||
global $database,$message;
|
||||
$database->updateUserField($uid,"location","",1);
|
||||
if($kid == 0) {
|
||||
$kid = rand(1,4);
|
||||
}
|
||||
else{
|
||||
$kid = $_POST['kid'];
|
||||
}
|
||||
|
||||
$wid = $database->generateBase($kid);
|
||||
$database->setFieldTaken($wid);
|
||||
$database->addVillage($wid,$uid,$username,1);
|
||||
$database->addResourceFields($wid,$database->getVillageType($wid));
|
||||
$database->addUnits($wid);
|
||||
$database->addTech($wid);
|
||||
$database->addABTech($wid);
|
||||
$database->updateUserField($uid,"access",USER,1);
|
||||
$message->sendWelcome($uid,$username);
|
||||
}
|
||||
|
||||
};
|
||||
$account = new Account;
|
||||
class Account {
|
||||
|
||||
function Account() {
|
||||
global $session;
|
||||
if(isset($_POST['ft'])) {
|
||||
switch($_POST['ft']) {
|
||||
case "a1":
|
||||
$this->Signup();
|
||||
break;
|
||||
case "a2":
|
||||
$this->Activate();
|
||||
break;
|
||||
case "a3":
|
||||
$this->Unreg();
|
||||
break;
|
||||
case "a4":
|
||||
$this->Login();
|
||||
break;
|
||||
}
|
||||
} if(isset($_GET['code'])) {
|
||||
$_POST['id'] = $_GET['code']; $this->Activate();
|
||||
}
|
||||
else {
|
||||
if($session->logged_in && in_array("logout.php",explode("/",$_SERVER['PHP_SELF']))) {
|
||||
$this->Logout();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function Signup() {
|
||||
global $database,$form,$mailer,$generator,$session;
|
||||
if(!isset($_POST['name']) || $_POST['name'] == "") {
|
||||
$form->addError("name",USRNM_EMPTY);
|
||||
}
|
||||
else {
|
||||
if(strlen($_POST['name']) < USRNM_MIN_LENGTH) {
|
||||
$form->addError("name",USRNM_SHORT);
|
||||
}
|
||||
else if(!USRNM_SPECIAL && preg_match('/[^0-9A-Za-z]/',$_POST['name'])) {
|
||||
$form->addError("name",USRNM_CHAR);
|
||||
}
|
||||
else if($database->checkExist($_POST['name'],0)) {
|
||||
$form->addError("name",USRNM_TAKEN);
|
||||
}
|
||||
else if($database->checkExist_activate($_POST['name'],0)) {
|
||||
$form->addError("name",USRNM_TAKEN);
|
||||
}
|
||||
|
||||
}
|
||||
if(!isset($_POST['pw']) || $_POST['pw'] == "") {
|
||||
$form->addError("pw",PW_EMPTY);
|
||||
}
|
||||
else {
|
||||
if(strlen($_POST['pw']) < PW_MIN_LENGTH) {
|
||||
$form->addError("pw",PW_SHORT);
|
||||
}
|
||||
else if($_POST['pw'] == $_POST['name']) {
|
||||
$form->addError("pw",PW_INSECURE);
|
||||
}
|
||||
}
|
||||
if(!isset($_POST['email'])) {
|
||||
$form->addError("email",EMAIL_EMPTY);
|
||||
}
|
||||
else {
|
||||
if(!$this->validEmail($_POST['email'])) {
|
||||
$form->addError("email",EMAIL_INVALID);
|
||||
}
|
||||
else if($database->checkExist($_POST['email'],1)) {
|
||||
$form->addError("email",EMAIL_TAKEN);
|
||||
}
|
||||
else if($database->checkExist_activate($_POST['email'],1)) {
|
||||
$form->addError("email",EMAIL_TAKEN);
|
||||
}
|
||||
}
|
||||
if(!isset($_POST['vid'])) {
|
||||
$form->addError("tribe",TRIBE_EMPTY);
|
||||
}
|
||||
if(!isset($_POST['agb'])) {
|
||||
$form->addError("agree",AGREE_ERROR);
|
||||
}
|
||||
if($form->returnErrors() > 0) {
|
||||
$_SESSION['errorarray'] = $form->getErrors();
|
||||
$_SESSION['valuearray'] = $_POST;
|
||||
|
||||
header("Location: anmelden.php");
|
||||
}
|
||||
else {
|
||||
if(AUTH_EMAIL){
|
||||
$act = $generator->generateRandStr(10);
|
||||
$act2 = $generator->generateRandStr(5);
|
||||
$uid = $database->activate($_POST['name'],md5($_POST['pw']),$_POST['email'],$_POST['vid'],$_POST['kid'],$act,$act2);
|
||||
if($uid) {
|
||||
|
||||
$mailer->sendActivate($_POST['email'],$_POST['name'],$_POST['pw'],$act);
|
||||
header("Location: activate.php?id=$uid&q=$act2");
|
||||
}
|
||||
}
|
||||
else {
|
||||
$uid = $database->register($_POST['name'],md5($_POST['pw']),$_POST['email'],$_POST['vid'],$_POST['kid'],$act);
|
||||
if($uid) {
|
||||
setcookie("COOKUSR",$_POST['name'],time()+COOKIE_EXPIRE,COOKIE_PATH);
|
||||
setcookie("COOKEMAIL",$_POST['email'],time()+COOKIE_EXPIRE,COOKIE_PATH);
|
||||
|
||||
$database->updateUserField($uid,"act","",1);
|
||||
$database->updateUserField($uid,"invited",$_POST['invited'],1);
|
||||
$this->generateBase($_POST['kid'],$uid,$_POST['name']);
|
||||
header("Location: login.php");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function Activate() {
|
||||
if(START_DATE < date('m/d/Y') or START_DATE == date('m/d/Y') && START_TIME <= date('H:i'))
|
||||
{
|
||||
global $database;
|
||||
$q = "SELECT * FROM ".TB_PREFIX."activate where act = '".$_POST['id']."'";
|
||||
$result = mysql_query($q, $database->connection);
|
||||
$dbarray = mysql_fetch_array($result);
|
||||
if($dbarray['act'] == $_POST['id']) {
|
||||
$uid = $database->register($dbarray['username'],$dbarray['password'],$dbarray['email'],$dbarray['tribe'],$dbarray['location'],"");
|
||||
if($uid) {
|
||||
$database->unreg($dbarray['username']);
|
||||
$this->generateBase($dbarray['kid'],$uid,$dbarray['username']);
|
||||
header("Location: activate.php?e=2");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: activate.php?e=3");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: activate.php");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private function Unreg() {
|
||||
global $database;
|
||||
$q = "SELECT * FROM ".TB_PREFIX."activate where id = '".$_POST['id']."'";
|
||||
$result = mysql_query($q, $database->connection);
|
||||
$dbarray = mysql_fetch_array($result);
|
||||
if(md5($_POST['pw']) == $dbarray['password']) {
|
||||
$database->unreg($dbarray['username']);
|
||||
header("Location: anmelden.php");
|
||||
}
|
||||
else {
|
||||
header("Location: activate.php?e=3");
|
||||
}
|
||||
}
|
||||
|
||||
private function Login() {
|
||||
global $database,$session,$form;
|
||||
if(!isset($_POST['user']) || $_POST['user'] == "") {
|
||||
$form->addError("user",LOGIN_USR_EMPTY);
|
||||
}
|
||||
else if(!$database->checkExist($_POST['user'],0)) {
|
||||
$form->addError("user",USR_NT_FOUND);
|
||||
}
|
||||
if(!isset($_POST['pw']) || $_POST['pw'] == "") {
|
||||
$form->addError("pw",LOGIN_PASS_EMPTY);
|
||||
}
|
||||
else if(!$database->login($_POST['user'],$_POST['pw']) && !$database->sitterLogin($_POST['user'],$_POST['pw'])) {
|
||||
$form->addError("pw",LOGIN_PW_ERROR);
|
||||
}
|
||||
if($database->getUserField($_POST['user'],"act",1) != "") {
|
||||
$form->addError("activate",$_POST['user']);
|
||||
}
|
||||
if($form->returnErrors() > 0) {
|
||||
$_SESSION['errorarray'] = $form->getErrors();
|
||||
$_SESSION['valuearray'] = $_POST;
|
||||
|
||||
header("Location: login.php");
|
||||
}
|
||||
else {
|
||||
setcookie("COOKUSR",$_POST['user'],time()+COOKIE_EXPIRE,COOKIE_PATH);
|
||||
$database->UpdateOnline("login" ,$_POST['user'],time());
|
||||
$session->login($_POST['user']);
|
||||
}
|
||||
}
|
||||
|
||||
private function Logout() {
|
||||
global $session,$database;
|
||||
unset($_SESSION['wid']);
|
||||
$database->activeModify($session->username,1);
|
||||
$database->UpdateOnline("logout") or die(mysql_error());
|
||||
$session->Logout();
|
||||
}
|
||||
|
||||
private function validEmail($email) {
|
||||
$regexp="/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/i";
|
||||
if ( !preg_match($regexp, $email) ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function generateBase($kid,$uid,$username) {
|
||||
global $database,$message;
|
||||
if($kid == 0) {
|
||||
$kid = rand(1,4);
|
||||
}
|
||||
else{
|
||||
$kid = $_POST['kid'];
|
||||
}
|
||||
|
||||
$wid = $database->generateBase($kid);
|
||||
$database->setFieldTaken($wid);
|
||||
$database->addVillage($wid,$uid,$username,1);
|
||||
$database->addResourceFields($wid,$database->getVillageType($wid));
|
||||
$database->addUnits($wid);
|
||||
$database->addTech($wid);
|
||||
$database->addABTech($wid);
|
||||
$database->updateUserField($uid,"access",USER,1);
|
||||
$message->sendWelcome($uid,$username);
|
||||
}
|
||||
|
||||
};
|
||||
$account = new Account;
|
||||
?>
|
||||
@@ -168,6 +168,7 @@ class Automation {
|
||||
$this->sendSettlersComplete();
|
||||
}
|
||||
$this->updateGeneralAttack();
|
||||
$this->checkInvitedPlayes();
|
||||
$this->updateStore();
|
||||
}
|
||||
|
||||
@@ -1912,8 +1913,8 @@ if($data['t11'] > 0){
|
||||
$walllevel =0;
|
||||
$rplevel =0;
|
||||
}
|
||||
$palaceimg = "<img src=\"gpack/travian_default/img/g/g26.gif\" height=\"30\" width=\"24\" alt=\"Palace\" title=\"Palace\" />";
|
||||
$crannyimg = "<img src=\"gpack/travian_default/img/g/g23.gif\" height=\"30\" width=\"24\" alt=\"Cranny\" title=\"Cranny\" />";
|
||||
$palaceimg = "<img src=\"<?php echo GP_LOCATE; ?>img/g/g26.gif\" height=\"30\" width=\"24\" alt=\"Palace\" title=\"Palace\" />";
|
||||
$crannyimg = "<img src=\"<?php echo GP_LOCATE; ?>img/g/g23.gif\" height=\"30\" width=\"24\" alt=\"Cranny\" title=\"Cranny\" />";
|
||||
$info_spy = "".$spy_pic.",".$palaceimg." Residance/Palace Level : ".$rplevel."
|
||||
<br>".$crannyimg." Cranny level: ".$crannylevel."<br><br>Wall Level : ".$walllevel."";
|
||||
|
||||
@@ -2731,7 +2732,7 @@ $crannyimg = "<img src=\"gpack/travian_default/img/g/g23.gif\" height=\"30\" wid
|
||||
}
|
||||
}
|
||||
|
||||
private function demolitionComplete() {
|
||||
private function demolitionComplete() {
|
||||
global $building,$database;
|
||||
$ourFileHandle = @fopen("GameEngine/Prevention/demolition.txt", 'w');
|
||||
@fclose($ourFileHandle);
|
||||
@@ -2858,6 +2859,21 @@ private function demolitionComplete() {
|
||||
}
|
||||
}
|
||||
|
||||
private function checkInvitedPlayes() {
|
||||
global $database;
|
||||
$q = "SELECT * FROM ".TB_PREFIX."users WHERE invited != 0";
|
||||
$array = $database->query_return($q);
|
||||
foreach($array as $user) {
|
||||
$varray = count($database->getProfileVillages($user['id']));
|
||||
if($varray > 1){
|
||||
$usergold = $database->getUserField($user['invited'],"gold",0);
|
||||
$gold = $usergold+50;
|
||||
$database->updateUserField($user['invited'],"gold",$gold,1);
|
||||
$database->updateUserField($user['id'],"invited",0,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function updateGeneralAttack() {
|
||||
global $database;
|
||||
$time = time();
|
||||
|
||||
@@ -138,6 +138,12 @@
|
||||
$dbarray = mysql_fetch_array($result);
|
||||
return $dbarray[$field];
|
||||
}
|
||||
|
||||
function getInvitedUser($uid) {
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "users where invited = $uid order by regtime desc";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
}
|
||||
|
||||
function getVrefField($ref, $field){
|
||||
$q = "SELECT $field FROM " . TB_PREFIX . "vdata where wref = '$ref'";
|
||||
|
||||
+22
-2
@@ -33,8 +33,28 @@ Greetings,
|
||||
TravianX";
|
||||
|
||||
$headers = "From: Mailer@".SERVER_NAME."\n";
|
||||
//$headers .= 'MIME-Version: 1.0' . "\r\n";
|
||||
//$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
|
||||
|
||||
mail($email, $subject, $message, $headers);
|
||||
}
|
||||
|
||||
function sendInvite($email,$uid,$text) {
|
||||
|
||||
$subject = "".SERVER_NAME." registeration";
|
||||
|
||||
$message = "Hello ".$username."
|
||||
|
||||
Try the new ".SERVER_NAME."!
|
||||
|
||||
|
||||
Link: ".SERVER."anmelden.php?id=".$uid."
|
||||
|
||||
".$text."
|
||||
|
||||
|
||||
Greetings,
|
||||
TravianX";
|
||||
|
||||
$headers = "From: Mailer@".SERVER_NAME."\n";
|
||||
|
||||
mail($email, $subject, $message, $headers);
|
||||
}
|
||||
|
||||
+27
-6
@@ -14,16 +14,17 @@ include("Templates/Plus/pmenu.tpl");
|
||||
<h3>1) Invite your friends via Email</h3>
|
||||
<?php if($session->access != BANNED){ ?>
|
||||
<p><a href="plus.php?id=5&a=1&mail">» Invite by e-mail</a></p>
|
||||
|
||||
<?php }else{ ?>
|
||||
<p><a href="banned.php">» Invite by e-mail</a></p>
|
||||
<?php } ?>
|
||||
<h3>2) Copy your personal REF-Link and share it!</h3><span class="notice">Your personal REF Link:</span>
|
||||
<br>
|
||||
<span class="link"><?php echo HOMEPAGE; ?>?id=ref_<?php echo $session->uid; ?></span>
|
||||
<span class="link"><?php echo HOMEPAGE; ?>anmelden?id=ref_<?php echo $session->uid; ?></span>
|
||||
|
||||
<h3>Progress of your invited friends</h3>
|
||||
|
||||
<p>As soon as a player you invited has found his <b>2</b>. village, you will be credited with <b>50</b> gold.</p>
|
||||
<p>As soon as a player you invited has found his <b>2</b> village, you will be credited with <b>50</b> gold.</p>
|
||||
|
||||
<table id="brought_in" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
@@ -32,10 +33,6 @@ include("Templates/Plus/pmenu.tpl");
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
|
||||
<td>World</td>
|
||||
|
||||
<td>UID</td>
|
||||
|
||||
<td>Member since</td>
|
||||
@@ -45,9 +42,33 @@ include("Templates/Plus/pmenu.tpl");
|
||||
<td>Villages</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$invite = $database->getInvitedUser($session->uid);
|
||||
if(count($invite) > 0){
|
||||
foreach($invite as $invited) {
|
||||
$varray = $database->getProfileVillages($invited['id']);
|
||||
$totalpop = 0;
|
||||
foreach($varray as $vil) {
|
||||
$totalpop += $vil['pop'];
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $invited['id']; ?></td>
|
||||
|
||||
<td><?php echo date("j.m.y",$invited['regtime']); ?></td>
|
||||
|
||||
<td><?php echo $totalpop; ?></td>
|
||||
|
||||
<td><?php echo count($varray); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}}else{
|
||||
?>
|
||||
<tr>
|
||||
<td class="none" colspan="6">You have not brought in any new players yet.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
include("Templates/Plus/pmenu.tpl");
|
||||
?>
|
||||
|
||||
<h2>Invite friends and receive free Gold</h2>
|
||||
|
||||
<p>If you get new players to open an account and settle a second village with Travian you will receive gold. You can use this gold to purchase a plus account or plus advantages.
|
||||
<br>
|
||||
<br>
|
||||
To bring in new players, you can invite them by e-mail or have them click on your REF link.</p>
|
||||
|
||||
<h2>How is it done?</h2>
|
||||
|
||||
<h3>1) Invite your friends via Email</h3>
|
||||
<?php if($session->access != BANNED){ ?>
|
||||
<form action="plus.php" method="POST">
|
||||
<p><input class="mail" name="mail" value=""></p>
|
||||
<p>Own text:</p>
|
||||
<p><textarea id="text" name="text"></textarea></p>
|
||||
</form>
|
||||
<?php }else{ ?>
|
||||
<p><a href="banned.php">» Invite by e-mail</a></p>
|
||||
<?php } ?>
|
||||
<h3>2) Copy your personal REF-Link and share it!</h3><span class="notice">Your personal REF Link:</span>
|
||||
<br>
|
||||
<span class="link"><?php echo HOMEPAGE; ?>anmelden?id=ref_<?php echo $session->uid; ?></span>
|
||||
|
||||
<h3>Progress of your invited friends</h3>
|
||||
|
||||
<p>As soon as a player you invited has found his <b>2</b>. village, you will be credited with <b>50</b> gold.</p>
|
||||
|
||||
<table id="brought_in" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="6">Players brought in</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
|
||||
<td>World</td>
|
||||
|
||||
<td>UID</td>
|
||||
|
||||
<td>Member since</td>
|
||||
|
||||
<td>Inhabitants</td>
|
||||
|
||||
<td>Villages</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$invite = $database->getInvitedUser($session->uid);
|
||||
if(count($invite) > 0){
|
||||
foreach($invite as $invited) {
|
||||
$varray = $database->getProfileVillages($invited['id']);
|
||||
$totalpop = 0;
|
||||
foreach($varray as $vil) {
|
||||
$totalpop += $vil['pop'];
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $invited['id']; ?></td>
|
||||
|
||||
<td><?php echo date("j.m.y",$invited['regtime']); ?></td>
|
||||
|
||||
<td><?php echo $totalpop; ?></td>
|
||||
|
||||
<td><?php echo count($varray); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}}else{
|
||||
?>
|
||||
<tr>
|
||||
<td class="none" colspan="6">You have not brought in any new players yet.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
+203
-62
@@ -1,67 +1,208 @@
|
||||
<div id="content" class="signup">
|
||||
<div id="content" class="signup">
|
||||
|
||||
<?php
|
||||
if(isset($_GET['id']) && isset($_GET['q'])) {
|
||||
$act2=$database->getActivateField($_GET['id'],"act2",0);
|
||||
if($act2==$_GET['q']){
|
||||
$show='1';
|
||||
$naam=$database->getActivateField($_GET['id'],"username",0);
|
||||
$email=$database->getActivateField($_GET['id'],"email",0);
|
||||
<?php
|
||||
if(isset($_GET['id']) && isset($_GET['q'])) {
|
||||
$act2=$database->getActivateField($_GET['id'],"act2",0);
|
||||
if($act2==$_GET['q']){
|
||||
$show='1';
|
||||
$naam=$database->getActivateField($_GET['id'],"username",0);
|
||||
$email=$database->getActivateField($_GET['id'],"email",0);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($show)){
|
||||
?>
|
||||
<h1><img src="img/x.gif" class="anmelden" alt="register for the game"></h1>
|
||||
<h5><img src="img/x.gif" class="img_u05" alt="registration"/></h5>
|
||||
<p>
|
||||
Hello <?php echo $naam; ?>,
|
||||
<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"><?php echo $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="id" maxlength="10" />
|
||||
<p>
|
||||
<input type="image" value="ok" name="s1" src="img/x.gif" id="btn_send" class="dynamic_img" alt="send"/>
|
||||
<input type="hidden" name="ft" value="a2" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<div id="no_mail">
|
||||
<p>
|
||||
<a href="activate.php?id=<?php echo $_GET['id']; ?>&c=<?php echo $generator->encodeStr($email,5); ?>"><span class="important">No email received?</span></a>
|
||||
</p>
|
||||
<p>
|
||||
Sometimes the email is moved to the spam folder. For further help click <a href="activate.php?id=<?php echo $_GET['id']; ?>&c=<?php echo $generator->encodeStr($email,5); ?>">here</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(START_DATE > date('m/d/Y') or START_DATE == date('m/d/Y') && START_TIME <= date('H:i')){ ?>
|
||||
<br/><center><big>Activation Availble in: </big></center>
|
||||
<script language="JavaScript">
|
||||
TargetDate = "<?php echo START_DATE; ?> <?php echo START_TIME; ?>";
|
||||
CountActive = true;
|
||||
CountStepper = -1;
|
||||
LeadingZero = true;
|
||||
DisplayFormat = "%%H%%:%%M%%:%%S%%";
|
||||
FinishMessage = "START NOW";
|
||||
|
||||
function calcage(secs, num1, num2) {
|
||||
s = ((Math.floor(secs/num1))%num2).toString();
|
||||
if (LeadingZero && s.length < 2)
|
||||
s = "0" + s;
|
||||
return "" + s + "";
|
||||
}
|
||||
|
||||
if(isset($show)){
|
||||
?>
|
||||
<h1><img src="img/x.gif" class="anmelden" alt="register for the game"></h1>
|
||||
<h5><img src="img/x.gif" class="img_u05" alt="registration"/></h5>
|
||||
<p>
|
||||
Hello <?php echo $naam; ?>,
|
||||
<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"><?php echo $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="id" maxlength="10" />
|
||||
<p>
|
||||
<input type="image" value="ok" name="s1" src="img/x.gif" id="btn_send" class="dynamic_img" alt="send"/>
|
||||
<input type="hidden" name="ft" value="a2" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<div id="no_mail">
|
||||
<p>
|
||||
<a href="activate.php?id=<?php echo $_GET['id']; ?>&c=<?php echo $generator->encodeStr($email,5); ?>"><span class="important">No email received?</span></a>
|
||||
</p>
|
||||
<p>
|
||||
Sometimes the email is moved to the spam folder. For further help click <a href="activate.php?id=<?php echo $_GET['id']; ?>&c=<?php echo $generator->encodeStr($email,5); ?>">here</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else {
|
||||
?>
|
||||
<p>
|
||||
|
||||
<div id="activation">
|
||||
<form action="activate.php" method="post">
|
||||
<p class="important">
|
||||
Activation code:
|
||||
</p>
|
||||
<input class="text" type="text" name="id" maxlength="10" />
|
||||
<p>
|
||||
<input type="image" value="ok" name="s1" src="img/x.gif" id="btn_send" class="dynamic_img" alt="send"/>
|
||||
<input type="hidden" name="ft" value="a2" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
function CountBack(secs) {
|
||||
if (secs < 0) {
|
||||
document.getElementById("cntdwn").innerHTML = FinishMessage;
|
||||
return;
|
||||
}
|
||||
DisplayStr = DisplayFormat.replace(/%%D%%/g, calcage(secs,86400,100000));
|
||||
DisplayStr = DisplayStr.replace(/%%H%%/g, calcage(secs,3600,24));
|
||||
DisplayStr = DisplayStr.replace(/%%M%%/g, calcage(secs,60,60));
|
||||
DisplayStr = DisplayStr.replace(/%%S%%/g, calcage(secs,1,60));
|
||||
|
||||
document.getElementById("cntdwn").innerHTML = DisplayStr;
|
||||
if (CountActive)
|
||||
setTimeout("CountBack(" + (secs+CountStepper) + ")", SetTimeOutPeriod);
|
||||
}
|
||||
|
||||
function putspan(backcolor, forecolor) {
|
||||
document.write("<div class='activation_time' id='cntdwn'></div>");
|
||||
}
|
||||
|
||||
if (typeof(BackColor)=="undefined")
|
||||
BackColor = "white";
|
||||
if (typeof(ForeColor)=="undefined")
|
||||
ForeColor= "black";
|
||||
if (typeof(TargetDate)=="undefined")
|
||||
TargetDate = "12/31/2020 5:00 AM";
|
||||
if (typeof(DisplayFormat)=="undefined")
|
||||
DisplayFormat = "%%H%%:%%M%%:%%S%%";
|
||||
if (typeof(CountActive)=="undefined")
|
||||
CountActive = true;
|
||||
if (typeof(FinishMessage)=="undefined")
|
||||
FinishMessage = "";
|
||||
if (typeof(CountStepper)!="number")
|
||||
CountStepper = -1;
|
||||
if (typeof(LeadingZero)=="undefined")
|
||||
LeadingZero = true;
|
||||
|
||||
|
||||
CountStepper = Math.ceil(CountStepper);
|
||||
if (CountStepper == 0)
|
||||
CountActive = false;
|
||||
var SetTimeOutPeriod = (Math.abs(CountStepper)-1)*1000 + 990;
|
||||
putspan(BackColor, ForeColor);
|
||||
var dthen = new Date(TargetDate);
|
||||
var dnow = new Date();
|
||||
if(CountStepper>0)
|
||||
ddiff = new Date(dnow-dthen);
|
||||
else
|
||||
ddiff = new Date(dthen-dnow);
|
||||
gsecs = Math.floor(ddiff.valueOf()/1000);
|
||||
CountBack(gsecs);
|
||||
|
||||
</script>
|
||||
<?php }}else{ ?>
|
||||
<p>
|
||||
<?php
|
||||
if(START_DATE > date('m/d/Y') or START_DATE == date('m/d/Y') && START_TIME <= date('H:i')){
|
||||
?>
|
||||
<br/><center><big>Activation Availble in: </big></center>
|
||||
<script language="JavaScript">
|
||||
TargetDate = "<?php echo START_DATE; ?> <?php echo START_TIME; ?>";
|
||||
CountActive = true;
|
||||
CountStepper = -1;
|
||||
LeadingZero = true;
|
||||
DisplayFormat = "%%H%%:%%M%%:%%S%%";
|
||||
FinishMessage = "START NOW";
|
||||
|
||||
function calcage(secs, num1, num2) {
|
||||
s = ((Math.floor(secs/num1))%num2).toString();
|
||||
if (LeadingZero && s.length < 2)
|
||||
s = "0" + s;
|
||||
return "" + s + "";
|
||||
}
|
||||
|
||||
function CountBack(secs) {
|
||||
if (secs < 0) {
|
||||
document.getElementById("cntdwn").innerHTML = FinishMessage;
|
||||
return;
|
||||
}
|
||||
DisplayStr = DisplayFormat.replace(/%%D%%/g, calcage(secs,86400,100000));
|
||||
DisplayStr = DisplayStr.replace(/%%H%%/g, calcage(secs,3600,24));
|
||||
DisplayStr = DisplayStr.replace(/%%M%%/g, calcage(secs,60,60));
|
||||
DisplayStr = DisplayStr.replace(/%%S%%/g, calcage(secs,1,60));
|
||||
|
||||
document.getElementById("cntdwn").innerHTML = DisplayStr;
|
||||
if (CountActive)
|
||||
setTimeout("CountBack(" + (secs+CountStepper) + ")", SetTimeOutPeriod);
|
||||
}
|
||||
|
||||
function putspan(backcolor, forecolor) {
|
||||
document.write("<div class='activation_time' id='cntdwn'></div>");
|
||||
}
|
||||
|
||||
if (typeof(BackColor)=="undefined")
|
||||
BackColor = "white";
|
||||
if (typeof(ForeColor)=="undefined")
|
||||
ForeColor= "black";
|
||||
if (typeof(TargetDate)=="undefined")
|
||||
TargetDate = "12/31/2020 5:00 AM";
|
||||
if (typeof(DisplayFormat)=="undefined")
|
||||
DisplayFormat = "%%H%%:%%M%%:%%S%%";
|
||||
if (typeof(CountActive)=="undefined")
|
||||
CountActive = true;
|
||||
if (typeof(FinishMessage)=="undefined")
|
||||
FinishMessage = "";
|
||||
if (typeof(CountStepper)!="number")
|
||||
CountStepper = -1;
|
||||
if (typeof(LeadingZero)=="undefined")
|
||||
LeadingZero = true;
|
||||
|
||||
|
||||
CountStepper = Math.ceil(CountStepper);
|
||||
if (CountStepper == 0)
|
||||
CountActive = false;
|
||||
var SetTimeOutPeriod = (Math.abs(CountStepper)-1)*1000 + 990;
|
||||
putspan(BackColor, ForeColor);
|
||||
var dthen = new Date(TargetDate);
|
||||
var dnow = new Date();
|
||||
if(CountStepper>0)
|
||||
ddiff = new Date(dnow-dthen);
|
||||
else
|
||||
ddiff = new Date(dthen-dnow);
|
||||
gsecs = Math.floor(ddiff.valueOf()/1000);
|
||||
CountBack(gsecs);
|
||||
|
||||
</script>
|
||||
<?php
|
||||
}else{ ?>
|
||||
<div id="activation">
|
||||
<form action="activate.php" method="post">
|
||||
<p class="important">
|
||||
Activation code:
|
||||
</p>
|
||||
<input class="text" type="text" name="id" maxlength="10" />
|
||||
<p>
|
||||
<input type="image" value="ok" name="s1" src="img/x.gif" id="btn_send" class="dynamic_img" alt="send"/>
|
||||
<input type="hidden" name="ft" value="a2" />
|
||||
</p>
|
||||
|
||||
</form> <?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
?>
|
||||
+73
-99
@@ -1,108 +1,82 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename activate.php ##
|
||||
## Developed by: Dixie ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename activate.php ##
|
||||
## Developed by: Dixie ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
include('GameEngine/Account.php');
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME; ?></title>
|
||||
<link REL="shortcut icon" HREF="favicon.ico"/>
|
||||
<meta name="content-language" content="en" />
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="imagetoolbar" content="no" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<script src="mt-core.js?0faaa" type="text/javascript"></script>
|
||||
<script src="mt-more.js?0faaa" type="text/javascript"></script>
|
||||
<script src="unx.js?0faaa" type="text/javascript"></script>
|
||||
<script src="new.js?0faaa" type="text/javascript"></script>
|
||||
<link href="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css" />
|
||||
<link href="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css" />
|
||||
<link href="<?php echo GP_LOCATE ?>travian.css?f4b7c" rel="stylesheet" type="text/css" />
|
||||
<link href="<?php echo GP_LOCATE ?>lang/en/lang.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
include('GameEngine/Account.php');
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME; ?></title>
|
||||
<link REL="shortcut icon" HREF="favicon.ico"/>
|
||||
<meta name="content-language" content="en" />
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="imagetoolbar" content="no" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<script src="mt-core.js?0faaa" type="text/javascript"></script>
|
||||
<script src="mt-more.js?0faaa" type="text/javascript"></script>
|
||||
<script src="unx.js?0faaa" type="text/javascript"></script>
|
||||
<script src="new.js?0faaa" type="text/javascript"></script>
|
||||
<link href="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css" />
|
||||
<link href="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css" />
|
||||
<link href="<?php echo GP_LOCATE ?>travian.css?f4b7c" rel="stylesheet" type="text/css" />
|
||||
<link href="<?php echo GP_LOCATE ?>lang/en/lang.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body class="v35 ie ie7" onload="initCounter()">
|
||||
<body class="v35 ie ie7" onload="initCounter()">
|
||||
|
||||
<div class="wrapper">
|
||||
<div id="dynamic_header">
|
||||
</div>
|
||||
<div id="header"></div>
|
||||
<div id="mid">
|
||||
<?php include("Templates/menu.tpl"); ?>
|
||||
<div id="content" class="activate">
|
||||
<?php
|
||||
if(isset($_GET['e'])) {
|
||||
switch($_GET['e']) {
|
||||
case 1:
|
||||
include("Templates/activate/delete.tpl");
|
||||
break;
|
||||
case 2:
|
||||
include("Templates/activate/activated.tpl");
|
||||
break;
|
||||
case 3:
|
||||
include("Templates/activate/cantfind.tpl");
|
||||
break;
|
||||
}
|
||||
} else if(isset($_GET['id']) && isset($_GET['c'])) {
|
||||
$c=$database->getActivateField($_GET['id'],"email",0);
|
||||
if($_GET['c'] == $generator->encodeStr($c,5)){
|
||||
include("Templates/activate/delete.tpl");
|
||||
} else { include("Templates/activate/activate.tpl"); }
|
||||
} else {
|
||||
include("Templates/activate/activate.tpl");
|
||||
}
|
||||
<div class="wrapper">
|
||||
<div id="dynamic_header">
|
||||
</div>
|
||||
<div id="header"></div>
|
||||
<div id="mid">
|
||||
<?php include("Templates/menu.tpl"); ?>
|
||||
<div id="content" class="activate">
|
||||
<?php
|
||||
|
||||
/*if(isset($_GET['e'])) {
|
||||
switch($_GET['e']) {
|
||||
case 1:
|
||||
include("Templates/activate/delete.tpl");
|
||||
break;
|
||||
case 2:
|
||||
include("Templates/activate/activated.tpl");
|
||||
break;
|
||||
case 3:
|
||||
include("Templates/activate/cantfind.tpl");
|
||||
break;
|
||||
}
|
||||
} else
|
||||
if(isset($_GET['id']) && isset($_GET['c']) && $_GET['c'] == $generator->encodeStr($_COOKIE['COOKEMAIL'],5)) {
|
||||
include("Templates/activate/delete.tpl");
|
||||
} else
|
||||
if(isset($_GET['id']) && !isset($_GET['c']) && !isset($_GET['e'])) {
|
||||
include("Templates/activate/activate.tpl");
|
||||
}
|
||||
else if(isset($_GET['usr']) && !isset($_GET['c']) && !isset($_GET['e'])) {
|
||||
$_COOKIE['COOKUSR'] = $_GET['usr'];
|
||||
$_COOKIE['COOKEMAIL'] = $database->getUserField($_GET['usr'],"email",1);
|
||||
include("Templates/activate/activate.tpl");
|
||||
} else
|
||||
if(isset($_GET['npw'])) {
|
||||
} else {
|
||||
if(isset($_GET['e']) && (START_DATE < date('m/d/Y') or START_DATE == date('m/d/Y') && START_TIME <= date('H:i')))
|
||||
{
|
||||
switch($_GET['e'])
|
||||
{
|
||||
case 1:
|
||||
include("Templates/activate/delete.tpl");
|
||||
break;
|
||||
case 2:
|
||||
include("Templates/activate/activated.tpl");
|
||||
break;
|
||||
case 3:
|
||||
include("Templates/activate/cantfind.tpl");
|
||||
break;
|
||||
}
|
||||
} else if(isset($_GET['id']) && isset($_GET['c'])) {
|
||||
$c=$database->getActivateField($_GET['id'],"email",0);
|
||||
if($_GET['c'] == $generator->encodeStr($c,5)){
|
||||
include("Templates/activate/delete.tpl");
|
||||
} else { include("Templates/activate/activate.tpl"); }
|
||||
} else {
|
||||
include("Templates/activate/activate.tpl");
|
||||
}
|
||||
|
||||
}*/
|
||||
?>
|
||||
</div>
|
||||
<div id="side_info" class="outgame">
|
||||
</div>
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div id="side_info" class="outgame">
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="footer-stopper outgame"></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php include("Templates/footer.tpl"); ?>
|
||||
<div id="ce"></div>
|
||||
</body>
|
||||
<div class="footer-stopper outgame"></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php include("Templates/footer.tpl"); ?>
|
||||
<div id="ce"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -48,6 +48,7 @@ if(REG_OPEN == true){ ?>
|
||||
<p><?php echo BEFORE_REGISTER; ?></p>
|
||||
|
||||
<form name="snd" method="post" action="anmelden.php">
|
||||
<input type="hidden" name="invited" value="<?php echo filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT); ?>" />
|
||||
<input type="hidden" name="ft" value="a1" />
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="sign_input">
|
||||
|
||||
@@ -243,7 +243,7 @@ define("COOKIE_PATH", "/");
|
||||
////////////////////////////////////////////
|
||||
define("DOMAIN", "%DOMAIN%");
|
||||
define("HOMEPAGE", "%HOMEPAGE%");
|
||||
define("SERVER", "%DOMAIN%");
|
||||
define("SERVER", "%SERVER%");
|
||||
|
||||
$requse = 0;
|
||||
|
||||
|
||||
@@ -1318,6 +1318,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%users` (
|
||||
`clp` bigint(255) NOT NULL DEFAULT '0',
|
||||
`oldrank` bigint(255) unsigned NOT NULL DEFAULT '0',
|
||||
`regtime` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`invited` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@
|
||||
$text = preg_replace("'%STARTTIME%'", time(), $text);
|
||||
$text = preg_replace("'%DOMAIN%'", $_POST['domain'], $text);
|
||||
$text = preg_replace("'%HOMEPAGE%'", $_POST['homepage'], $text);
|
||||
$text = preg_replace("'%SERVER%'", $_POST['server'], $text);
|
||||
$text = preg_replace("'%LIMIT_MAILBOX%'", $_POST['limit_mailbox'], $text);
|
||||
$text = preg_replace("'%MAX_MAILS%'", $_POST['max_mails'], $text);
|
||||
$text = preg_replace("'%DEMOLISH%'", $_POST['demolish'], $text);
|
||||
|
||||
@@ -33,6 +33,8 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
|
||||
<option value="False">False</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Server:</span></td><td><input name="server" type="text" id="homepage" value="http://<?php echo $_SERVER['HTTP_HOST']; ?>/"></td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Domain:</span></td><td><input name="domain" type="text" id="homepage" value="http://<?php echo $_SERVER['HTTP_HOST']; ?>/"></td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Homepage:</span></td><td><input name="homepage" type="text" id="homepage" value="http://<?php echo $_SERVER['HTTP_HOST']; ?>/"></td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Language:</span></td><td>
|
||||
<select name="lang">
|
||||
|
||||
@@ -84,7 +84,9 @@ include("Templates/Plus/3.tpl");
|
||||
if ($id == 4) {
|
||||
include("Templates/Plus/4.tpl");
|
||||
}
|
||||
if ($id == 5) {
|
||||
if (isset($_GET['mail']) && $id == 5){
|
||||
include("Templates/Plus/invite.tpl");
|
||||
}else if ($id == 5) {
|
||||
include("Templates/Plus/5.tpl");
|
||||
}
|
||||
if ($id == 7) {
|
||||
@@ -117,6 +119,9 @@ include("Templates/Plus/15.tpl");
|
||||
if ($id > 15) {
|
||||
include("Templates/Plus/3.tpl");
|
||||
}
|
||||
if(isset($_POST['mail'])) {
|
||||
$mailer->sendInvite($_POST['mail'],$session->uid,$_POST['text']);
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="side_info">
|
||||
|
||||
Reference in New Issue
Block a user