include("_include-config2.php"); $data2 = mysql_query("SELECT * FROM `[users]` WHERE `login`='{$_SESSION['login']}'"); $data = mysql_fetch_object($data2); $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1"); $dbres2 = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300"); $online = mysql_num_rows($dbres2); $laatstelid = mysql_query("select `login` from `[users]` order by id desc limit 1"); $laatste = @mysql_result($laatstelid,0,0); $leven = $data->health; $cash = number_format($data->cash, 0, '.' , '.'); $bank = number_format($data->bank, 0, '.' , '.'); $inboxnew = mysql_num_rows(mysql_query("SELECT id FROM `[messages]` WHERE `read`=0 AND `inbox`=1 AND `to`='$data->login'")); $attack = $data->attack; $defence = $data->defence; $clickpower = round($clicks*5); $power = round($attack+$defence+$clickpower/2); $land = Array("","Nederland","Frankrijk","Cuba","Rusland","Australië","VS"); $land = $land[$data->land]; $leven = $data->health; $eraf3 = $leven-1; $eraf4 = $leven-33; $eraf5 = $leven-57; $eraf6 = $leven-59; $eraf7 = $leven-61; $eraf8 = $leven-63; $eraf12 = $leven-68; ?>
Leven: | if($data->leven == 0) { ?> } else if($leven == 1) { ?> } else if($leven > 1 AND $leven < 33) { ?> } else if($leven > 33 AND $leven < 58) { ?> } else if($leven == 58 OR $leven == 59) { ?> } else if($leven == 60 OR $leven == 61) { ?> } else if($leven == 62 OR $leven == 63) { ?> } else if($leven == 64 OR $leven == 65) { ?> } else if($leven == 66) { ?> } else if($leven == 67) { ?> } else if($leven == 68) { ?> } else if($leven > 68 AND $leven < 100) { ?> } else if($leven == 100) { ?> } ?> | =$leven?>% | €=$cash?> | €=$bank?> | =$land?> |