Login   Register  
PHP Classes
elePHPant
Icontem

File: Index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2013-08-13 08:39
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();    
    }

?>