_VALID_MOS Question

Discussion in 'PHP' started by Martin K, Jul 10, 2009.

  1. #1
    Hi guys,
    I'm using defined( '_VALID_MOS' ) or die(..., to protect my page from direct access, but even I can't access it :D.
    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 :D
    Any suggestions? Thanks.
     
    Martin K, Jul 10, 2009 IP
  2. Martin K

    Martin K Active Member

    Messages:
    262
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    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.
     
    Martin K, Jul 13, 2009 IP