PHP Classes

File: Index.php

Recommend this page to a friend!
  Classes of Christian Petersen   Simple Class Redirection   Index.php   Download  
File: Index.php
Role: Example script
Content type: text/plain
Description: index
Class: Simple Class Redirection
Redirect users using HTML meta tags
Author: By
Last change:
Date: 9 years ago
Size: 347 bytes
 

Contents

Class file image Download
<?php
require_once("redirectionclass.php");
$var = 1; // you can replace this with a query to de DB
if($var == 0) {
$redirection = new Redirect("construction.html");
$redirection -> gorredirection();
}
elseif(
$var == 1) {
$redirection = new Redirect("site.html");
$redirection -> gorredirection();
    }

?>