All pastes #905249 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-15 17:40 UTC
rendered paste body
<? function my_obstart() {

   $encode = getenv("http_ACCEPT_ENCODING");

   if(ereg("gzip",$encode)) { ob_start("ob_gzhandler"); }; };

   my_obstart();

   session_start();

   //setcookie("PHPSESSID",$PHPSESSID,time()+32400);

   //session_set_cookie_params(32400);

 include('data.php'); //Nur einmal einfügen

 $db = @mysql_connect($db_sever,$db_user,$db_pass); if(!$db){include('config/db_error.php'); exit;};//Generell zur DB Verbinden

 if($index_login){ include('login/in.php'); }; //Login

 if($pos4){$help4=$pos4;}else{$help4=$_SESSION["position"];};

?>

<html>

<head>

<title>Challenge - Planet: <? echo $help4; ?></title>

<link rel="stylesheet" href="css/haupt.css" type="text/css">

<link rel="stylesheet" href="css/button.css" type="text/css">

<SCRIPT language=JavaScript src="js/main.js"></SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
-->
</style></head>

<?

if($index_login){};

$aol=gethostbyaddr($_SERVER["REMOTE_ADDR"]); $aol=explode(".",$aol); if($aol[2]=="aol"){$aol=1;};

if (!$_SESSION["pass"] or !$_SESSION["name"] or (($_SESSION["ip"]!=$_SERVER["REMOTE_ADDR"]) and $aol!=1))
 mysql_close($db); exit;}; ?>

<body style="background:black; margin-top:0px; margin-right:0px;); background-attachment:fixed" onclick="MM_showHideLayers('planeten','','hide')">

<?

function counter($c_id,$dbname,$db){ //Counter

 mysql_db_query($dbname,"update challenge_counter SET betrag =betrag+1 where id = '$c_id'",$db);

};

if($pos4){ //Planet wechseln

 $planet_check =mysql_db_query($dbname,"select * from challenge_planeten where p_besitzer = '$_SESSION[name]' and p_pos='$pos4'",$db);

 if(mysql_num_rows($planet_check)>0){$position=$pos4; session_register("position"); $_SESSION["position"]=$position; session_start(); };

};

include('menue.php');

include('rohstoffe.php');

include('tmp/tmp_top.php');



switch($target){

 case  1 : counter(1,$dbname,$db);

           $design_title='Übersicht';

          include('tmp/tmp_middle.php');

           include('uebersicht.php'); break;

 case  2 : counter(2,$dbname,$db);

           $design_title='Gebäude';

          include('tmp/tmp_middle.php');

           include('konstruktion.php'); break;

 case  3 : counter(3,$dbname,$db);

           $design_title='Werft';

          include('tmp/tmp_middle.php');

           include('werft.php'); break;

 case  4 : counter(4,$dbname,$db);

           $design_title='Forschung';

           include('tmp/tmp_middle.php');

           include('forschung.php'); break;

 case  5 : counter(5,$dbname,$db);
 
           if($angriff or $transportieren or $kolonisieren or $stationieren or $invasionieren or $verwalten) {

           if($angriff){$auftrag=1; $post=' - Angriff';};

           if($transportieren){$auftrag=2; $post=' - Transportieren';}; //ok

           if($kolonisieren){$auftrag=3; $post=' - Kolonisieren';}; //ok

           if($stationieren){$auftrag=4; $post=' - Stationieren';}; //ok

           if($invasionieren){$auftrag=5; $post=' -  Invadieren';};

           if($verwalten){$auftrag=6; $post=' verwalten';};

           } else {$post='';};

           $design_title='Flotten'.$post;

           include('tmp/tmp_middle.php');

           include('flotten.php'); break;

 case  6 : counter(6,$dbname,$db);

           $design_title='Verteidigung';

           include('tmp/tmp_middle.php');

           include('verteidigung.php'); break;

 case  7 : counter(7,$dbname,$db);

           $design_title='Allianz';

           include('tmp/tmp_middle.php');

           include('allianz.php'); break;

 case  8 : counter(8,$dbname,$db);

           $design_title='Nachrichten';

          include('tmp/tmp_middle.php');

           include('nachrichten.php'); break;

 case  9 : counter(9,$dbname,$db);

           $design_title='Rohstoffe';

          include('tmp/tmp_middle.php');

           include('rohproduktion.php'); break;

 case 10 : counter(10,$dbname,$db);

           $design_title='Galaxie';

          include('tmp/tmp_middle.php');

           include('galaxie.php'); break;

 case 11 : counter(11,$dbname,$db);

           $design_title='Rangliste';

          include('tmp/tmp_middle.php');

           include('rangliste.php'); break;

 case 12 : counter(12,$dbname,$db);

           $design_title='Einstellungen';

          include('tmp/tmp_middle.php');

           include('einstellungen.php'); break;

 case 13 : counter(13,$dbname,$db);

           $design_title='Informationen';

          include('tmp/tmp_middle.php');

           include('infos.php'); break;

 case 14 : counter(14,$dbname,$db);

           $design_title='Suchen';

          include('tmp/tmp_middle.php');

           include('suchen.php'); break;

 case 15 : counter(15,$dbname,$db);

           $design_title='FAQ';

          include('tmp/tmp_middle.php');

           include('faq.php'); break;

 case 16 : counter(16,$dbname,$db);

           $design_title='Statistik';

          include('tmp/tmp_middle.php');

           include('statistik.php'); break;

 case 17 : counter(17,$dbname,$db);

           $design_title='Universum';

          include('tmp/tmp_middle.php');

           include('universum.php'); break;

 case 18 : counter(18,$dbname,$db);

           $design_title='Schiffsinformationen';

          include('tmp/tmp_middle.php');

           include('infos/schiffs_infos.php'); break;

 case 19 : counter(19,$dbname,$db);

 		   $design_title='Entfernungsrechner';

 		  include('tmp/tmp_middle.php');

 		   include('entfernungsrechner.php'); break;

 case 20 : counter(20,$dbname,$db);

 		   $design_title='Planeten';

 		   include('tmp/tmp_middle.php');

 		   include('planeten.php'); break;

 //21 = Neuer User //22 = News

 case 23 : counter(23,$dbname,$db);

 		   $design_title='Verteidgungsinformationen';

 		  include('tmp/tmp_middle.php');

 		   include('infos/def_infos.php'); break;

 case 24 : counter(24,$dbname,$db);

 		   $design_title='Handel';

 		   include('tmp/tmp_middle.php');

 		   include('handel.php'); break;

 case 25 : counter(25,$dbname,$db);

 		   $design_title='Gebäudeinformationen';

 		  include('tmp/tmp_middle.php');

 		   include('infos/haus_infos.php'); break;

 case 26 : counter(26,$dbname,$db);

 		   $design_title='Erweitertes Konstruktionsmenü';

 		  include('tmp/tmp_middle.php');

 		   include('konstruktion2nd.php'); break;

 case 27 : counter(27,$dbname,$db);

 		   $design_title='Forschungsinformationen';

 		  include('tmp/tmp_middle.php');

 		   include('infos/forsch_infos.php'); break;

 default : counter(1,$dbname,$db);

 		   $design_title='Übersicht';

 		   include('tmp/tmp_middle.php');

 		   include('uebersicht.php'); break;

 };

include('tmp/tmp_bottom.php');

mysql_close($db); //Genereller Disconect

?>

</body>

</html>