PHP Classes

File: public_html/index.php

Recommend this page to a friend!
  Classes of Xavier Pérez   PHP Protected Page   public_html/index.php   Download  
File: public_html/index.php
Role: Example script
Content type: text/plain
Description: Public index example
Class: PHP Protected Page
Block direct access to a page from external links
Author: By
Last change: Upload content
Date: 9 years ago
Size: 357 bytes
 

Contents

Class file image Download
<?php
// You must to include protectedPage.php on top of your code
require_once '../protectedPage.php';
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <h1>You are granted to access this page</h1>
        <h2><?php echo getProtectedPageAccesUser(); ?></h2>
    </body>
</html>