$getRegdate1 = "SELECT regdate FROM " . $prefix . "users WHERE ids = '" . $cookie_id . "'";
 $getRegdate2 = mysql_query($getRegdate1);
 if (mysql_num_rows($getRegdate2) == 0) {
     exit;
 }
 $getRegdate3 = mysql_fetch_assoc($getRegdate2);
 $getRegdate = bigintval($getRegdate3['regdate']);
 $timeout = getTimestamp('-22 days');
 if ($timeout < $getRegdate) {
     $timeout = $getRegdate;
 }
 // WENN LETZTE AENDERUNG VOM ALTEN MANAGER DANN EGAL ENDE
 $getkonto1 = "SELECT konto FROM " . $prefix . "teams WHERE ids = '" . $cookie_team . "'";
 $getkonto2 = mysql_query($getkonto1);
 $getkonto3 = mysql_fetch_assoc($getkonto2);
 $getkonto4 = $getkonto3['konto'] - einsatz_in_auktionen($cookie_team);
 if (isset($_POST['fitness_regeneration']) && $cookie_id != CONFIG_DEMO_USER) {
     $heute_string = date('Y-m-d', time());
     $temp = intval($_POST['fitness_regeneration']);
     if ($temp == 1 || $temp == 2 || $temp == 3) {
         if ($getkonto4 > 0) {
             $ch1 = "SELECT letzte_regeneration FROM " . $prefix . "teams WHERE ids = '" . $cookie_team . "'";
             $ch2 = mysql_query($ch1);
             $ch3 = mysql_fetch_assoc($ch2);
             if ($ch3['letzte_regeneration'] != $heute_string) {
                 switch ($temp) {
                     case 1:
                         $preis = $supplyDemandPrices['Fitness-Trainer'];
                         break;
                     case 2:
                         $preis = $supplyDemandPrices['Fitness-Trainer'] * 2.15;
Esempio n. 2
0
        ?>
</th>
	<th scope="col"><?php 
        echo _('Vereinsdaten');
        ?>
</th>
	</tr>
	</thead>
	<tbody>
	<?php 
        $vd1 = "SELECT aufstellung, staerke, konto, punkte, rank, elo, pokalrunde, cuprunde, posToSearch, wantTests FROM " . $prefix . "teams WHERE ids = '" . $cookie_team . "'";
        $vd2 = mysql_query($vd1);
        $vd3 = mysql_fetch_assoc($vd2);
        $vd_aufstellungsstaerke = floor($vd3['aufstellung'] / 108.9 * 100);
        $vd_kaderstaerke = floor($vd3['staerke'] / 9.9 * 100);
        $einsatzAuk = einsatz_in_auktionen($cookie_team);
        $verfuegbaresGeld = $vd3['konto'] - $einsatzAuk;
        if ($verfuegbaresGeld < 0) {
            $verfuegbaresGeld = 0;
        }
        ?>
	<tr><td><?php 
        echo _('Liga');
        ?>
</td><td><?php 
        echo __('%d. Platz', $vd3['rank']);
        ?>
</td></tr>
	<tr class="odd"><td><?php 
        echo _('Pokal');
        ?>