mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-24 05:26:19 +00:00
big update (fix sitters, peace system, fix some problems of hero...)
This commit is contained in:
@@ -51,13 +51,7 @@ if (isset($qact)){
|
||||
$database->updateUserField($_SESSION['username'],'quest','2',0);
|
||||
$_SESSION['qst']= 2;
|
||||
//Give Reward
|
||||
if(!$session->plus){
|
||||
mysql_query("UPDATE ".TB_PREFIX."users set plus = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+86400 where `username`='".$_SESSION['username']."'") or die(mysql_error());
|
||||
} else {
|
||||
$plus=$database->getUserField($_SESSION['username'],'plus','username');
|
||||
$plus+=86400;
|
||||
$database->updateUserField($_SESSION['username'],'plus',$plus,0);
|
||||
}
|
||||
$database->FinishWoodcutter($session->villages[0]);
|
||||
break;
|
||||
|
||||
case '3':
|
||||
@@ -65,7 +59,13 @@ if (isset($qact)){
|
||||
$_SESSION['qst']= 3;
|
||||
|
||||
//Give Reward
|
||||
$database->modifyResource($session->villages[0],50,60,30,10,1);
|
||||
if(!$session->plus){
|
||||
mysql_query("UPDATE ".TB_PREFIX."users set plus = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+86400 where `username`='".$_SESSION['username']."'") or die(mysql_error());
|
||||
} else {
|
||||
$plus=$database->getUserField($_SESSION['username'],'plus','username');
|
||||
$plus+=86400;
|
||||
$database->updateUserField($_SESSION['username'],'plus',$plus,0);
|
||||
}
|
||||
break;
|
||||
|
||||
case '4':
|
||||
|
||||
@@ -6,8 +6,17 @@
|
||||
| <a href="allianz.php?s=6" <?php if(isset($_GET['s']) && $_GET['s'] == 6) { echo "class=\"selected\""; } ?>>Chat</a>
|
||||
| <a href="allianz.php?s=3" <?php if(isset($_GET['s']) && $_GET['s'] == 3) { echo "class=\"selected\""; } ?>>Attacks</a>
|
||||
| <a href="allianz.php?s=4" <?php if(isset($_GET['s']) && $_GET['s'] == 4) { echo "class=\"selected\""; } ?>>News</a>
|
||||
|
||||
<?php
|
||||
if($session->sit == 0){
|
||||
?>
|
||||
| <a href="allianz.php?s=5" <?php if(isset($_GET['s']) && $_GET['s'] == 5) { echo "class=\"selected\""; } ?>>Options</a>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
| <span class=none><b>Options</b></span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ if($units_incoming >= 1){
|
||||
echo "<td>".$enforce['hero']."</td>";
|
||||
}
|
||||
echo "</tr></tbody>
|
||||
<tbody class=\"infos\"><tr><th>Upkeep</th><td colspan=\"$colspan\"><div class='sup'>".$technology->getUpkeep($enforce,$tribe)."<img class=\"r4\" src=\"img/x.gif\" title=\"Crop\" alt=\"Crop\" />per hour</div><div class='sback'><a href='a2b.php?w=".$enforce['id']."'>Send back</a></div></td></tr>";
|
||||
<tbody class=\"infos\"><tr><th>Upkeep</th><td colspan=\"$colspan\"><div class='sup'>".$technology->getUpkeep($enforce,$tribe)."<img class=\"r4\" src=\"img/x.gif\" title=\"Crop\" alt=\"Crop\" />per hour</div><div class='sback'><span class=none><b>Send back</b></span></div></td></tr>";
|
||||
|
||||
echo "</tbody></table>";
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ $mastertime = $uprequire['time'];
|
||||
<?php
|
||||
if($bindicator == 2) {
|
||||
echo "<span class=\"none\">The workers are already at work.</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
@@ -33,7 +33,7 @@ $mastertime = $uprequire['time'];
|
||||
}
|
||||
else if($bindicator == 3) {
|
||||
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
@@ -57,7 +57,7 @@ $mastertime = $uprequire['time'];
|
||||
else if($bindicator == 7) {
|
||||
$neededtime = $building->calculateAvaliable($id,$bid);
|
||||
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
|
||||
@@ -16,7 +16,7 @@ $uprequire = $building->resourceRequired(99,$bid);
|
||||
<?php
|
||||
if($bindicator == 2) {
|
||||
echo "<span class=\"none\">The workers are already at work.</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1){
|
||||
@@ -30,7 +30,7 @@ $uprequire = $building->resourceRequired(99,$bid);
|
||||
}
|
||||
else if($bindicator == 3) {
|
||||
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1){
|
||||
@@ -54,7 +54,7 @@ $uprequire = $building->resourceRequired(99,$bid);
|
||||
else if($bindicator == 7) {
|
||||
$neededtime = $building->calculateAvaliable(99,$bid);
|
||||
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1){
|
||||
|
||||
@@ -22,7 +22,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
<?php
|
||||
if($bindicate == 2) {
|
||||
echo "<span class=\"none\">The workers are already at work.</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
@@ -46,7 +46,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
}
|
||||
else if($bindicate == 3) {
|
||||
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
@@ -80,7 +80,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
else if($bindicate == 7) {
|
||||
$neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
|
||||
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
|
||||
@@ -42,7 +42,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
<?php
|
||||
if($bindicate == 2) {
|
||||
echo "<span class=\"none\">The workers are already at work.</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
@@ -66,7 +66,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
}
|
||||
else if($bindicate == 3) {
|
||||
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
@@ -100,7 +100,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
else if($bindicate == 7) {
|
||||
$neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
|
||||
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
if($session->goldclub){
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($id <= 18) {
|
||||
|
||||
@@ -389,7 +389,7 @@ while($row = mysql_fetch_array($result)){
|
||||
$dataarray = explode(",",$row['data']);
|
||||
$type = $row['ntype'];
|
||||
echo "<tr><td>";
|
||||
if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"".$topic."\" title=\"".$topic."\" />";
|
||||
}else{
|
||||
echo "<img src=\"img/x.gif\" class=\"iReport iReport".$row['ntype']."\" title=\"".$topic."\"> ";
|
||||
@@ -402,7 +402,7 @@ while($row = mysql_fetch_array($result)){
|
||||
$dataarray = explode(",",$row['data']);
|
||||
$type = $row['ntype'];
|
||||
echo "<tr><td>";
|
||||
if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"".$topic."\" title=\"".$topic."\" />";
|
||||
}else{
|
||||
echo "<img src=\"img/x.gif\" class=\"iReport iReport".$row['ntype']."\" title=\"".$topic."\"> ";
|
||||
|
||||
+10
-10
@@ -150,8 +150,8 @@ for($i=45;$i<=54;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -205,8 +205,8 @@ for($i=66;$i<=75;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -259,8 +259,8 @@ for($i=87;$i<=96;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -314,8 +314,8 @@ for($i=108;$i<=117;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -369,8 +369,8 @@ for($i=129;$i<=138;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
+10
-10
@@ -152,8 +152,8 @@ for($i=45;$i<=54;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -207,8 +207,8 @@ for($i=66;$i<=75;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -261,8 +261,8 @@ for($i=87;$i<=96;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -316,8 +316,8 @@ for($i=108;$i<=117;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -371,8 +371,8 @@ for($i=129;$i<=138;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
+10
-10
@@ -150,8 +150,8 @@ for($i=45;$i<=54;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -205,8 +205,8 @@ for($i=66;$i<=75;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -259,8 +259,8 @@ for($i=87;$i<=96;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -314,8 +314,8 @@ for($i=108;$i<=117;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -369,8 +369,8 @@ for($i=129;$i<=138;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
//reinforcement is underattack
|
||||
$dataarray = explode(",",$message->readingNotice['data']);
|
||||
if(isset($dataarray[14]) and $dataarray[14]!=0){$colspan="11";}else{$colspan="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $message->readingNotice['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($message->readingNotice['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" class="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[3];
|
||||
$start = ($tribe-1)*10+1;
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if(isset($dataarray[14]) and $dataarray[14]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=4;$i<=13;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[14]) and $dataarray[14]!=0){
|
||||
echo "<td>$dataarray[14]</td>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img src="<?php echo GP_LOCATE; ?>img/r/xmas.gif" alt="Peace" title="Peace" />
|
||||
<?php echo "".$database->getUserField($dataarray[0],"username",0)." visited ".$database->getUserField($dataarray[2],"username",0)."'s troops" ?>
|
||||
</td></tr></tbody>
|
||||
</table>
|
||||
</td></tr></tbody></table>
|
||||
+10
-10
@@ -152,8 +152,8 @@ for($i=45;$i<=54;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -207,8 +207,8 @@ for($i=66;$i<=75;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -261,8 +261,8 @@ for($i=87;$i<=96;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -316,8 +316,8 @@ for($i=108;$i<=117;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -371,8 +371,8 @@ for($i=129;$i<=138;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
+10
-10
@@ -150,8 +150,8 @@ for($i=45;$i<=54;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -205,8 +205,8 @@ for($i=66;$i<=75;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -259,8 +259,8 @@ for($i=87;$i<=96;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -314,8 +314,8 @@ for($i=108;$i<=117;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -369,8 +369,8 @@ for($i=129;$i<=138;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
+10
-10
@@ -152,8 +152,8 @@ for($i=45;$i<=54;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -207,8 +207,8 @@ for($i=66;$i<=75;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -261,8 +261,8 @@ for($i=87;$i<=96;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -316,8 +316,8 @@ for($i=108;$i<=117;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -371,8 +371,8 @@ for($i=129;$i<=138;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
+10
-10
@@ -150,8 +150,8 @@ for($i=45;$i<=54;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -205,8 +205,8 @@ for($i=66;$i<=75;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -259,8 +259,8 @@ for($i=87;$i<=96;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -314,8 +314,8 @@ for($i=108;$i<=117;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -369,8 +369,8 @@ for($i=129;$i<=138;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
+10
-10
@@ -152,8 +152,8 @@ for($i=45;$i<=54;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -207,8 +207,8 @@ for($i=66;$i<=75;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -261,8 +261,8 @@ for($i=87;$i<=96;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -316,8 +316,8 @@ for($i=108;$i<=117;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -371,8 +371,8 @@ for($i=129;$i<=138;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
+10
-10
@@ -150,8 +150,8 @@ for($i=45;$i<=54;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -205,8 +205,8 @@ for($i=66;$i<=75;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -259,8 +259,8 @@ for($i=87;$i<=96;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -314,8 +314,8 @@ for($i=108;$i<=117;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -369,8 +369,8 @@ for($i=129;$i<=138;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
+10
-10
@@ -152,8 +152,8 @@ for($i=45;$i<=54;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -207,8 +207,8 @@ for($i=66;$i<=75;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -261,8 +261,8 @@ for($i=87;$i<=96;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -316,8 +316,8 @@ for($i=108;$i<=117;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
@@ -371,8 +371,8 @@ for($i=129;$i<=138;$i++) {
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$noticeClass = array("Scout Report","Won as attacker without losses","Won as attacker with losses","Lost as attacker with losses","Won as defender without losses","Won as defender with losses","Lost as defender with losses","Lost as defender without losses","Reinforcement arrived","","Wood Delivered","Clay Delivered","Iron Delivered","Crop Delivered","","Won as defender without losses","Won as defender with losses","Lost as defender with losses","Won scouting as attacker","Lost scouting as attacker","Won scouting as defender","Lost scouting as defender");
|
||||
$noticeClass = array("Scout Report","Won as attacker without losses","Won as attacker with losses","Lost as attacker with losses","Won as defender without losses","Won as defender with losses","Lost as defender with losses","Lost as defender without losses","Reinforcement arrived","","Wood Delivered","Clay Delivered","Iron Delivered","Crop Delivered","","Won as defender without losses","Won as defender with losses","Lost as defender with losses","Won scouting as attacker","Lost scouting as attacker","Won scouting as defender","Lost scouting as defender","Scout Report");
|
||||
?>
|
||||
<form method="post" action="berichte.php" name="msg">
|
||||
<table cellpadding="1" cellspacing="1" id="overview"
|
||||
@@ -72,7 +72,7 @@ $noticeClass = array("Scout Report","Won as attacker without losses","Won as att
|
||||
if($type==15 or $type==16 or $type==17){
|
||||
$type = $type-11;
|
||||
echo "<img src=\"img/x.gif\" class=\"iReport iReport$type\" alt=\"".$noticeClass[$type]."\" title=\"".$noticeClass[$type]."\" />";
|
||||
}else if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
}else if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"".$noticeClass[$type]."\" title=\"".$noticeClass[$type]."\" />";
|
||||
}else{
|
||||
echo "<img src=\"img/x.gif\" class=\"iReport iReport$type\" alt=\"".$noticeClass[$type]."\" title=\"".$noticeClass[$type]."\" />";
|
||||
|
||||
@@ -15,7 +15,7 @@ if($session->access != BANNED){
|
||||
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
|
||||
|
||||
$today = date("mdHi");
|
||||
|
||||
if($session->sit == 0) {
|
||||
if (mysql_num_rows($MyGold)) {
|
||||
if($golds['6'] > 2) {
|
||||
|
||||
@@ -41,6 +41,7 @@ $done1 = "nothing has been done";
|
||||
$done1 = "You need more gold";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ if($session->access != BANNED){
|
||||
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
|
||||
|
||||
$today = date("mdHi");
|
||||
|
||||
if($session->sit == 0) {
|
||||
if (mysql_num_rows($MyGold)) {
|
||||
if($golds['6'] > 2) {
|
||||
|
||||
@@ -41,6 +41,7 @@ $done1 = "nothing has been done";
|
||||
$done1 = "You need more gold";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ if($session->access != BANNED){
|
||||
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
|
||||
|
||||
$today = date("mdHi");
|
||||
|
||||
if($session->sit == 0) {
|
||||
if (mysql_num_rows($MyGold)) {
|
||||
if($golds['6'] > 2) {
|
||||
|
||||
@@ -41,6 +41,7 @@ $done1 = "nothing has been done";
|
||||
$done1 = "You need more gold";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<tr>
|
||||
<td align="center">
|
||||
<?php
|
||||
if($session->sit == 0) {
|
||||
/* $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
|
||||
$golds = mysql_fetch_array($MyGold);
|
||||
|
||||
@@ -35,6 +36,7 @@
|
||||
echo "<input type='text' name='T4' size='6' value=".$quart."></td>";
|
||||
mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-1)." where `username`='".$session->username."'") or die(mysql_error());
|
||||
*/
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
////////////// made by alq0rsan /////////////////////////
|
||||
if($session->access != BANNED){
|
||||
if($session->gold >= 100) {
|
||||
if($session->gold >= 100 && $session->sit == 0) {
|
||||
mysql_query("UPDATE ".TB_PREFIX."users set goldclub = 1, gold = gold - 100 where `username`='".$session->username."'");
|
||||
}
|
||||
header("Location: plus.php?id=3");
|
||||
|
||||
@@ -17,7 +17,7 @@ if($session->access != BANNED){
|
||||
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
|
||||
|
||||
$today = date("mdHi");
|
||||
|
||||
if($session->sit == 0) {
|
||||
if (mysql_num_rows($MyGold)) {
|
||||
if($golds['6'] > 2) {
|
||||
|
||||
@@ -41,6 +41,7 @@ $done1 = " Nothing has been Completed";
|
||||
$done1 = " You need more Gold";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ if($session->access != BANNED){
|
||||
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
|
||||
|
||||
$today = date("mdHi");
|
||||
|
||||
if($session->sit == 0) {
|
||||
if (mysql_num_rows($MyGold)) {
|
||||
if($golds['6'] > 2) {
|
||||
|
||||
@@ -42,6 +42,7 @@ $done1 = "nothing has been done";
|
||||
$done1 = " You need more gold";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ if($session->access != BANNED){
|
||||
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
|
||||
|
||||
$today = date("mdHi");
|
||||
|
||||
if($session->sit == 0) {
|
||||
if (mysql_num_rows($MyGold)) {
|
||||
if($golds['6'] > 2) {
|
||||
|
||||
@@ -41,6 +41,7 @@ $done1 = "nothing has been done";
|
||||
$done1 = "You need more gold";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<div id="textmenu">
|
||||
<a href="spieler.php?uid=<?php if(isset($_GET['uid'])) { echo $_GET['uid']; } else { echo $session->uid; } ?>" <?php if(isset($_GET['uid'])) { echo "class=\"selected\""; } ?>>Overview</a>
|
||||
| <span class=none><b>Profile</b></span>
|
||||
| <span class=none><b>Preferences</b></span>
|
||||
| <span class=none><b>Account</b></span>
|
||||
<?php
|
||||
if(GP_ENABLE) {
|
||||
?>
|
||||
| <span class=none><b>Graphic pack</b></span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
@@ -27,8 +27,15 @@ foreach($varray as $vil) {
|
||||
?>
|
||||
<h1>Player profile</h1>
|
||||
|
||||
<?php
|
||||
if($_GET['uid'] == $session->uid) { include("menu.tpl"); } ?>
|
||||
<?php
|
||||
if($_GET['uid'] == $session->uid) {
|
||||
if($session->sit == 0){
|
||||
include("menu.tpl");
|
||||
}else{
|
||||
include("menu2.tpl");
|
||||
}
|
||||
}
|
||||
?>
|
||||
<table id="profile" cellpadding="1" cellspacing="1" >
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -118,7 +125,11 @@ if($_GET['uid'] == $session->uid) { include("menu.tpl"); } ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php if($_GET['uid'] == $session->uid) {
|
||||
if($session->sit == 0){
|
||||
echo "<td colspan=\"2\"> <a href=\"spieler.php?s=1\">» Change profile</a></td>";
|
||||
}else{
|
||||
echo "<td colspan=\"2\"> <span class=none><b>» Change profile</b></span></td>";
|
||||
}
|
||||
} else {
|
||||
echo "<td colspan=\"2\"> <a href=\"nachrichten.php?t=1&id=".$_GET['uid']."\">» Write message</a></td>";
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<table id="coords" cellpadding="1" cellspacing="1">
|
||||
<input type="hidden" name="disabledr" value="<?php echo $disabledr; ?>">
|
||||
<input type="hidden" name="disabled" value="<?php echo $disabled; ?>">
|
||||
<tbody><tr>
|
||||
<td class="sel">
|
||||
|
||||
@@ -16,7 +18,7 @@
|
||||
<tr>
|
||||
<td class="sel">
|
||||
<label>
|
||||
<input class="radio" name="c" value="3" type="radio" <?php echo $disabledr ?>>
|
||||
<input class="radio" name="c" value="3" type="radio" <?php echo $disabled; ?>>
|
||||
Normal attack
|
||||
</label>
|
||||
</td>
|
||||
@@ -27,7 +29,7 @@
|
||||
<tr>
|
||||
<td class="sel">
|
||||
<label>
|
||||
<input class="radio" name="c" <?php echo $checked ?> value="4" type="radio">
|
||||
<input class="radio" name="c" <?php echo $checked; ?> value="4" type="radio">
|
||||
Raid
|
||||
</label>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user