summaryrefslogblamecommitdiffstats
path: root/app/class/framework.class.php
blob: e20be7f2921e21767f678bbff70e09b8af81a134 (plain) (tree)
1
2
3
4
5
6

     



                                                                     























                                                                                      
<?php

/* Include the Scrott system-level configuration file if it exists */
is_file("scrott.conf.php") &&
    require_once "scrott.conf.php";

/*
 * Global functions / operations and access to contextual or session-based information
 */
abstract class Framework
{
    /*
     * Get the absolute path on this server for the root of this app
     */
    function ar()
    {
        /* TODO */
    }

    /*
     * Redirect to the given URL and die
     */
    function redirectTo($url)
    {
        http_redirect($url);
        exit;
    }
}

?>