Location: PHPKode > projects > Caleb's Code > Cafe_Cart/public/init.inc.php
<?
include_once("modules/$ModName/classes/util.php");
include_once("modules/$ModName/public/settings.php");
include_once("modules/$ModName/classes/sizes.php");

switch($file)
{
    case "cart":
        include_once("modules/$ModName/classes/cart.lib.php");
    break;
    default:
        include_once("modules/$ModName/classes/front-back.php");
        if($file == "index"):
            include("modules/$ModName/public/storefront.php");
        else:
            $fileToInclude = "modules/$ModName/public/" . $file . ".php";
            if(file_exists($fileToInclude)):
                include_once($fileToInclude);
            else:
                die("Invalid File");
            endif;
        endif;
}

if(!include_once("modules/$ModName/public/auth.inc.php")) die("Authentication could not be performed");

?>
Return current item: Caleb's Code