File:  [mozdev] / kcms / src / index.php
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Sun Aug 21 06:38:42 2005 UTC (13 years, 1 month ago) by kanaco
Branches: MAIN
CVS tags: HEAD
0.1.5.9 Final

<?php
/*
+ ----------------------------------------------------------------------------+
     kCMS 0.1.5
|
|     kCMS.Kanaco.Com
|     optiK@kcms.kanaco.com
|
|
|     $Source: /mozdev/cvs/kcms/src/index.php,v $
|     $Revision: 1.5 $
|     $Date: 2005/08/21 06:38:42 $
|     $Author: kanaco $
+----------------------------------------------------------------------------+
*/

require_once("set.php");
if($pref['membersonly_enabled'] && !USER){
   header("location: ".e_BASE.e_LOGIN);
        exit;
}

if(!$pref['frontpage'] || $pref['frontpage_type'] == "splash"){
        header("location: ".e_BASE."main.php");
        exit;
}else if(is_numeric($pref['frontpage'])){
        header("location: ".e_BASE."content.php?article.".$pref['frontpage'].".255");
        exit;
}else if(eregi("http", $pref['frontpage'])){
        header("location: ".e_BASE.$pref['frontpage']);
        exit;
}else{
        header("location: ".e_BASE.$pref['frontpage'].".php");
        exit;
}
?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>