File: app/views/support.php

Recommend this page to a friend!
  Classes of Laudir Bispo  >  PHP Real Estate Website  >  app/views/support.php  >  Download  
File: app/views/support.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Real Estate Website
Manage the properties of a real estate business
Author: By
Last change:
Date: 5 months ago
Size: 1,050 bytes
 

Contents

Class file image Download
<SECTION CLASS="container-fluid">


        <?php
           
if( empty($_GET['pageHelp']) or !isset($_GET['pageHelp']) )
            {
                include (
$_SERVER['DOCUMENT_ROOT'].'/app/support/pages/starting.php');
            }
            else
            {
                require_once (
$_SERVER['DOCUMENT_ROOT'].'/libs/HTMLPurifier/HTMLPurifier.auto.php');
               
$HTMLPurifier_config = HTMLPurifier_Config::createDefault();
               
$purifier = new HTMLPurifier($HTMLPurifier_config);
               
$getPage = $purifier->purify($_GET['pageHelp']);

               
$base_path = $_SERVER['DOCUMENT_ROOT'].'/app/support/pages/';
                if (!
file_exists($base_path.$getPage.'.php'))
                {
                   
$page = $_SERVER['DOCUMENT_ROOT'].'/app/views/404.php' ;
                }
                else
                {
                   
$page = $base_path.$getPage.'.php' ;
                }

                require_once(
$page);
            }
       
?>


</SECTION>

For more information send a message to info at phpclasses dot org.