Skip to content
Snippets Groups Projects
Commit 08bc4296 authored by Henoch Einbier's avatar Henoch Einbier Committed by Joel Kuder
Browse files

PHP8 compability

parent 0207dd9d
Branches
Tags
2 merge requests!46Release 3.0,!44PHP8 compability
......@@ -9,7 +9,7 @@ if (!isset($_GET['content']) || empty ($_GET['content'])) $_GET['content'] = '/s
}
if (isset ($_GET['content']) && !empty ($_GET['content'])) {
if (strpos ($_GET['content'], '../') !== false) die ('Zugriffsverletzung !');
if ($_GET['content'] {0} != '/') $_GET['content'] = '/' . $_GET['content'];
if ($_GET['content'] [0] != '/') $_GET['content'] = '/' . $_GET['content'];
}
......
......@@ -21,7 +21,7 @@ $fc_wert = $fc_wert + ($count['verdienst']*$count['menge']);
$heute = strtotime("".date("m")."/".date("d")."/".date("Y").""); // Format mm.tt.yyyy
$seitenstart = strtotime("04/02/2005"); // Format mm.tt.yyyy
$tage = ($heute - $seitenstart) / 86400;
$tage = fdiv( ($heute - $seitenstart) , 86400);
if ($tage <= 1) $tage = 1;
head("Mediadaten - ".$system['seitenname']);?>
......@@ -36,7 +36,7 @@ head("Mediadaten - ".$system['seitenname']);?>
</tr>
<tr class="tabellenbody_0">
<td width="50%">Guthaben Ø pro User</td>
<td width="50%"><?php echo @number_format($kontostats['kd_kontostand'] / $kontostats['kd_uid'],2,",",".");?> <?php echo $system['waehrung'];?></td>
<td width="50%"><?php echo @number_format(fdiv($kontostats['kd_kontostand'] , $kontostats['kd_uid']),2,",",".");?> <?php echo $system['waehrung'];?></td>
</tr>
<tr class="tabellenbody_1">
<td width="50%">Angemeldete User</td>
......@@ -44,7 +44,7 @@ head("Mediadaten - ".$system['seitenname']);?>
</tr>
<tr class="tabellenbody_0">
<td width="50%">Anmeldungen pro Tag</td>
<td width="50%"><?php echo @number_format($kontostats['kd_uid'] / $tage,2,",",".");?></td>
<td width="50%"><?php echo @number_format(fdiv($kontostats['kd_uid'] , $tage),2,",",".");?></td>
</tr>
</table>
<?php foot();
......@@ -60,7 +60,7 @@ head("Mediadaten - Diverses");?>
</tr>
<tr class="tabellenbody_0">
<td width="50%">Ø Verdienst pro Klick</td>
<td width="50%"><?php echo @number_format($kontostats['kd_kv']/$kontostats['kd_klicks'],2,",",".");?> <?php echo $system['waehrung'];?></td>
<td width="50%"><?php echo @number_format(fdiv($kontostats['kd_kv'] , $kontostats['kd_klicks']),2,",",".");?> <?php echo $system['waehrung'];?></td>
</tr>
<tr class="tabellenbody_1">
<td width="50%">Bettelaufrufe alle User</td>
......@@ -72,7 +72,7 @@ head("Mediadaten - Diverses");?>
</tr>
<tr class="tabellenbody_1">
<td width="50%">Ø Verdienst pro Aufruf</td>
<td width="50%"><?php echo @number_format($kontostats['kd_bv']/$kontostats['kd_angebettelt'],2,",",".");?> <?php echo $system['waehrung'];?></td>
<td width="50%"><?php echo @number_format(fdiv($kontostats['kd_bv'] , $kontostats['kd_angebettelt']),2,",",".");?> <?php echo $system['waehrung'];?></td>
</tr>
<tr class="tabellenbody_0">
<td width="50%">Refverdienste für alle Werber</td>
......@@ -95,4 +95,4 @@ head("Mediadaten - Werbung");?>
<td width="50%"><?php echo @number_format($fc_wert,2,",",".");?> <?php echo $system['waehrung'];?></td>
</tr>
</table>
<?php foot();?>
\ No newline at end of file
<?php foot();?>
<?php
if (isset ($_GET['content']) && !empty ($_GET['content'])) {
if (strpos ($_GET['content'], '../') !== false) die ('Zugriffsverletzung !');
if ($_GET['content'] {0} != '/') $_GET['content'] = '/' . $_GET['content'];
if ($_GET['content'] [0] != '/') $_GET['content'] = '/' . $_GET['content'];
}
if (!isset($_GET['content']) || empty ($_GET['content'])) $_GET['content'] = '/intern/startseite';
if (!file_exists('content' . $_GET['content'] . '.php')) $_GET['content'] = '/error/keine_seite';
......@@ -96,4 +96,4 @@ if ($_GET['content'] == '/betteln') require_once ('lib/texte/alt_bettelseitenpop
</body>
</html>
<?php
if ($system['gzip_rate'] > 0) ob_end_flush();
\ No newline at end of file
if ($system['gzip_rate'] > 0) ob_end_flush();
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment