| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
//$Id: customerror.module,v 1.17.2.5 2009/03/16 18:39:05 kbahey Exp $ |
//$Id: customerror.module,v 1.17.2.6 2009/03/19 16:07:59 kbahey Exp $ |
| 4 |
|
|
| 5 |
// Copyright 2005 Khalid Baheyeldin http://2bits.com |
// Copyright 2005 Khalid Baheyeldin http://2bits.com |
| 6 |
|
|
| 149 |
|
|
| 150 |
function customerror_page() { |
function customerror_page() { |
| 151 |
$code = arg(1); |
$code = arg(1); |
|
$_SESSION['destination'] = $_REQUEST['destination']; |
|
| 152 |
|
|
| 153 |
switch($code) { |
switch($code) { |
| 154 |
case 403: |
case 403: |
| 155 |
|
$_SESSION['destination'] = $_REQUEST['destination']; |
| 156 |
case 404: |
case 404: |
| 157 |
// Check if we should redirect |
// Check if we should redirect |
| 158 |
customerror_check_redirect(); |
customerror_check_redirect(); |