Hi guys, I'm using defined( '_VALID_MOS' ) or die(..., to protect my page from direct access, but even I can't access it . I know that I should use define( '_VALID_MOS', 1 ); in the previous page, but where to put this code. I try with javascript onClick event, but didn't work Any suggestions? Thanks.
OK, or any other suggestions to protect pages. So, I have admin panel with several pages, and i don't want to make password for every page, but for the first one only, so how to protect the other pages. I don't want to chmod it or to allow access from .htaccess, I want to use php script for that. Thanks in advanse.