From 23cf02f608cd62a21c5c39a627eff728f7c5607e Mon Sep 17 00:00:00 2001 From: thnilsen Date: Thu, 8 Nov 2018 20:08:11 +0100 Subject: [PATCH] Replace hardcoded urls with constants from config. --- subscriptions.php | 8 ++++---- template.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/subscriptions.php b/subscriptions.php index ef6eb58..ee7dec1 100644 --- a/subscriptions.php +++ b/subscriptions.php @@ -45,7 +45,7 @@ if ($query->num_rows){ $subs = array(); while($result = $query->fetch_assoc()) { - echo '' . $result['name'] . ''; + echo '' . $result['name'] . ''; $subs[] = $result['name']; } echo ""; @@ -59,10 +59,10 @@ if ($query->num_rows){ while($result = $query->fetch_assoc()){ if(empty($subs)){ - echo '' . $result['name'] . ''; + echo '' . $result['name'] . ''; } elseif(!in_array($result['name'], $subs)){ - echo '' . $result['name'] . ''; + echo '' . $result['name'] . ''; } } echo ''; @@ -72,4 +72,4 @@ if ($query->num_rows){ header('Location: index.php'); } -Template::render_footer(); \ No newline at end of file +Template::render_footer(); diff --git a/template.php b/template.php index f241b44..764f3c7 100644 --- a/template.php +++ b/template.php @@ -76,9 +76,9 @@ class Template{ $tg_user = getTelegramUserData(); if($tg_user !== false){ echo'
  • Subscriptions
  • '; - echo '
  • Logout
  • '; + echo '
  • Logout
  • '; } else { - echo '
  • '; + echo '
  • '; }?> @@ -201,4 +201,4 @@ class Template{