$content = tag2value('lvl_oel', $gebaeude[oelpumpe], $content); $content = tag2value('gf_oel', $gebaeude[oelpumpe] * 25, $content); $content = tag2value('lvl_uran', $gebaeude[uranmine], $content); $content = tag2value('gf_uran', $gebaeude[uranmine] * 12, $content); $content = tag2value('eisen_bonus', $eisen_bonus, $content); $content = tag2value('titan_bonus', $titan_bonus, $content); $content = tag2value('oel_bonus', $oel_bonus, $content); $content = tag2value('uran_bonus', $uran_bonus, $content); $content = tag2value('eisen_all', $gebaeude[eisenmine] * 30 + 40 + $eisen_bonus, $content); $content = tag2value('titan_all', $gebaeude[titanmine] * 20 + 20 + $titan_bonus, $content); $content = tag2value('oel_all', $gebaeude[oelpumpe] * 25 + 32 + $oel_bonus, $content); $content = tag2value('uran_all', $gebaeude[uranmine] * 12 + $uran_bonus, $content); $content = tag2value('gold_all', $gebaeude[eisenmine] + $gebaeude[titanmine] + $gebaeude[oelpumpe] + $gebaeude[uranmine] + 4, $content); $content = tag2value('lvl_lager', $gebaeude[rohstofflager], $content); $content = tag2value('space', $space - 5000, $content); $content = tag2value('space_all', $space, $content); $content = tag2value('space_eisen', $space - $ressis[eisen], $content); $content = tag2value('space_titan', $space - $ressis[titan], $content); $content = tag2value('space_oel', $space - $ressis[oel], $content); $content = tag2value('space_uran', $space - $ressis[uran], $content); $content = tag2value('space_gold', $space - $ressis[gold], $content); $content = tag2value('nichtraubbar_lager', $gebaeude[rohstofflager] * 100, $content); $content = tag2value('nichtraubbar', $gebaeude[rohstofflager] * 100 + 500, $content); if ($ressis['ueberlagerbar'] > date('U')) { $content = tag2value('ueberlagerbar', '<b>Countdown bis Ressourcen bei mangelndem Platz verfallen: <font class="red">' . percentbar($ressis['ueberlagerbar'] - date('U'), 600, 400) . "</font></b>", $content); } else { $content = tag2value('ueberlagerbar', 'Klicke <a class="red" href="rohstoffe.php?' . SID . '&5chanje=1"><b>hier</b></a> um für <b>2 Chanje</b> während der nächsten <b>10 Minuten unbegrenzt Rohstoffe lagern</b> zu können.', $content); } // generierte seite ausgeben $content = tag2value("onload", $onload, $content); echo $content . template('footer');
$row = mysql_fetch_array($result); if ($row) { $return = rand(3600, 4 * 3600); mysql_query("INSERT INTO `missionen` ( `id` , `pid` , `parsed` , `type` , `start` , `ziel` , `started` , `ankunft` , `return` , `speed` , `einh1` , `einh2` , `einh3` , `einh4` , `einh5` , `einh6` , `einh7` , `einh8` , `einh9` , `einh10` , `einh11` , `einh12` , `einh13` , `einh14` , `einh15` , `eisen` , `titan` , `oel` , `uran` , `gold` , `chanje` ) VALUES ( '', '" . rand(100, 999) . "', '1', '2', '" . $_POST['ubl'] . "', '0', '" . (date(U) - $return) . "', '" . date(U) . "', '" . (date(U) + $return) . "', '10', '" . $row['einh1'] . "', '" . $row['einh2'] . "', '" . $row['einh3'] . "', '" . $row['einh4'] . "', '" . $row['einh5'] . "', '" . $row['einh6'] . "', '" . $row['einh7'] . "', '" . $row['einh8'] . "', '" . $row['einh9'] . "', '" . $row['einh10'] . "', '" . $row['einh11'] . "', '" . $row['einh12'] . "', '" . $row['einh13'] . "', '" . $row['einh14'] . "', '" . $row['einh15'] . "', '" . $row['eisen'] . "', '" . $row['titan'] . "', '" . $row['oel'] . "', '" . $row['uran'] . "', '" . $row['gold'] . "', '" . $row['chanje'] . "' );"); $eid = mysql_insert_id(); mysql_query("INSERT INTO `events` ( `id` , `type` , `eid` , `date` ) VALUES ('', '1', '" . $eid . "', '" . (date(U) + $return) . "');"); mysql_query("DELETE FROM `events` WHERE `eid` = '" . $row['id'] . "' AND `type` = '1';"); } } while ($row); mysql_query("DELETE FROM `missionen` WHERE `start` = '" . $_SESSION['user']['omni'] . "';"); $status = '<b>Du bist erfolgreich umgezogen.<br /><br />Bitte logge dich neu ein.<br /><br /></b>'; session_destroy(); } } elseif ($timestamp['umzug'] <= time() - 24 * 60 * 60 * 14) { $status = '<form enctype="multipart/form-data" action="umzug.php?' . SID . '" method="post"> <b>Zielbasis: <input type="text" style="width:50px" name="ubl" onChange="berechne();" onkeyup="berechne();" /> - Entfernung: <a id="entfernung">-</a> km<br /> <input type="submit" name="submit" value="umziehen" /></b> </form>'; } else { $status = '<b>Du hast die Umzugsfunktion in den letzten 14 Tagen bereits verwendet.<br />Ein Umzug ist erst wieder möglich in:</b>'; $status .= percentbar($timestamp['umzug'] - (time() - 24 * 60 * 60 * 14), 24 * 60 * 60 * 14, 400); } $content = tag2value('status', $status, $content); $pos = position($_SESSION['user']['omni']); $content = tag2value('x', $pos['x'], $content); $content = tag2value('y', $pos['y'], $content); $content = tag2value('z', $pos['z'], $content); // send page to browser $content = tag2value("onload", $onload, $content); echo $content . template('footer');
do { $einheit++; if ($hangar['einh' . $einheit]) { $units .= '<tr class="standard"><td><a href="javascript:popUp(\'details_einh.php?id=' . $einheit . '\',400)">' . $einh[$einheit]['name'] . '</a></td><td align="center">' . $hangar['einh' . $einheit] . '</td><td align="center">' . $einh[$einheit]['ek'] . ' G</td><td align="center">' . $einh[$einheit]['vk'] . ' G</td><td align="center"><a href="markt.php?' . SID . '&action=sell&id=' . $einheit . '">einen verkaufen</td</tr>'; } } while ($einheit < 15); $content .= '<br /> <table border="1" cellspacing="0" class="sub" style="width:640px"> <tr> <th> <b>Markt:</b> </th> </tr> <tr> <td align="center"> <br /><b>Nächstes Marktupdate:</b><br />' . percentbar($update - date('U') + 15, 6 * 3600 + 15, 420); if ($units) { $content .= '<b>Einheiten verkaufen:</b><table border="1" cellspacing="0" class="standard"><tr align="center"><th style="width:140px"><b>Einheit</b></th><th style="width:70px"><b>Anzahl<b></th><th style="width:70px"><b>EK</b></th><th style="width:70px"><b>VK</b></th><th style="width:150px;"> </th></tr>' . $units . '</table><br />'; } // einheiten kaufen unset($units); $einheit = 0; do { $einheit++; $link = '<input type="hidden" name="action" value="buy" /><input type="text" name="anz' . $einheit . '" style="border:0; width:100%;" onFocus="calculate_price_eh()" onBlur="calculate_price_eh()" onKeyDown="calculate_price_eh()" onKeyUp="calculate_price_eh()" onChange="calculate_price_eh()" />'; if ($einheit == 5 and $gebaeude['fahrwege'] < 1) { $link = '<input type="hidden" name="anz5" value="0" /><font color="red">zu niedrige Fahrwege</font>'; } elseif ($einheit == 6 and $gebaeude['fahrwege'] < 3) { $link = '<input type="hidden" name="anz6" value="0" /><font color="red">zu niedrige Fahrwege</font>'; } elseif ($einheit == 7 and $gebaeude['fahrwege'] < 6) { $link = '<input type="hidden" name="anz7" value="0" /><font color="red">zu niedrige Fahrwege</font>';
if ($eta != "") { echo $eta . " Remaining... "; } if ($item['message'] != "") { echo $item['message'] . "\n"; } echo "</div>\n"; // Stop/start controls... echo "<div class='datacol' style='width:89px;'>\n"; echo "<a href='control.php?hash=" . $item['hash'] . "&cmd=" . ($item['is_active'] == 1 ? "stop" : "start") . "'>" . ($item['is_active'] == 1 ? "<img alt='Stop torrent' border=0 src='images/stop.gif' width=16 height=16 />" : "<img alt='Start torrent' border=0 src='images/start.gif' width=16 height=16 />") . "</a> \n"; echo "<a href='control.php?hash=" . $item['hash'] . "&cmd=delete' onClick='return confirm(\"Delete torrent - are you sure? (This will not delete data from disk)\");'><img align='bottom' alt='Delete torrent' border=0 src='images/delete.gif' width=16 height=16 /></a> \n"; echo "<a class='submodal-600-520' href='view.php?hash=" . $item['hash'] . "'><img alt='Torrent info' src='images/view.gif' width=16 height=16 /></a><br/>\n"; echo "</div>\n"; // Stats row... echo "<div class='datacol' style='width:89px;' id='t" . $item['hash'] . "status_string'><img src='images/" . $statusstyle . ".gif' width=10 height=9 alt='Status' />" . $item['status_string'] . "</div>\n"; echo "<div class='datacol' style='width:89px;' id='t" . $item['hash'] . "percent_complete'>" . $item['percent_complete'] . " %<br/>" . percentbar(@round($item['percent_complete'] / 2)) . "</div>\n"; echo "<div class='datacol' style='width:89px;' id='t" . $item['hash'] . "bytes_diff'>" . completed_bytes_diff($item['size_bytes'], $item['completed_bytes']) . "</div>\n"; echo "<div class='datacol' style='width:89px;' id='t" . $item['hash'] . "size_bytes'>" . format_bytes($item['size_bytes']) . "</div>\n"; echo "<div class='datacol download' style='width:89px;' id='t" . $item['hash'] . "down_rate'>" . format_bytes($item['down_rate']) . "</div>\n"; echo "<div class='datacol upload' style='width:89px;' id='t" . $item['hash'] . "up_rate'>" . format_bytes($item['up_rate']) . "</div>\n"; echo "<div class='datacol' style='width:89px;' id='t" . $item['hash'] . "up_total'>" . format_bytes($item['up_total']) . "</div>\n"; $ratio = @round($item['ratio'] / 1000, 2); if ($ratio > 1) { $ratio = '<span class="ratio-green">' . $ratio . '</span>'; } if ($ratio < 1) { $ratio = '<span class="ratio-red">' . $ratio . '</span>'; } echo "<div class='datacol' style='width:70px;' id='t" . $item['hash'] . "ratio'>" . $ratio . "</div>\n"; echo "<div class='datacol' style='width:105px;' id='t" . $item['hash'] . "peers'>" . $item['peers_connected'] . "/" . $item['peers_not_connected'] . " (" . $item['peers_complete'] . ")" . "</div>\n"; echo "<div class='datacollast' style='width:70px;' id='t" . $item['hash'] . "priority_str'>" . $item['priority_str'] . "</div>\n";
echo "<a class='submodal-600-500 {$statusstyle}' href='view.php?hash=" . $item['hash'] . "'>" . $item['name'] . "</a></span> "; // message... if ($item['message'] != "") { echo "<br>\n<span class='error'>" . $item['message'] . "</span>\n"; } echo "</tr>"; echo "<tr class='{$thisrow}'>"; echo "<td nowrap class='datacol'>"; // Stop/start controls... echo "<a href='control.php?hash=" . $item['hash'] . "&cmd=" . ($item['is_active'] == 1 ? "stop" : "start") . "'>" . ($item['is_active'] == 1 ? "<img alt='Stop torrent' border=0 src='images/stop.gif' width=16 height=16>" : "<img alt='Start torrent' border=0 src='images/start.gif' width=16 height=16>") . "</a> "; echo "<a href='control.php?hash=" . $item['hash'] . "&cmd=delete' onClick='return confirm(\"Delete torrent - are you sure? (This will not delete data from disk)\");'><img alt='Delete torrent' border=0 src='images/delete.gif' width=16 height=16></a> "; echo "<a class='submodal-600-500' href='view.php?hash=" . $item['hash'] . "'><img alt='Torrent info' src='images/view.gif' width=16 height=16></a></span><br>\n"; // stats row... echo "<td nowrap align=center class='datacol'><img src='images/" . $statusstyle . ".gif' width=10 height=9 alt='Status'>" . $item['status_string'] . "</td>"; echo "<td nowrap align=center class='datacol'>" . $item['percent_complete'] . " %<br>\n"; echo percentbar(@round($item['percent_complete'] / 2)); echo "</td>\n"; echo "<td nowrap align=center class='datacol'>" . format_bytes($item['completed_bytes']) . "</td>\n"; echo "<td nowrap align=center class='datacol'>" . format_bytes($item['size_bytes']) . "</td>\n"; echo "<td nowrap align=center class='datacol'>" . format_bytes($item['down_rate']) . "</td>\n"; echo "<td nowrap align=center class='datacol'>" . format_bytes($item['down_total']) . "</td>\n"; echo "<td nowrap align=center class='datacol'>" . format_bytes($item['up_rate']) . "</td>\n"; echo "<td nowrap align=center class='datacol'>" . format_bytes($item['up_total']) . "</td>\n"; echo "<td nowrap align=center class='datacol'>" . $item['peers_connected'] . "/" . $item['peers_not_connected'] . " (" . $item['peers_complete'] . ")</td>\n"; echo "<td nowrap align=center class='datacol'>" . round($item['ratio'] / 1000, 2) . " %</td>\n"; echo "<td nowrap align=center>"; echo "<input type='hidden' name='hash[{$totcount}]' value='" . $item['hash'] . "'>"; echo "<select name='set_tpriority[{$totcount}]'>\n"; echo "<option value='0' " . ($item['priority'] == 0 ? "selected" : "") . ">Off</option>\n"; echo "<option value='1' " . ($item['priority'] == 1 ? "selected" : "") . ">Low</option>\n"; echo "<option value='2' " . ($item['priority'] == 2 ? "selected" : "") . ">Normal</option>\n";
$statusstyle = "incomplete"; } if ($subitem['is_active'] == 1) { $statusstyle .= "active"; } else { $statusstyle .= "inactive"; } $subdata[$totcount]['control'] = $subitem['is_active'] == 1 ? "stop" : "start"; $eta = ""; if ($subitem['down_rate'] > 0) { $eta = formateta(($subitem['size_bytes'] - $subitem['completed_bytes']) / $subitem['down_rate']) . " Remaining... "; } $subdata[$totcount]['name'] = "<input type='checkbox' name='select[]' value='" . $subitem['hash'] . "' style='checkbox'> <a class='submodal-600-500 {$statusstyle}' href='view.php?hash=" . $subitem['hash'] . "'>" . $subitem['name'] . "</a>"; $subdata[$totcount]['message'] = $eta . $subitem['message']; $subdata[$totcount]['status_string'] = "<img src='images/" . $statusstyle . ".gif' width=10 height=9 alt='Status'>" . $subitem['status_string']; $subdata[$totcount]['percent_complete'] = $subitem['percent_complete'] . " %<br>" . percentbar(@round($subitem['percent_complete'] / 2)); $subdata[$totcount]['size_bytes'] = format_bytes($subitem['size_bytes']); $subdata[$totcount]['down_rate'] = format_bytes($subitem['down_rate']); $subdata[$totcount]['up_rate'] = format_bytes($subitem['up_rate']); $subdata[$totcount]['up_total'] = format_bytes($subitem['up_total']); $subdata[$totcount]['peers'] = $subitem['peers_connected'] . "/" . $subitem['peers_not_connected'] . " (" . $subitem['peers_complete'] . ")"; $subdata[$totcount]['ratio'] = @round($subitem['ratio'] / 1000, 2); $subdata[$totcount]['priority_str'] = $subitem['priority_str']; $subdata[$totcount]['hash'] = $subitem['hash']; $subdata[$totcount]['bytes_diff'] = completed_bytes_diff($subitem['size_bytes'], $subitem['completed_bytes']); $subdata[$totcount]['filemtime'] = age($subitem['filemtime']); $totcount++; } } } // Get overall download/upload speed...
echo "<form action='control.php' method='post'>"; echo "<input type='hidden' name='hash' value='" . $thistorrent['hash'] . "' />"; echo "<select name='set_tpriority'>\n"; echo "<option value='0' " . ($thistorrent['priority'] == 0 ? "selected" : "") . ">Off </option>\n"; echo "<option value='1' " . ($thistorrent['priority'] == 1 ? "selected" : "") . ">Low </option>\n"; echo "<option value='2' " . ($thistorrent['priority'] == 2 ? "selected" : "") . ">Normal </option>\n"; echo "<option value='3' " . ($thistorrent['priority'] == 3 ? "selected" : "") . ">High </option>\n"; echo "</select>\n"; echo "<input type='submit' value='Set' />\n"; echo "</form>\n"; echo "<tr class='row1'><td class='datacol' align=right><b>Status Flags</b></td><td>" . $statusflags . "</td></tr>\n"; echo "<tr class='row2'><td class='datacol' align=right><b>Message</b></td><td>" . $thistorrent['message'] . "</td>"; echo "<tr class='row1'><td class='datacol' align=right><b>Completed Bytes</b></td><td>" . format_bytes($thistorrent['completed_bytes']) . "</td></tr>\n"; echo "<tr class='row2'><td class='datacol' align=right><b>Size</b></td><td>" . format_bytes($thistorrent['size_bytes']) . "</td></tr>\n"; echo "<tr class='row1'><td class='datacol' align=right><b>Complete</b></td><td><div class='datacollast'>" . $thistorrent['percent_complete'] . " %<br/>"; echo percentbar(@round($thistorrent['percent_complete'] / 2)) . "</div>"; echo "<tr class='row2'><td class='datacol' align=right><b>Down Rate</b></td><td>" . format_bytes($thistorrent['down_rate']) . "</td></tr>\n"; echo "<tr class='row1'><td class='datacol' align=right><b>Down Total</b></td><td>" . format_bytes($thistorrent['down_total']) . "</td></tr>\n"; echo "<tr class='row2'><td class='datacol' align=right><b>Up Rate</b></td><td>" . format_bytes($thistorrent['up_rate']) . "</td></tr>\n"; echo "<tr class='row1'><td class='datacol' align=right><b>Up Total</b></td><td>" . format_bytes($thistorrent['up_total']) . "</td></tr>\n"; echo "<tr class='row2'><td class='datacol' align=right><b>Peers connected</b></td><td>" . $thistorrent['peers_connected'] . "</td></tr>\n"; echo "<tr class='row1'><td class='datacol' align=right><b>Peers not connected</b></td><td>" . $thistorrent['peers_not_connected'] . "</td></tr>\n"; echo "<tr class='row2'><td class='datacol' align=right><b>Peers complete</b></td><td>" . $thistorrent['peers_complete'] . "</td></tr>\n"; echo "<tr class='row1'><td class='datacol' align=right><b>Ratio</b></td><td>" . @round($thistorrent['ratio'] / 1000, 2) . " %</td></tr>\n"; echo "</table>\n"; echo "</div>\n"; echo "<div class='bottomthin' style='width:552px;'> </div>\n"; } // Storage info... if ($r_select == "storage") { echo "<div class='container' style='width:550px'>\n";
?> </td><td> <?php if (empty($queueItem->jobsCompleted)) { $queueItem->jobsCompleted = 0; } if (empty($queueItem->jobsSuccess)) { $queueItem->jobsSuccess = 0; } if ($queueItem->activityID == 7 || $queueItem->activityID == 8) { if ($queueItem->jobsCompleted > 0) { $realperc = round(100 * $queueItem->jobsSuccess / $queueItem->jobsCompleted); } else { $realperc = 0; } percentbar($realperc, "{${$queueItem->jobsSuccess}} successful in {${$queueItem->jobsCompleted}} attempts"); } ?> </td> <td> <?php $remainingRuns = $queueItem->runs - $queueItem->runsDone; if ($remainingRuns < 0) { $remainingRuns = 0; } ?> <span title="FULL kit for this task" onclick="getQueueKit('kit_row_<?php echo $queueItem->queueId; ?> ', 'kit_<?php echo $queueItem->queueId;
<tr align="center" class="standard"><td style="width:150px">Missions ID</td><td style="width:150px">' . $eid . '</td></tr> <tr align="center" class="standard"><td style="width:150px">Einheiten</td><td style="width:150px">' . $einheiten . '</td></tr> <tr align="center" class="standard"><td style="width:150px">Entfernung</td><td style="width:150px">' . $entfernung * 2.5 . ' km</td></tr> <tr align="center" class="standard"><td style="width:150px">Geschwindigkeit</td><td style="width:150px">' . $maxspeed . ' km/h</td></tr> <tr align="center" class="standard"><td style="width:150px">Dauer</td><td style="width:150px">' . time2str(felder2time($entfernung * 10 / $maxspeed)) . '</td></tr> <tr align="center" class="standard"><td style="width:150px">Gesamtplatz</td><td style="width:150px">' . $platz . '</td></tr> <tr align="center" class="standard"><td style="width:150px">Verbrauch in Liter</td><td style="width:150px">' . $verbrauch . ' Liter</td></tr> <tr align="center" class="standard"><td style="width:150px">Verbrauch in Einh.</td><td style="width:150px">' . $verbrauch_einh . ' Einh.</td></tr> <tr align="center" class="standard"><td style="width:150px">Eisen</td><td style="width:150px">' . $_POST['eisen'] . '</td></tr> <tr align="center" class="standard"><td style="width:150px">Titan</td><td style="width:150px">' . $_POST['titan'] . '</td></tr> <tr align="center" class="standard"><td style="width:150px">Oel</td><td style="width:150px">' . $_POST['oel'] . '</td></tr> <tr align="center" class="standard"><td style="width:150px">Uran</td><td style="width:150px">' . $_POST['uran'] . '</td></tr> <tr align="center" class="standard"><td style="width:150px">Gold</td><td style="width:150px">' . $_POST['gold'] . '</td></tr> <tr align="center" class="standard"><td style="width:150px">Chanje</td><td style="width:150px">' . $_POST['chanje'] . '</td></tr> <tr align="center" class="standard"><td style="width:150px">Restplatz</td><td style="width:150px;' . $red . '">' . $restplatz . '</td></tr>'; $content .= '<tr align="center"><td colspan="2" style="width:300px; height:20px"><br />' . percentbar(felder2time($entfernung * 10 / $maxspeed), felder2time($entfernung * 10 / $maxspeed), 290) . '</td></tr>'; $content .= '<tr align="center"><td colspan="2" style="width:300px"><br /><b>Mission <a href="mission.php?' . SID . '&missid=' . $eid . '&abbrechen=1"><font class="red">ABBRECHEN</b></font></a><br /><br /></td></tr> </table> <br />'; } elseif ($_POST[action] == mission and $_POST[target]) { $anzahl = $_POST['anz1'] + $_POST['anz2'] + $_POST['anz3'] + $_POST['anz4'] + $_POST['anz5'] + $_POST['anz6'] + $_POST['anz7'] + $_POST['anz8'] + $_POST['anz9'] + $_POST['anz10'] + $_POST['anz11'] + $_POST['anz12'] + $_POST['anz13'] + $_POST['anz14'] + $_POST['anz15']; $to_position = position($_POST[target]); $own_position = position($_SESSION['user']['omni']); $own_pos = $own_position['x'] + ($own_position['y'] + $own_position['z'] * 20); $to_pos = $to_position['x'] + ($to_position['y'] + $to_position['z'] * 20); if ($own_position['x'] > $to_position['x']) { $entfernung = $own_position['x'] - $to_position['x']; } else { $entfernung = $to_position['x'] - $own_position['x']; } if ($own_position['y'] + $own_position['z'] * 20 > $to_position['y'] + $to_position['z'] * 20) {
$status_flags .= '· Open '; } if ($this_torrent['is_private']) { $status_flags .= '· Private '; } $status_style = ($this_torrent['complete'] ? 'complete' : 'incomplete') . ($this_torrent['is_active'] ? 'active' : 'inactive'); $name = mb_wordwrap($this_torrent['name'], 60, "<br />\n", true); $selected = array(); foreach (range(0, 3) as $i) { $selected[$i] = $this_torrent['priority'] == $i ? ' selected="selected"' : ''; } $formatted = array(); foreach (array('completed_bytes', 'size_bytes', 'down_rate', 'down_total', 'up_rate', 'up_total') as $i) { $formatted[$i] = format_bytes($this_torrent[$i]); } $percent_bar = percentbar($this_torrent['percent_complete']); $ratio = number_format($this_torrent['ratio'] / 1000, 2); echo <<<HTML <div class="container"> <table border=0 cellspacing=0 cellpadding=5 class="maintable" width="100%"> <tr class="row"> <td class="datacol" align=right><b>Name</b></td> <td><span class="torrenttitle {$status_style}">{$name}</span></td> </tr> <tr class="row"> <td class="datacol" align=right><b>Status</b></td> <td><img src="images/{$status_style}.gif" width=10 height=9 alt="Status" />{$this_torrent['status']}</td> </tr> <tr class="row"> <td class="datacol" align=right><b>Priority</b></td>
$scankosten = "noch nicht berechnet"; } $content = tag2value('scankosten', $scankosten, $content); $content = tag2value('scanbase', $_POST['scanbase'], $content); $content = tag2value('ungenauigkeit', 30 - ($raumstation['scanner'] * 2 - 1), $content); $content = tag2value('lvl_scanner', ($raumstation['scanner'] - 1) * 1.5, $content); $content = tag2value('kosten', $raumstation['scanner'] * 30 - 30, $content); $content = tag2value('reichweite', $raumstation['scanner'] * 10 - 10, $content); } elseif (mysql_num_rows($result2) != 0) { $row = mysql_fetch_array($result2); $content = tag2value('scanner', template('decrypted'), $content); $content = tag2value('info', $row['text'], $content); } else { $row = mysql_fetch_array($result); $content = tag2value('scanner', template('decrypt'), $content); $content = tag2value('restdauer', percentbar($row['date'] - date(U), $row['date'] - $row['start'], 310), $content); } $content = tag2value('id', $_POST['target'], $content); $content = tag2value('pid', $_POST['pid'], $content); if ($raumstation['scanner'] > 10) { $bauen['scanner'] = 'max'; } if ($raumstation['plasma'] > 10) { $bauen['plasma'] = 'max'; } $content = tag2value('scanner_bauen', $bauen['scanner'], $content); $content = tag2value('plasma_bauen', $bauen['plasma'], $content); //$content = tag2value("onload",$onload,$content); $content = tag2value("abbrechen", $abbrechen, $content); // generierte seite ausgeben echo showpage($content . template('footer'), $_SESSION['user']['omni'], $onload);
$dauer = $kosten['minen']['zeit'] * ++$row['minen']; } elseif ($row['nextcyborgtechnik'] != 0) { $for = 'Cyborgtechnik'; $f_lvl = $row['cyborgtechnik']; $for_time = $row['nextcyborgtechnik']; $dauer = $kosten['cyborgtechnik']['zeit'] * ++$row['cyborgtechnik']; } elseif ($row['nextrad'] != 0) { $for = 'Radverstärkungen'; $f_lvl = $row['rad']; $for_time = $row['nextrad']; $dauer = $kosten['rad']['zeit'] * ++$row['rad']; } else { $no_forschung = 1; } if (!$no_forschung) { $forschung = '<b>' . $for . ' ' . ++$f_lvl . ':</b>' . percentbar($for_time - date('U'), $dauer, 205); } else { $forschung = '<b>-----</b>'; } $select = "SELECT * FROM `fabrik` WHERE `omni` = " . $_SESSION[user][omni] . " ORDER BY fertigstellung ASC;"; $result = mysql_query($select); $rows = mysql_numrows($result); $row = mysql_fetch_array($result); $i = 0; if ($row) { do { $i++; if ($row['type'] < 1000) { $fabrik .= '<b>' . $einh[$row['type']]['name'] . ' - ' . countdown($row['fertigstellung'] - date('U')) . '</b><br />'; } elseif ($row['type'] < 2000) { $row['type'] -= 1000;