therecluse26 / PHP-Login

A login system built with PHP, MySQL, jQuery and Bootstrap
MIT License
839 stars 444 forks source link

Direct access to subdirectories #209

Closed uomopalese closed 6 years ago

uomopalese commented 6 years ago

Hi, after installed the login, while logged out, if i type the address of any file or subdirectory in the address bar i can access it without any problem... Is this the normal behavior? Am I missing something? Thanks

uomopalese commented 6 years ago

Ok, I answer myself, hope this helps someone else: need to put this on top of page: <?php $title = "Pagetitle"; $userrole = "Admin"; include "login/misc/pagehead.php"; ?>

uomopalese commented 6 years ago

<?php $title = "Pagetitle"; $userrole = "Admin"; include "login/misc/pagehead.php"; ?>