1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 09:27:24 +01:00
vichan/index.php

13 lines
405 B
PHP
Raw Normal View History

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;
}
2015-03-10 16:22:09 -07:00
$index = Element("8chan/index.html", array("config" => $config, "newsplus" => $newsplus));
file_write('index.html', $index);
echo $index;