# Last Update : 20041114222812 # FUNCTION: Main door to all components and pages # ---------------------------------------------------------------------- # Integricity WebToolz # Copyright (C) 2004 by Integricity Corporation Sdn. Bhd. # http://www.integricity.com/ # ---------------------------------------------------------------------- # LICENSE # # This software may NOT be redistributed without the written permission # from Integricity Corporation Sdn. Bhd. # # For more information and enquiries, contact us at info@integricity.com # ---------------------------------------------------------------------- header("Cache-control: private"); include_once("config/dbinfo.php"); include_once("config/common.php"); include_once ("themes/headfoot.php"); if (($component) and ($load) and file_exists("components/$component/$load.php")) { # Include common functions if it exists if (file_exists("components/$component/compcommon.php")) { include_once("components/$component/compcommon.php"); } else {} include_once("components/$component/$load.php"); } else # Component IDs not set, so redirect user to the default page { if($globalvar[default_page] != "") { Header("Location: $globalvar[default_page]"); } else { echo "Default page not s