block loading include files directly
This commit is contained in:
parent
a9bdc6eeb7
commit
b895102563
|
@ -588,4 +588,10 @@
|
||||||
|
|
||||||
// Link imageboard to your Google Analytics account to track users and provide marketing insights.
|
// Link imageboard to your Google Analytics account to track users and provide marketing insights.
|
||||||
// $config['google_analytics'] = 'UA-xxxxxxx-yy';
|
// $config['google_analytics'] = 'UA-xxxxxxx-yy';
|
||||||
|
|
||||||
|
if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
|
||||||
|
// You cannot request this file directly.
|
||||||
|
header('Location: ../', true, 302);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
?>
|
?>
|
|
@ -1,4 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
|
||||||
|
// You cannot request this file directly.
|
||||||
|
header('Location: ../', true, 302);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
function sql_open() {
|
function sql_open() {
|
||||||
global $pdo, $config;
|
global $pdo, $config;
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
|
||||||
|
// You cannot request this file directly.
|
||||||
|
header('Location: ../', true, 302);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Stuff to help with the display.
|
Stuff to help with the display.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
|
||||||
|
// You cannot request this file directly.
|
||||||
|
header('Location: ../', true, 302);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
loadConfig();
|
loadConfig();
|
||||||
|
|
||||||
function loadConfig() {
|
function loadConfig() {
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
|
||||||
|
// You cannot request this file directly.
|
||||||
|
header('Location: ../', true, 302);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
// Creates a small random string for validating moderators' cookies
|
// Creates a small random string for validating moderators' cookies
|
||||||
function mkhash($length=12) {
|
function mkhash($length=12) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
|
||||||
// PHP Template Preprocessor by Savetheinternet
|
// You cannot request this file directly.
|
||||||
// http://codecanyon.net/user/Savetheinternet
|
header('Location: ../', true, 302);
|
||||||
// savetheinternet@n0v4.com
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------
|
// -----------------------------------------------------
|
||||||
// Standard configuration
|
// Standard configuration
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
|
||||||
|
// You cannot request this file directly.
|
||||||
|
header('Location: ../', true, 302);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
// 'false' means that the user is not logged in as a moderator
|
// 'false' means that the user is not logged in as a moderator
|
||||||
$mod = false;
|
$mod = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue