@ -4,10 +4,7 @@
* Copyright (c) 2010-2013 Tinyboard Development Group
*/
if (realpath($_SERVER['SCRIPT_FILENAME']) == str_replace('\\', '/', __FILE__)) {
// You cannot request this file directly.
exit;
}
defined('TINYBOARD') or exit;
$hidden_inputs_twig = array();
@ -3,6 +3,7 @@
/**
* Class for generating json API compatible with 4chan API
class Cache {
private static $cache;
class PreparedQueryDebug {
protected $query;
function event() {
global $events;
class Filter {
private $condition;
@ -9,6 +9,8 @@ if (realpath($_SERVER['SCRIPT_FILENAME']) == str_replace('\\', '/', __FILE__)) {
define('TINYBOARD', null);
$microtime_start = microtime(true);
require_once 'inc/display.php';
class Image {
public $src, $format, $image, $size;
// create a hash/salt pair for validate logins
function mkhash($username, $password, $salt = false) {
function mod_page($title, $template, $args, $subtitle = false) {
global $config, $mod;
class Remote {
public function __construct($config) {
$twig = false;