Commit 2e4b29ee authored by David Morley's avatar David Morley

remove hidden it was unused

parent be85b781
<?php
$hidden = isset($_GET['hidden']) ? $_GET['hidden'] : null;
$lastfile = 'db/last.data';
$advancedview = isset($_GET['advancedview']);
$mapview = isset($_GET['mapview']);
......
......@@ -8,12 +8,8 @@ $country_code = $_SERVER['HTTP_CF_IPCOUNTRY'];
$dbh = pg_connect("dbname=$pgdb user=$pguser password=$pgpass");
$dbh || die('Error in connection: ' . pg_last_error());
$hidden = isset($_GET['hidden']) ? $_GET['hidden'] : null;
if ($hidden == 'true') {
$sql = "SELECT * FROM pods WHERE hidden <> 'no' ORDER BY uptimelast7 DESC";
} else {
$sql = "SELECT * FROM pods WHERE adminrating <> -1 AND hidden <> 'yes' AND signup = 1 ORDER BY uptimelast7 DESC";
}
$sql = "SELECT * FROM pods WHERE adminrating <> -1 AND hidden <> 'yes' AND signup = 1 ORDER BY uptimelast7 DESC";
$result = pg_query($dbh, $sql);
$result || die('Error in SQL query: ' . pg_last_error());
......
......@@ -5,12 +5,8 @@ require_once __DIR__ . '/config.php';
$dbh = pg_connect("dbname=$pgdb user=$pguser password=$pgpass");
$dbh || die('Error in connection: ' . pg_last_error());
$hidden = isset($_GET['hidden']) ? $_GET['hidden'] : null;
if ($hidden === 'true') {
$sql = "SELECT * FROM pods WHERE hidden <> 'no' ORDER BY uptimelast7 DESC";
} else {
$sql = 'SELECT * FROM pods ORDER BY uptimelast7 DESC';
}
$sql = 'SELECT * FROM pods ORDER BY uptimelast7 DESC';
$result = pg_query($dbh, $sql);
$result || die('Error in SQL query: ' . pg_last_error());
......
Markdown is supported
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