1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-01 02:27:24 +01:00
vichan/index.php

12 lines
392 B
PHP
Raw Normal View History

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