php deny code execution for included files

This commit is contained in:
Miroslav Šedivý 2019-12-23 18:50:43 +01:00
parent 2cdb68ce7e
commit 56281b0f34
9 changed files with 10 additions and 0 deletions

View file

@ -1,4 +1,5 @@
<?php
defined('PROJECT_PATH') OR exit('No direct script access allowed');
class Ajax
{

View file

@ -1,4 +1,5 @@
<?php
defined('PROJECT_PATH') OR exit('No direct script access allowed');
class Config
{

View file

@ -1,4 +1,5 @@
<?php
defined('PROJECT_PATH') OR exit('No direct script access allowed');
// v3.43 (+ query counter)
class DB

View file

@ -1,4 +1,5 @@
<?php
defined('PROJECT_PATH') OR exit('No direct script access allowed');
class Image
{

View file

@ -1,4 +1,5 @@
<?php
defined('PROJECT_PATH') OR exit('No direct script access allowed');
class Lang
{

View file

@ -1,4 +1,5 @@
<?php
defined('PROJECT_PATH') OR exit('No direct script access allowed');
class Log
{

View file

@ -1,4 +1,5 @@
<?php
defined('PROJECT_PATH') OR exit('No direct script access allowed');
class Post
{

View file

@ -1,4 +1,6 @@
<?php
defined('PROJECT_PATH') OR exit('No direct script access allowed');
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.

View file

@ -1,4 +1,5 @@
<?php
defined('PROJECT_PATH') OR exit('No direct script access allowed');
class user
{