forked from leftypol/leftypol
block loading include files directly
This commit is contained in:
parent
a9bdc6eeb7
commit
b895102563
7 changed files with 40 additions and 5 deletions
|
@ -1,4 +1,9 @@
|
|||
<?php
|
||||
if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
|
||||
// You cannot request this file directly.
|
||||
header('Location: ../', true, 302);
|
||||
exit;
|
||||
}
|
||||
|
||||
function sql_open() {
|
||||
global $pdo, $config;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue