2014-09-23 22:12:32 +02:00
|
|
|
<?php
|
2014-09-27 01:52:02 +02:00
|
|
|
include 'inc/functions.php';
|
2015-03-11 00:22:09 +01: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 11:01:42 +01:00
|
|
|
if ($query) {
|
|
|
|
$newsplus = $query->fetchAll(PDO::FETCH_ASSOC);
|
|
|
|
} else {
|
|
|
|
$newsplus = false;
|
|
|
|
}
|
2014-09-24 01:27:01 +02:00
|
|
|
|
2015-03-11 00:22:09 +01:00
|
|
|
$index = Element("8chan/index.html", array("config" => $config, "newsplus" => $newsplus));
|
|
|
|
file_write('index.html', $index);
|
2015-04-09 12:11:48 +02:00
|
|
|
|
|
|
|
echo $index;
|