update install and email activation + add friends inviting system

This commit is contained in:
unknown
2012-05-22 20:52:56 +03:00
parent 7d43ffbaa3
commit 2d87749f95
34 changed files with 765 additions and 488 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
<div style="margin-top: 50px;"> <div style="margin-top: 50px;">
<center> <center>
<h1>404 - File not found</h1> <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>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> <p>This system is not complete yet. So the page probably does not exist.</p><br>
</center> </center>
+5 -5
View File
@@ -19,7 +19,7 @@ if(isset($id))
$varray = $database->getProfileVillages($id); $varray = $database->getProfileVillages($id);
$varmedal = $database->getProfileMedal($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"> <style type="text/css">
input.dynamic_img, img.dynamic_img input.dynamic_img, img.dynamic_img
{ {
@@ -29,7 +29,7 @@ if(isset($id))
input#btn_send input#btn_send
{ {
width: 97px; 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 div.messages div#write_content #heading input
{ {
@@ -43,12 +43,12 @@ if(isset($id))
<div id="content" class="messages"> <div id="content" class="messages">
<div id="read_head" class="msg_head"></div> <div id="read_head" class="msg_head"></div>
<div id="read_content" class="msg_content"> <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"> <div id="heading">
<input type="hidden" name="uid" value="<?php echo $id; ?>"> <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><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>
<div id="time"> <div id="time">
<div><?php echo date('d.m.y'); ?></div> <div><?php echo date('d.m.y'); ?></div>
@@ -57,7 +57,7 @@ if(isset($id))
<div class="clear"></div> <div class="clear"></div>
<div class="line"></div> <div class="line"></div>
<div class="message" style="margin-top: 10px;"> <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> </div>
<p class="btn"> <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;"> <input type="image" value="submit" name="s1" id="btn_send" class="dynamic_img clicked" src="../img/admin/x.gif" alt="send" tabindex="4;">
+2 -2
View File
@@ -65,11 +65,11 @@ error_reporting(0);
<tr> <tr>
<td><a href=\"?p=player&uid=".$uid."\">".$active[$i]['username']." [".$active[$i]['access']."]</a></td> <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>".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>".$totalpop."</td>
<td>".count($varray)."</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=\"../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>"; </tr>";
} }
?> ?>
+20 -20
View File
@@ -190,104 +190,104 @@ if(isset($id))
else if($user['tribe'] == 4){ ?> else if($user['tribe'] == 4){ ?>
</tr></thead><tbody> </tr></thead><tbody>
<tr> <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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u31']; ?></td> <td class="addTroops"><input class="addTroops" name="u31" id="u31" value="<?php echo $units['u31']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u31']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u32']; ?></td> <td><input class="addTroops" name="u32" id="u32" value="<?php echo $units['u32']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u32']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u33']; ?></td> <td><input class="addTroops" name="u33" id="u33" value="<?php echo $units['u33']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u33']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u34']; ?></td> <td><input class="addTroops" name="u34" id="u34" value="<?php echo $units['u34']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u34']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u35']; ?></td> <td><input class="addTroops" name="u35" id="u35" value="<?php echo $units['u35']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u35']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u36']; ?></td> <td><input class="addTroops" name="u36" id="u36" value="<?php echo $units['u36']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u36']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u37']; ?></td> <td><input class="addTroops" name="u37" id="u37" value="<?php echo $units['u37']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u37']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u38']; ?></td> <td><input class="addTroops" name="u38" id="u38" value="<?php echo $units['u38']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u38']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u39']; ?></td> <td><input class="addTroops" name="u39" id="u39" value="<?php echo $units['u39']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u39']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u40']; ?></td> <td><input class="addTroops" name="u40" id="u40" value="<?php echo $units['u40']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u40']; ?></td>
</tr> </tr>
<?php } <?php }
else if($user['tribe'] == 5){ ?> else if($user['tribe'] == 5){ ?>
</tr></thead><tbody> </tr></thead><tbody>
<tr> <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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u41']; ?></td> <td class="addTroops"><input class="addTroops" name="u41" id="u41" value="<?php echo $units['u41']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u41']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u42']; ?></td> <td><input class="addTroops" name="u42" id="u42" value="<?php echo $units['u42']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u42']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u43']; ?></td> <td><input class="addTroops" name="u43" id="u43" value="<?php echo $units['u43']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u43']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u44']; ?></td> <td><input class="addTroops" name="u44" id="u44" value="<?php echo $units['u44']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u44']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u45']; ?></td> <td><input class="addTroops" name="u45" id="u45" value="<?php echo $units['u45']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u45']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u46']; ?></td> <td><input class="addTroops" name="u46" id="u46" value="<?php echo $units['u46']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u46']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u47']; ?></td> <td><input class="addTroops" name="u47" id="u47" value="<?php echo $units['u47']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u47']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u48']; ?></td> <td><input class="addTroops" name="u48" id="u48" value="<?php echo $units['u48']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u48']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u49']; ?></td> <td><input class="addTroops" name="u49" id="u49" value="<?php echo $units['u49']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u49']; ?></td>
</tr> </tr>
<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">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u50']; ?></td> <td><input class="addTroops" name="u50" id="u50" value="<?php echo $units['u50']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u50']; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
+7 -7
View File
@@ -271,8 +271,8 @@ if($_GET['aid'])
if($row['type'] == 1) { $type = 'Confederation Pact'; } if($row['type'] == 1) { $type = 'Confederation Pact'; }
if($row['type'] == 2) { $type = 'Non Agression Pact'; } if($row['type'] == 2) { $type = 'Non Agression Pact'; }
if($row['type'] == 3) { $type = 'Declaration of War'; } 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'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
if($row['accepted'] ==1) { $accepted = "<img src=\"../../gpack/travian_default/img/a/acc.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']."")); $ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2'].""));
echo ' echo '
@@ -306,8 +306,8 @@ if($_GET['aid'])
if($row['type'] == 1) { $type = 'Confederation Pact'; } if($row['type'] == 1) { $type = 'Confederation Pact'; }
if($row['type'] == 2) { $type = 'Non Agression Pact'; } if($row['type'] == 2) { $type = 'Non Agression Pact'; }
if($row['type'] == 3) { $type = 'Declaration of War'; } 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'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
if($row['accepted'] ==1) { $accepted = "<img src=\"../../gpack/travian_default/img/a/acc.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']."")); $ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli1'].""));
echo ' echo '
@@ -342,8 +342,8 @@ if($_GET['aid'])
if($row['type'] == 1) { $type = 'Confederation Pact'; } if($row['type'] == 1) { $type = 'Confederation Pact'; }
if($row['type'] == 2) { $type = 'Non Agression Pact'; } if($row['type'] == 2) { $type = 'Non Agression Pact'; }
if($row['type'] == 3) { $type = 'Declaration of War'; } 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'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
if($row['accepted'] == 1) { $accepted = "<img src=\"../../gpack/travian_default/img/a/acc.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']."")); $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']."")); $ally2 = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2'].""));
@@ -351,7 +351,7 @@ if($_GET['aid'])
<tr> <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><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>'.$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>'; </tr>';
} }
?> ?>
+3 -3
View File
@@ -48,9 +48,9 @@
<td>$rank</td> <td>$rank</td>
<td>$week</td> <td>$week</td>
<td>$points</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> <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> </td>
</tr>"; </tr>";
} }
@@ -80,7 +80,7 @@
<form action="../GameEngine/Admin/Mods/delallymedalbyaid.php" method="POST"> <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="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="aid" value="<?php echo $_GET['aid']; ?>"> <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> </form>
</td> </td>
</tbody> </tbody>
+2 -2
View File
@@ -80,7 +80,7 @@ $nummedals = mysql_num_rows($sql);
echo "<tr> echo "<tr>
<td>$newweek</td> <td>$newweek</td>
<td>$tot</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> </tbody>
@@ -139,7 +139,7 @@ $nummedals = mysql_num_rows($sql);
<tr> <tr>
<td>$i</td> <td>$i</td>
<td>[#$bb]</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>$alliance</td>
<td>$rank</td> <td>$rank</td>
<td>$week</td> <td>$week</td>
+2 -2
View File
@@ -80,7 +80,7 @@ $nummedals = mysql_num_rows($sql);
$sql = mysql_query("SELECT * FROM ".TB_PREFIX."medal WHERE week = $newweek"); $sql = mysql_query("SELECT * FROM ".TB_PREFIX."medal WHERE week = $newweek");
$tot = mysql_num_rows($sql); $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> </tbody>
@@ -152,7 +152,7 @@ $nummedals = mysql_num_rows($sql);
<tr> <tr>
<td>$i</td> <td>$i</td>
<td>[#$bb]</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>$player</td>
<td>$rank</td> <td>$rank</td>
<td>$week</td> <td>$week</td>
+1 -1
View File
@@ -19,7 +19,7 @@ $fdata = $database->getResourceLevel($village['wref']);
if(isset($id)) if(isset($id))
{ {
include("search2.tpl"); ?> 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"> <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="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="did" id="did" value="<?php echo $_GET['did']; ?>"> <input type="hidden" name="did" id="did" value="<?php echo $_GET['did']; ?>">
+1 -1
View File
@@ -19,7 +19,7 @@ $fdata = $database->getResourceLevel($village['wref']);
if(isset($id)) if(isset($id))
{ {
include("search2.tpl"); ?> 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"> <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="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="id" value="<?php echo $_GET['did']; ?>" /> <input type="hidden" name="id" value="<?php echo $_GET['did']; ?>" />
+2 -2
View File
@@ -14,7 +14,7 @@
<img src="../img/admin/admin.gif" width="468" height="60" border="0"> <img src="../img/admin/admin.gif" width="468" height="60" border="0">
</div> </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"> <form method="post" action="admin.php">
<input type="hidden" name="action" value="login"> <input type="hidden" name="action" value="login">
@@ -48,5 +48,5 @@
</tbody> </tbody>
</table> </table>
</p> </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> </form>
+1 -1
View File
@@ -12,7 +12,7 @@
<style> <style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);} .del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style> </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"> <table id="member" style="width:225px">
<thead> <thead>
<tr> <tr>
+4 -4
View File
@@ -12,10 +12,10 @@
$msg = $database->getMessage($_GET['nid'],3);; $msg = $database->getMessage($_GET['nid'],3);;
if($msg) if($msg)
{ ?> { ?>
<link href="../gpack/travian_default/lang/en/lang.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="../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">
<link href="../gpack/travian_default/travian.css?e21d2" rel="stylesheet" type="text/css"> <link href="../<?php echo GP_LOCATE; ?>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?e21d2" rel="stylesheet" type="text/css">
<br /> <br />
+3 -3
View File
@@ -50,7 +50,7 @@
<td>Give how much Gold?</td> <td>Give how much Gold?</td>
<td> <td>
<input class="give_gold" name="gold" value="0"> <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> <a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a></td>
</tr> </tr>
</form><?php </form><?php
@@ -118,7 +118,7 @@
{ {
$tsdiffact = $datetime - $now; $tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact); $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>"; echo "<font color=\"blue\"> $timetoecho</font>";
} }
} }
@@ -172,7 +172,7 @@
<td>Add how many CP?</td> <td>Add how many CP?</td>
<td> <td>
<input class="give_gold" name="cp" value="0"> <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> <a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a>
</td> </td>
</tr> </tr>
+3 -3
View File
@@ -53,9 +53,9 @@
<td>$rank</td> <td>$rank</td>
<td>$week</td> <td>$week</td>
<td>$points</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> <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> </td>
</tr>"; </tr>";
} }
@@ -84,7 +84,7 @@
<td> <td>
<form action="../GameEngine/Admin/Mods/deletemedalbyuser.php" method="POST"> <form action="../GameEngine/Admin/Mods/deletemedalbyuser.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>"> <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> </form>
</td> </td>
</tbody> </tbody>
+5 -5
View File
@@ -19,7 +19,7 @@
{ {
$tsdiffact = $datetime - $now; $tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact); $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>"; echo "<font color=\"blue\"> $timetoecho</font>";
} }
} }
@@ -56,7 +56,7 @@
{ {
$tsdiffact = $datetime - $now; $tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact); $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>"; echo "<font color=\"blue\"> $timetoecho</font>";
} }
} }
@@ -93,7 +93,7 @@
{ {
$tsdiffact = $datetime - $now; $tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact); $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>"; echo "<font color=\"blue\"> $timetoecho</font>";
} }
} }
@@ -131,7 +131,7 @@
{ {
$tsdiffact = $datetime - $now; $tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact); $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>"; echo "<font color=\"blue\"> $timetoecho</font>";
} }
} }
@@ -169,7 +169,7 @@
{ {
$tsdiffact = $datetime - $now; $tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact); $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>"; echo "<font color=\"blue\"> $timetoecho</font>";
} }
} }
+2 -2
View File
@@ -63,7 +63,7 @@ $result = $admin->search_village($_POST['s']);
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <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> <center>
<font color="red">'.count($result).'</font> Villages Found "<font color="red">'.$_POST['s'].'</font>" <font color="red">'.count($result).'</font> Villages Found "<font color="red">'.$_POST['s'].'</font>"
</center> </center>
@@ -79,7 +79,7 @@ $result = $admin->search_village($_POST['s']);
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <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> <center>
<font color="#9F9F90">No Villages Called</font> <font color="red">'.$_POST['s'].'</font> <font color="#9F9F90">No Villages Called</font> <font color="red">'.$_POST['s'].'</font>
</center> </center>
+6 -6
View File
@@ -100,7 +100,7 @@ $users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users"
</thead> </thead>
<tbody> <tbody>
<tr> <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 $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> <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> </tr>
@@ -115,7 +115,7 @@ $users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users"
<?php <?php
for($i=1; $i<11; $i++) 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>'; echo '</thead><tbody>';
for($i=1; $i<11; $i++) 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>"; echo "</tr>";
for($i=11; $i<21; $i++) 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>'; echo '</thead><tbody>';
for($i=11; $i<21; $i++) 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>"; echo "</tr>";
for($i=21; $i<31; $i++) 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>'; echo '</thead><tbody>';
for($i=21; $i<31; $i++) 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>"; echo "</tr>";
for($i=31; $i<41; $i++) 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>'; echo '</thead><tbody>';
for($i=31; $i<41; $i++) 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>"; echo "</tr>";
for($i=41; $i<51; $i++) 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>'; echo '</thead><tbody>';
for($i=41; $i<51; $i++) for($i=41; $i<51; $i++)
+20 -20
View File
@@ -207,16 +207,16 @@
echo ' echo '
</tr></thead><tbody> </tr></thead><tbody>
<tr> <tr>
<td><center /><img src="../gpack/travian_default/img/u/31.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/31.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/32.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/32.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/33.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/33.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/34.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/34.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/35.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/35.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/36.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/36.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/37.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/37.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/38.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/38.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/39.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>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/40.gif"></img></td>
</tr> </tr>
<tr> <tr>
<td><center />'.$u31.'</td> <td><center />'.$u31.'</td>
@@ -237,16 +237,16 @@
echo ' echo '
</tr></thead><tbody> </tr></thead><tbody>
<tr> <tr>
<td><center /><img src="../gpack/travian_default/img/u/41.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/41.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/42.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/42.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/43.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/43.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/44.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/44.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/45.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/45.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/46.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/46.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/47.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/47.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/48.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/48.gif"></img></td>
<td><center /><img src="../gpack/travian_default/img/u/49.gif"></img></td> <td><center /><img src="../<?php echo GP_LOCATE; ?>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/50.gif"></img></td>
</tr> </tr>
+1 -1
View File
@@ -62,7 +62,7 @@ if(isset($id))
<style> <style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);} .del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style> </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 /> <br />
<table id="profile" cellpadding="1" cellspacing="1" > <table id="profile" cellpadding="1" cellspacing="1" >
+203 -194
View File
@@ -13,213 +13,222 @@ include("Session.php");
class Account { class Account {
function Account() { function Account() {
global $session; global $session;
if(isset($_POST['ft'])) { if(isset($_POST['ft'])) {
switch($_POST['ft']) { switch($_POST['ft']) {
case "a1": case "a1":
$this->Signup(); $this->Signup();
break; break;
case "a2": case "a2":
$this->Activate(); $this->Activate();
break; break;
case "a3": case "a3":
$this->Unreg(); $this->Unreg();
break; break;
case "a4": case "a4":
$this->Login(); $this->Login();
break; break;
} }
} if(isset($_GET['code'])) { } if(isset($_GET['code'])) {
$_POST['id'] = $_GET['code']; $this->Activate(); $_POST['id'] = $_GET['code']; $this->Activate();
} }
else { else {
if($session->logged_in && in_array("logout.php",explode("/",$_SERVER['PHP_SELF']))) { if($session->logged_in && in_array("logout.php",explode("/",$_SERVER['PHP_SELF']))) {
$this->Logout(); $this->Logout();
} }
} }
} }
private function Signup() { private function Signup() {
global $database,$form,$mailer,$generator,$session; global $database,$form,$mailer,$generator,$session;
if(!isset($_POST['name']) || $_POST['name'] == "") { if(!isset($_POST['name']) || $_POST['name'] == "") {
$form->addError("name",USRNM_EMPTY); $form->addError("name",USRNM_EMPTY);
} }
else { else {
if(strlen($_POST['name']) < USRNM_MIN_LENGTH) { if(strlen($_POST['name']) < USRNM_MIN_LENGTH) {
$form->addError("name",USRNM_SHORT); $form->addError("name",USRNM_SHORT);
} }
else if(!USRNM_SPECIAL && preg_match('/[^0-9A-Za-z]/',$_POST['name'])) { else if(!USRNM_SPECIAL && preg_match('/[^0-9A-Za-z]/',$_POST['name'])) {
$form->addError("name",USRNM_CHAR); $form->addError("name",USRNM_CHAR);
} }
else if($database->checkExist($_POST['name'],0)) { else if($database->checkExist($_POST['name'],0)) {
$form->addError("name",USRNM_TAKEN); $form->addError("name",USRNM_TAKEN);
} }
else if($database->checkExist_activate($_POST['name'],0)) { else if($database->checkExist_activate($_POST['name'],0)) {
$form->addError("name",USRNM_TAKEN); $form->addError("name",USRNM_TAKEN);
} }
} }
if(!isset($_POST['pw']) || $_POST['pw'] == "") { if(!isset($_POST['pw']) || $_POST['pw'] == "") {
$form->addError("pw",PW_EMPTY); $form->addError("pw",PW_EMPTY);
} }
else { else {
if(strlen($_POST['pw']) < PW_MIN_LENGTH) { if(strlen($_POST['pw']) < PW_MIN_LENGTH) {
$form->addError("pw",PW_SHORT); $form->addError("pw",PW_SHORT);
} }
else if($_POST['pw'] == $_POST['name']) { else if($_POST['pw'] == $_POST['name']) {
$form->addError("pw",PW_INSECURE); $form->addError("pw",PW_INSECURE);
} }
} }
if(!isset($_POST['email'])) { if(!isset($_POST['email'])) {
$form->addError("email",EMAIL_EMPTY); $form->addError("email",EMAIL_EMPTY);
} }
else { else {
if(!$this->validEmail($_POST['email'])) { if(!$this->validEmail($_POST['email'])) {
$form->addError("email",EMAIL_INVALID); $form->addError("email",EMAIL_INVALID);
} }
else if($database->checkExist($_POST['email'],1)) { else if($database->checkExist($_POST['email'],1)) {
$form->addError("email",EMAIL_TAKEN); $form->addError("email",EMAIL_TAKEN);
} }
else if($database->checkExist_activate($_POST['email'],1)) { else if($database->checkExist_activate($_POST['email'],1)) {
$form->addError("email",EMAIL_TAKEN); $form->addError("email",EMAIL_TAKEN);
} }
} }
if(!isset($_POST['vid'])) { if(!isset($_POST['vid'])) {
$form->addError("tribe",TRIBE_EMPTY); $form->addError("tribe",TRIBE_EMPTY);
} }
if(!isset($_POST['agb'])) { if(!isset($_POST['agb'])) {
$form->addError("agree",AGREE_ERROR); $form->addError("agree",AGREE_ERROR);
} }
if($form->returnErrors() > 0) { if($form->returnErrors() > 0) {
$_SESSION['errorarray'] = $form->getErrors(); $_SESSION['errorarray'] = $form->getErrors();
$_SESSION['valuearray'] = $_POST; $_SESSION['valuearray'] = $_POST;
header("Location: anmelden.php"); header("Location: anmelden.php");
} }
else { else {
if(AUTH_EMAIL){ if(AUTH_EMAIL){
$act = $generator->generateRandStr(10); $act = $generator->generateRandStr(10);
$act2 = $generator->generateRandStr(5); $act2 = $generator->generateRandStr(5);
$uid = $database->activate($_POST['name'],md5($_POST['pw']),$_POST['email'],$_POST['vid'],$_POST['kid'],$act,$act2); $uid = $database->activate($_POST['name'],md5($_POST['pw']),$_POST['email'],$_POST['vid'],$_POST['kid'],$act,$act2);
if($uid) { if($uid) {
$mailer->sendActivate($_POST['email'],$_POST['name'],$_POST['pw'],$act); $mailer->sendActivate($_POST['email'],$_POST['name'],$_POST['pw'],$act);
header("Location: activate.php?id=$uid&q=$act2"); header("Location: activate.php?id=$uid&q=$act2");
} }
} }
else { else {
$uid = $database->register($_POST['name'],md5($_POST['pw']),$_POST['email'],$_POST['vid'],$_POST['kid'],$act); $uid = $database->register($_POST['name'],md5($_POST['pw']),$_POST['email'],$_POST['vid'],$_POST['kid'],$act);
if($uid) { if($uid) {
setcookie("COOKUSR",$_POST['name'],time()+COOKIE_EXPIRE,COOKIE_PATH); setcookie("COOKUSR",$_POST['name'],time()+COOKIE_EXPIRE,COOKIE_PATH);
setcookie("COOKEMAIL",$_POST['email'],time()+COOKIE_EXPIRE,COOKIE_PATH); setcookie("COOKEMAIL",$_POST['email'],time()+COOKIE_EXPIRE,COOKIE_PATH);
$database->updateUserField($uid,"act","",1); $database->updateUserField($uid,"act","",1);
$this->generateBase($_POST['kid'],$uid,$_POST['name']); $database->updateUserField($uid,"invited",$_POST['invited'],1);
header("Location: login.php"); $this->generateBase($_POST['kid'],$uid,$_POST['name']);
} header("Location: login.php");
} }
} }
} }
}
private function Activate() { private function Activate() {
global $database; if(START_DATE < date('m/d/Y') or START_DATE == date('m/d/Y') && START_TIME <= date('H:i'))
$q = "SELECT * FROM ".TB_PREFIX."activate where act = '".$_POST['id']."'"; {
$result = mysql_query($q, $database->connection); global $database;
$dbarray = mysql_fetch_array($result); $q = "SELECT * FROM ".TB_PREFIX."activate where act = '".$_POST['id']."'";
if($dbarray['act'] == $_POST['id']) { $result = mysql_query($q, $database->connection);
$uid = $database->register($dbarray['username'],$dbarray['password'],$dbarray['email'],$dbarray['tribe'],$dbarray['location'],""); $dbarray = mysql_fetch_array($result);
if($uid) { if($dbarray['act'] == $_POST['id']) {
$database->unreg($dbarray['username']); $uid = $database->register($dbarray['username'],$dbarray['password'],$dbarray['email'],$dbarray['tribe'],$dbarray['location'],"");
$this->generateBase($dbarray['kid'],$uid,$dbarray['username']); if($uid) {
header("Location: activate.php?e=2"); $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?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() { private function Unreg() {
global $database,$session,$form; global $database;
if(!isset($_POST['user']) || $_POST['user'] == "") { $q = "SELECT * FROM ".TB_PREFIX."activate where id = '".$_POST['id']."'";
$form->addError("user",LOGIN_USR_EMPTY); $result = mysql_query($q, $database->connection);
} $dbarray = mysql_fetch_array($result);
else if(!$database->checkExist($_POST['user'],0)) { if(md5($_POST['pw']) == $dbarray['password']) {
$form->addError("user",USR_NT_FOUND); $database->unreg($dbarray['username']);
} header("Location: anmelden.php");
if(!isset($_POST['pw']) || $_POST['pw'] == "") { }
$form->addError("pw",LOGIN_PASS_EMPTY); else {
} header("Location: activate.php?e=3");
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"); private function Login() {
} global $database,$session,$form;
else { if(!isset($_POST['user']) || $_POST['user'] == "") {
setcookie("COOKUSR",$_POST['user'],time()+COOKIE_EXPIRE,COOKIE_PATH); $form->addError("user",LOGIN_USR_EMPTY);
$database->UpdateOnline("login" ,$_POST['user'],time()); }
$session->login($_POST['user']); 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;
private function Logout() { header("Location: login.php");
global $session,$database; }
unset($_SESSION['wid']); else {
$database->activeModify($session->username,1); setcookie("COOKUSR",$_POST['user'],time()+COOKIE_EXPIRE,COOKIE_PATH);
$database->UpdateOnline("logout") or die(mysql_error()); $database->UpdateOnline("login" ,$_POST['user'],time());
$session->Logout(); $session->login($_POST['user']);
} }
}
private function validEmail($email) { private function Logout() {
$regexp="/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/i"; global $session,$database;
if ( !preg_match($regexp, $email) ) { unset($_SESSION['wid']);
return false; $database->activeModify($session->username,1);
} $database->UpdateOnline("logout") or die(mysql_error());
return true; $session->Logout();
} }
function generateBase($kid,$uid,$username) { private function validEmail($email) {
global $database,$message; $regexp="/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/i";
$database->updateUserField($uid,"location","",1); if ( !preg_match($regexp, $email) ) {
if($kid == 0) { return false;
$kid = rand(1,4); }
} return true;
else{ }
$kid = $_POST['kid'];
}
$wid = $database->generateBase($kid); function generateBase($kid,$uid,$username) {
$database->setFieldTaken($wid); global $database,$message;
$database->addVillage($wid,$uid,$username,1); if($kid == 0) {
$database->addResourceFields($wid,$database->getVillageType($wid)); $kid = rand(1,4);
$database->addUnits($wid); }
$database->addTech($wid); else{
$database->addABTech($wid); $kid = $_POST['kid'];
$database->updateUserField($uid,"access",USER,1); }
$message->sendWelcome($uid,$username);
} $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; $account = new Account;
+19 -3
View File
@@ -168,6 +168,7 @@ class Automation {
$this->sendSettlersComplete(); $this->sendSettlersComplete();
} }
$this->updateGeneralAttack(); $this->updateGeneralAttack();
$this->checkInvitedPlayes();
$this->updateStore(); $this->updateStore();
} }
@@ -1912,8 +1913,8 @@ if($data['t11'] > 0){
$walllevel =0; $walllevel =0;
$rplevel =0; $rplevel =0;
} }
$palaceimg = "<img src=\"gpack/travian_default/img/g/g26.gif\" height=\"30\" width=\"24\" alt=\"Palace\" title=\"Palace\" />"; $palaceimg = "<img src=\"<?php echo GP_LOCATE; ?>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\" />"; $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." $info_spy = "".$spy_pic.",".$palaceimg." Residance/Palace Level : ".$rplevel."
<br>".$crannyimg." Cranny level: ".$crannylevel."<br><br>Wall Level : ".$walllevel.""; <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; global $building,$database;
$ourFileHandle = @fopen("GameEngine/Prevention/demolition.txt", 'w'); $ourFileHandle = @fopen("GameEngine/Prevention/demolition.txt", 'w');
@fclose($ourFileHandle); @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() { private function updateGeneralAttack() {
global $database; global $database;
$time = time(); $time = time();
+6
View File
@@ -139,6 +139,12 @@
return $dbarray[$field]; 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){ function getVrefField($ref, $field){
$q = "SELECT $field FROM " . TB_PREFIX . "vdata where wref = '$ref'"; $q = "SELECT $field FROM " . TB_PREFIX . "vdata where wref = '$ref'";
$result = mysql_query($q, $this->connection) or die(mysql_error()); $result = mysql_query($q, $this->connection) or die(mysql_error());
+22 -2
View File
@@ -33,8 +33,28 @@ Greetings,
TravianX"; TravianX";
$headers = "From: Mailer@".SERVER_NAME."\n"; $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); mail($email, $subject, $message, $headers);
} }
+27 -6
View File
@@ -14,16 +14,17 @@ include("Templates/Plus/pmenu.tpl");
<h3>1) Invite your friends via Email</h3> <h3>1) Invite your friends via Email</h3>
<?php if($session->access != BANNED){ ?> <?php if($session->access != BANNED){ ?>
<p><a href="plus.php?id=5&amp;a=1&amp;mail">&raquo; Invite by e-mail</a></p> <p><a href="plus.php?id=5&amp;a=1&amp;mail">&raquo; Invite by e-mail</a></p>
<?php }else{ ?> <?php }else{ ?>
<p><a href="banned.php">&raquo; Invite by e-mail</a></p> <p><a href="banned.php">&raquo; Invite by e-mail</a></p>
<?php } ?> <?php } ?>
<h3>2) Copy your personal REF-Link and share it!</h3><span class="notice">Your personal REF Link:</span> <h3>2) Copy your personal REF-Link and share it!</h3><span class="notice">Your personal REF Link:</span>
<br> <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> <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"> <table id="brought_in" cellpadding="1" cellspacing="1">
<thead> <thead>
@@ -32,10 +33,6 @@ include("Templates/Plus/pmenu.tpl");
</tr> </tr>
<tr> <tr>
<td></td>
<td>World</td>
<td>UID</td> <td>UID</td>
<td>Member since</td> <td>Member since</td>
@@ -45,9 +42,33 @@ include("Templates/Plus/pmenu.tpl");
<td>Villages</td> <td>Villages</td>
</tr> </tr>
</thead> </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> <tr>
<td class="none" colspan="6">You have not brought in any new players yet.</td> <td class="none" colspan="6">You have not brought in any new players yet.</td>
</tr> </tr>
<?php } ?>
</tbody>
</table> </table>
</div> </div>
+80
View File
@@ -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">&raquo; 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>
+184 -43
View File
@@ -3,63 +3,204 @@
<?php <?php
if(isset($_GET['id']) && isset($_GET['q'])) { if(isset($_GET['id']) && isset($_GET['q'])) {
$act2=$database->getActivateField($_GET['id'],"act2",0); $act2=$database->getActivateField($_GET['id'],"act2",0);
if($act2==$_GET['q']){ if($act2==$_GET['q']){
$show='1'; $show='1';
$naam=$database->getActivateField($_GET['id'],"username",0); $naam=$database->getActivateField($_GET['id'],"username",0);
$email=$database->getActivateField($_GET['id'],"email",0); $email=$database->getActivateField($_GET['id'],"email",0);
} }
} }
if(isset($show)){ if(isset($show)){
?> ?>
<h1><img src="img/x.gif" class="anmelden" alt="register for the game"></h1> <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> <h5><img src="img/x.gif" class="img_u05" alt="registration"/></h5>
<p> <p>
Hello <?php echo $naam; ?>, Hello <?php echo $naam; ?>,
<br/> <br/>
<br/> <br/>
The registration was successful. In the next few minutes you will receive an email with the access information. The registration was successful. In the next few minutes you will receive an email with the access information.
<br /><br /> <br /><br />
The email will be sent to following address: <span class="important"><?php echo $email; ?></span> The email will be sent to following address: <span class="important"><?php echo $email; ?></span>
</p> </p>
<p>In order to activate your account enter the code or click on the link in your email.</p> <p>In order to activate your account enter the code or click on the link in your email.</p>
<div id="activation"> <div id="activation">
<form action="activate.php" method="post"> <form action="activate.php" method="post">
<p class="important"> <p class="important">
Activation code: Activation code:
</p> </p>
<input class="text" type="text" name="id" maxlength="10" /> <input class="text" type="text" name="id" maxlength="10" />
<p> <p>
<input type="image" value="ok" name="s1" src="img/x.gif" id="btn_send" class="dynamic_img" alt="send"/> <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" /> <input type="hidden" name="ft" value="a2" />
</p> </p>
</form> </form>
</div> </div>
<div id="no_mail"> <div id="no_mail">
<p> <p>
<a href="activate.php?id=<?php echo $_GET['id']; ?>&amp;c=<?php echo $generator->encodeStr($email,5); ?>"><span class="important">No email received?</span></a> <a href="activate.php?id=<?php echo $_GET['id']; ?>&amp;c=<?php echo $generator->encodeStr($email,5); ?>"><span class="important">No email received?</span></a>
</p> </p>
<p> <p>
Sometimes the email is moved to the spam folder. For further help click <a href="activate.php?id=<?php echo $_GET['id']; ?>&amp;c=<?php echo $generator->encodeStr($email,5); ?>">here</a> Sometimes the email is moved to the spam folder. For further help click <a href="activate.php?id=<?php echo $_GET['id']; ?>&amp;c=<?php echo $generator->encodeStr($email,5); ?>">here</a>
</p> </p>
</div>
</div> </div>
<?php } else { </div>
?> <?php if(START_DATE > date('m/d/Y') or START_DATE == date('m/d/Y') && START_TIME <= date('H:i')){ ?>
<p> <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";
<div id="activation"> function calcage(secs, num1, num2) {
<form action="activate.php" method="post"> s = ((Math.floor(secs/num1))%num2).toString();
<p class="important"> if (LeadingZero && s.length < 2)
Activation code: s = "0" + s;
</p> return "" + s + "";
<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"/> 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" /> <input type="hidden" name="ft" value="a2" />
</p> </p>
</form>
</form> <?php } ?>
</div> </div>
</div> </div>
+38 -64
View File
@@ -14,21 +14,21 @@ include('GameEngine/Account.php');
?> ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html> <html>
<head> <head>
<title><?php echo SERVER_NAME; ?></title> <title><?php echo SERVER_NAME; ?></title>
<link REL="shortcut icon" HREF="favicon.ico"/> <link REL="shortcut icon" HREF="favicon.ico"/>
<meta name="content-language" content="en" /> <meta name="content-language" content="en" />
<meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="imagetoolbar" content="no" /> <meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="mt-core.js?0faaa" type="text/javascript"></script> <script src="mt-core.js?0faaa" type="text/javascript"></script>
<script src="mt-more.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="unx.js?0faaa" type="text/javascript"></script>
<script src="new.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/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; ?>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 ?>travian.css?f4b7c" rel="stylesheet" type="text/css" />
<link href="<?php echo GP_LOCATE ?>lang/en/lang.css" rel="stylesheet" type="text/css" /> <link href="<?php echo GP_LOCATE ?>lang/en/lang.css" rel="stylesheet" type="text/css" />
</head> </head>
<body class="v35 ie ie7" onload="initCounter()"> <body class="v35 ie ie7" onload="initCounter()">
@@ -41,55 +41,29 @@ include('GameEngine/Account.php');
<?php include("Templates/menu.tpl"); ?> <?php include("Templates/menu.tpl"); ?>
<div id="content" class="activate"> <div id="content" class="activate">
<?php <?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");
}
/*if(isset($_GET['e'])) { 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: switch($_GET['e'])
include("Templates/activate/delete.tpl"); {
break; case 1:
case 2: include("Templates/activate/delete.tpl");
include("Templates/activate/activated.tpl"); break;
break; case 2:
case 3: include("Templates/activate/activated.tpl");
include("Templates/activate/cantfind.tpl"); break;
break; case 3:
} include("Templates/activate/cantfind.tpl");
} else break;
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'])) {
} else $c=$database->getActivateField($_GET['id'],"email",0);
if(isset($_GET['id']) && !isset($_GET['c']) && !isset($_GET['e'])) { if($_GET['c'] == $generator->encodeStr($c,5)){
include("Templates/activate/activate.tpl"); include("Templates/activate/delete.tpl");
} } else { include("Templates/activate/activate.tpl"); }
else if(isset($_GET['usr']) && !isset($_GET['c']) && !isset($_GET['e'])) { } else {
$_COOKIE['COOKUSR'] = $_GET['usr']; include("Templates/activate/activate.tpl");
$_COOKIE['COOKEMAIL'] = $database->getUserField($_GET['usr'],"email",1); }
include("Templates/activate/activate.tpl");
} else
if(isset($_GET['npw'])) {
} else {
}*/
?> ?>
</div> </div>
@@ -97,9 +71,9 @@ if(isset($_GET['npw'])) {
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="footer-stopper outgame"></div> <div class="footer-stopper outgame"></div>
<div class="clear"></div> <div class="clear"></div>
<?php include("Templates/footer.tpl"); ?> <?php include("Templates/footer.tpl"); ?>
+1
View File
@@ -48,6 +48,7 @@ if(REG_OPEN == true){ ?>
<p><?php echo BEFORE_REGISTER; ?></p> <p><?php echo BEFORE_REGISTER; ?></p>
<form name="snd" method="post" action="anmelden.php"> <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" /> <input type="hidden" name="ft" value="a1" />
<table cellpadding="1" cellspacing="1" id="sign_input"> <table cellpadding="1" cellspacing="1" id="sign_input">
+1 -1
View File
@@ -243,7 +243,7 @@ define("COOKIE_PATH", "/");
//////////////////////////////////////////// ////////////////////////////////////////////
define("DOMAIN", "%DOMAIN%"); define("DOMAIN", "%DOMAIN%");
define("HOMEPAGE", "%HOMEPAGE%"); define("HOMEPAGE", "%HOMEPAGE%");
define("SERVER", "%DOMAIN%"); define("SERVER", "%SERVER%");
$requse = 0; $requse = 0;
+1
View File
@@ -1318,6 +1318,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%users` (
`clp` bigint(255) NOT NULL DEFAULT '0', `clp` bigint(255) NOT NULL DEFAULT '0',
`oldrank` bigint(255) unsigned NOT NULL DEFAULT '0', `oldrank` bigint(255) unsigned NOT NULL DEFAULT '0',
`regtime` int(10) unsigned NOT NULL DEFAULT '0', `regtime` int(10) unsigned NOT NULL DEFAULT '0',
`invited` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
+1
View File
@@ -76,6 +76,7 @@
$text = preg_replace("'%STARTTIME%'", time(), $text); $text = preg_replace("'%STARTTIME%'", time(), $text);
$text = preg_replace("'%DOMAIN%'", $_POST['domain'], $text); $text = preg_replace("'%DOMAIN%'", $_POST['domain'], $text);
$text = preg_replace("'%HOMEPAGE%'", $_POST['homepage'], $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("'%LIMIT_MAILBOX%'", $_POST['limit_mailbox'], $text);
$text = preg_replace("'%MAX_MAILS%'", $_POST['max_mails'], $text); $text = preg_replace("'%MAX_MAILS%'", $_POST['max_mails'], $text);
$text = preg_replace("'%DEMOLISH%'", $_POST['demolish'], $text); $text = preg_replace("'%DEMOLISH%'", $_POST['demolish'], $text);
+2
View File
@@ -33,6 +33,8 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
<option value="False">False</option> <option value="False">False</option>
</select> </select>
</td></tr><tr></tr> </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">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> <td><span class="f9 c6">Language:</span></td><td>
<select name="lang"> <select name="lang">
+6 -1
View File
@@ -84,7 +84,9 @@ include("Templates/Plus/3.tpl");
if ($id == 4) { if ($id == 4) {
include("Templates/Plus/4.tpl"); 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"); include("Templates/Plus/5.tpl");
} }
if ($id == 7) { if ($id == 7) {
@@ -117,6 +119,9 @@ include("Templates/Plus/15.tpl");
if ($id > 15) { if ($id > 15) {
include("Templates/Plus/3.tpl"); include("Templates/Plus/3.tpl");
} }
if(isset($_POST['mail'])) {
$mailer->sendInvite($_POST['mail'],$session->uid,$_POST['text']);
}
?> ?>
<div id="side_info"> <div id="side_info">