1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-12 15:51:17 +01:00
vichan/index.php

14 lines
402 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-04-25 02:48:06 +02:00
$query = query('SELECT np.* FROM newsplus np INNER JOIN `posts_n` 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);
2015-04-25 02:48:06 +02:00
echo $index;