if ($action == "del") { $eid = intval($_GET['eid']); $result_b = $db->query("SELECT eid FROM cc" . $n . "_countries WHERE islandid='" . $userdata['activeid'] . "' "); $row_in_b = $db->fetch_array($result_b); $in_bau = intval($row_in_b['eid']); if ($in_bau <= 0) { show_error('EXPLORING_ERROR_4', $modul_name); exit; } if ($in_bau != $eid) { show_error('EXPLORING_ERROR_5', $modul_name); exit; } $result = $db->query("SELECT * FROM cc" . $n . "_explore WHERE eid='{$eid}'"); $row = $db->fetch_array($result); $us_size = $userdata[$row['tabless']] + 1; $size = $userdata[$row['tabless']]; $res1 = $row['res1'] * $us_size * ($op_credit_cancel / 100); $res2 = $row['res2'] * $us_size * ($op_credit_cancel / 100); $res3 = $row['res3'] * $us_size * ($op_credit_cancel / 100); $res4 = $row['res4'] * $us_size * ($op_credit_cancel / 100); $a_user_id = $userdata['userid']; $u_db_name = username($a_user_id); $bauname = $row['name']; $bau_land = get_island($userdata['activeid']); $new_size = $size; trace_msg("User {$u_db_name} bricht Forschung {$bauname} auf Land {$bau_land} ab", 4); $db->query("UPDATE cc" . $n . "_countries SET eid='0', res1=res1+'{$res1}', res2=res2+'{$res2}', res3=res3+'{$res3}', res4=res4+'{$res4}', endexploretime='0', startexploretime='0', isexploring='0' WHERE islandid='" . $userdata['activeid'] . "'"); header("LOCATION: exploring.php"); exit; }
exit; } if ($action == "main") { timebanner_init(200, "bar_organge.gif"); $spio_name = get_soldiers_name("sol_spio", $userdata['rassenid']); $spio_count = intval($userdata['sol_spio']); $new_found_inhalt = array(); $new_found_spion = array(); $spionage_bit = ""; $sql = "SELECT * FROM cc" . $n . "_spions WHERE userid='{$userdata['userid']}' AND islandid='{$userdata['islandid']}'"; $result = $db->query($sql); while ($row = $db->fetch_array($result)) { $endtime = $row['endtime']; $requesttime = $endtime - time(); $starttime = $row['starttime']; $landname = get_island($row['toislandid']); $anzahl_spions = $row['spions']; $spion_id = $row['spionid']; if ($requesttime > 0) { $spionage_bit = make_timebanner($starttime, $endtime, $spion_id, "spion.php"); $new_found_inhalt = array($landname, $anzahl_spions, $spionage_bit); array_push($new_found_spion, $new_found_inhalt); } else { $spio_ok = 0; $result_1 = $db->query("SELECT * FROM cc" . $n . "_countries WHERE islandid='{$row['toislandid']}'"); $row2 = $db->fetch_array($result_1); $max_gegner = $row2['sol_spio']; $spioland = $row2['name'] . " (" . $row2['x'] . ":" . $row2['y'] . ")"; $target_race = get_race_id_from_user($row2['userid']); trace_msg("Spionage Gegner anzahl :" . $max_gegner, 114); if ($max_gegner == 0) {