2014-09-23 20:12:32 +00:00
|
|
|
<?php
|
2014-09-26 23:52:02 +00:00
|
|
|
include 'inc/functions.php';
|
2015-03-10 16:22:09 -07:00
|
|
|
$query = query('SELECT np.* FROM newsplus np INNER JOIN `posts_news+` p ON np.thread=p.id WHERE np.dead IS FALSE ORDER BY p.bump DESC');
|
2015-03-11 18:01:42 +08:00
|
|
|
if ($query) {
|
|
|
|
$newsplus = $query->fetchAll(PDO::FETCH_ASSOC);
|
|
|
|
} else {
|
|
|
|
$newsplus = false;
|
|
|
|
}
|
2014-09-24 01:27:01 +02:00
|
|
|
|
2015-03-10 16:22:09 -07:00
|
|
|
$index = Element("8chan/index.html", array("config" => $config, "newsplus" => $newsplus));
|
|
|
|
file_write('index.html', $index);
|
2015-04-09 20:11:48 +10:00
|
|
|
|
|
|
|
echo $index;
|