From 297fcc46b26df6dd5ac9686c1065cd81ac12c586 Mon Sep 17 00:00:00 2001 From: ztk <support@ztk.me> Date: Wed, 14 Nov 2018 18:41:02 +0100 Subject: [PATCH] no more grundconfig --- adminforce/content/LKT_addons/LKT_rallysystem2.php | 6 +++--- content/konto/ueberweisen.php | 10 +++------- content/verdienen/betteln4.php | 4 ++-- index.php | 5 ++--- 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/adminforce/content/LKT_addons/LKT_rallysystem2.php b/adminforce/content/LKT_addons/LKT_rallysystem2.php index bb45943..1d209ba 100644 --- a/adminforce/content/LKT_addons/LKT_rallysystem2.php +++ b/adminforce/content/LKT_addons/LKT_rallysystem2.php @@ -576,7 +576,7 @@ $gesperrt = explode(',', $ralleydaten['sperruser']); while ($pa = mysqli_fetch_array($platz)) { if (!in_array($pa['uid'], $gesperrt)) { if ($ralleydaten['gewinner_anzahl'] >= $rp) { - $mg = number_format(($ralleydaten['gewinn_topf'] / 100 * $ralleydaten['p' . $rp]), 2, ',', '.') . ' ' . $waehrung; + $mg = number_format(($ralleydaten['gewinn_topf'] / 100 * $ralleydaten['p' . $rp]), 2, ',', '.') . ' ' . $pageconfig['waehrung']; } else $mg = '---'; if ($pa['punkte'] < $ralleydaten['mindestpunktzhl']) $mindestpunkt = '<span style="color:#FF6600;">Nicht erreicht.</span>'; if ($pa['punkte'] >= $ralleydaten['mindestpunktzhl']) $mindestpunkt = '<span style="color:#339966;">Erreicht.</span>'; @@ -591,7 +591,7 @@ while ($pa = mysqli_fetch_array($platz)) { } for($x = $rp;$x < 11;$x++) { - $mg = number_format($rally['p' . $rp], 2, ',', '.') . ' ' . $waehrung; + $mg = number_format($rally['p' . $rp], 2, ',', '.') . ' ' . $pageconfig['waehrung']; $row = ($rp % 2 == 0) ? 0 : 1; if ($x > $rally['plaetze']) $mg = '---'; ?> @@ -614,4 +614,4 @@ for($x = $rp;$x < 11;$x++) { <input type="Submit" name="reset" value="Reseten"><input type="Submit" name="auswert" value="Auswerten"> </div> </form> -<?php foot(); \ No newline at end of file +<?php foot(); diff --git a/content/konto/ueberweisen.php b/content/konto/ueberweisen.php index 5e97391..b04a8e1 100644 --- a/content/konto/ueberweisen.php +++ b/content/konto/ueberweisen.php @@ -1,6 +1,6 @@ <?php head("Guthaben Überweisen"); -echo ' +?> <center> <form method="post" action=""> <table width="500px"> @@ -12,11 +12,7 @@ echo ' <td>Währung</td> <td> <select name="waehrung"> - <option value="1">'.$pageconfig['waehrung'].'</option>'; - if($grundconfig['waehrung_zwei'] == 1){ - echo '<option value="2">'.$grundconfig['waehrung_zwei_name'].'</option>'; - } - echo ' + <option value="1"><?php echo $pageconfig['waehrung']; ?></option> </select> </td> </tr> @@ -32,6 +28,6 @@ echo ' <input type="submit" name="ueberweisen" value="Senden"> </form> </center> -'; +<?php foot(); ?> diff --git a/content/verdienen/betteln4.php b/content/verdienen/betteln4.php index ab05d80..98df44f 100644 --- a/content/verdienen/betteln4.php +++ b/content/verdienen/betteln4.php @@ -5,11 +5,11 @@ head('Dein Bettellink'); <table width="100%" cellpadding="1" cellspacing="1" border="0"> <tr> <td align="right"><b>Dein Reflink:</b></td> - <td align="left"> <a href="<?php echo $grundconfig['domain'];?>/?ref=<?php echo $_SESSION['uid'];?>" target="_blank"><?php echo $grundconfig['domain'];?>/?ref=<?php echo $_SESSION['uid'];?></a></td> + <td align="left"> <a href="<?php echo $pageconfig['domain'];?>/?ref=<?php echo $_SESSION['uid'];?>" target="_blank"><?php echo $pageconfig['domain'];?>/?ref=<?php echo $_SESSION['uid'];?></a></td> </tr> <tr> <td align="right"><b>Reflink und Bettellink:</b></td> - <td align="left"> <a href="<?php echo $grundconfig['domain'];?>/?content=/betteln&ref=<?php echo $_SESSION['uid'];?>" target="_blank"><?php echo $grundconfig['domain'];?>/?content=/betteln&ref=<?php echo $_SESSION['uid'];?></a></td> + <td align="left"> <a href="<?php echo $pageconfig['domain'];?>/?content=/betteln&ref=<?php echo $_SESSION['uid'];?>" target="_blank"><?php echo $pageconfig['domain'];?>/?content=/betteln&ref=<?php echo $_SESSION['uid'];?></a></td> </tr> </table> <?php diff --git a/index.php b/index.php index 92b2a84..95b8f27 100644 --- a/index.php +++ b/index.php @@ -27,7 +27,6 @@ if (!file_exists('content' . $_GET['content'] . '.php')) $_GET['content'] = '/er if ($_GET['content'] == '/intern/startseite') @require_once ('lib/texte/alt_startseitenpopup.txt'); if ($_GET['content'] == '/betteln') @require_once ('lib/texte/alt_bettelseitenpopup.txt'); -$grundconfig = mysqli_fetch_array(db_query("SELECT seitenname,domain FROM ".$db_prefix."_seitenkonfig ")); $start_reload = db_query("SELECT * FROM ".$db_prefix."_reloads WHERE uid = '".$_SESSION['uid']."' and tan = 'startseitenaufruf' and bis >= '".time()."'"); if (mysqli_num_rows($start_reload) != 0) { $start = mysqli_fetch_array($start_reload); @@ -108,11 +107,11 @@ $ts = strtotime($datetime); <span class="icon-bar"></span> <span class="icon-bar"></span> </button> - <a class="navbar-brand" href="<?php echo $grundconfig['domain'];?>"><?php echo $grundconfig['seitenname'];?></a> + <a class="navbar-brand" href="<?php echo $pageconfig['domain'];?>"><?php echo $pageconfig['seitenname'];?></a> </div> <div id="navbar" class="navbar-collapse collapse"> <ul class="nav navbar-nav"> - <li class="active"><a href="<?php echo $grundconfig['domain'];?>">Start</a></li> + <li class="active"><a href="<?php echo $pageconfig['domain'];?>">Start</a></li> <?php if ($_SESSION['login'] != true) { ?> <li><a href="?content=/intern/anmelden">Registrieren</a></li> <li><a href="?content=/intern/daten">Passwort anfordern!</a></li> -- GitLab