Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with ereg() #68

Closed
Manuel2195 opened this issue Dec 15, 2018 · 2 comments
Closed

problem with ereg() #68

Manuel2195 opened this issue Dec 15, 2018 · 2 comments
Labels

Comments

@Manuel2195
Copy link

if((!ereg('index.php', $_SERVER['SCRIPT_FILENAME'])) && (!ereg('admin.php', $_SERVER['SCRIPT_FILENAME'])) && (!ereg('install.php', $_SERVER['SCRIPT_FILENAME'])) && (!ereg('login.php', $_SERVER['SCRIPT_FILENAME'])) && (!ereg('update.php', $_SERVER['SCRIPT_FILENAME']))){ //Give out an "access denied" error. echo 'access denied'; //Block all other code. exit();

Hello,
I use this type of function quite often. Since my website provider updated to PHP 7.2 the website doesn't work anymore. The output is "access denied".
Thanks you in advance!

@BSteelooper
Copy link
Contributor

BSteelooper commented Dec 15, 2018

Try the following:

`
//Make sure the file isn't accessed directly.

defined('IN_PLUCK') or exit('Access denied!');
`

@billcreswell
Copy link
Contributor

billcreswell commented Dec 15, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants