소스 검색

Cleaner check to make sure inc/ files aren't accessed directly.

tags/vichan-devel-4.4.96
Michael Foster 10 년 전
부모
커밋
7f0de93608
12개의 변경된 파일13개의 추가작업 그리고 40개의 파일을 삭제
  1. +1
    -4
      inc/anti-bot.php
  2. +1
    -0
      inc/api.php
  3. +1
    -4
      inc/cache.php
  4. +1
    -4
      inc/database.php
  5. +1
    -4
      inc/events.php
  6. +1
    -4
      inc/filters.php
  7. +2
    -0
      inc/functions.php
  8. +1
    -4
      inc/image.php
  9. +1
    -4
      inc/mod/auth.php
  10. +1
    -4
      inc/mod/pages.php
  11. +1
    -4
      inc/remote.php
  12. +1
    -4
      inc/template.php

+ 1
- 4
inc/anti-bot.php 파일 보기

@@ -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();



+ 1
- 0
inc/api.php 파일 보기

@@ -3,6 +3,7 @@
* Copyright (c) 2010-2013 Tinyboard Development Group
*/

defined('TINYBOARD') or exit;

/**
* Class for generating json API compatible with 4chan API


+ 1
- 4
inc/cache.php 파일 보기

@@ -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;

class Cache {
private static $cache;


+ 1
- 4
inc/database.php 파일 보기

@@ -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;

class PreparedQueryDebug {
protected $query;


+ 1
- 4
inc/events.php 파일 보기

@@ -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;

function event() {
global $events;


+ 1
- 4
inc/filters.php 파일 보기

@@ -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;

class Filter {
private $condition;


+ 2
- 0
inc/functions.php 파일 보기

@@ -9,6 +9,8 @@ if (realpath($_SERVER['SCRIPT_FILENAME']) == str_replace('\\', '/', __FILE__)) {
exit;
}

define('TINYBOARD', null);

$microtime_start = microtime(true);

require_once 'inc/display.php';


+ 1
- 4
inc/image.php 파일 보기

@@ -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;

class Image {
public $src, $format, $image, $size;


+ 1
- 4
inc/mod/auth.php 파일 보기

@@ -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;

// create a hash/salt pair for validate logins
function mkhash($username, $password, $salt = false) {


+ 1
- 4
inc/mod/pages.php 파일 보기

@@ -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;

function mod_page($title, $template, $args, $subtitle = false) {
global $config, $mod;


+ 1
- 4
inc/remote.php 파일 보기

@@ -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;

class Remote {
public function __construct($config) {


+ 1
- 4
inc/template.php 파일 보기

@@ -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;

$twig = false;



불러오는 중...
취소
저장