// $world = "de19";
$world2 = $welt;
$world = "de" . $world2;
//for tribalwars.net, this must be http://www.tribalwars.net/backend/get_servers.php
// $file = "http://www.die-staemme.de/backend/get_servers.php";
// $host = get_serverdomain($world, $file);
$host0 = $world . ".die-staemme.de";
$path0 = "/guest.php?screen=ranking&mode=player&search";
$path1 = "/guest.php?screen=ranking&mode=ally&search";
$referer0 = "http://".$world.".die-staemme.de/guest.php?screen=ranking&mode=player";
$referer1 = "http://".$world.".die-staemme.de/guest.php?screen=ranking&mode=ally";
$now = time();
$year = date('d.m.Y', $now);
$uhr = date('H:i:s', $now);
$tag = date('D', $now);
$doy = date('z', $now);
$version = "v9.0";
$gfurl = " code created: ".$year." / ".$uhr." - by: [url]http://faulhuber.com".$_SERVER['PHP_SELF']."[/url] " .$version ;
$startdat= "[size=6]Reserviert von [player]".$user."[/player] am : ".date('d.m.Y - H:i:s')." Uhr[/size]\r\n";
if ($limit == "3") $startdat .= "\r\n";
if ($limit != "3" && $limit != "" ) {
if ($limit == "1") $limit2 = 7;
if ($limit == "2") $limit2 = 14;
$enddat2 = date("d.m.Y - H:i:s",strtotime("+".$limit2." day"));
$enddat = "[size=6]Ablauf nach [color=red][b]". $limit2 ." Tage[/b][/color] ->[/size][b] ". $enddat2 ."[/b][size=6] Uhr - [color=red](im Zweifel gilt der Timestamp des Beitrages!)[/color][/size]\r\n\r\n";
}
if ($world2 == "10" ||
$world2 == "13" ||
$world2 == "14" ||
$world2 == "15" ||
$world2 == "16" ||
$world2 == "17" ||
$world2 == "18" ||
$world2 == "19" ||
$world2 == "20" ||
$world2 == "21" ||
$world2 == "22" ||
$world2 == "23" ||
$world2 == "24" ||
$world2 == "25" ||
$world2 == "26" ||
$world2 == "27" ||
$world2 == "28" ||
$world2 == "29" ||
$world2 == "30" ||
$world2 == "31" ||
$world2 == "32" ||
$world2 == "33" ||
$world2 == "34" ||
$world2 == "35" ||
$world2 == "36" ||
$world2 == "37" ||
$world2 == "38" ||
$world2 == "39" ||
$world2 == "40" ||
$world2 == "41" ||
$world2 == "42" ||
$world2 == "43" ||
$world2 == "44" ||
$world2 == "45" ||
$world2 == "46" ||
$world2 == "47" ||
$world2 == "48" ||
$world2 == "49" ||
$world2 == "50" ||
$world2 == "51" ||
$world2 == "52" ||
$world2 == "86") {
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$org = stripslashes($_POST['textarea']);
preg_match('/^(Dorf )(.+)(\r\n)/m', $org, $found);
if (!preg_match('/^('.preg_quote($found[2],'/').')(\r\n)/m', $org))
die ("