HOW TO block direct access to the content pages?

Talk and info about common issues and learn how to do almost anything with ApPHP AdminPanel

Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako

administrator
Site Admin
Site Admin
Posts: 5987
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO block direct access to the content pages?

Postby administrator » Jul 31st, '09, 13:39

To prevent direct access to your content pages you need to add at the top of each
page (placed in pages/ folder) the next row:

Code: Select all

require_once("../inc/classes/session.class.php");   
require_once("../inc/checkPagePermissions.php");


PHP AdminPanel script creates this header automatically (from v2.0.2)

Return to “ApPHP AdminPanel {HOW TO}”