Exemple #1
0
function exponent_theme_getTheme()
{
    return expTheme::getTheme();
}
Exemple #2
0
    //only admins/acting_admins are allowed to get to the site, all others get the maintenance view
    $template = new standalonetemplate('_maintenance');
    $template->output();
} else {
    if (MAINTENANCE_MODE > 0) {
        flash('error', gt('Maintenance Mode is Enabled'));
    }
    //the default user is anonymous
    //	if (!expSession::loggedIn()) {
    //TODO: Maxims initial anonymous user implementation
    //user::login("anonymous", "anonymous");
    //	}
    // check to see if we need to install or upgrade the system
    expVersion::checkVersion();
    // Handle sub themes
    $page = expTheme::getTheme();
    // If we are in a printer friendly request then we need to change to our printer friendly subtheme
    if (PRINTER_FRIENDLY == 1) {
        expSession::set("uilevel", 0);
        $pftheme = expTheme::getPrinterFriendlyTheme();
        // get the printer friendly theme
        $page = $pftheme == null ? $page : $pftheme;
        // if there was no theme found then just use the current subtheme
    }
    if (is_readable($page)) {
        if (!expJavascript::inAjaxAction()) {
            include_once $page;
            expTheme::satisfyThemeRequirements();
        } else {
            expTheme::runAction();
        }