$id = 0;
}
if ($id == 0) {
    $error_code = 8;
}
$SQL_Result = tic_mysql_query('SELECT * FROM `gn4accounts` WHERE id="' . $id . '";', $SQL_DBConn) or $error_code = 4;
if (mysql_num_rows($SQL_Result) != 1) {
    $error_code = 8;
}
if ($error_code != 0) {
    include './inc_errors.php';
} else {
    $zeig_id = mysql_result($SQL_Result, 0, 'id');
    $zeig_galaxie = mysql_result($SQL_Result, 0, 'galaxie');
    $zeig_planet = mysql_result($SQL_Result, 0, 'planet');
    $zeig_name = gnuser($zeig_galaxie, $zeig_planet);
    $zeig_rang = mysql_result($SQL_Result, 0, 'rang');
    $zeig_allianz = mysql_result($SQL_Result, 0, 'allianz');
    $zeig_svs = mysql_result($SQL_Result, 0, 'svs');
    $zeig_sbs = mysql_result($SQL_Result, 0, 'sbs');
    $zeig_umod = mysql_result($SQL_Result, 0, 'umod');
    $zeig_scantyp = mysql_result($SQL_Result, 0, 'scantyp');
    $user_ll = mysql_result($SQL_Result, 0, 'lastlogin');
    $zeit_scaneintraege = mysql_result($SQL_Result, 0, 'scans');
    $SQL_Result2 = tic_mysql_query('SELECT me, ke FROM `gn4scans` WHERE rg="' . $zeig_galaxie . '" AND rp="' . $zeig_planet . '" and ticid="' . $Benutzer['ticid'] . '" AND type="0";', $SQL_DBConn) or $error_code = 4;
    if (mysql_num_rows($SQL_Result2) == 1) {
        $zeig_exen_m = mysql_result($SQL_Result2, 0, 'me');
        $zeig_exen_k = mysql_result($SQL_Result2, 0, 'ke');
    } else {
        $zeig_exen_m = 0;
        $zeig_exen_k = 0;
 $mr = 0;
 $sr = 0;
 $aj = 0;
 $ggen = 0;
 $gzeit = '-';
 $rscans = '';
 for ($i = 0; $i < $count; $i++) {
     if ($i < $count - 1) {
         $rpnext = mysql_result($SQL_Result, $i + 1, 'rp');
     } else {
         $rpnext = 999;
     }
     $type = mysql_result($SQL_Result, $i, 'type');
     $rp = mysql_result($SQL_Result, $i, 'rp');
     $rg = mysql_result($SQL_Result, $i, 'rg');
     $rname = gnuser($rg, $rp);
     $rscans .= sprintf("%d ", $type);
     //echo '<br />type='.$type.' - ';
     switch ($type) {
         // scan-type
         case 0:
             // sektor
             $szeit = mysql_result($SQL_Result, $i, 'zeit');
             $sgen = mysql_result($SQL_Result, $i, 'gen');
             $pts = mysql_result($SQL_Result, $i, 'pts');
             $me = mysql_result($SQL_Result, $i, 'me');
             $ke = mysql_result($SQL_Result, $i, 'ke');
             $s = mysql_result($SQL_Result, $i, 's');
             $d = mysql_result($SQL_Result, $i, 'd');
             $a = mysql_result($SQL_Result, $i, 'a');
             break;
function mili_edit()
{
    global $SQL_DBConn;
    $qry = 'sf0j, sf0b, sf0f, sf0z, sf0kr, sf0sa, sf0t, sf0ko, sf0ka, sf0su,';
    $qry = $qry . 'sf1j, sf1b, sf1f, sf1z, sf1kr, sf1sa, sf1t, sf1ko, sf1ka, sf1su,';
    $qry = $qry . 'sf2j, sf2b, sf2f, sf2z, sf2kr, sf2sa, sf2t, sf2ko, sf2ka, sf2su';
    $SQL_Result2 = tic_mysql_query('SELECT ' . $qry . ' FROM `gn4scans` WHERE rg="' . $_POST['galakoord'] . '" AND rp="' . $_POST['planetkoord'] . '" AND type="2";', $SQL_DBConn) or die(mysql_errno() . " - " . mysql_error());
    $SQL_Num = mysql_num_rows($SQL_Result2);
    if ($SQL_Num == 0) {
        // keine scans da
        $scan_rn = gnuser($_POST['galakoord'], $_POST['planetkoord']);
        // J�er
        $scan_sf0j = 0;
        $scan_sf1j = 0;
        $scan_sf2j = 0;
        // bomber
        $scan_sf0b = 0;
        $scan_sf1b = 0;
        $scan_sf2b = 0;
        // fregs
        $scan_sf0f = 0;
        $scan_sf1f = 0;
        $scan_sf2f = 0;
        // zerries
        $scan_sf0z = 0;
        $scan_sf1z = 0;
        $scan_sf2z = 0;
        // kreuzer
        $scan_sf0kr = 0;
        $scan_sf1kr = 0;
        $scan_sf2kr = 0;
        // schlachter
        $scan_sf0sa = 0;
        $scan_sf1sa = 0;
        $scan_sf2sa = 0;
        // tr�er
        $scan_sf0t = 0;
        $scan_sf1t = 0;
        $scan_sf2t = 0;
        // Kaper
        $scan_sf0ka = 0;
        $scan_sf1ka = 0;
        $scan_sf2ka = 0;
        // schutzies
        $scan_sf0su = 0;
        $scan_sf1su = 0;
        $scan_sf2su = 0;
    } else {
        // scan ist in db vorhanden
        $scan_rn = gnuser($_POST['galakoord'], $_POST['planetkoord']);
        // J�er
        $scan_sf0j = mysql_result($SQL_Result2, 0, 'sf0j');
        $scan_sf1j = mysql_result($SQL_Result2, 0, 'sf1j');
        $scan_sf2j = mysql_result($SQL_Result2, 0, 'sf2j');
        // bomber
        $scan_sf0b = mysql_result($SQL_Result2, 0, 'sf0b');
        $scan_sf1b = mysql_result($SQL_Result2, 0, 'sf1b');
        $scan_sf2b = mysql_result($SQL_Result2, 0, 'sf2b');
        // fregs
        $scan_sf0f = mysql_result($SQL_Result2, 0, 'sf0f');
        $scan_sf1f = mysql_result($SQL_Result2, 0, 'sf1f');
        $scan_sf2f = mysql_result($SQL_Result2, 0, 'sf2f');
        // zerries
        $scan_sf0z = mysql_result($SQL_Result2, 0, 'sf0z');
        $scan_sf1z = mysql_result($SQL_Result2, 0, 'sf1z');
        $scan_sf2z = mysql_result($SQL_Result2, 0, 'sf2z');
        // kreuzer
        $scan_sf0kr = mysql_result($SQL_Result2, 0, 'sf0kr');
        $scan_sf1kr = mysql_result($SQL_Result2, 0, 'sf1kr');
        $scan_sf2kr = mysql_result($SQL_Result2, 0, 'sf2kr');
        // schlachter
        $scan_sf0sa = mysql_result($SQL_Result2, 0, 'sf0sa');
        $scan_sf1sa = mysql_result($SQL_Result2, 0, 'sf1sa');
        $scan_sf2sa = mysql_result($SQL_Result2, 0, 'sf2sa');
        // tr�er
        $scan_sf0t = mysql_result($SQL_Result2, 0, 'sf0t');
        $scan_sf1t = mysql_result($SQL_Result2, 0, 'sf1t');
        $scan_sf2t = mysql_result($SQL_Result2, 0, 'sf2t');
        // Kaper
        $scan_sf0ka = mysql_result($SQL_Result2, 0, 'sf0ka');
        $scan_sf1ka = mysql_result($SQL_Result2, 0, 'sf1ka');
        $scan_sf2ka = mysql_result($SQL_Result2, 0, 'sf2ka');
        // schutzies
        $scan_sf0su = mysql_result($SQL_Result2, 0, 'sf0su');
        $scan_sf1su = mysql_result($SQL_Result2, 0, 'sf1su');
        $scan_sf2su = mysql_result($SQL_Result2, 0, 'sf2su');
    }
    ?>
<form name="form1" method="post" action="./main.php?modul=scans">
  <input type="hidden" name="action" value="scan_edit" />
  <input type="hidden" name="scanart" value="mili">
  <input type="hidden" name="galakoord" value="<?php 
    echo $_POST['galakoord'];
    ?>
" />
  <input type="hidden" name="planetkoord" value="<?php 
    echo $_POST['planetkoord'];
    ?>
" />
  <input type="hidden" name="txtScanGalaxie" value="<?php 
    echo $_POST['galakoord'];
    ?>
" />
  <input type="hidden" name="txtScanPlanet" value="<?php 
    echo $_POST['planetkoord'];
    ?>
" />
  <table align="center">
    <tr>
      <td colspan="4" class="datatablehead">Manuelle Milit&auml;rbearbeitung (<?php 
    echo $_POST['galakoord'] . ':' . $_POST['planetkoord'];
    ?>
)</td>
    </tr>
    <tr class="fieldnormaldark" align="left">
      <td>Name:</td><td colspan="3"><input type="text" name="trn" value="<?php 
    echo $scan_rn;
    ?>
" /></td>
    </tr>
    <tr class="fieldnormallight" style="font-weight:bold;">
      <td></td>
      <td>Orbit</td>
      <td>Flotte 1</td>
      <td>Flotte 2</td>
    </tr>
    <tr class="fieldnormaldark" align="left">
      <td>J&auml;ger &quot;Leo&quot;:</td>
      <td><input type="text" name="tsf0j" size="8" value="<?php 
    echo $scan_sf0j;
    ?>
" /></td>
      <td><input type="text" name="tsf1j" size="8" value="<?php 
    echo $scan_sf1j;
    ?>
" /></td>
      <td><input type="text" name="tsf2j" size="8" value="<?php 
    echo $scan_sf2j;
    ?>
" /></td>
    </tr>
    <tr class="fieldnormallight" align="left">
      <td>Bomber &quot;Aquilae&quot;:</td>
      <td><input type="text" name="tsf0b" size="8" value="<?php 
    echo $scan_sf0b;
    ?>
" /></td>
      <td><input type="text" name="tsf1b" size="8" value="<?php 
    echo $scan_sf1b;
    ?>
" /></td>
      <td><input type="text" name="tsf2b" size="8" value="<?php 
    echo $scan_sf2b;
    ?>
" /></td>
    </tr>
    <tr class="fieldnormaldark" align="left">
      <td>Fregatten &quot;Fornax&quot;:</td>
      <td><input type="text" name="tsf0f" size="8" value="<?php 
    echo $scan_sf0f;
    ?>
" /></td>
      <td><input type="text" name="tsf1f" size="8" value="<?php 
    echo $scan_sf1f;
    ?>
" /></td>
      <td><input type="text" name="tsf2f" size="8" value="<?php 
    echo $scan_sf2f;
    ?>
" /></td>
    </tr>
    <tr class="fieldnormallight" align="left">
      <td>Zerst&ouml;rer &quot;Draco&quot;:</td>
      <td><input type="text" name="tsf0z" size="8" value="<?php 
    echo $scan_sf0z;
    ?>
" /></td>
      <td><input type="text" name="tsf1z" size="8" value="<?php 
    echo $scan_sf1z;
    ?>
" /></td>
      <td><input type="text" name="tsf2z" size="8" value="<?php 
    echo $scan_sf2z;
    ?>
" /></td>
    </tr>
    <tr class="fieldnormaldark" align="left">
      <td>Kreuzer &quot;Goron&quot;:</td>
      <td><input type="text" name="tsf0kr" size="8" value="<?php 
    echo $scan_sf0kr;
    ?>
" /></td>
      <td><input type="text" name="tsf1kr" size="8" value="<?php 
    echo $scan_sf1kr;
    ?>
" /></td>
      <td><input type="text" name="tsf2kr" size="8" value="<?php 
    echo $scan_sf2kr;
    ?>
" /></td>
    </tr>
    <tr class="fieldnormallight" align="left">
      <td>Schlachtschiffe &quot;Pentalin&quot;:</td>
      <td><input type="text" name="tsf0sa" size="8" value="<?php 
    echo $scan_sf0sa;
    ?>
" /></td>
      <td><input type="text" name="tsf1sa" size="8" value="<?php 
    echo $scan_sf1sa;
    ?>
" /></td>
      <td><input type="text" name="tsf2sa" size="8" value="<?php 
    echo $scan_sf2sa;
    ?>
" /></td>
    </tr>
    <tr class="fieldnormaldark" align="left">
      <td>Tr&auml;ger &quot;Zenit&quot;:</td>
      <td><input type="text" name="tsf0t" size="8" value="<?php 
    echo $scan_sf0t;
    ?>
" /></td>
      <td><input type="text" name="tsf1t" size="8" value="<?php 
    echo $scan_sf1t;
    ?>
" /></td>
      <td><input type="text" name="tsf2t" size="8" value="<?php 
    echo $scan_sf2t;
    ?>
" /></td>
    </tr>
    <tr class="fieldnormallight" align="left">
      <td>Kaperschiffe &quot;Kleptor&quot;&quot;:</td>
      <td><input type="text" name="tsf0ka" size="8" value="<?php 
    echo $scan_sf0ka;
    ?>
" /> </td>
      <td><input type="text" name="tsf1ka" size="8" value="<?php 
    echo $scan_sf1ka;
    ?>
" /></td>
      <td><input type="text" name="tsf2ka" size="8" value="<?php 
    echo $scan_sf2ka;
    ?>
" /></td>
    </tr>
    <tr class="fieldnormaldark" align="left">
      <td>Schutzschiffe &quot;Cancri&quot;:</td>
      <td><input type="text" name="tsf0su" size="8" value="<?php 
    echo $scan_sf0su;
    ?>
" /></td>
      <td><input type="text" name="tsf1su" size="8" value="<?php 
    echo $scan_sf1su;
    ?>
" /></td>
      <td><input type="text" name="tsf2su" size="8" value="<?php 
    echo $scan_sf2su;
    ?>
" /></td>
    </tr>
    <tr class="datatablefoot">
      <td colspan="4"><input type="submit" name="Abschicken" value="&Auml;nderungen speichern" /></td>
    </tr>
  </table>
</form>
<?php 
}
// File: ink_scanlistbody.php
// by Bytehoppers form CCBLOCK
$SQL_Num = mysql_num_rows($SQL_Result);
if ($SQL_Num == 0) {
    echo '<B>Keine Scans gefunden</B><br>';
} else {
    // Max anzahl an Scans anzeigen!
    if ($SQL_Num > 50) {
        $SQL_Num = 50;
    }
    for ($n = 0; $n < $SQL_Num; $n++) {
        echo '<TR>';
        $gala = mysql_result($SQL_Result, $n, 'rg');
        $planet = mysql_result($SQL_Result, $n, 'rp');
        echo '<TD><P CLASS="hell"><font size=1>' . $gala . ':' . $planet . ' ';
        echo gnuser($gala, $planet) . '</font></TD>';
        $scanzeit = mysql_result($SQL_Result, $n, 'zeit');
        if (substr($scanzeit, 6, 2) == date('d')) {
            $farbe = $htmlstyle['hell'];
        } else {
            $farbe = $htmlstyle['hell_rot'];
        }
        echo '	<TD BGCOLOR=#' . $farbe . '><font size=1>' . $scanzeit . '</font></TD>';
        //scans&txtScanGalaxie=5&txtScanPlanet=7
        $stypes = GetScans2($SQL_DBConn, mysql_result($SQL_Result, $n, 'rg'), mysql_result($SQL_Result, $n, 'rp'));
        $output = OnMouseFlotte($gala, $planet, $Benutzer['punkte'], "");
        echo "<TD onmouseover=\"return overlib('" . $output . "');\"\n             onmouseout=\"return nd();\">";
        echo '<P CLASS="hell">';
        echo '<A HREF="./main.php?modul=showgalascans&displaytype=0&xgala=' . $gala . '&xplanet=' . $planet . '">';
        echo '<font size=2>' . $stypes . '</font></A></p></TD>';
        // Sektor gescannt
Beispiel #5
0
         $tr1 = mysql_result($SQL_Result, $i, 'sf1t');
         $ka1 = mysql_result($SQL_Result, $i, 'sf1ka');
         $ca1 = mysql_result($SQL_Result, $i, 'sf1su');
         $ja2 = mysql_result($SQL_Result, $i, 'sf2j');
         $bo2 = mysql_result($SQL_Result, $i, 'sf2b');
         $fr2 = mysql_result($SQL_Result, $i, 'sf2f');
         $ze2 = mysql_result($SQL_Result, $i, 'sf2z');
         $kr2 = mysql_result($SQL_Result, $i, 'sf2kr');
         $sl2 = mysql_result($SQL_Result, $i, 'sf2sa');
         $tr2 = mysql_result($SQL_Result, $i, 'sf2t');
         $ka2 = mysql_result($SQL_Result, $i, 'sf2ka');
         $ca2 = mysql_result($SQL_Result, $i, 'sf2su');
         break;
     case 3:
         // geschütz
         $gname = gnuser($g, $p);
         $gzeit = mysql_result($SQL_Result, $i, 'zeit');
         $ggen = mysql_result($SQL_Result, $i, 'gen');
         $lo = mysql_result($SQL_Result, $i, 'glo');
         $lr = mysql_result($SQL_Result, $i, 'glr');
         $mr = mysql_result($SQL_Result, $i, 'gmr');
         $sr = mysql_result($SQL_Result, $i, 'gsr');
         $aj = mysql_result($SQL_Result, $i, 'ga');
         break;
     default:
         echo '????huh?!??? - Ohooooh';
         break;
 }
 // echo '('.$rpnext.' <>'. $rp.')';
 if ($rpnext != $rp) {
     if ($_GET['istscanart'] == 'sek') {
 $freigabe = mysql_result($SQL_Result, $i, "freigabe");
 if ($freigabe == 0) {
     $attcolor = "DDDDDD";
 } else {
     if ($testdate >= $attdate2 or $AttStatus != 0) {
         $attcolor = $ATTSTATUSHTML[$AttStatus];
     } else {
         $attcolor = "DDDDDD";
     }
 }
 $output = OnMouseFlotte($rg, $rp, $Benutzer['punkte'], "");
 echo '<TR>';
 echo '<TD bgcolor="#' . $attcolor . '"><b>';
 $output2 = InfoText("Ziel wurde erfasst durch Spieler:<br><b>" . GetUserInfos(mysql_result($SQL_Result, $i, "id")) . " von " . GetAllianzName(mysql_result($SQL_Result, $i, "id")));
 echo '<a href="./main.php?modul=showgalascans&xgala=' . $rg . '&xplanet=' . $rp . '" ' . $output2 . '>';
 echo $rg . ":" . $rp . " " . gnuser($rg, $rp);
 echo '</a>';
 echo " <font color=#0000FF>";
 echo "<a href=\"./main.php?modul=showgalascans&xgala=" . $rg . "&xplanet=" . $rp . "\"" . ($Benutzer['help'] ? " onmouseover=\"return overlib('" . $output . "');\" onmouseout=\"return nd();\"" : "") . ">";
 echo GetScans2($SQL_DBConn, $rg, $rp) . "</a></B></font><br>";
 echo 'Exxen M: ' . $me . "<br>Exxen K: " . $ke . "<br>";
 echo 'Pkt: ' . ZahlZuText(intval($pts / 1000)) . "K<br>";
 echo 'Def: ' . $d . '<br>Ships: ' . $s . "<br>";
 echo '</TD>';
 // Planung
 echo '<TD bgcolor="#' . $attcolor . '">';
 echo '<b><center>';
 echo $attdate2;
 echo "<br>" . substr(mysql_result($SQL_Result, $i, "attzeit"), 0, 5) . "<BR>";
 // Status
 echo $ATTSTATUSINFO[$AttStatus];
         $lnk = "<a href=\"" . $scripturl . "&action=flonrchange&fbid=" . $fbid . "&flonr=" . $flonr . "\"" . ($Benutzer['help'] ? " onmouseover=\"return overlib('Hier kannst du die Flott Nr. ändern. ');\" onmouseout=\"return nd();\"" : "") . ">#" . ($flonr == 0 ? "?" : $flonr) . "</a>";
         $f3_liste_namen = $f3_liste_namen . "\t\t\t\t" . ($incunsave ? "<font color=\"#FF0000\">" : "") . $a_gala . ":" . $a_plan . ($incunsave ? "</font>" : "");
         $f3_liste_namen = $f3_liste_namen . " <a href=\"./main.php?modul=flotteaendern&id=" . mysql_result($SQL_Result_user, $n, 'id') . "&flottenid=" . $fbid . "\" onmouseover=\"return overlib('Eingetragen von " . mysql_result($SQL_Result_fleets, $x, 'erfasser') . " um " . mysql_result($SQL_Result_fleets, $x, 'erfasst_am') . " ');\" onmouseout=\"return nd();\">" . gnuser($a_gala, $a_plan) . "</a> ";
         $f3_liste_namen = $f3_liste_namen . $lnk . " " . $scan . "<br>\n";
         $f3_liste_eta = $f3_liste_eta . "\t\t\t\t<a href=\"" . $scripturl . "&action=savechange&fbid=" . $fbid . "&incsave=" . $incunsave . "\"" . ($Benutzer['help'] ? " onmouseover=\"return overlib('Koords rot = Unsave<br>Koords schwarz = Save<br>Klick hier um zu ändern');\" onmouseout=\"return nd();\"" : "") . ">" . getime4display(eta($time1) * $Ticks['lange'] - $tick_abzug) . "</a><br>\n";
         $display_line = 1;
         $incsunsafe += $incunsave;
     }
     // Verteidigen <-
     if ($f_mode == 2 && $v_gala == $koord_g && $v_plan == $koord_p) {
         //				$scan = "<a href=\"./main.php?modul=showgalascans&xgala=".$a_gala."&xplanet=".$a_plan."\">".GetScans2($SQL_DBConn, $a_gala, $a_plan)."</a>";
         $scan = Get_Scan3($SQL_DBConn, $a_gala, $a_plan, $Benutzer['help'], 0);
         $flonr = mysql_result($SQL_Result_fleets, $x, 'flottennr');
         $fbid = mysql_result($SQL_Result_fleets, $x, 'id');
         $lnk = "<a href=\"" . $scripturl . "&action=flonrchange&fbid=" . $fbid . "&flonr=" . $flonr . "\"" . ($Benutzer['help'] ? " onmouseover=\"return overlib('Hier kannst du die Flott Nr. ändern. ');\" onmouseout=\"return nd();\"" : "") . ">#" . ($flonr == 0 ? "?" : $flonr) . "</a>";
         $f4_liste_namen = $f4_liste_namen . "\t\t\t\t" . $a_gala . ":" . $a_plan . " <a href=\"./main.php?modul=flotteaendern&id=" . mysql_result($SQL_Result_user, $n, 'id') . "&flottenid=" . $fbid . "\" onmouseover=\"return overlib('Eingetragen von " . mysql_result($SQL_Result_fleets, $x, 'erfasser') . " um " . mysql_result($SQL_Result_fleets, $x, 'erfasst_am') . " ');\" onmouseout=\"return nd();\">" . gnuser($a_gala, $a_plan) . "</a> ";
         $f4_liste_namen = $f4_liste_namen . $lnk . " " . $scan . "<br>\n";
         $f4_liste_eta = $f4_liste_eta . "\t\t\t\t" . getime4display(eta($time1) * $Ticks['lange'] - $tick_abzug) . "<br>\n";
         $display_line = 1;
     }
 }
 // ------------------
 mysql_free_result($SQL_Result_fleets);
 $dsp .= "\t\t\t<td bgcolor=\"" . $htmlstyle['hell' . $farb_zusatz] . "\"><font size=\"-2\">\n";
 $dsp .= $f1_liste_namen;
 $dsp .= "\t\t\t</font></td>\n";
 $dsp .= "\t\t\t<td bgcolor=\"" . $htmlstyle['dunkel' . $farb_zusatz] . "\" align=\"right\"><font size=\"-2\">\n";
 $dsp .= $f1_liste_eta;
 $dsp .= "\t\t\t</font></td>\n";
 $dsp .= "\t\t\t<td bgcolor=\"" . $htmlstyle['hell' . $farb_zusatz] . "\"><font size=\"-2\">\n";
 $dsp .= $f2_liste_namen;
 $SQL_Query = "SELECT * FROM gn4flottenbewegungen WHERE (angreifer_galaxie = '" . $user_g . "' AND angreifer_planet='" . $user_p . "') OR (verteidiger_galaxie='" . $user_g . "' AND verteidiger_planet='" . $user_p . "') ORDER BY eta;";
 $SQL_Result_fleets = tic_mysql_query($SQL_Query, $SQL_DBConn);
 // or error("Error while bilding 'taktik' (step 2).", ERROR_SQL, false);
 while ($SQL_Row_fleets = mysql_fetch_assoc($SQL_Result_fleets)) {
     $f_id = $SQL_Row_fleets['id'];
     $f_mode = $SQL_Row_fleets['modus'];
     $f_nummer = $SQL_Row_fleets['flottennr'];
     $f_eta = $SQL_Row_fleets['ankunft'];
     $f_eta_ab = $SQL_Row_fleets['flugzeit_ende'];
     $f_eta_rueck = $SQL_Row_fleets['ruckflug_ende'];
     $start_g = $SQL_Row_fleets['angreifer_galaxie'];
     $start_p = $SQL_Row_fleets['angreifer_planet'];
     $start_n = gnuser($start_g, $start_p);
     $ziel_g = $SQL_Row_fleets['verteidiger_galaxie'];
     $ziel_p = $SQL_Row_fleets['verteidiger_planet'];
     $ziel_n = gnuser($ziel_g, $ziel_p);
     // Spielerflotten ->
     if ($start_g == $user_g && $start_p == $user_p) {
         $tooltip_scan = ($Benutzer['help'] ? $help_scan : "") . "<b>Scans von " . $ziel_g . ":" . $ziel_p . " " . $ziel_n . "</b><br />";
         $scan = getScanData($ziel_g, $ziel_p);
         if ($scan["scan_elokas_time"] > 0) {
             $tooltip_scan .= "EloKas: min. " . $scan["scan_elokas"] . " (Stand: " . date("d.M H:i", $scan["scan_elokas_time"]) . ")<br /><br />";
         }
         if ($scan["scan_sektor"]) {
             $tooltip_scan .= "<span class=" . getScanAge($scan["scan_sektor_time"], $f_eta) . ">Sektor vom " . date("d.M H:i", $scan["scan_sektor_time"]) . " (" . $scan["scan_sektor_prozent"] . "%)</span><br />";
         }
         if ($scan["scan_geschuetze"]) {
             $tooltip_scan .= "<span class=" . getScanAge($scan["scan_geschuetze_time"], $f_eta) . ">Gesch&uuml;tze vom " . date("d.M H:i", $scan["scan_geschuetze_time"]) . " (" . $scan["scan_geschuetze_prozent"] . "%)</span><br />";
         }
         if ($scan["scan_einheiten"]) {
             $tooltip_scan .= "<span class=" . getScanAge($scan["scan_einheiten_time"], $f_eta) . ">Einheiten vom " . date("d.M H:i", $scan["scan_einheiten_time"]) . " (" . $scan["scan_einheiten_prozent"] . "%)</span><br />";