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

Make admin page redirect if you don't have permission. #2

Merged
merged 1 commit into from
Jun 15, 2017

Conversation

ValarDragon
Copy link
Contributor

Make admin page redirect if you don't have permission.
Please note this code is untested. I do not have PHP development tools currently set up.
See the following for where I obtained the code to properly redirect: https://stackoverflow.com/questions/768431/how-to-make-a-redirect-in-php#768472

Reason for this PR:
Any user can access the admin.php page. This is unnecessary, and thus this commit fixes that. The usage of die() is to prevent malicious bots.

@LukeLaScala LukeLaScala merged commit 7c77429 into LukeLaScala:master Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants