Advertisement
Guest User

index

a guest
Apr 9th, 2015
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.16 KB | None | 0 0
  1. <?php
  2.  
  3. session_set_cookie_params('50000'); // 1 hour
  4. session_start();
  5. include_once('language/language-general.php');
  6. include_once('includes/config.php');
  7. include_once('includes/ingame.inc.php');
  8. include("log.php");
  9.  
  10.  
  11. function find_mobile_browser() {
  12. if(preg_match('/(iphone|android|ipad|ipod|smartphone)/i', $_SERVER['HTTP_USER_AGENT'])) {
  13. return true;
  14. } else {
  15. return false;
  16. }
  17. }
  18.  
  19. $mobile_browser = find_mobile_browser();
  20. if($mobile_browser) {
  21. mysql_query("UPDATE `pb20_14users` SET `mobile`='1' WHERE `user_id`='".$_SESSION['id']."'");
  22. } else {
  23. mysql_query("UPDATE `pb20_14users` SET `mobile`='0' WHERE `user_id`='".$_SESSION['id']."'");
  24. }
  25. #Load Page
  26. $page = $_GET['page'];
  27.  
  28. if(empty($_SESSION['id'])) $linkpartnersql = mysql_query("SELECT titel, url FROM linkpartners
  29.  
  30. ORDER BY volgorde ASC");
  31. #ban_check
  32. if(mysql_num_rows(mysql_query("SELECT `user_id` FROM `ban` WHERE `ip`='".
  33.  
  34. $_SERVER['REMOTE_ADDR']."'")) > 0) header("location: banned.php");
  35.  
  36. #Ingame dingen
  37. if(isset($_SESSION['id'])){
  38. #hash maken
  39. $md5hash = md5($_SERVER['REMOTE_ADDR'].",".$_SESSION['naam']);
  40.  
  41. #Controleren van de hash.
  42. #Is de has niet goed dan uitloggen en inloggen opnieuw laden
  43.  
  44.  
  45. mysql_query("UPDATE `pb20_14users` SET `online`='".time()."' WHERE `user_id`='".
  46.  
  47. $_SESSION['id']."'");
  48.  
  49. #Load User Information
  50. $gebruiker = mysql_fetch_assoc(mysql_query("SELECT g.*, gi.*, SUM(`Pokeball` + `Superball` +
  51.  
  52. `Hyperball` + `Premierball` + `Netzball` + `Tauchball` + `Nestball` + `Wiederball` + `Timerball` +
  53.  
  54. `Meisterball` + `Levelball` + `Freundesball` + `Turboball` + `Schwerball` + `Trank` + `Supertrank` +
  55.  
  56. `Hypertrank` + `Hyperheiler` + `Beleber` + `Top Beleber` + `Pokedex` + `Pokedex chip` + `Angel` +
  57.  
  58. `Forschersack` + `Fahrrad` + `Protein` + `Eisen` + `Carbon` + `Kalzium` + `KP Plus` +
  59.  
  60. `Sonderbonbon` + `Finsterstein` + `Feuerstein` + `Blattstein` + `Mondstein` + `Ovaler Stein` +
  61.  
  62. `Leuchtstein` + `Sonnenstein` + `Donnerstein` + `Wasserstein` + `Funkelstein` + `Alte Krone` + `TM01`
  63.  
  64. + `TM02` + `TM03` + `TM04` + `TM05` + `TM06` + `TM07` + `TM08` + `TM09` + `TM10` +
  65.  
  66. `TM11` + `TM12` + `TM13` + `TM14` + `TM15` + `TM16` + `TM17` + `TM18` + `TM19` +
  67.  
  68. `TM20` + `TM21` + `TM22` + `TM23` + `TM24` + `TM25` + `TM26` + `TM27` + `TM28` +
  69.  
  70. `TM29` + `TM30` + `TM31` + `TM32` + `TM33` + `TM34` + `TM35` + `TM36` + `TM37` +
  71.  
  72. `TM38` + `TM39` + `TM40` + `TM41` + `TM42` + `TM43` + `TM44` + `TM45` + `TM46` +
  73.  
  74. `TM47` + `TM48` + `TM49` + `TM50` + `TM51` + `TM52` + `TM53` + `TM54` + `TM55` +
  75.  
  76. `TM56` + `TM57` + `TM58` + `TM59` + `TM60` + `TM61` + `TM62` + `TM63` + `TM64` +
  77.  
  78. `TM65` + `TM66` + `TM67` + `TM68` + `TM69` + `TM70` + `TM71` + `TM72` + `TM73` +
  79.  
  80. `TM74` + `TM75` + `TM76` + `TM77` + `TM78` + `TM79` + `TM80` + `TM81` + `TM82` +
  81.  
  82. `TM83` + `TM84` + `TM85` + `TM86` + `TM87` + `TM88` + `TM89` + `TM90` + `TM91` +
  83.  
  84. `TM92` + `HM01` + `HM02` + `HM03` + `HM04` + `HM05` + `HM06` + `HM07` + `HM08`) AS
  85.  
  86. items FROM pb20_14users AS g INNER JOIN
  87.  
  88. pb20_14users_item AS gi
  89.  
  90.  
  91. ON g.user_id =
  92.  
  93. gi.user_id
  94.  
  95.  
  96. INNER JOIN
  97.  
  98. pb20_14users_tmhm AS gtmhm
  99.  
  100.  
  101. ON g.user_id =
  102.  
  103. gtmhm.user_id
  104.  
  105.  
  106. WHERE g.user_id
  107.  
  108. = '".$_SESSION['id']."'
  109.  
  110.  
  111. GROUP BY
  112.  
  113. g.user_id"));
  114.  
  115.  
  116.  
  117.  
  118. #playerstrength
  119. $playerstrength_query = mysql_query("SELECT `attack`, `defence`, `spc.attack`, `spc.defence`,
  120.  
  121. `speed`, `opzak`, `user_id`, SUM(`attack` + `defence` + `spc.attack` + `spc.defence` + `speed`) as
  122.  
  123. `endstaerke` FROM `pokemon_speler` WHERE `user_id`='".$_SESSION['id']."' AND `opzak`='ja'");
  124. $playerstrength = mysql_fetch_assoc($playerstrength_query);
  125. mysql_query("UPDATE `pb20_14users` SET `playerstrength`='".$playerstrength['endstaerke']."'
  126.  
  127. WHERE `user_id`='".$_SESSION['id']."'");
  128.  
  129.  
  130.  
  131. #if player clan_inbattle = 1, redirect to clan-fight page!
  132. //if($gebruiker['clan_inbattle'] == 1) header('location: index.php?page=clan-fight');
  133.  
  134.  
  135. #Als banned 1 is, verbannen!
  136. if($gebruiker['banned'] == 1) header('Location: banned.php');
  137.  
  138.  
  139.  
  140.  
  141.  
  142. $clanquery = mysql_fetch_assoc(mysql_query ("SELECT clan FROM pb20_14users
  143.  
  144. WHERE username='".$_SESSION['naam']."'"));
  145.  
  146.  
  147.  
  148.  
  149. $clanquery2 = mysql_fetch_assoc(mysql_query ("SELECT clan FROM pb20_14users
  150.  
  151. WHERE username='".$_SESSION['naam']."'"));
  152.  
  153.  
  154.  
  155.  
  156. #Als account_code 0 is, verbannen!
  157.  
  158. #Title ff setten
  159. #$title_user = $gebruiker['username'].' '.$txt['online_at'].' ';
  160.  
  161. if(($gebruiker['pagina'] != 'duel') AND ($page != 'pokemoncenter') AND (!$_SESSION['duel']
  162.  
  163. ['duel_id'])){
  164. $tour_sql = mysql_query("SELECT * FROM toernooi WHERE deelnemers!='' AND no_1='0'
  165.  
  166. ORDER BY toernooi DESC LIMIT 1");
  167. if(mysql_num_rows($tour_sql) > 0){
  168. $tour_info = mysql_fetch_assoc($tour_sql);
  169. $round_sql = mysql_query("SELECT * FROM `toernooi_ronde` WHERE toernooi='".$tour_info
  170.  
  171. ['toernooi']."' AND winnaar_id = '0' AND (user_id_1 = '".$_SESSION['id']."' OR user_id_2 = '".
  172.  
  173. $_SESSION['id']."')");
  174. if(mysql_num_rows($round_sql) > 0){
  175. $round_info = mysql_fetch_assoc($round_sql);
  176. $tour_over = strtotime($tour_info['tijd'])-strtotime(date("H:i:s"));
  177. if($tour_over < 300 AND $tour_over > 0){
  178. if(!$_SESSION['toernooi_sent']){
  179. $_SESSION['toernooi_sent'] = TRUE;
  180. $time = floor($tour_over/60);
  181. mysql_query("INSERT INTO `gebeurtenis` (`datum` ,`ontvanger_id` ,`bericht`)
  182. VALUES ('".date('Y-m-d H:i:s')."', '".$_SESSION[ 'id']."', 'Jouw toernooi gevecht begint over
  183.  
  184. &plusmn;".$time." minuten. Zorg dat je pokemon gereed zijn.');");
  185. }
  186. header("refresh: ".$tour_over."; url=index.php?page=attack/tour_fight");
  187. }
  188. elseif(($tour_over > -90 AND $tour_over < 0) AND ($_GET['page'] != "attack/tour_fight") AND
  189.  
  190. ($_GET['page'] != "attack/duel/duel-attack")){
  191. $_SESSION['toernooi_sent'] = FALSE;
  192. $page = 'attack/tour_fight';
  193. }
  194. }
  195. else $_SESSION['toernooi_sent'] = FALSE;
  196. }
  197. }
  198.  
  199. if($gebruiker['premiumaccount'] >= 1) $premium_txt = $gebruiker['premiumaccount'].' '.
  200.  
  201. $txt['stats_premiumtext'];
  202. else $premium_txt = '<a style="color:#000000;" href="?page=premium&cat=buy">'.$txt
  203.  
  204. ['stats_become_premium'].'</a>';
  205.  
  206. $silver = highamount($gebruiker['silver']);
  207. $gold = highamount($gebruiker['gold']);
  208. $bank = highamount($gebruiker['bank']);
  209.  
  210. $gebruiker_rank = rank($gebruiker['rank']);
  211. if($gebruiker['rankexp'] > 0) $gebruiker_rank['procent'] = round(($gebruiker['rankexp']/
  212.  
  213. $gebruiker['rankexpnodig'])*100);
  214. else $gebruiker_rank['procent'] = 0;
  215.  
  216. if($gebruiker['itembox'] == 'Bag') $gebruiker['item_over'] = 20-$gebruiker['items'];
  217. elseif($gebruiker['itembox'] == 'Yellow box') $gebruiker['item_over'] = 50-$gebruiker
  218.  
  219. ['items'];
  220. elseif($gebruiker['itembox'] == 'Blue box') $gebruiker['item_over'] = 100-$gebruiker
  221.  
  222. ['items'];
  223. elseif($gebruiker['itembox'] == 'Red box') $gebruiker['item_over'] = 250-$gebruiker
  224.  
  225. ['items'];
  226. elseif($gebruiker['itembox'] == 'Green box') $gebruiker['item_over'] = 500-$gebruiker
  227.  
  228. ['items'];
  229.  
  230. $arr = explode(",", $gebruiker['pok_bezit']);
  231. $result = array_unique($arr);
  232. $gebruiker_pokemon['procent'] = round((count($result)/650)*100);
  233.  
  234. #Load User Pokemon
  235. ############################################### pw.wereld hoeft niet als we alle 5e
  236.  
  237. generatie pokemon images hebben :)
  238. $pokemon_sql = mysql_query("SELECT pw.naam, pw.type1, pw.type2, pw.zeldzaamheid, pw.groei,
  239.  
  240. pw.aanval_1, pw.aanval_2, pw.aanval_3, pw.aanval_4, ps.* FROM pokemon_wild AS pw INNER
  241.  
  242. JOIN pokemon_speler AS ps ON ps.wild_id = pw.wild_id WHERE ps.user_id='".$_SESSION['id']."'
  243.  
  244. AND ps.opzak='ja' ORDER BY ps.opzak_nummer ASC");
  245. $gebruiker['in_hand'] = mysql_num_rows($pokemon_sql);
  246.  
  247. #Load User Messages
  248. $inbox = mysql_num_rows(mysql_query("SELECT `id` FROM `berichten` WHERE
  249.  
  250. `ontvanger_id`='".$_SESSION['id']."'"));
  251. $inbox_new = mysql_num_rows(mysql_query("SELECT `id` FROM `berichten` WHERE
  252.  
  253. `ontvanger_id`='".$_SESSION['id']."' AND `gelezen`='0'"));
  254.  
  255. if(($gebruiker['admin'] == 1) || ($gebruiker['admin'] == 3)) $inbox_allowed = 1000;
  256. elseif($gebruiker['help'] == 1) $inbox_allowed = 500;
  257. elseif($gebruiker['premiumaccount'] >= 1) $inbox_allowed = 200;
  258. else $inbox_allowed = 50;
  259.  
  260. if($inbox_allowed <= $inbox) $inbox_txt = '<a href="?page=inbox" style="color:#cc3333;">'.$txt
  261.  
  262. ['stats_full'].'</a>';
  263. elseif($inbox_new >= 1) $inbox_txt = '<a href="?page=inbox" style="color:#0bbe03;">'.$inbox_new.'
  264.  
  265. '.$txt['stats_new'].'</a>';
  266. else $inbox_txt = '<a href="?page=inbox" style="color:#000000;">'.$inbox.' / '.$inbox_allowed.'</a>';
  267.  
  268. #Load User Events
  269. $event_new = mysql_num_rows(mysql_query("SELECT `id` FROM `gebeurtenis` WHERE
  270.  
  271. `ontvanger_id`='".$_SESSION['id']."' AND `gelezen`='0'"));
  272.  
  273. if($event_new == 0) $event_txt = '<a href="?page=events" style="color:#000000;">'.$txt
  274.  
  275. ['stats_none'].'</a>';
  276. else $event_txt = '<a href="?page=events" style="color:#0bbe03;">'.$event_new.' '.$txt
  277.  
  278. ['stats_new'].'</a>';
  279. }
  280. else{
  281. #Als je op de inloggen knop drukt, includes/login.php includen voor de meldingen
  282. if(isset($_POST['login']))
  283. include("includes/login.php");
  284. }
  285. #Berekenen wanneer de reclamepagina komt
  286. if(($_SESSION['naam'] != "") AND (($gebruiker['premiumaccount'] == 0) OR ($gebruiker['reclame']
  287.  
  288. == 1))) $reclamechance = rand(1,50);
  289.  
  290. #Check if you're asked for a duel MOET OOK ANDERS -> Event! ;)
  291. $duel_sql = mysql_query("SELECT `id`, `datum`, `uitdager`, `tegenstander`, `bedrag`, `status` FROM
  292.  
  293. `duel` WHERE `tegenstander`='".$gebruiker['username']."' AND (`status`='wait') ORDER BY id DESC
  294.  
  295. LIMIT 1");
  296.  
  297. #?page= systeem opbouwen
  298. if(empty($page)) $page = 'home';
  299. elseif(!file_exists($page.'.php')) $page = 'notfound';
  300. elseif(empty($_SESSION['id'])) $page = $page;
  301. elseif((($gebruiker['captcha_time']+900) < time()) && (in_array($_GET['page'],
  302.  
  303. $captcha_page_check))) $page = 'captcha-ingame-check';
  304. elseif($page == 'attack/tour_fight') $page = $page;
  305. elseif($page == 'attack/wild2/wild-attack') $page = $page;
  306. else{
  307. $duel_test = mysql_query("SELECT `id` FROM `duel` WHERE `status`='wait' AND `uitdager`='".
  308.  
  309. $_SESSION['naam']."'");
  310. #Als deze sessie bestaat deze pagina weergeven.
  311. if(!empty($_SESSION['aanvalnieuw'])){
  312. #Code opvragen en decoderen
  313. $link = base64_decode($_SESSION['aanvalnieuw']);
  314. #Code splitten, zodat informatie duidelijk word
  315. list ($nieuweaanval['pokemonid'], $nieuweaanval['aanvalnaam']) = preg_split
  316.  
  317. ('[/]', $link);
  318. #Andere huidige pagina toewijzen
  319. $page = "includes/poke-newattack";
  320. }
  321. elseif(!empty($_SESSION['evolueren'])){
  322. #Code opvragen en decoderen
  323. $link = base64_decode($_SESSION['evolueren']);
  324. #Code splitten, zodat informatie duidelijk word
  325. list ($evolueren['pokemonid'], $evolueren['nieuw_id']) = preg_split ('[/]', $link);
  326. #Andere huidige pagina toewijzen
  327. $page = "includes/poke-evolve";
  328. }
  329. elseif(($gebruiker['eigekregen'] == 0) OR ($_SESSION['eikeuze'] == 1))
  330. $page = "beginning";
  331. #Is speler bezig met aanvallen?
  332. elseif($gebruiker['pagina'] == 'attack'){
  333. $page = "attack/wild/wild-attack";
  334. if($gebruiker['test'] == 1) $page = "attack/wild2/wild-attack";
  335. $res = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `aanval_log` WHERE `user_id`='".
  336.  
  337. $_SESSION['id']."'"));
  338. $_SESSION['attack']['aanval_log_id'] = $res['id'];
  339. }
  340. elseif($gebruiker['pagina'] == 'trainer-attack'){
  341. $page = "attack/trainer/trainer-attack";
  342. $res = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `aanval_log` WHERE `user_id`='".
  343.  
  344. $_SESSION['id']."'"));
  345. $_SESSION['attack']['aanval_log_id'] = $res['id'];
  346. }
  347. elseif(($gebruiker['pagina'] == 'duel') AND (mysql_num_rows($duel_test) > 0))
  348. $page = $_GET['page'];
  349. elseif($gebruiker['pagina'] == 'duel')
  350. $page = "attack/duel/duel-attack";
  351. #Word speler uit gedaagd voor duel?
  352. elseif(mysql_num_rows($duel_sql) == 1)
  353. $page = "attack/duel/invited";
  354. }
  355.  
  356. if((($page != "attack/wild/wild-attack") AND ($page != "attack/wild2/wild-attack") AND ($gebruiker
  357.  
  358. ['pagina'] == 'attack')) OR (($page != "attack/trainer/trainer-attack") AND ($gebruiker['pagina'] ==
  359.  
  360. 'trainer-attack'))){
  361. $res = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `aanval_log` WHERE `user_id`='".
  362.  
  363. $_SESSION['id']."'"));
  364. mysql_query("UPDATE `pb20_14users` SET `pagina`='attack_start' WHERE `user_id`='".
  365.  
  366. $_SESSION['id']."'");
  367. mysql_query("DELETE FROM `pokemon_speler_gevecht` WHERE `user_id`='".$_SESSION
  368.  
  369. ['id']."'");
  370. mysql_query("DELETE FROM `pokemon_wild_gevecht` WHERE `aanval_log_id`='".$res['id']."'");
  371. mysql_query("DELETE FROM `aanval_log` WHERE `user_id`='".$_SESSION['id']."'");
  372. }
  373.  
  374. if(($page != "attack/duel/duel-attack") AND ($gebruiker['pagina'] == 'duel')){
  375. mysql_query("UPDATE `pb20_14users` SET `pagina`='duel_start' WHERE `user_id`='".
  376.  
  377. $_SESSION['id']."'");
  378. mysql_query("DELETE FROM `pokemon_speler_gevecht` WHERE `user_id`='".$_SESSION
  379.  
  380. ['id']."'");
  381. mysql_query("DELETE FROM `duel` WHERE `uitdager`='".$_SESSION['naam']."' OR
  382.  
  383. `tegenstander`='".$_SESSION['naam']."'");
  384. }
  385.  
  386. $str_tijd_nu = strtotime(date('Y-m-d H:i:s'));
  387. $jail_tijd = (strtotime($gebruiker['gevangenistijdbegin'])+$gebruiker['gevangenistijd'])-$str_tijd_nu;
  388. $pokecen_tijd = (strtotime($gebruiker['pokecentertijdbegin'])+$gebruiker['pokecentertijd'])-
  389.  
  390. $str_tijd_nu;
  391.  
  392. #Work Check
  393. if(!empty($gebruiker['soortwerk'])){
  394. $werken_tijd = strtotime($gebruiker['werktijdbegin'])+$gebruiker['werktijd'];
  395. #Tijd die overblijft
  396. $tijdwerken = $werken_tijd-$str_tijd_nu;
  397. if($tijdwerken < 0)
  398. include_once('includes/work-inc.php');
  399. else{
  400. $wait_time = $tijdwerken;
  401. $type_timer = 'work';
  402. if(!page_timer($page,'work')) $page = 'includes/wait';
  403. }
  404. }
  405.  
  406. elseif($jail_tijd > 0){
  407. #Tijd die overblijft
  408. if($jail_tijd >= 0){
  409. if(!page_timer($page,'jail')) $page = 'includes/wait-jail';
  410. }
  411. }
  412. elseif($pokecen_tijd > 0){
  413. #Tijd die overblijft
  414. $wait_time = $pokecen_tijd;
  415. if($wait_time >= 0){
  416. $type_timer = 'pokecenter';
  417. if(!page_timer($page,'jail')) $page = 'includes/wait';
  418. }
  419. }
  420.  
  421. if(empty($gebruiker['clan'])) $gebruiker['clan'] = 'Kein Clan';
  422. else $gebruiker['clan'] = '<a href="?page=clan-profile&clan='.$gebruiker['clan'].'">'.
  423.  
  424. $gebruiker['clan'].'</a>';
  425. $profileurl = 'index.php?page=profile&player='.$_SESSION['naam'];
  426.  
  427. if($gebruiker['wereld'] == 'Kanto') $gebruiker['olam'] = 'Kanto';
  428. elseif($gebruiker['wereld'] == 'Johto') $gebruiker['olam'] = 'Johto';
  429. elseif($gebruiker['wereld'] == 'Hoenn') $gebruiker['olam'] = 'Hoenn';
  430. elseif($gebruiker['wereld'] == 'Sinnoh') $gebruiker['olam'] = 'Sinnoh';
  431. elseif($gebruiker['wereld'] == 'Kalos') $gebruiker['olam'] = 'Kalos';
  432. else $gebruiker['olam'] = 'Einall';
  433. /*
  434. if(!empty($_SESSION['id'])){
  435. if(($_GET['page'] != "security-question") && ($_GET['page'] != "security-verify") &&
  436.  
  437. ($_GET['page'] != "reset_security") && ($_GET['page'] != "reset_security_verify")) {
  438. if($_GET['page'] == "reset_security"){
  439. header('Location: index.php?page=reset_security');
  440. } else {
  441. ########## SECURITY QUESTION ############
  442. $security = mysql_fetch_assoc(mysql_query("SELECT * FROM `security_question`
  443.  
  444. WHERE `user_id`='".$_SESSION['id']."' "));
  445. if($security == 0) header('Location: index.php?page=security-question');
  446. elseif($security['last_ip'] != $_SERVER['REMOTE_ADDR']) header('Location:
  447.  
  448. index.php?page=security-verify');
  449. }
  450. ########## SECURITY QUESTION ############
  451. }
  452. }
  453. */
  454. $profile_url = "http://pokemon-sky.net/?page=profile&player=".$gebruiker['username'];
  455.  
  456. $time = time();
  457. $tenMinsAgo = $time - (60*10);
  458. $usersQuery = mysql_query("SELECT * FROM `pb20_14users` WHERE `map_num`='1' AND
  459.  
  460. `map_lastseen`>='{$tenMinsAgo}'");
  461. $numUsersOnMap1 = mysql_num_rows($usersQuery);
  462. ?>
  463.  
  464. <?php if(empty($_SESSION['id'])){ ?>
  465.  
  466. <?php
  467. if(($page == 'tos') || ($page == 'contact') || ($page == 'forgot-username') || ($page ==
  468.  
  469. 'forgot-password')) echo '<a href="?page=home" class="submit" style="float:left;">Zurück</a><br />';
  470. if($page == 'tos') include('tos.php');
  471. elseif($page == 'contact') include('contact.php');
  472. elseif($page == 'forgot-username') include('forgot-username.php');
  473. elseif($page == 'forgot-password') include('forgot-password.php');
  474. elseif($page == 'reset_pass') include('reset_pass.php');
  475. else include('intro.php');
  476. ?>
  477. <?php } else { ?>
  478. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  479.  
  480. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  481. <html xmlns="http://www.w3.org/1999/xhtml">
  482. <head>
  483. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  484. <meta http-equiv="content-style-type" content="text/css" />
  485. <meta name="description" content="Pokemon-Sky ist ein browserbasiertes Pokémon Spiel. Sie
  486.  
  487. können Pokémon fangen, Arenaleiter bekämpfen und mit oder gegen Ihre Freunde Spielen ... Jetzt
  488.  
  489. Registrieren und Deine Reise als Pokémon Trainer beginnen!" />
  490. <title><?php echo $title_user; ?></title>
  491. <link type="text/css" media="screen" rel="stylesheet" href="stylesheets/colorbox.css" />
  492. <?php if(empty($_SESSION['id'])){ ?><link rel="stylesheet" type="text/css"
  493.  
  494. href="stylesheets/outgame.css" /><?php } else { ?><link rel="stylesheet" type="text/css"
  495.  
  496. href="stylesheets/style.css" /><?php } ?>
  497. <link rel="shortcut icon" href="/img/icon.png" type="image/x-icon" />
  498. <link rel="apple-touch-icon" href="apple-touch-icon.png" />
  499. <script type="text/javascript"
  500.  
  501. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  502. <script type="text/javascript" src="javascripts/time.js"></script>
  503. <script type="text/javascript" src="javascripts/timer.js"></script>
  504. <script type="text/javascript" src="javascripts/tooltip.js"></script>
  505. <script type="text/javascript" src="javascripts/new_tooltip.js"></script>
  506. <?php if(!empty($_SESSION['id'])) { ?><script type="text/javascript"
  507.  
  508. src="javascripts/dropdownmenu.js"></script><?php } ?>
  509. <script type="text/javascript" src="javascripts/countdown.js"></script>
  510. <script type="text/javascript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval
  511.  
  512. ("page" + id + " = window.open(URL, '" + id + "',
  513.  
  514. 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=800,height=400');"); }
  515.  
  516. </script>
  517. <style>
  518. .lt-ie8 input.radioChanged , .lt-ie7 input.radioChanged{
  519. height:auto;
  520. width:auto;
  521. opacity:1;
  522. }
  523.  
  524. input.radioChanged, input.checkboxChanged{
  525. position:relative;
  526. z-index:2;
  527. opacity:0;
  528. height:23px;
  529. margin:0;
  530. width:23px;
  531. display:inline-block;
  532. }
  533. .lt-ie8 .checkboxContainer, .lt-ie7 .checkboxContainer, .lt-ie7 .radioContainer, .lt-ie8 .radioContainer{
  534. display:none !important;
  535. }
  536. .checkboxContainer, .radioContainer{
  537. position:relative;
  538. z-index:1;
  539. height:23px;
  540. width:23px;
  541. margin-left:-23px;
  542. display:inline-block;
  543.  
  544. }
  545. .lt-ie8 input.radioChanged + .checkboxContainer{
  546. background-image:none !important;
  547. }
  548. .lt-ie8 input.radioChanged + .radioContainer{
  549. background-image:none !important;
  550. }
  551. input.checkboxChanged + .checkboxContainer{
  552. background:url('/img/bg_checkbox.png') top left no-repeat;
  553. }
  554. input.checkboxChanged:hover + .checkboxContainer, input[type="radio"]:hover + .radioContainer {
  555. background-position:top center;
  556. }
  557. input.radioChanged + .radioContainer{
  558. background:url('/img/bg_radio.png') top left no-repeat;
  559. }
  560. input.checkboxChanged:checked + .checkboxContainer, input[type="radio"]:checked +
  561.  
  562. .radioContainer{
  563. background-position:top right;
  564. }
  565. .radioGroup {
  566. padding-bottom: 5px;
  567. }
  568. </style>
  569. </head>
  570. <body>
  571. <div class="ribbon">
  572. <a href="#" rel="me">Pokémon-Sky <b>v2.0.1</b></a>
  573. </div>
  574.  
  575. <div id="wrap">
  576.  
  577.  
  578.  
  579. <div id="menu"><?php if(empty($_SESSION['id'])){ ?>
  580.  
  581. <a href="?page=">Home</a>
  582. <a href="http://pokemon-sky.net/forum" target="_blank">Forum</a>
  583. <a href="?page=information&category=game-rules">Help</a>
  584. <a href="?page=forgot-username">Forgot username?</a>
  585. <a href="?page=forgot-password">Forgot password?</a>
  586. <a href="?page=register"><u>Register</u></a><?php } else { ?>
  587.  
  588. <a href="?page=">Home</a>
  589. <a href="http://pokemon-sky.net/forum" target="_blank">Forum</a>
  590. <a href="?page=information&category=game-rules">Help</a>
  591. <a href="?page=pokedex">Pokédex</a>
  592. <a href="JavaScript:popcbox();">Chat</a>
  593. <?php if($gebruiker['rank'] >= 3) { ?>
  594. <a href="?page=premium&cat=buy">Premium area</a>
  595. <?php } ?>
  596. <a href="?page=streaming&home" class="glow" target="_blank">Stream</a>
  597. <a href="?page=information&category=game-rules">Rules</a>
  598. <a href="?page=logout"><b><u>Logout</u></b></a><?php } ?>
  599. </div>
  600. <div id="header"><?php if(empty($_SESSION['id'])){ ?>
  601.  
  602. <div id="hq1">
  603. <form method="post" id="UserLoginForm" action="<?php echo
  604.  
  605. strip_tags($_SERVER['PHP_SELF']);?>">
  606. <?php if($inlog_error != '') echo '<div class="red_error" style="width:295px;position:absolute;">'.
  607.  
  608. $inlog_error.'</div>'; else echo ''; ?>
  609. <div class="hq1"><b>Einloggen</b></div>
  610. <div
  611.  
  612. class="hq1"></div>
  613. <div
  614.  
  615. class="hq1">Benutzername</div>
  616. <div class="hq1"><input type="text" name="username" class="text_long" id="login-
  617.  
  618. user" value="" maxlength="12" /></div>
  619. <div
  620.  
  621. class="hq1">Passwort</div>
  622. <div class="hq1"><input type="password" name="password" class="text_long"
  623.  
  624. id="login-pass" value="" /></div>
  625. <div class="hq1"><input type="submit" name="login" class="button_mini"
  626.  
  627. style="width:140px;margin-right:130px;" value="התחבר" style="margin-bottom:8px;" /></div>
  628. </form>
  629. <?php } else { ?>
  630. <div id="hq">
  631. <div class="hq">
  632. <img src="images/icons/man.png" width="16" height="16"
  633.  
  634. alt="Benutzername" title="Benutzername"/>
  635. <style="font-weight:bold;font-size:14px;"><?php echo $gebruiker['username']; ?
  636.  
  637. ></style><br />
  638. <img src="images/icons/man.png" width="16" height="16" alt="Berichten" title="Nachrichten" />
  639. <?php
  640. echo $gebruiker_rank['ranknaam'];
  641.  
  642.  
  643. ?><br>
  644. <img src="images/icons/wereld.png" width="16" height="16"
  645.  
  646. alt="Region" title="Region"/>
  647. <a href="?page=travel"><?php echo $gebruiker
  648.  
  649. ['wereld']; ?></a><br />
  650. <img src="images/icons/clan.png" width="16" height="16" alt="Clan"
  651.  
  652. title="Clan"/>
  653. <?php
  654. if ($gebruiker['clan'] == "Kein Clan") {
  655. echo "No clan";
  656. } else {
  657. echo $gebruiker['clan'];
  658. }
  659. ?><br />
  660. <img src="images/icons/statistics.png" width="16" height="16"
  661.  
  662. alt="Bank" />
  663. <?php echo number_format($gebruiker['rating']); ?><br
  664.  
  665. />
  666. <img src="images/icons/silver.png" width="16" height="16"
  667.  
  668. alt="Silver" />
  669. <?php echo number_format($gebruiker['silver']); ?><br
  670.  
  671. />
  672. <img src="images/icons/gold.png" width="16" height="16" alt="Gold"
  673.  
  674. />
  675. <?php echo number_format($gebruiker['gold']); ?><br
  676.  
  677. />
  678. <img src="images/icons/bank.png" width="16" height="16"
  679.  
  680. alt="Bank" />
  681. <?php echo number_format($gebruiker['bank']); ?>
  682. </div>
  683. <div class="hq">
  684. <img src="images/icons/friend.png" width="16" height="16"
  685.  
  686. alt="Berichten" />
  687. <?php echo $gebruiker['respect']; ?><br />
  688. <img src="images/icons/plaatsnummereen.png" width="16"
  689.  
  690. height="16" alt="Berichten" />
  691. <?php echo $gebruiker['achievs']; ?><br />
  692. <img src="images/icons/berichtongelezen.png" width="16"
  693.  
  694. height="16" alt="Berichten" />
  695. <?php echo $inbox_txt; ?><br />
  696. <img src="images/icons/gebeurtenis.png" width="16" height="16"
  697.  
  698. alt="Berichten" />
  699. <?php
  700. if ($event_txt == '<a href="?page=events"
  701.  
  702. style="color:#000000;">Keine</a>') {
  703. echo '<a href="?page=events"
  704.  
  705. style="color:#000000;">Events</a>';
  706. } else {
  707. echo $event_txt;
  708. }
  709. ?><br />
  710. <img src="images/icons/star-full-little.png" width="15" height="15"
  711.  
  712. alt="Berichten" />
  713. <?php
  714. if (substr($premium_txt, -4) == "Tage") {
  715. echo substr($premium_txt,0, -4) . "Days";
  716. } else {
  717. echo $premium_txt;
  718. }
  719. ?><br />
  720. <div
  721.  
  722. class="progress_bar">
  723. <div
  724.  
  725. class="progresspr bluepr" style="text-align:left;width:<?php echo $gebruiker_rank['procent']; ?>
  726.  
  727. %"><span style="position: absolute; line-height: 14px; margin-left: 7px; float: right;"><?php echo
  728.  
  729. $gebruiker_rank['procent']; ?>% / 100% -<?php if ($gebruiker_rank['ranknaam'] == "Neuling") { echo
  730.  
  731. "Novice"; } else { echo $gebruiker_rank['ranknaam']; } ?></span></div>
  732. </div>
  733. <div
  734.  
  735. class="progress_bar">
  736. <div
  737.  
  738. class="progresspr greenpr" style="width: <?php echo $gebruiker_pokemon['procent']; ?>%"><span
  739.  
  740. style="position: absolute; line-height: 14px; margin-left: 7px; float: right;"> <?php echo
  741.  
  742. $gebruiker_pokemon['procent']; ?>% /100% All Pokémon</span></div>
  743. </div>
  744. </div><?php } ?>
  745. </div>
  746. </div>
  747. </div>
  748. <?php
  749. $newssql = mysql_query("SELECT * FROM `game_news` ORDER BY id DESC LIMIT 1");
  750. $newsid = mysql_fetch_assoc(mysql_query("SELECT * FROM `game_news` ORDER BY id DESC
  751.  
  752. LIMIT 1"));
  753. ?>
  754. <div id="wrap2">
  755. <?php if($page == 'home') { ?>
  756. <div class="subtitel2">
  757. <div class="update">
  758. <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com
  759.  
  760. %2Fpkmnskybrowsergame&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=fals
  761.  
  762. e&amp;share=true&amp;height=35&amp;appId=230204857151593" scrolling="no" frameborder="0"
  763.  
  764. style="border:none; overflow:hidden; height:35px;" allowTransparency="true"></iframe>
  765. </div>
  766. </div>
  767. <?php } ?>
  768.  
  769.  
  770. <div id="center">
  771. <!-- Page - START -->
  772.  
  773. <div id="center_tekst">
  774. <style>
  775. .lastupdate {
  776. background: #e21d45;
  777. padding: 5px;
  778. text-align: center;
  779. border-radius: 10px 10px 0 0;
  780. border: 1px solid #333;
  781. transition: all .5s;
  782. height: 32px;
  783. line-height: 32px;
  784. text-shadow: 0 0 5px #333;
  785. font-size: 20px;
  786. color: #000;
  787. font-family: Tahoma;
  788. }
  789. .lastupdate:hover { background:#1d88e2;transition:all .5s;cursor:pointer; }
  790. .update {
  791. padding-left: 4px;
  792. padding-top: 4px;
  793. width: 400px;
  794. margin-right: auto;
  795. margin-left: auto;
  796. margin-top: 7px;
  797. height: 28px;
  798. line-height: 28px;
  799. text-align: center;
  800. border: 1px solid #333;
  801. color: #fff;
  802. background: #fff url(http://www.gilzak.com/images/facebook_icon.png) 5px center no-repeat;
  803. }
  804. .update:hover {
  805. box-shadow:0 0 15px #333;
  806. text-decoration:none;
  807. }
  808. .updatelink:hover {
  809. text-decoration:none;
  810. }
  811. .today {
  812. width: 220px;
  813. color: #0d556c;
  814. font-weight: none;
  815. background: #92d3e7;
  816. border: 1px solid #0d556c;
  817. padding: 5px 5px 5px 2px;
  818. border-radius: 6px;
  819. margin-top:3px;
  820. -moz-border-radius: 6px;
  821. -webkit-border-radius:6px;
  822. box-shadow:0 0 5px #333;
  823. }
  824. .today:hover {
  825. background: #50f267;
  826. }
  827. .newyear {
  828. width: 600px;
  829. height:96px;
  830. color: #000;
  831. font-weight: bold;
  832. background: #DFEFFF url(http://i.imgur.com/QrHwBiT.png) left center no-repeat;
  833. border: 2px solid #000;
  834. margin: 10px;
  835. padding: 5px 5px 5px 28px;
  836. border-radius: 6px;
  837. -moz-border-radius: 6px;
  838. -webkit-border-radius:6px;
  839. box-shadow:0 0 5px yellow;
  840. text-align:right;
  841. }
  842. </style>
  843.  
  844. <?php include($page.'.php'); ?>
  845. </div>
  846.  
  847.  
  848.  
  849.  
  850. <!-- Page - END -->
  851.  
  852. <?php if(!empty($_SESSION['id'])){ ?>
  853. <?php
  854. $sql = "SELECT user_id, username, premiumaccount, admin, online, buddy, blocklist, rating, help
  855.  
  856. FROM pb20_14users WHERE online+'6000'>'".time()."' ORDER BY rank DESC, rankexp DESC,
  857.  
  858. rating ASC";
  859. $expire = 1;
  860. $records = query_cache("online",$sql,$expire);
  861. $aantal = count($records);
  862. $teller = 0;
  863. ?>
  864.  
  865. <div class="subtitel">Currently online: <?php echo $aantal ?></div>
  866. <div id="center_tekst">
  867. <?php include('online.php'); ?>
  868. <!-- OFFICIAL CHAT SPOT -->
  869. <?php
  870. //About filters, first letter = language & number after is 0 = disabled, 1 = enabled
  871. //example e1=english enabled, f0 = finnish disabled
  872. echo "<p style='font-size:24px;color:#000;font-style:italic;'>Manual Chat - To access full featured chat,
  873.  
  874. click <a style='text-decoration:underline;' href='http://mudsaf.info/shoutbox.php?channel=PokeMud'
  875.  
  876. target='_BLANK'>here</a>.</p><div style='padding:10px;margin-top:10px;display:block;
  877.  
  878. width:770px; max-height:400px;overflow-y: auto;background-color:rgba(0,0,0,0.8);'>" .
  879.  
  880. file_get_contents("http://mudsaf.info/script/shoutbox/receive_shouts.php?
  881.  
  882. channel=PokeMud&fil=e1f0s0d0n0") . "</div>";
  883. ?>
  884.  
  885. <?php } ?>
  886. </div>
  887. <div id="links">
  888. <?php if(!empty($_SESSION['id'])){ ?>
  889. <?php if($gebruiker['rank'] > 1) { ?>
  890. <div class="links" style="width:200px; margin-top: 10px">
  891. <?php if($gebruiker['trainera'] > 0) { ?>
  892. <a href="?page=trainer" style="padding:0;">
  893. <div class="btn btn-primary"><img src="images/icons/mini_star.png" style="vertical-align:middle;">
  894. <?php echo $gebruiker['trainera'] ?> Trainer Battle!
  895. </div>
  896. </a>
  897. <?php } if($gebruiker['trainerb'] > 0) { ?>
  898. <a href="?page=burned-tower" style="padding:0;">
  899. <div class="btn btn-primary"><img src="images/icons/mini_star.png" style="vertical-align:middle;">
  900. <?php echo $gebruiker['trainerb'] ?> Battle in Tower!
  901. </div>
  902. </a>
  903. <?php } if($gebruiker['geluksrad'] > 0) { ?>
  904. <a href="?page=wheel-of-fortune" style="padding:0;">
  905. <div class="btn btn-primary"><img src="images/icons/mini_star.png" style="vertical-align:middle;">
  906. <?php echo $gebruiker['geluksrad'] ?>x Wheel of fortune!</div>
  907. </a>
  908. <?php } ?>
  909. </div>
  910. <?php } ?>
  911. <script>
  912. $(document).ready(function () {
  913. var interval = 10000; //number of mili seconds between each call
  914. var refresh = function() {
  915. $.ajax({
  916. url: "ajax_call/users_on_map.php?map=1",
  917. cache: false,
  918. success: function(html) {
  919. $('#players').html(html);
  920. setTimeout(function() {
  921. refresh();
  922. }, interval);
  923. }
  924. });
  925. };
  926. refresh();
  927. });
  928. </script>
  929. <?php if($gebruiker['username'] == "Spooky") { ?>
  930.  
  931. <?php } ?>
  932.  
  933. <a href="?page=attack/beta_map&map=1" class="glow" style="font-size:14px;
  934.  
  935. cursor: pointer;">
  936. <div class="sub2" style="cursor: pointer;">
  937. <img src="images/walking.gif" alt="icon" style="margin-top:10px;" />
  938. World (<label id="players"></label> players)
  939. </div> </a>
  940.  
  941. <div class="sub">
  942. <img src="images/icons/ball.gif" />
  943. <a href="?page=extended" style="color: #fff">
  944. Your Team:
  945. </a>
  946. </div>
  947. <div style="margin-right: 40px; margin-top: 0px; margin-bottom: -
  948.  
  949. 10px;color:black;float:right;">
  950. <?php
  951. #Show ALL pokemon in hand
  952. if($gebruiker['in_hand'] > 0){
  953. $pokemon_sql = mysql_query("SELECT pw.naam, pw.type1, pw.type2,
  954.  
  955. pw.zeldzaamheid, pw.groei, pw.aanval_1, pw.aanval_2, pw.aanval_3, pw.aanval_4, ps.* FROM
  956.  
  957. pokemon_wild AS pw INNER JOIN pokemon_speler AS ps ON ps.wild_id = pw.wild_id WHERE
  958.  
  959. ps.user_id='".$_SESSION['id']."' AND ps.opzak='ja' ORDER BY ps.opzak_nummer ASC");
  960. while($pokemon = mysql_fetch_assoc($pokemon_sql)){
  961. $dateadd = strtotime(date('Y-m-d H:i:s'))-600;
  962. $date = date('Y-m-d H:i:s', $dateadd);
  963. #Check if Pokemon have to hatch
  964. if(($pokemon['ei'] == 1) AND ($pokemon['ei_tijd'] < $date)){
  965. update_pokedex($pokemon['wild_id'],'','ei');
  966. mysql_query("UPDATE pokemon_speler SET ei='0' WHERE id='".$pokemon
  967.  
  968. ['id']."'");
  969. }
  970. $pokemon = pokemonei($pokemon);
  971. $pokemon['naam'] = pokemon_naam($pokemon['naam'],$pokemon['roepnaam']);
  972. $popup = pokemon_popup($pokemon, $txt);
  973. if($pokemon['leven'] == 0)
  974.  
  975. $pokemonstatus = '<img src="images/icons/bullet_red.png">';
  976. else $pokemonstatus = '<img
  977.  
  978. src="images/icons/bullet_green.png">';
  979. echo '<a href="?page=poke-info&pokemon='.$pokemon['wild_id'].'" onMouseover="showhint(\''.
  980.  
  981. $popup.'\', this)"><img src="'.$pokemon['animatie'].'" width="32" height="32" alt="'.$pokemon
  982.  
  983. ['naam'].'" /></a>'; }
  984. }
  985. ?>
  986. </div>
  987. <?php } ?>
  988. <?php if(empty($_SESSION['id'])){ ?>
  989. <?php
  990. #Tel leden online
  991. $expire = 1;
  992. $sql = "SELECT
  993.  
  994. username, premiumaccount, admin, online, buddy, blocklist FROM pb20_14users WHERE online
  995.  
  996. +'6000'>'".time()."' ORDER BY rank DESC, rankexp DESC, username ASC";
  997. $records =
  998.  
  999. query_cache("online",$sql,$expire);
  1000. $stats['online'] =
  1001.  
  1002. count($records);
  1003. #Tel aantal leden
  1004. $expire = "300";
  1005. $sql = "SELECT
  1006.  
  1007. `user_id` FROM `pb20_14users` WHERE `account_code`='1'";
  1008. $stats['aantal'] =
  1009.  
  1010. query_cache_num('stat-aantal',$sql,$expire);
  1011. #Aantal leden online
  1012.  
  1013. tellen
  1014. $sql = "SELECT
  1015.  
  1016. `online`, `username` FROM `pb20_14users` WHERE `account_code`='1' AND `aanmeld_datum`
  1017.  
  1018. LIKE '%".date("Y-m-d")."%' ORDER BY `user_id`";
  1019. $stats['nieuw'] =
  1020.  
  1021. query_cache_num('stat-nieuw',$sql,$expire);
  1022. ?>
  1023. <div class="sub">
  1024. <img src="images/icons/instructies.png" width="16" height="16" alt="icon" />
  1025. Home
  1026. </div>
  1027.  
  1028. <div class="links">
  1029. <a href="?page=home">Home</a><br />
  1030. <a href="?page=register">Register</a><br />
  1031. <a href="?page=statistics">Statistics</a><br />
  1032. <a href="?page=forgot-password">Forgot password?</a>
  1033. </div>
  1034.  
  1035. <div class="rechts">
  1036. <a href="http://pokemon-sky.net/forum/" target="_blank">Forum</a><br />
  1037. <a href="?page=information&category=game-info">Help</a><br />
  1038. <a href="?page=rankinglist">Rank list</a><br />
  1039. <a href="?page=forgot-username">Forgot username?</a>
  1040. </div>
  1041. <div class="sub">
  1042. <img src="images/icons/stats.png" width="16" height="16" alt="icon" />
  1043. Statistics
  1044. </div>
  1045. <div class="links">
  1046. <img src="images/icons/lid.png" width="16" height="16"
  1047.  
  1048. alt="Totaal">&nbsp;&nbsp;Players:<br />
  1049. <img src="images/icons/lid.png" width="16" height="16"
  1050.  
  1051. alt="Totaal">&nbsp;&nbsp;Online:<br />
  1052. <img src="images/icons/lid.png" width="16" height="16"
  1053.  
  1054. alt="Totaal">&nbsp;&nbsp;New players:<br />
  1055. </div>
  1056. <div class="rechts">
  1057. <font color="#2a2a2a"><?php echo $stats['aantal']; ?></font><br />
  1058. <font color="#2a2a2a"><?php echo $stats['online']; ?></font><br />
  1059. <font color="#2a2a2a"><?php echo $stats['nieuw']; ?></font><br />
  1060. </div>
  1061.  
  1062. <?php } else { ?>
  1063. <div class="sub">
  1064. <img src="images/icons/instructies.png" width="16" height="16" alt="icon" />
  1065. General
  1066. </div>
  1067.  
  1068. <div class="links">
  1069. <a href="?page=home">Home</a><br />
  1070. <a href="?page=rankinglist">Rank list</a><br />
  1071. <a href="?page=daily-battles" style="color:blue;">Battle</a><br />
  1072. <a href="?page=statistics">Statistics</a><br />
  1073. <a href="?page=respect">Honor</a><br />
  1074. <a href="?page=pokemons">Pokémons</a><br />
  1075. <a href="?page=information&category=game-info">Help</a><br />
  1076. <a href="?page=news" style="color:red;">News</a><br />
  1077. <u><a href="?page=logout">Logout</a></u>
  1078. </div>
  1079.  
  1080. <div class="rechts">
  1081. <a href="?page=account-options&category=personal">Personal</a><br />
  1082. <a href="http://pokemon-sky.net/forum/" target="_blank"><img
  1083.  
  1084. src="http://icons.iconarchive.com/icons/hopstarter/soft-scraps/16/User-Group-icon.png" style="vertical-
  1085.  
  1086. align:middle;"> Forum</a><br />
  1087. <a href="?page=inbox">Inbox</a><br />
  1088. <?php if($gebruiker['rank'] >= 3) { ?>
  1089. <a href="?page=premium&cat=buy">Shop</a><br />
  1090. <?php } ?>
  1091. <a href="?page=information&category=pokemon-info">Pokédex</a><br />
  1092. <a href="?page=gift-shop" style="color:blue;">Gifts</a><br />
  1093. <a href="?page=promotion" class="glow" style="font-size:14px;text-shadow:0 0 5px
  1094.  
  1095. red;">Advertise</a><br />
  1096. </div>
  1097.  
  1098. <div class="sub">
  1099. <img src="images/icons/gebouw.png" width="16" height="16" alt="icon" />
  1100. <a href="?page=town" style="color: #fff">Town <?php echo $gebruiker['olam']; ?></a>
  1101. </div>
  1102.  
  1103. <div class="links">
  1104. <a href="?page=pokemoncenter">Pokécenter</a><br />
  1105. <a href="?page=pokemarket">Pokémarket</a><br />
  1106. <a href="?page=gold-shop&buy=shop">Gold Shop</a><br />
  1107. <a href="?page=bank">Bank</a><br />
  1108. <a href="?page=achiev">Achievements<img src="images/icons/new.gif" style="position:
  1109.  
  1110. absolute;vertical-align:middle"></a><br />
  1111. <a href="?page=daycare">Pension</a><br />
  1112. <a href="?page=travel" style="color:#ff0000;">Travel</a>
  1113.  
  1114. </div>
  1115.  
  1116. <div class="rechts">
  1117. <a href="?page=house-
  1118.  
  1119. seller">Houses</a><br />
  1120. <a href="?page=pokechange">Swap
  1121.  
  1122. Pokémon</a><br />
  1123. <a href="?
  1124.  
  1125. page=transferlist">Trading</a><br />
  1126. <a href="?page=item-market">Item
  1127.  
  1128. Market</a><br />
  1129. <a href="?page=gold-silver-
  1130.  
  1131. market">Trade</a><br />
  1132. <a href="?page=jail">Prison</a><br />
  1133. <a href="?page=casino">Game Room</a>
  1134. <a href="?page=craft" style="color:blue;">Pokéball Shop</a><br />
  1135. </div>
  1136.  
  1137. <div class="sub">
  1138. <img src="images/icons/vlag.png" width="16" height="16" alt="icon" />
  1139. <a href="?page=attack/attack_map" style="color: #fff">
  1140. Actions
  1141. </a>
  1142. </div>
  1143. <div class="links">
  1144. <a href="?page=attack/gyms">Gym Leader</a><br />
  1145. <a href="?page=attack/orange_island">Orange Island</a><br />
  1146. <a href="?page=work">Work</a><br />
  1147. <a href="?page=burned-tower">Tower (<?php echo $gebruiker['trainerb']; ?>)
  1148.  
  1149. </a><br />
  1150. <a href="?page=fishing">Fishing</a><br />
  1151. <a href="?page=attack/duel/invite" <?php if($gebruiker['rank'] < 2) echo "title='Nicht verfügbar'";
  1152.  
  1153. ?>>
  1154. Duel</a> <br />
  1155. <?php if($gebruiker['rank'] >= 3){ ?>
  1156. <a href="?page=trade-center" style="color: #FF6347; text-shadow:0 0 5px
  1157.  
  1158. #FF6347;">Trade-Center</a>
  1159. <?php } ?>
  1160. </div>
  1161.  
  1162. <div class="rechts">
  1163. <a href="?page=traders">Traders</a><br />
  1164. <a href="?page=race-invite">Rece</a><br />
  1165. <a href="?page=steal">Steal</a><br />
  1166. <a href="?page=spy">Spying</a><br />
  1167. <a href="?page=trainer">Trainer (<?php echo $gebruiker['trainera']; ?>)</a><br
  1168.  
  1169. />
  1170. <a href="?page=lvl-choose">Level Choose</a>
  1171. <?php if($gebruiker['rank'] >= 3){ ?>
  1172. <a href="?page=trade-add" style="color: #FF6347; text-shadow:0 0 5px
  1173.  
  1174. #FF6347;">Trade</a><br />
  1175. <?php } ?>
  1176. </div>
  1177.  
  1178. <div class="sub">
  1179. <img src="images/icons/ball.gif" width="16" height="16" alt="icon" />
  1180. <a href="?page=items" style="color: #fff">
  1181. My Inventory
  1182. </a>
  1183. </div>
  1184.  
  1185.  
  1186. <div class="links">
  1187. <a href="?page=items">Items</a><br />
  1188. <a href="?page=sell">Sell</a><br />
  1189. <a href="?page=house&option=pickup">Take</a><br />
  1190. <?php if($gebruiker['in_hand'] > 1) echo '<a href="?page=modify-order"
  1191.  
  1192. style="color: blue; text-shadow:0 0 5px blue;">order</a><br />'; ?>
  1193. </div>
  1194.  
  1195. <div class="rechts">
  1196. <a href="?page=extended">My Team</a><br />
  1197. <a href="?page=release">Release</a><br />
  1198. <a href="?
  1199.  
  1200. page=house&option=bringaway">Store</a><br />
  1201. <?php if($gebruiker['Badge case'] == 1) echo '<a href="?
  1202.  
  1203. page=badges">Order</a><br />'; ?>
  1204. </div>
  1205.  
  1206. <div class="sub">
  1207. <img src="images/icons/comments.png" width="16" height="16" alt="icon" />
  1208. Community
  1209. </div>
  1210. <?php if ($clanquery2['clan'] == "") {
  1211. echo '
  1212. <div class="links">
  1213. <a href="?page=clans">Clans</a><br />
  1214. <a href="?page=clanrank">Rank</a><br />
  1215. <a href="?page=buddylist">Friends</a><br />
  1216. <a href="?page=search-user">Search</a>
  1217. </div>
  1218. <div class="rechts">
  1219. <a href="?page=clan-make">Create Clan</a><br />
  1220. <a href="?page=blocklist">Ignore List</a><br />
  1221. <a href="?page=events">Events</a>
  1222. </div>';
  1223. } else {
  1224. echo '
  1225. <div class="links">
  1226. <a href="?page=clan-profile&clan='.$clanquery2['clan'].'" style="color: blue; text-
  1227.  
  1228. shadow:0 0 5px blue;">My Clan</a><br />
  1229. <a href="?page=clans">Clans</a><br />
  1230. <a href="?page=clanrank">Rank</a><br />
  1231. <a href="?page=buddylist">Friends</a><br />
  1232. <a href="?page=search-user">Search</a>
  1233. </div>
  1234. <div class="rechts">
  1235. <a href="?page=blocklist">Ignore List</a><br />
  1236. <a href="?page=events">Events</a>
  1237. </div>';
  1238. }
  1239. ?>
  1240.  
  1241. <?php if($gebruiker['admin'] == 3){ ?>
  1242. <div class="sub">
  1243. <img src="images/icons/key.png" />
  1244. Adminstrator menu
  1245. </div>
  1246. <div class="links">
  1247. <a href="?page=battleadmin9/messages">Messages</a><br />
  1248. <a href="?page=battleadmin9/transfer">Transfer</a><br />
  1249. <a href="?page=battleadmin9/bank">Bank</a><br />
  1250. <a href="?page=battleadmin9/release">Release</a>
  1251. <a href="?page=battleadmin9/pay-logs">Pay-Log</a>
  1252. </div>
  1253.  
  1254. <div class="rechts">
  1255. <a href="?page=battleadmin9/search-on-ip">Search IP</a><br />
  1256. <a href="?page=battleadmin9/ban-ip">Ban Ip</a><br />
  1257. <a href="?page=battleadmin9/addnews">Add news</a><br />
  1258. <a href="?page=battleadmin9/reports">Reports</a>
  1259. </div>
  1260. <?php } ?>
  1261.  
  1262. <?php if($gebruiker['username'] == 'WshbR' && $gebruiker['admin'] == 1){ ?>
  1263. <div class="sub">
  1264. <img src="images/icons/key.png" />
  1265. Moderations Menu
  1266. <div class="links">
  1267. </div>
  1268. <div class="rechts">
  1269. <a href="?page=battleadmin9/messages">Moderation</a><br />
  1270. </div>
  1271. </div>
  1272. <?php } ?>
  1273. <?php } ?>
  1274.  
  1275. <div class="sub">
  1276. <img src="images/icons/ball.gif" width="16" height="16" alt="icon" />
  1277. Last Catch
  1278. </div>
  1279. <script>
  1280. $(document).ready(function () {
  1281. var interval = 10000; //number of mili seconds between each call
  1282. var refresh = function() {
  1283. $.ajax({
  1284. url: "ajax_call/aktuelles.php",
  1285. cache: false,
  1286. success: function(html) {
  1287. $('#aktuelles').html(html);
  1288. setTimeout(function() {
  1289. refresh();
  1290. }, interval);
  1291. }
  1292. });
  1293. };
  1294. refresh();
  1295. });
  1296. </script>
  1297. <div class="linkss" id="aktuelles" style="text-align:center;color:#000;font-family:arial;">
  1298.  
  1299. </div>
  1300.  
  1301.  
  1302. </div>
  1303. <link type="text/css" media="screen" rel="stylesheet" href="stylesheets/additional.css" />
  1304. <div id="footer">
  1305. <a href="?page=contact">Support</a> | <a href="?page=tos">Rules</a> | <a
  1306.  
  1307. href="http://www.pokemon-sky.net/impressum.html">Print</a> | <a href="?
  1308.  
  1309. page=information&category=game-rules">Terms of use</a><?php if($gebruiker['rank'] >= 3) { ?> | <a
  1310.  
  1311. href="index.php?page=premium&cat=buy">Premium-area</a> <?php } ?> | <a
  1312.  
  1313. href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.pokemon-
  1314.  
  1315. sky.net">Share</a> | <a href="http://pokemon-sky.net/forum">Forum</a> | <a
  1316.  
  1317. href="https://www.facebook.com/PokemonBattle">We are on Facebook</a>
  1318.  
  1319.  
  1320. <p>Pok&eacute;mon And All Respective Names are Trademark &copy; of Nintendo 1996-2014</p>
  1321. </div>
  1322. </div>
  1323. <script>
  1324. $(document).ready(function () {
  1325. var interval = 10000; //number of mili seconds between each call
  1326. var refresh = function() {
  1327. $.ajax({
  1328. url: "notiffications.php",
  1329. cache: false,
  1330. success: function(html) {
  1331. $('#notifications').html(html);
  1332. setTimeout(function() {
  1333. refresh();
  1334. }, interval);
  1335. }
  1336. });
  1337. };
  1338. refresh();
  1339. });
  1340. </script>
  1341. <?php if(!empty($_SESSION['id'])) { ?>
  1342. <?php include('123.php'); ?>
  1343. <div id="notifications">
  1344. </div>
  1345. <?php } } ?>
  1346.  
  1347. </body>
  1348. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement