From be8e64ca785c9281d09b42aeaa917e8a1673af42 Mon Sep 17 00:00:00 2001 From: cflem Date: Sun, 1 Jan 2017 19:46:20 -0700 Subject: Moved ad displaying to dash_functions.php; finished settings.php --- dash/headless.php | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'dash/headless.php') diff --git a/dash/headless.php b/dash/headless.php index bc321f2..ca090aa 100644 --- a/dash/headless.php +++ b/dash/headless.php @@ -6,29 +6,7 @@ $db = new bdb(); $result = $db->query('SELECT ads.*, categories.cat_name, SUM(ratings.stars) / COUNT(ratings.stars) AS rating FROM ads LEFT JOIN categories ON ads.cat = categories.id LEFT JOIN ratings ON ads.uid = ratings.rated GROUP BY ads.id LIMIT '.($clicks+$b_config['ads_per_page']).', 1') or die(); if ($result->num_rows) { $row = $result->fetch_assoc(); -?> -
- -

-Uncategorized

'.PHP_EOL; - else - echo '

'.htmlentities($row['cat_name']).'

'.PHP_EOL; -?> -

-Employer Not Rated

'.PHP_EOL; - else - echo '

'.intval($row['rating']).' Star Employer

'.PHP_EOL; -?> -

Pays $

-

[...]

-

- -
-free(); $db->close(); -- cgit v1.2.3