Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_set_cookie_params('50000'); // 1 hour
- session_start();
- include_once('language/language-general.php');
- include_once('includes/config.php');
- include_once('includes/ingame.inc.php');
- include("log.php");
- function find_mobile_browser() {
- if(preg_match('/(iphone|android|ipad|ipod|smartphone)/i', $_SERVER['HTTP_USER_AGENT'])) {
- return true;
- } else {
- return false;
- }
- }
- $mobile_browser = find_mobile_browser();
- if($mobile_browser) {
- mysql_query("UPDATE `pb20_14users` SET `mobile`='1' WHERE `user_id`='".$_SESSION['id']."'");
- } else {
- mysql_query("UPDATE `pb20_14users` SET `mobile`='0' WHERE `user_id`='".$_SESSION['id']."'");
- }
- #Load Page
- $page = $_GET['page'];
- if(empty($_SESSION['id'])) $linkpartnersql = mysql_query("SELECT titel, url FROM linkpartners
- ORDER BY volgorde ASC");
- #ban_check
- if(mysql_num_rows(mysql_query("SELECT `user_id` FROM `ban` WHERE `ip`='".
- $_SERVER['REMOTE_ADDR']."'")) > 0) header("location: banned.php");
- #Ingame dingen
- if(isset($_SESSION['id'])){
- #hash maken
- $md5hash = md5($_SERVER['REMOTE_ADDR'].",".$_SESSION['naam']);
- #Controleren van de hash.
- #Is de has niet goed dan uitloggen en inloggen opnieuw laden
- mysql_query("UPDATE `pb20_14users` SET `online`='".time()."' WHERE `user_id`='".
- $_SESSION['id']."'");
- #Load User Information
- $gebruiker = mysql_fetch_assoc(mysql_query("SELECT g.*, gi.*, SUM(`Pokeball` + `Superball` +
- `Hyperball` + `Premierball` + `Netzball` + `Tauchball` + `Nestball` + `Wiederball` + `Timerball` +
- `Meisterball` + `Levelball` + `Freundesball` + `Turboball` + `Schwerball` + `Trank` + `Supertrank` +
- `Hypertrank` + `Hyperheiler` + `Beleber` + `Top Beleber` + `Pokedex` + `Pokedex chip` + `Angel` +
- `Forschersack` + `Fahrrad` + `Protein` + `Eisen` + `Carbon` + `Kalzium` + `KP Plus` +
- `Sonderbonbon` + `Finsterstein` + `Feuerstein` + `Blattstein` + `Mondstein` + `Ovaler Stein` +
- `Leuchtstein` + `Sonnenstein` + `Donnerstein` + `Wasserstein` + `Funkelstein` + `Alte Krone` + `TM01`
- + `TM02` + `TM03` + `TM04` + `TM05` + `TM06` + `TM07` + `TM08` + `TM09` + `TM10` +
- `TM11` + `TM12` + `TM13` + `TM14` + `TM15` + `TM16` + `TM17` + `TM18` + `TM19` +
- `TM20` + `TM21` + `TM22` + `TM23` + `TM24` + `TM25` + `TM26` + `TM27` + `TM28` +
- `TM29` + `TM30` + `TM31` + `TM32` + `TM33` + `TM34` + `TM35` + `TM36` + `TM37` +
- `TM38` + `TM39` + `TM40` + `TM41` + `TM42` + `TM43` + `TM44` + `TM45` + `TM46` +
- `TM47` + `TM48` + `TM49` + `TM50` + `TM51` + `TM52` + `TM53` + `TM54` + `TM55` +
- `TM56` + `TM57` + `TM58` + `TM59` + `TM60` + `TM61` + `TM62` + `TM63` + `TM64` +
- `TM65` + `TM66` + `TM67` + `TM68` + `TM69` + `TM70` + `TM71` + `TM72` + `TM73` +
- `TM74` + `TM75` + `TM76` + `TM77` + `TM78` + `TM79` + `TM80` + `TM81` + `TM82` +
- `TM83` + `TM84` + `TM85` + `TM86` + `TM87` + `TM88` + `TM89` + `TM90` + `TM91` +
- `TM92` + `HM01` + `HM02` + `HM03` + `HM04` + `HM05` + `HM06` + `HM07` + `HM08`) AS
- items FROM pb20_14users AS g INNER JOIN
- pb20_14users_item AS gi
- ON g.user_id =
- gi.user_id
- INNER JOIN
- pb20_14users_tmhm AS gtmhm
- ON g.user_id =
- gtmhm.user_id
- WHERE g.user_id
- = '".$_SESSION['id']."'
- GROUP BY
- g.user_id"));
- #playerstrength
- $playerstrength_query = mysql_query("SELECT `attack`, `defence`, `spc.attack`, `spc.defence`,
- `speed`, `opzak`, `user_id`, SUM(`attack` + `defence` + `spc.attack` + `spc.defence` + `speed`) as
- `endstaerke` FROM `pokemon_speler` WHERE `user_id`='".$_SESSION['id']."' AND `opzak`='ja'");
- $playerstrength = mysql_fetch_assoc($playerstrength_query);
- mysql_query("UPDATE `pb20_14users` SET `playerstrength`='".$playerstrength['endstaerke']."'
- WHERE `user_id`='".$_SESSION['id']."'");
- #if player clan_inbattle = 1, redirect to clan-fight page!
- //if($gebruiker['clan_inbattle'] == 1) header('location: index.php?page=clan-fight');
- #Als banned 1 is, verbannen!
- if($gebruiker['banned'] == 1) header('Location: banned.php');
- $clanquery = mysql_fetch_assoc(mysql_query ("SELECT clan FROM pb20_14users
- WHERE username='".$_SESSION['naam']."'"));
- $clanquery2 = mysql_fetch_assoc(mysql_query ("SELECT clan FROM pb20_14users
- WHERE username='".$_SESSION['naam']."'"));
- #Als account_code 0 is, verbannen!
- #Title ff setten
- #$title_user = $gebruiker['username'].' '.$txt['online_at'].' ';
- if(($gebruiker['pagina'] != 'duel') AND ($page != 'pokemoncenter') AND (!$_SESSION['duel']
- ['duel_id'])){
- $tour_sql = mysql_query("SELECT * FROM toernooi WHERE deelnemers!='' AND no_1='0'
- ORDER BY toernooi DESC LIMIT 1");
- if(mysql_num_rows($tour_sql) > 0){
- $tour_info = mysql_fetch_assoc($tour_sql);
- $round_sql = mysql_query("SELECT * FROM `toernooi_ronde` WHERE toernooi='".$tour_info
- ['toernooi']."' AND winnaar_id = '0' AND (user_id_1 = '".$_SESSION['id']."' OR user_id_2 = '".
- $_SESSION['id']."')");
- if(mysql_num_rows($round_sql) > 0){
- $round_info = mysql_fetch_assoc($round_sql);
- $tour_over = strtotime($tour_info['tijd'])-strtotime(date("H:i:s"));
- if($tour_over < 300 AND $tour_over > 0){
- if(!$_SESSION['toernooi_sent']){
- $_SESSION['toernooi_sent'] = TRUE;
- $time = floor($tour_over/60);
- mysql_query("INSERT INTO `gebeurtenis` (`datum` ,`ontvanger_id` ,`bericht`)
- VALUES ('".date('Y-m-d H:i:s')."', '".$_SESSION[ 'id']."', 'Jouw toernooi gevecht begint over
- ±".$time." minuten. Zorg dat je pokemon gereed zijn.');");
- }
- header("refresh: ".$tour_over."; url=index.php?page=attack/tour_fight");
- }
- elseif(($tour_over > -90 AND $tour_over < 0) AND ($_GET['page'] != "attack/tour_fight") AND
- ($_GET['page'] != "attack/duel/duel-attack")){
- $_SESSION['toernooi_sent'] = FALSE;
- $page = 'attack/tour_fight';
- }
- }
- else $_SESSION['toernooi_sent'] = FALSE;
- }
- }
- if($gebruiker['premiumaccount'] >= 1) $premium_txt = $gebruiker['premiumaccount'].' '.
- $txt['stats_premiumtext'];
- else $premium_txt = '<a style="color:#000000;" href="?page=premium&cat=buy">'.$txt
- ['stats_become_premium'].'</a>';
- $silver = highamount($gebruiker['silver']);
- $gold = highamount($gebruiker['gold']);
- $bank = highamount($gebruiker['bank']);
- $gebruiker_rank = rank($gebruiker['rank']);
- if($gebruiker['rankexp'] > 0) $gebruiker_rank['procent'] = round(($gebruiker['rankexp']/
- $gebruiker['rankexpnodig'])*100);
- else $gebruiker_rank['procent'] = 0;
- if($gebruiker['itembox'] == 'Bag') $gebruiker['item_over'] = 20-$gebruiker['items'];
- elseif($gebruiker['itembox'] == 'Yellow box') $gebruiker['item_over'] = 50-$gebruiker
- ['items'];
- elseif($gebruiker['itembox'] == 'Blue box') $gebruiker['item_over'] = 100-$gebruiker
- ['items'];
- elseif($gebruiker['itembox'] == 'Red box') $gebruiker['item_over'] = 250-$gebruiker
- ['items'];
- elseif($gebruiker['itembox'] == 'Green box') $gebruiker['item_over'] = 500-$gebruiker
- ['items'];
- $arr = explode(",", $gebruiker['pok_bezit']);
- $result = array_unique($arr);
- $gebruiker_pokemon['procent'] = round((count($result)/650)*100);
- #Load User Pokemon
- ############################################### pw.wereld hoeft niet als we alle 5e
- generatie pokemon images hebben :)
- $pokemon_sql = mysql_query("SELECT pw.naam, pw.type1, pw.type2, pw.zeldzaamheid, pw.groei,
- pw.aanval_1, pw.aanval_2, pw.aanval_3, pw.aanval_4, ps.* FROM pokemon_wild AS pw INNER
- JOIN pokemon_speler AS ps ON ps.wild_id = pw.wild_id WHERE ps.user_id='".$_SESSION['id']."'
- AND ps.opzak='ja' ORDER BY ps.opzak_nummer ASC");
- $gebruiker['in_hand'] = mysql_num_rows($pokemon_sql);
- #Load User Messages
- $inbox = mysql_num_rows(mysql_query("SELECT `id` FROM `berichten` WHERE
- `ontvanger_id`='".$_SESSION['id']."'"));
- $inbox_new = mysql_num_rows(mysql_query("SELECT `id` FROM `berichten` WHERE
- `ontvanger_id`='".$_SESSION['id']."' AND `gelezen`='0'"));
- if(($gebruiker['admin'] == 1) || ($gebruiker['admin'] == 3)) $inbox_allowed = 1000;
- elseif($gebruiker['help'] == 1) $inbox_allowed = 500;
- elseif($gebruiker['premiumaccount'] >= 1) $inbox_allowed = 200;
- else $inbox_allowed = 50;
- if($inbox_allowed <= $inbox) $inbox_txt = '<a href="?page=inbox" style="color:#cc3333;">'.$txt
- ['stats_full'].'</a>';
- elseif($inbox_new >= 1) $inbox_txt = '<a href="?page=inbox" style="color:#0bbe03;">'.$inbox_new.'
- '.$txt['stats_new'].'</a>';
- else $inbox_txt = '<a href="?page=inbox" style="color:#000000;">'.$inbox.' / '.$inbox_allowed.'</a>';
- #Load User Events
- $event_new = mysql_num_rows(mysql_query("SELECT `id` FROM `gebeurtenis` WHERE
- `ontvanger_id`='".$_SESSION['id']."' AND `gelezen`='0'"));
- if($event_new == 0) $event_txt = '<a href="?page=events" style="color:#000000;">'.$txt
- ['stats_none'].'</a>';
- else $event_txt = '<a href="?page=events" style="color:#0bbe03;">'.$event_new.' '.$txt
- ['stats_new'].'</a>';
- }
- else{
- #Als je op de inloggen knop drukt, includes/login.php includen voor de meldingen
- if(isset($_POST['login']))
- include("includes/login.php");
- }
- #Berekenen wanneer de reclamepagina komt
- if(($_SESSION['naam'] != "") AND (($gebruiker['premiumaccount'] == 0) OR ($gebruiker['reclame']
- == 1))) $reclamechance = rand(1,50);
- #Check if you're asked for a duel MOET OOK ANDERS -> Event! ;)
- $duel_sql = mysql_query("SELECT `id`, `datum`, `uitdager`, `tegenstander`, `bedrag`, `status` FROM
- `duel` WHERE `tegenstander`='".$gebruiker['username']."' AND (`status`='wait') ORDER BY id DESC
- LIMIT 1");
- #?page= systeem opbouwen
- if(empty($page)) $page = 'home';
- elseif(!file_exists($page.'.php')) $page = 'notfound';
- elseif(empty($_SESSION['id'])) $page = $page;
- elseif((($gebruiker['captcha_time']+900) < time()) && (in_array($_GET['page'],
- $captcha_page_check))) $page = 'captcha-ingame-check';
- elseif($page == 'attack/tour_fight') $page = $page;
- elseif($page == 'attack/wild2/wild-attack') $page = $page;
- else{
- $duel_test = mysql_query("SELECT `id` FROM `duel` WHERE `status`='wait' AND `uitdager`='".
- $_SESSION['naam']."'");
- #Als deze sessie bestaat deze pagina weergeven.
- if(!empty($_SESSION['aanvalnieuw'])){
- #Code opvragen en decoderen
- $link = base64_decode($_SESSION['aanvalnieuw']);
- #Code splitten, zodat informatie duidelijk word
- list ($nieuweaanval['pokemonid'], $nieuweaanval['aanvalnaam']) = preg_split
- ('[/]', $link);
- #Andere huidige pagina toewijzen
- $page = "includes/poke-newattack";
- }
- elseif(!empty($_SESSION['evolueren'])){
- #Code opvragen en decoderen
- $link = base64_decode($_SESSION['evolueren']);
- #Code splitten, zodat informatie duidelijk word
- list ($evolueren['pokemonid'], $evolueren['nieuw_id']) = preg_split ('[/]', $link);
- #Andere huidige pagina toewijzen
- $page = "includes/poke-evolve";
- }
- elseif(($gebruiker['eigekregen'] == 0) OR ($_SESSION['eikeuze'] == 1))
- $page = "beginning";
- #Is speler bezig met aanvallen?
- elseif($gebruiker['pagina'] == 'attack'){
- $page = "attack/wild/wild-attack";
- if($gebruiker['test'] == 1) $page = "attack/wild2/wild-attack";
- $res = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `aanval_log` WHERE `user_id`='".
- $_SESSION['id']."'"));
- $_SESSION['attack']['aanval_log_id'] = $res['id'];
- }
- elseif($gebruiker['pagina'] == 'trainer-attack'){
- $page = "attack/trainer/trainer-attack";
- $res = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `aanval_log` WHERE `user_id`='".
- $_SESSION['id']."'"));
- $_SESSION['attack']['aanval_log_id'] = $res['id'];
- }
- elseif(($gebruiker['pagina'] == 'duel') AND (mysql_num_rows($duel_test) > 0))
- $page = $_GET['page'];
- elseif($gebruiker['pagina'] == 'duel')
- $page = "attack/duel/duel-attack";
- #Word speler uit gedaagd voor duel?
- elseif(mysql_num_rows($duel_sql) == 1)
- $page = "attack/duel/invited";
- }
- if((($page != "attack/wild/wild-attack") AND ($page != "attack/wild2/wild-attack") AND ($gebruiker
- ['pagina'] == 'attack')) OR (($page != "attack/trainer/trainer-attack") AND ($gebruiker['pagina'] ==
- 'trainer-attack'))){
- $res = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `aanval_log` WHERE `user_id`='".
- $_SESSION['id']."'"));
- mysql_query("UPDATE `pb20_14users` SET `pagina`='attack_start' WHERE `user_id`='".
- $_SESSION['id']."'");
- mysql_query("DELETE FROM `pokemon_speler_gevecht` WHERE `user_id`='".$_SESSION
- ['id']."'");
- mysql_query("DELETE FROM `pokemon_wild_gevecht` WHERE `aanval_log_id`='".$res['id']."'");
- mysql_query("DELETE FROM `aanval_log` WHERE `user_id`='".$_SESSION['id']."'");
- }
- if(($page != "attack/duel/duel-attack") AND ($gebruiker['pagina'] == 'duel')){
- mysql_query("UPDATE `pb20_14users` SET `pagina`='duel_start' WHERE `user_id`='".
- $_SESSION['id']."'");
- mysql_query("DELETE FROM `pokemon_speler_gevecht` WHERE `user_id`='".$_SESSION
- ['id']."'");
- mysql_query("DELETE FROM `duel` WHERE `uitdager`='".$_SESSION['naam']."' OR
- `tegenstander`='".$_SESSION['naam']."'");
- }
- $str_tijd_nu = strtotime(date('Y-m-d H:i:s'));
- $jail_tijd = (strtotime($gebruiker['gevangenistijdbegin'])+$gebruiker['gevangenistijd'])-$str_tijd_nu;
- $pokecen_tijd = (strtotime($gebruiker['pokecentertijdbegin'])+$gebruiker['pokecentertijd'])-
- $str_tijd_nu;
- #Work Check
- if(!empty($gebruiker['soortwerk'])){
- $werken_tijd = strtotime($gebruiker['werktijdbegin'])+$gebruiker['werktijd'];
- #Tijd die overblijft
- $tijdwerken = $werken_tijd-$str_tijd_nu;
- if($tijdwerken < 0)
- include_once('includes/work-inc.php');
- else{
- $wait_time = $tijdwerken;
- $type_timer = 'work';
- if(!page_timer($page,'work')) $page = 'includes/wait';
- }
- }
- elseif($jail_tijd > 0){
- #Tijd die overblijft
- if($jail_tijd >= 0){
- if(!page_timer($page,'jail')) $page = 'includes/wait-jail';
- }
- }
- elseif($pokecen_tijd > 0){
- #Tijd die overblijft
- $wait_time = $pokecen_tijd;
- if($wait_time >= 0){
- $type_timer = 'pokecenter';
- if(!page_timer($page,'jail')) $page = 'includes/wait';
- }
- }
- if(empty($gebruiker['clan'])) $gebruiker['clan'] = 'Kein Clan';
- else $gebruiker['clan'] = '<a href="?page=clan-profile&clan='.$gebruiker['clan'].'">'.
- $gebruiker['clan'].'</a>';
- $profileurl = 'index.php?page=profile&player='.$_SESSION['naam'];
- if($gebruiker['wereld'] == 'Kanto') $gebruiker['olam'] = 'Kanto';
- elseif($gebruiker['wereld'] == 'Johto') $gebruiker['olam'] = 'Johto';
- elseif($gebruiker['wereld'] == 'Hoenn') $gebruiker['olam'] = 'Hoenn';
- elseif($gebruiker['wereld'] == 'Sinnoh') $gebruiker['olam'] = 'Sinnoh';
- elseif($gebruiker['wereld'] == 'Kalos') $gebruiker['olam'] = 'Kalos';
- else $gebruiker['olam'] = 'Einall';
- /*
- if(!empty($_SESSION['id'])){
- if(($_GET['page'] != "security-question") && ($_GET['page'] != "security-verify") &&
- ($_GET['page'] != "reset_security") && ($_GET['page'] != "reset_security_verify")) {
- if($_GET['page'] == "reset_security"){
- header('Location: index.php?page=reset_security');
- } else {
- ########## SECURITY QUESTION ############
- $security = mysql_fetch_assoc(mysql_query("SELECT * FROM `security_question`
- WHERE `user_id`='".$_SESSION['id']."' "));
- if($security == 0) header('Location: index.php?page=security-question');
- elseif($security['last_ip'] != $_SERVER['REMOTE_ADDR']) header('Location:
- index.php?page=security-verify');
- }
- ########## SECURITY QUESTION ############
- }
- }
- */
- $profile_url = "http://pokemon-sky.net/?page=profile&player=".$gebruiker['username'];
- $time = time();
- $tenMinsAgo = $time - (60*10);
- $usersQuery = mysql_query("SELECT * FROM `pb20_14users` WHERE `map_num`='1' AND
- `map_lastseen`>='{$tenMinsAgo}'");
- $numUsersOnMap1 = mysql_num_rows($usersQuery);
- ?>
- <?php if(empty($_SESSION['id'])){ ?>
- <?php
- if(($page == 'tos') || ($page == 'contact') || ($page == 'forgot-username') || ($page ==
- 'forgot-password')) echo '<a href="?page=home" class="submit" style="float:left;">Zurück</a><br />';
- if($page == 'tos') include('tos.php');
- elseif($page == 'contact') include('contact.php');
- elseif($page == 'forgot-username') include('forgot-username.php');
- elseif($page == 'forgot-password') include('forgot-password.php');
- elseif($page == 'reset_pass') include('reset_pass.php');
- else include('intro.php');
- ?>
- <?php } else { ?>
- <!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>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta http-equiv="content-style-type" content="text/css" />
- <meta name="description" content="Pokemon-Sky ist ein browserbasiertes Pokémon Spiel. Sie
- können Pokémon fangen, Arenaleiter bekämpfen und mit oder gegen Ihre Freunde Spielen ... Jetzt
- Registrieren und Deine Reise als Pokémon Trainer beginnen!" />
- <title><?php echo $title_user; ?></title>
- <link type="text/css" media="screen" rel="stylesheet" href="stylesheets/colorbox.css" />
- <?php if(empty($_SESSION['id'])){ ?><link rel="stylesheet" type="text/css"
- href="stylesheets/outgame.css" /><?php } else { ?><link rel="stylesheet" type="text/css"
- href="stylesheets/style.css" /><?php } ?>
- <link rel="shortcut icon" href="/img/icon.png" type="image/x-icon" />
- <link rel="apple-touch-icon" href="apple-touch-icon.png" />
- <script type="text/javascript"
- src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
- <script type="text/javascript" src="javascripts/time.js"></script>
- <script type="text/javascript" src="javascripts/timer.js"></script>
- <script type="text/javascript" src="javascripts/tooltip.js"></script>
- <script type="text/javascript" src="javascripts/new_tooltip.js"></script>
- <?php if(!empty($_SESSION['id'])) { ?><script type="text/javascript"
- src="javascripts/dropdownmenu.js"></script><?php } ?>
- <script type="text/javascript" src="javascripts/countdown.js"></script>
- <script type="text/javascript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval
- ("page" + id + " = window.open(URL, '" + id + "',
- 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=800,height=400');"); }
- </script>
- <style>
- .lt-ie8 input.radioChanged , .lt-ie7 input.radioChanged{
- height:auto;
- width:auto;
- opacity:1;
- }
- input.radioChanged, input.checkboxChanged{
- position:relative;
- z-index:2;
- opacity:0;
- height:23px;
- margin:0;
- width:23px;
- display:inline-block;
- }
- .lt-ie8 .checkboxContainer, .lt-ie7 .checkboxContainer, .lt-ie7 .radioContainer, .lt-ie8 .radioContainer{
- display:none !important;
- }
- .checkboxContainer, .radioContainer{
- position:relative;
- z-index:1;
- height:23px;
- width:23px;
- margin-left:-23px;
- display:inline-block;
- }
- .lt-ie8 input.radioChanged + .checkboxContainer{
- background-image:none !important;
- }
- .lt-ie8 input.radioChanged + .radioContainer{
- background-image:none !important;
- }
- input.checkboxChanged + .checkboxContainer{
- background:url('/img/bg_checkbox.png') top left no-repeat;
- }
- input.checkboxChanged:hover + .checkboxContainer, input[type="radio"]:hover + .radioContainer {
- background-position:top center;
- }
- input.radioChanged + .radioContainer{
- background:url('/img/bg_radio.png') top left no-repeat;
- }
- input.checkboxChanged:checked + .checkboxContainer, input[type="radio"]:checked +
- .radioContainer{
- background-position:top right;
- }
- .radioGroup {
- padding-bottom: 5px;
- }
- </style>
- </head>
- <body>
- <div class="ribbon">
- <a href="#" rel="me">Pokémon-Sky <b>v2.0.1</b></a>
- </div>
- <div id="wrap">
- <div id="menu"><?php if(empty($_SESSION['id'])){ ?>
- <a href="?page=">Home</a>
- <a href="http://pokemon-sky.net/forum" target="_blank">Forum</a>
- <a href="?page=information&category=game-rules">Help</a>
- <a href="?page=forgot-username">Forgot username?</a>
- <a href="?page=forgot-password">Forgot password?</a>
- <a href="?page=register"><u>Register</u></a><?php } else { ?>
- <a href="?page=">Home</a>
- <a href="http://pokemon-sky.net/forum" target="_blank">Forum</a>
- <a href="?page=information&category=game-rules">Help</a>
- <a href="?page=pokedex">Pokédex</a>
- <a href="JavaScript:popcbox();">Chat</a>
- <?php if($gebruiker['rank'] >= 3) { ?>
- <a href="?page=premium&cat=buy">Premium area</a>
- <?php } ?>
- <a href="?page=streaming&home" class="glow" target="_blank">Stream</a>
- <a href="?page=information&category=game-rules">Rules</a>
- <a href="?page=logout"><b><u>Logout</u></b></a><?php } ?>
- </div>
- <div id="header"><?php if(empty($_SESSION['id'])){ ?>
- <div id="hq1">
- <form method="post" id="UserLoginForm" action="<?php echo
- strip_tags($_SERVER['PHP_SELF']);?>">
- <?php if($inlog_error != '') echo '<div class="red_error" style="width:295px;position:absolute;">'.
- $inlog_error.'</div>'; else echo ''; ?>
- <div class="hq1"><b>Einloggen</b></div>
- <div
- class="hq1"></div>
- <div
- class="hq1">Benutzername</div>
- <div class="hq1"><input type="text" name="username" class="text_long" id="login-
- user" value="" maxlength="12" /></div>
- <div
- class="hq1">Passwort</div>
- <div class="hq1"><input type="password" name="password" class="text_long"
- id="login-pass" value="" /></div>
- <div class="hq1"><input type="submit" name="login" class="button_mini"
- style="width:140px;margin-right:130px;" value="התחבר" style="margin-bottom:8px;" /></div>
- </form>
- <?php } else { ?>
- <div id="hq">
- <div class="hq">
- <img src="images/icons/man.png" width="16" height="16"
- alt="Benutzername" title="Benutzername"/>
- <style="font-weight:bold;font-size:14px;"><?php echo $gebruiker['username']; ?
- ></style><br />
- <img src="images/icons/man.png" width="16" height="16" alt="Berichten" title="Nachrichten" />
- <?php
- echo $gebruiker_rank['ranknaam'];
- ?><br>
- <img src="images/icons/wereld.png" width="16" height="16"
- alt="Region" title="Region"/>
- <a href="?page=travel"><?php echo $gebruiker
- ['wereld']; ?></a><br />
- <img src="images/icons/clan.png" width="16" height="16" alt="Clan"
- title="Clan"/>
- <?php
- if ($gebruiker['clan'] == "Kein Clan") {
- echo "No clan";
- } else {
- echo $gebruiker['clan'];
- }
- ?><br />
- <img src="images/icons/statistics.png" width="16" height="16"
- alt="Bank" />
- <?php echo number_format($gebruiker['rating']); ?><br
- />
- <img src="images/icons/silver.png" width="16" height="16"
- alt="Silver" />
- <?php echo number_format($gebruiker['silver']); ?><br
- />
- <img src="images/icons/gold.png" width="16" height="16" alt="Gold"
- />
- <?php echo number_format($gebruiker['gold']); ?><br
- />
- <img src="images/icons/bank.png" width="16" height="16"
- alt="Bank" />
- <?php echo number_format($gebruiker['bank']); ?>
- </div>
- <div class="hq">
- <img src="images/icons/friend.png" width="16" height="16"
- alt="Berichten" />
- <?php echo $gebruiker['respect']; ?><br />
- <img src="images/icons/plaatsnummereen.png" width="16"
- height="16" alt="Berichten" />
- <?php echo $gebruiker['achievs']; ?><br />
- <img src="images/icons/berichtongelezen.png" width="16"
- height="16" alt="Berichten" />
- <?php echo $inbox_txt; ?><br />
- <img src="images/icons/gebeurtenis.png" width="16" height="16"
- alt="Berichten" />
- <?php
- if ($event_txt == '<a href="?page=events"
- style="color:#000000;">Keine</a>') {
- echo '<a href="?page=events"
- style="color:#000000;">Events</a>';
- } else {
- echo $event_txt;
- }
- ?><br />
- <img src="images/icons/star-full-little.png" width="15" height="15"
- alt="Berichten" />
- <?php
- if (substr($premium_txt, -4) == "Tage") {
- echo substr($premium_txt,0, -4) . "Days";
- } else {
- echo $premium_txt;
- }
- ?><br />
- <div
- class="progress_bar">
- <div
- class="progresspr bluepr" style="text-align:left;width:<?php echo $gebruiker_rank['procent']; ?>
- %"><span style="position: absolute; line-height: 14px; margin-left: 7px; float: right;"><?php echo
- $gebruiker_rank['procent']; ?>% / 100% -<?php if ($gebruiker_rank['ranknaam'] == "Neuling") { echo
- "Novice"; } else { echo $gebruiker_rank['ranknaam']; } ?></span></div>
- </div>
- <div
- class="progress_bar">
- <div
- class="progresspr greenpr" style="width: <?php echo $gebruiker_pokemon['procent']; ?>%"><span
- style="position: absolute; line-height: 14px; margin-left: 7px; float: right;"> <?php echo
- $gebruiker_pokemon['procent']; ?>% /100% All Pokémon</span></div>
- </div>
- </div><?php } ?>
- </div>
- </div>
- </div>
- <?php
- $newssql = mysql_query("SELECT * FROM `game_news` ORDER BY id DESC LIMIT 1");
- $newsid = mysql_fetch_assoc(mysql_query("SELECT * FROM `game_news` ORDER BY id DESC
- LIMIT 1"));
- ?>
- <div id="wrap2">
- <?php if($page == 'home') { ?>
- <div class="subtitel2">
- <div class="update">
- <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com
- %2Fpkmnskybrowsergame&width&layout=standard&action=like&show_faces=fals
- e&share=true&height=35&appId=230204857151593" scrolling="no" frameborder="0"
- style="border:none; overflow:hidden; height:35px;" allowTransparency="true"></iframe>
- </div>
- </div>
- <?php } ?>
- <div id="center">
- <!-- Page - START -->
- <div id="center_tekst">
- <style>
- .lastupdate {
- background: #e21d45;
- padding: 5px;
- text-align: center;
- border-radius: 10px 10px 0 0;
- border: 1px solid #333;
- transition: all .5s;
- height: 32px;
- line-height: 32px;
- text-shadow: 0 0 5px #333;
- font-size: 20px;
- color: #000;
- font-family: Tahoma;
- }
- .lastupdate:hover { background:#1d88e2;transition:all .5s;cursor:pointer; }
- .update {
- padding-left: 4px;
- padding-top: 4px;
- width: 400px;
- margin-right: auto;
- margin-left: auto;
- margin-top: 7px;
- height: 28px;
- line-height: 28px;
- text-align: center;
- border: 1px solid #333;
- color: #fff;
- background: #fff url(http://www.gilzak.com/images/facebook_icon.png) 5px center no-repeat;
- }
- .update:hover {
- box-shadow:0 0 15px #333;
- text-decoration:none;
- }
- .updatelink:hover {
- text-decoration:none;
- }
- .today {
- width: 220px;
- color: #0d556c;
- font-weight: none;
- background: #92d3e7;
- border: 1px solid #0d556c;
- padding: 5px 5px 5px 2px;
- border-radius: 6px;
- margin-top:3px;
- -moz-border-radius: 6px;
- -webkit-border-radius:6px;
- box-shadow:0 0 5px #333;
- }
- .today:hover {
- background: #50f267;
- }
- .newyear {
- width: 600px;
- height:96px;
- color: #000;
- font-weight: bold;
- background: #DFEFFF url(http://i.imgur.com/QrHwBiT.png) left center no-repeat;
- border: 2px solid #000;
- margin: 10px;
- padding: 5px 5px 5px 28px;
- border-radius: 6px;
- -moz-border-radius: 6px;
- -webkit-border-radius:6px;
- box-shadow:0 0 5px yellow;
- text-align:right;
- }
- </style>
- <?php include($page.'.php'); ?>
- </div>
- <!-- Page - END -->
- <?php if(!empty($_SESSION['id'])){ ?>
- <?php
- $sql = "SELECT user_id, username, premiumaccount, admin, online, buddy, blocklist, rating, help
- FROM pb20_14users WHERE online+'6000'>'".time()."' ORDER BY rank DESC, rankexp DESC,
- rating ASC";
- $expire = 1;
- $records = query_cache("online",$sql,$expire);
- $aantal = count($records);
- $teller = 0;
- ?>
- <div class="subtitel">Currently online: <?php echo $aantal ?></div>
- <div id="center_tekst">
- <?php include('online.php'); ?>
- <!-- OFFICIAL CHAT SPOT -->
- <?php
- //About filters, first letter = language & number after is 0 = disabled, 1 = enabled
- //example e1=english enabled, f0 = finnish disabled
- echo "<p style='font-size:24px;color:#000;font-style:italic;'>Manual Chat - To access full featured chat,
- click <a style='text-decoration:underline;' href='http://mudsaf.info/shoutbox.php?channel=PokeMud'
- target='_BLANK'>here</a>.</p><div style='padding:10px;margin-top:10px;display:block;
- width:770px; max-height:400px;overflow-y: auto;background-color:rgba(0,0,0,0.8);'>" .
- file_get_contents("http://mudsaf.info/script/shoutbox/receive_shouts.php?
- channel=PokeMud&fil=e1f0s0d0n0") . "</div>";
- ?>
- <?php } ?>
- </div>
- <div id="links">
- <?php if(!empty($_SESSION['id'])){ ?>
- <?php if($gebruiker['rank'] > 1) { ?>
- <div class="links" style="width:200px; margin-top: 10px">
- <?php if($gebruiker['trainera'] > 0) { ?>
- <a href="?page=trainer" style="padding:0;">
- <div class="btn btn-primary"><img src="images/icons/mini_star.png" style="vertical-align:middle;">
- <?php echo $gebruiker['trainera'] ?> Trainer Battle!
- </div>
- </a>
- <?php } if($gebruiker['trainerb'] > 0) { ?>
- <a href="?page=burned-tower" style="padding:0;">
- <div class="btn btn-primary"><img src="images/icons/mini_star.png" style="vertical-align:middle;">
- <?php echo $gebruiker['trainerb'] ?> Battle in Tower!
- </div>
- </a>
- <?php } if($gebruiker['geluksrad'] > 0) { ?>
- <a href="?page=wheel-of-fortune" style="padding:0;">
- <div class="btn btn-primary"><img src="images/icons/mini_star.png" style="vertical-align:middle;">
- <?php echo $gebruiker['geluksrad'] ?>x Wheel of fortune!</div>
- </a>
- <?php } ?>
- </div>
- <?php } ?>
- <script>
- $(document).ready(function () {
- var interval = 10000; //number of mili seconds between each call
- var refresh = function() {
- $.ajax({
- url: "ajax_call/users_on_map.php?map=1",
- cache: false,
- success: function(html) {
- $('#players').html(html);
- setTimeout(function() {
- refresh();
- }, interval);
- }
- });
- };
- refresh();
- });
- </script>
- <?php if($gebruiker['username'] == "Spooky") { ?>
- <?php } ?>
- <a href="?page=attack/beta_map&map=1" class="glow" style="font-size:14px;
- cursor: pointer;">
- <div class="sub2" style="cursor: pointer;">
- <img src="images/walking.gif" alt="icon" style="margin-top:10px;" />
- World (<label id="players"></label> players)
- </div> </a>
- <div class="sub">
- <img src="images/icons/ball.gif" />
- <a href="?page=extended" style="color: #fff">
- Your Team:
- </a>
- </div>
- <div style="margin-right: 40px; margin-top: 0px; margin-bottom: -
- 10px;color:black;float:right;">
- <?php
- #Show ALL pokemon in hand
- if($gebruiker['in_hand'] > 0){
- $pokemon_sql = mysql_query("SELECT pw.naam, pw.type1, pw.type2,
- pw.zeldzaamheid, pw.groei, pw.aanval_1, pw.aanval_2, pw.aanval_3, pw.aanval_4, ps.* FROM
- pokemon_wild AS pw INNER JOIN pokemon_speler AS ps ON ps.wild_id = pw.wild_id WHERE
- ps.user_id='".$_SESSION['id']."' AND ps.opzak='ja' ORDER BY ps.opzak_nummer ASC");
- while($pokemon = mysql_fetch_assoc($pokemon_sql)){
- $dateadd = strtotime(date('Y-m-d H:i:s'))-600;
- $date = date('Y-m-d H:i:s', $dateadd);
- #Check if Pokemon have to hatch
- if(($pokemon['ei'] == 1) AND ($pokemon['ei_tijd'] < $date)){
- update_pokedex($pokemon['wild_id'],'','ei');
- mysql_query("UPDATE pokemon_speler SET ei='0' WHERE id='".$pokemon
- ['id']."'");
- }
- $pokemon = pokemonei($pokemon);
- $pokemon['naam'] = pokemon_naam($pokemon['naam'],$pokemon['roepnaam']);
- $popup = pokemon_popup($pokemon, $txt);
- if($pokemon['leven'] == 0)
- $pokemonstatus = '<img src="images/icons/bullet_red.png">';
- else $pokemonstatus = '<img
- src="images/icons/bullet_green.png">';
- echo '<a href="?page=poke-info&pokemon='.$pokemon['wild_id'].'" onMouseover="showhint(\''.
- $popup.'\', this)"><img src="'.$pokemon['animatie'].'" width="32" height="32" alt="'.$pokemon
- ['naam'].'" /></a>'; }
- }
- ?>
- </div>
- <?php } ?>
- <?php if(empty($_SESSION['id'])){ ?>
- <?php
- #Tel leden online
- $expire = 1;
- $sql = "SELECT
- username, premiumaccount, admin, online, buddy, blocklist FROM pb20_14users WHERE online
- +'6000'>'".time()."' ORDER BY rank DESC, rankexp DESC, username ASC";
- $records =
- query_cache("online",$sql,$expire);
- $stats['online'] =
- count($records);
- #Tel aantal leden
- $expire = "300";
- $sql = "SELECT
- `user_id` FROM `pb20_14users` WHERE `account_code`='1'";
- $stats['aantal'] =
- query_cache_num('stat-aantal',$sql,$expire);
- #Aantal leden online
- tellen
- $sql = "SELECT
- `online`, `username` FROM `pb20_14users` WHERE `account_code`='1' AND `aanmeld_datum`
- LIKE '%".date("Y-m-d")."%' ORDER BY `user_id`";
- $stats['nieuw'] =
- query_cache_num('stat-nieuw',$sql,$expire);
- ?>
- <div class="sub">
- <img src="images/icons/instructies.png" width="16" height="16" alt="icon" />
- Home
- </div>
- <div class="links">
- <a href="?page=home">Home</a><br />
- <a href="?page=register">Register</a><br />
- <a href="?page=statistics">Statistics</a><br />
- <a href="?page=forgot-password">Forgot password?</a>
- </div>
- <div class="rechts">
- <a href="http://pokemon-sky.net/forum/" target="_blank">Forum</a><br />
- <a href="?page=information&category=game-info">Help</a><br />
- <a href="?page=rankinglist">Rank list</a><br />
- <a href="?page=forgot-username">Forgot username?</a>
- </div>
- <div class="sub">
- <img src="images/icons/stats.png" width="16" height="16" alt="icon" />
- Statistics
- </div>
- <div class="links">
- <img src="images/icons/lid.png" width="16" height="16"
- alt="Totaal"> Players:<br />
- <img src="images/icons/lid.png" width="16" height="16"
- alt="Totaal"> Online:<br />
- <img src="images/icons/lid.png" width="16" height="16"
- alt="Totaal"> New players:<br />
- </div>
- <div class="rechts">
- <font color="#2a2a2a"><?php echo $stats['aantal']; ?></font><br />
- <font color="#2a2a2a"><?php echo $stats['online']; ?></font><br />
- <font color="#2a2a2a"><?php echo $stats['nieuw']; ?></font><br />
- </div>
- <?php } else { ?>
- <div class="sub">
- <img src="images/icons/instructies.png" width="16" height="16" alt="icon" />
- General
- </div>
- <div class="links">
- <a href="?page=home">Home</a><br />
- <a href="?page=rankinglist">Rank list</a><br />
- <a href="?page=daily-battles" style="color:blue;">Battle</a><br />
- <a href="?page=statistics">Statistics</a><br />
- <a href="?page=respect">Honor</a><br />
- <a href="?page=pokemons">Pokémons</a><br />
- <a href="?page=information&category=game-info">Help</a><br />
- <a href="?page=news" style="color:red;">News</a><br />
- <u><a href="?page=logout">Logout</a></u>
- </div>
- <div class="rechts">
- <a href="?page=account-options&category=personal">Personal</a><br />
- <a href="http://pokemon-sky.net/forum/" target="_blank"><img
- src="http://icons.iconarchive.com/icons/hopstarter/soft-scraps/16/User-Group-icon.png" style="vertical-
- align:middle;"> Forum</a><br />
- <a href="?page=inbox">Inbox</a><br />
- <?php if($gebruiker['rank'] >= 3) { ?>
- <a href="?page=premium&cat=buy">Shop</a><br />
- <?php } ?>
- <a href="?page=information&category=pokemon-info">Pokédex</a><br />
- <a href="?page=gift-shop" style="color:blue;">Gifts</a><br />
- <a href="?page=promotion" class="glow" style="font-size:14px;text-shadow:0 0 5px
- red;">Advertise</a><br />
- </div>
- <div class="sub">
- <img src="images/icons/gebouw.png" width="16" height="16" alt="icon" />
- <a href="?page=town" style="color: #fff">Town <?php echo $gebruiker['olam']; ?></a>
- </div>
- <div class="links">
- <a href="?page=pokemoncenter">Pokécenter</a><br />
- <a href="?page=pokemarket">Pokémarket</a><br />
- <a href="?page=gold-shop&buy=shop">Gold Shop</a><br />
- <a href="?page=bank">Bank</a><br />
- <a href="?page=achiev">Achievements<img src="images/icons/new.gif" style="position:
- absolute;vertical-align:middle"></a><br />
- <a href="?page=daycare">Pension</a><br />
- <a href="?page=travel" style="color:#ff0000;">Travel</a>
- </div>
- <div class="rechts">
- <a href="?page=house-
- seller">Houses</a><br />
- <a href="?page=pokechange">Swap
- Pokémon</a><br />
- <a href="?
- page=transferlist">Trading</a><br />
- <a href="?page=item-market">Item
- Market</a><br />
- <a href="?page=gold-silver-
- market">Trade</a><br />
- <a href="?page=jail">Prison</a><br />
- <a href="?page=casino">Game Room</a>
- <a href="?page=craft" style="color:blue;">Pokéball Shop</a><br />
- </div>
- <div class="sub">
- <img src="images/icons/vlag.png" width="16" height="16" alt="icon" />
- <a href="?page=attack/attack_map" style="color: #fff">
- Actions
- </a>
- </div>
- <div class="links">
- <a href="?page=attack/gyms">Gym Leader</a><br />
- <a href="?page=attack/orange_island">Orange Island</a><br />
- <a href="?page=work">Work</a><br />
- <a href="?page=burned-tower">Tower (<?php echo $gebruiker['trainerb']; ?>)
- </a><br />
- <a href="?page=fishing">Fishing</a><br />
- <a href="?page=attack/duel/invite" <?php if($gebruiker['rank'] < 2) echo "title='Nicht verfügbar'";
- ?>>
- Duel</a> <br />
- <?php if($gebruiker['rank'] >= 3){ ?>
- <a href="?page=trade-center" style="color: #FF6347; text-shadow:0 0 5px
- #FF6347;">Trade-Center</a>
- <?php } ?>
- </div>
- <div class="rechts">
- <a href="?page=traders">Traders</a><br />
- <a href="?page=race-invite">Rece</a><br />
- <a href="?page=steal">Steal</a><br />
- <a href="?page=spy">Spying</a><br />
- <a href="?page=trainer">Trainer (<?php echo $gebruiker['trainera']; ?>)</a><br
- />
- <a href="?page=lvl-choose">Level Choose</a>
- <?php if($gebruiker['rank'] >= 3){ ?>
- <a href="?page=trade-add" style="color: #FF6347; text-shadow:0 0 5px
- #FF6347;">Trade</a><br />
- <?php } ?>
- </div>
- <div class="sub">
- <img src="images/icons/ball.gif" width="16" height="16" alt="icon" />
- <a href="?page=items" style="color: #fff">
- My Inventory
- </a>
- </div>
- <div class="links">
- <a href="?page=items">Items</a><br />
- <a href="?page=sell">Sell</a><br />
- <a href="?page=house&option=pickup">Take</a><br />
- <?php if($gebruiker['in_hand'] > 1) echo '<a href="?page=modify-order"
- style="color: blue; text-shadow:0 0 5px blue;">order</a><br />'; ?>
- </div>
- <div class="rechts">
- <a href="?page=extended">My Team</a><br />
- <a href="?page=release">Release</a><br />
- <a href="?
- page=house&option=bringaway">Store</a><br />
- <?php if($gebruiker['Badge case'] == 1) echo '<a href="?
- page=badges">Order</a><br />'; ?>
- </div>
- <div class="sub">
- <img src="images/icons/comments.png" width="16" height="16" alt="icon" />
- Community
- </div>
- <?php if ($clanquery2['clan'] == "") {
- echo '
- <div class="links">
- <a href="?page=clans">Clans</a><br />
- <a href="?page=clanrank">Rank</a><br />
- <a href="?page=buddylist">Friends</a><br />
- <a href="?page=search-user">Search</a>
- </div>
- <div class="rechts">
- <a href="?page=clan-make">Create Clan</a><br />
- <a href="?page=blocklist">Ignore List</a><br />
- <a href="?page=events">Events</a>
- </div>';
- } else {
- echo '
- <div class="links">
- <a href="?page=clan-profile&clan='.$clanquery2['clan'].'" style="color: blue; text-
- shadow:0 0 5px blue;">My Clan</a><br />
- <a href="?page=clans">Clans</a><br />
- <a href="?page=clanrank">Rank</a><br />
- <a href="?page=buddylist">Friends</a><br />
- <a href="?page=search-user">Search</a>
- </div>
- <div class="rechts">
- <a href="?page=blocklist">Ignore List</a><br />
- <a href="?page=events">Events</a>
- </div>';
- }
- ?>
- <?php if($gebruiker['admin'] == 3){ ?>
- <div class="sub">
- <img src="images/icons/key.png" />
- Adminstrator menu
- </div>
- <div class="links">
- <a href="?page=battleadmin9/messages">Messages</a><br />
- <a href="?page=battleadmin9/transfer">Transfer</a><br />
- <a href="?page=battleadmin9/bank">Bank</a><br />
- <a href="?page=battleadmin9/release">Release</a>
- <a href="?page=battleadmin9/pay-logs">Pay-Log</a>
- </div>
- <div class="rechts">
- <a href="?page=battleadmin9/search-on-ip">Search IP</a><br />
- <a href="?page=battleadmin9/ban-ip">Ban Ip</a><br />
- <a href="?page=battleadmin9/addnews">Add news</a><br />
- <a href="?page=battleadmin9/reports">Reports</a>
- </div>
- <?php } ?>
- <?php if($gebruiker['username'] == 'WshbR' && $gebruiker['admin'] == 1){ ?>
- <div class="sub">
- <img src="images/icons/key.png" />
- Moderations Menu
- <div class="links">
- </div>
- <div class="rechts">
- <a href="?page=battleadmin9/messages">Moderation</a><br />
- </div>
- </div>
- <?php } ?>
- <?php } ?>
- <div class="sub">
- <img src="images/icons/ball.gif" width="16" height="16" alt="icon" />
- Last Catch
- </div>
- <script>
- $(document).ready(function () {
- var interval = 10000; //number of mili seconds between each call
- var refresh = function() {
- $.ajax({
- url: "ajax_call/aktuelles.php",
- cache: false,
- success: function(html) {
- $('#aktuelles').html(html);
- setTimeout(function() {
- refresh();
- }, interval);
- }
- });
- };
- refresh();
- });
- </script>
- <div class="linkss" id="aktuelles" style="text-align:center;color:#000;font-family:arial;">
- </div>
- </div>
- <link type="text/css" media="screen" rel="stylesheet" href="stylesheets/additional.css" />
- <div id="footer">
- <a href="?page=contact">Support</a> | <a href="?page=tos">Rules</a> | <a
- href="http://www.pokemon-sky.net/impressum.html">Print</a> | <a href="?
- page=information&category=game-rules">Terms of use</a><?php if($gebruiker['rank'] >= 3) { ?> | <a
- href="index.php?page=premium&cat=buy">Premium-area</a> <?php } ?> | <a
- href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.pokemon-
- sky.net">Share</a> | <a href="http://pokemon-sky.net/forum">Forum</a> | <a
- href="https://www.facebook.com/PokemonBattle">We are on Facebook</a>
- <p>Pokémon And All Respective Names are Trademark © of Nintendo 1996-2014</p>
- </div>
- </div>
- <script>
- $(document).ready(function () {
- var interval = 10000; //number of mili seconds between each call
- var refresh = function() {
- $.ajax({
- url: "notiffications.php",
- cache: false,
- success: function(html) {
- $('#notifications').html(html);
- setTimeout(function() {
- refresh();
- }, interval);
- }
- });
- };
- refresh();
- });
- </script>
- <?php if(!empty($_SESSION['id'])) { ?>
- <?php include('123.php'); ?>
- <div id="notifications">
- </div>
- <?php } } ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement