20.01.2012, 21:05
mach ich gern
Code:
{php}
$nume_player=urldecode($this->_tpl_vars['user']['username']);
$nume_sat=$this->_tpl_vars['village']['name'];
if(preg_match('/s Dorf/', $nume_sat)) {
$this->_tpl_vars['village']['name']="{$nume_player}s Dorf";
$nume_sat=$this->_tpl_vars['village']['name'];
$id_sat=$this->_tpl_vars['village']['id'];
mysql_query("UPDATE `villages` set `name`='$nume_sat' where `id`='$id_sat'");
}
{/php}
{php}$this->_tpl_vars['allow_screens'][]="friends";{/php}
{php}$this->_tpl_vars['allow_screens'][]="support";{/php}
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$village.name} ({$village.x}|{$village.y}) - Master Stämme</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="shortcut icon" href="/graphic/rabe_38x40.png" type="image/x-icon" />
<link rel="icon" href="/graphic/rabe_38x40.png" type="image/x-icon" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="stamm.css" />
<script src="script.js?1159978916" type="text/javascript"></script>
<script src="menu.js?1148466057" type="text/javascript"></script>
</head>
<body id="ds_body" class=" ">
<div class="top_bar">
<div class="bg_left"> </div>
<div class="bg_right"> </div>
</div>
<div class="top_shadow"> </div>
<table id="main_layout" cellspacing="0">
<tbody>
<tr style="height: 48px;">
<td class="topbar left fixed"/>
<td class="topbar center fixed">
<div id="topContainer" style="margin-left: 0px">
<table id="topTable" style="text-align: center;" cellspacing="0">
<tbody>
<tr>
<td style="text-align: center;">
<table class="menu nowrap" style="white-space: nowrap; ">
<tbody>
<tr id="menu_row">
<td class="menu-item">
<a href="game.php?village={$village.id}&screen=overview_villages">Übersichten</a><table cellspacing="0" class="menu_column"><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=overview_villages&mode=combined">Kombiniert</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=overview_villages&mode=prod">Produktion</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=overview_villages&mode=units">Truppen</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=overview_villages&mode=commands">Befehle</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=overview_villages&mode=incomings">Eintreffend</a></td></tr><tr></tr><tr><td class="bottom"><div class="corner"></div><div class="decoration"></div></td></tr></table>
</td>
<td class="menu-item">
<a href="game.php?village={$village.id}&screen=report&mode=all"> Berichte</a><table cellspacing="0" class="menu_column"><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=report&mode=all">Alle Berichte</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=report&mode=attack">Angriffe</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=report&mode=defense">Verteidigung</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=report&mode=support">Unterstützung</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=report&mode=trade">Handel</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=report&mode=other">Sonstiges</a></td></tr><tr><td class="bottom"><div class="corner"></div><div class="decoration"></div></td></tr></table></td>
<td class="menu-item">
<a href="game.php?village={$village.id}&screen=mail"> Nachrichten</a><table cellspacing="0" class="menu_column"><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=mail&mode=in">Posteingang</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=mail&mode=out">Postausgang</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=mail&mode=arch">Archiv</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=mail&mode=new">Nachricht schreiben</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=mail&mode=block">Absender blockieren</a></td></tr><tr><td class="bottom"><div class="corner"></div><div class="decoration"></div></td></tr></table></td>
<td class="menu-item">
<a href="game.php?village={$village.id}&screen=ally">Stamm</a><table cellspacing="0" class="menu_column"><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ally&mode=overview">Übersicht</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ally&mode=profile">Profil</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ally&mode=members">Mitglieder</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ally&mode=contracts">Diplomatie</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ally&mode=invite">Einladungen</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ally&mode=intro_igm">Begrüßung</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ally&mode=properties">Eigenschaften</a></td></tr></tr><tr><td class="bottom"><div class="corner"></div><div class="decoration"></div></td></tr></table></td>
<td class="menu-item lpad"> </td>
<td class="menu-item" id="topdisplay">
<div class="bg">
<a href="game.php?village={$village.id}&screen=ranking">Rangliste</a>
<div class="rank">
({$user.rang}.|{$user.points|format_number} P)
</div>
</div>
<table cellspacing="0" class="menu_column"><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ranking&mode=ally">Stämme</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ranking&mode=player">Spieler</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ranking&mode=kill_player&type=all">Besiegte Gegner</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=ranking&mode=awards">Awards</a></td></tr><tr><td class="bottom"><div class="corner"></div><div class="decoration"></div></td></tr></table></div></td>
<td class="menu-item rpad"> </td>
<td class="menu-item">
<a href="game.php?village={$village.id}&screen=settings">Einstellungen</a><table cellspacing="0" class="menu_column"><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=settings&mode=profile">Profil</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=settings&mode=settings">Einstellungen</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=settings&mode=quickbar">Schnellleiste bearbeiten</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=settings&mode=vacation">Urlaubsvertretung</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=settings&mode=logins">Logins</a></td></tr>
<tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=settings&mode=change_passwd">Passwort ändern</a></td></tr><tr><td class="bottom"><div class="corner"></div><div class="decoration"></div></td></tr></table></td>
<td class="menu-item">
<a href="game.php?village={$village.id}&screen=rinfo">Rundeninfos</a><table cellspacing="0" class="menu_column"><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=rinfoalt">Alte Runden</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=rinfo">Aktuelle Runde</a></td></tr><tr><td class="menu-column-item"><a href="game.php?village={$village.id}&screen=rinfoneu">Geplante Runden</a></td></tr><tr></tr><tr><td class="bottom"><div class="corner"></div><div class="decoration"></div></td></tr></table>
</td>
<td class="menu-item">
<a href="game.php?village={$village.id}&screen=memo">Notizen</a>
</td>
<td class="menu-item">
<a href="logout.php" target="_top">Ausloggen</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</td>
<td class="topbar right fixed"> </td>
</tr>
<tr class="shadedBG">
<td class="bg_left">
<div class="bg_left"> </div>
</td>
<td class="maincell" style="width: 790px;">
<br class="newStyleOnly"/>
<hr class="oldStyleOnly"/>
<table id="header_info" align="center" width="100%" cellspacing="0">
<colgroup>
<col width="1%"/>
<col width="96%"/>
<col width="1%"/>
<col width="1%"/>
<col width="1%"/>
</colgroup>
<div align=center>
<div style="background:url(graphic/leiste.png)">
<img src="graphic/buildings/main.png" alt=""> <a href="game.php?village={$village.id}&screen=main">Hauptgebäude </a> <img src="graphic/buildings/barracks.png" alt=""> <a href="game.php?village={$village.id}&screen=barracks">Kaserne </a> <img src="graphic/buildings/stable.png" alt=""> <a href="game.php?village={$village.id}&screen=stable">Stall </a> <img src="graphic/buildings/garage.png" alt=""> <a href="game.php?village={$village.id}&screen=garage">Werkstatt </a> <img src="graphic/buildings/snob.png" alt=""> <a href="game.php?village={$village.id}&screen=snob">Adelshof </a> <img src="graphic/buildings/smith.png" alt=""> <a href="game.php?village={$village.id}&screen=smith">Schmiede </a> <img src="graphic/buildings/place.png" alt=""> <a href="game.php?village={$village.id}&screen=place">Platz </a> <img src="graphic/buildings/market.png" alt=""> <a href="game.php?village={$village.id}&screen=market">Markt</a>
</div>
<br>
<tbody>
<tr>
<td class="topAlign">
<table class="header-border">
<tbody>
<tr>
<td>
<table class="box menu nowrap">
<tbody>
<tr id="menu_row2">
<td id="menu_row2_map" class="box-item firstcell">
<a id="menu_map_link" href="game.php?village={$village.id}&screen=map">Karte</a>
</td>
<td style="white-space:nowrap;" id="menu_row2_village" class="box-item icon-box nowrap">
<a class="nowrap" href="game.php?village={$village.id}&screen=overview&intro">{$village.name}</a>
</td>
<td class="box-item">
<b class="nowrap">({$village.x}|{$village.y}) K{$village.continent}</b>
</td>
<td class="box-item">
{if $aktu_group == 0}
{if $user.villages>1}
{if !empty($village_array.last)}
<a href="{$village_array.last_link}" accesskey="a"><img src="graphic/links.png" alt="" /></a>
{else}
<img src="graphic/links2.png" alt="" />
{/if}
{if !empty($village_array.next)}
<a href="{$village_array.next_link}" accesskey="d"><img src="graphic/rechts.png" alt="" /></a>
{else}
<img src="graphic/rechts2.png" alt="" />
{/if}
{/if}
{else}
{if $user.villages > 1}
{if !empty($village_array.last) and $village_in_group == 'true'}
<a href="{$village_array.last_link}" accesskey="a"><img src="graphic/group_left.png" alt="" /></a>
{else}
<img src="graphic/links2.png" alt="" />
{/if}
{if !empty($village_array.next) and $village_in_group == 'true'}
<a href="{$village_array.next_link}" accesskey="d"><img src="graphic/group_right.png" alt="" /></a>
{else}
<img src="graphic/rechts2.png" alt="" />
{/if}
{if $village_in_group != 'true'}
<a href="{$village_array.first_link}"><img src="graphic/group_jump.png" alt="" title="Dute la primul sat din Grup" /></a>
{/if}
{/if}
{/if}
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="newStyleOnly">
<td class="shadow">
<div class="leftshadow"> </div>
<div class="rightshadow"> </div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="right" class="topAlign"> </td>
<!-- flexible gap -->
<td align="right" class="topAlign">
<table align="right" class="header-border menu_block_right">
<tbody>
<tr>
<td>
<table class="box smallPadding" cellspacing="0" style="empty-cells:show;">
<tbody>
<tr style="height: 20px;">
<td class="box-item icon-box firstcell">
<a href="game.php?village={$village.id}&screen=wood" title="Holz">
<span class="icon header wood"> </span>
</a>
</td>
<td class="box-item">
<span id="wood" title="{$wood_per_hour}" {if $village.r_wood==$max_storage}class="warn"{/if}>{$village.r_wood}</span>
</td>
<td class="box-item icon-box">
<a href="game.php?village={$village.id}&screen=stone" title="Lehm">
<span class="icon header stone"> </span>
</a>
</td>
<td class="box-item">
<span id="stone" title="{$stone_per_hour}" {if $village.r_stone==$max_storage}class="warn"{/if}>{$village.r_stone}</span>
</td>
<td class="box-item icon-box">
<a href="game.php?village={$village.id}&screen=iron" title="Eisen">
<span class="icon header iron"> </span>
</a>
</td>
<td class="box-item">
<span id="iron" title="{$iron_per_hour}" {if $village.r_iron==$max_storage}class="warn"{/if}>{$village.r_iron}</span>
</td>
<td class="box-item icon-box">
<a href="game.php?village={$village.id}&screen=storage" title="Capacitate de depozitare">
<span class="icon header ressources"> </span>
</a>
</td>
<td class="box-item">
<span id="storage">{$max_storage}</span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="newStyleOnly">
<td class="shadow">
<div class="leftshadow"> </div>
<div class="rightshadow"> </div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="right" class="topAlign">
<table class="header-border menu_block_right">
<tbody>
<tr>
<td>
<table class="box smallPadding" cellspacing="0">
<tbody>
<tr>
<td class="box-item icon-box">
<a href="game.php?village={$village.id}&screen=farm" title="Ferm?">
<span class="icon header population"> </span>
</a>
</td>
<td class="box-item" align="center" style="margin:0;padding:1;">
<span id="pop_current_label">{$village.r_bh}/{$max_bh} </span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="newStyleOnly">
<td class="shadow">
<div class="leftshadow"> </div>
<div class="rightshadow"> </div>
</td>
</tr>
</tbody>
</table>
</td>
{if $user.attacks!=0}
<td align="right" class="topAlign">
<table class="header-border menu_block_right">
<tbody>
<tr>
<td>
<table class="box smallPadding" cellspacing="0">
<tbody>
<tr>
<td class="box-item icon-box">
<img src="graphic/unit/att.png" alt="" />
</a>
</td>
<td class="box-item" align="center" style="margin:0;padding:1;">
<td width="60" height="20" align="center">({$user.attacks}) </td>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="newStyleOnly">
<td class="shadow">
<div class="leftshadow"> </div>
<div class="rightshadow"> </div>
</td>
</tr>
</tbody>
</table>
{/if}
</td>
</tr>
</tbody>
</table>
<!-- *********************** CONTENT BELOW ************************** -->
<table align="center" id="contentContainer" width="100%">
<tbody>
<tr>
<td>
<table class="content-border" width="100%" cellspacing="0">
<tbody>
<tr>
<td id="inner-border">
<table class="main" align="left">
<tbody>
<tr>
<td id="content_value">
{if $screen=='rinfo'}
{include file="game_rinfo.tpl"}
{/if}
{if $screen=='rinfoalt'}
{include file="game_rinfoalt.tpl"}
{/if}
{if $screen=='rinfoneu'}
{include file="game_rinfoneu.tpl"}
{/if}
{if in_array($screen,$allow_screens)}
{include file="game_$screen.tpl"}
{else}
<p></p> <img src="" alt="">
{/if}
{if $screen == 'statue'}
{include_php file="statue.php"}
{/if}
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td class="bg_right" >
<div class="bg_right"> </div>
<div style="height: 264px">
</div>
</td>
</tr>
<tr>
<td class="bg_leftborder"> </td>
<td class="server_info" style=" padding-top:7">
<p class="server_info">
generiert in: {$load_msec} ms <b>|</b>
Server Zeit: <span id="serverTime">{$servertime}</span> {php} echo date("d.m.Y") {/php}
</p>
</td>
<td class="bg_rightborder"> </td>
</tr>
<tr class="newStyleOnly">
<td class="bg_bottomleft"> </td>
<td class="bg_bottomcenter"> </td>
<td class="bg_bottomright"> </td>
</tr>
</tbody>
</table>
<script type="text/javascript" src="http://radarstats.com/js/widget.js"></script><script type="text/javascript">radarstats_call_widget("Small", "Blue")</script>
<!-- .main_layout -->
<div id="footer">
<div id="footer_logo"> </div>
<div id="linkContainer" style="max-width: 830px; min-width: 250px;">
<div id="footer_left">
<a href="blanc.php">Blanc</a>
-
<a href="game.php?village={$village.id}&screen=support">Support</a>
-
<a href="help.php"target="_blank" >Hilfe</a>
</div>
<div id="footer_right">
<a href="game.php?village={$village.id}&screen=friends">Freunde</a>
</div>
</div>
</div>
</body>
</html>