Пример #1
0
function Info($msg, $noClose = false)
{
    if (!empty($GLOBALS['commandline'])) {
        @ob_end_clean();
        print "\n" . strip_tags($msg) . "\n";
        @ob_start();
    } else {
        ## generate some ID for the info div
        $id = substr(md5($msg), 0, 15);
        $pageinfo = new pageInfo($id);
        $pageinfo->setContent('<p>' . $msg . '</p>');
        if ($noClose && method_exists($pageinfo, 'suppressHide')) {
            $pageinfo->suppressHide();
        }
        print $pageinfo->show();
    }
}
Пример #2
0
 </div>';
    if ($lancount <= 1) {
        $languageswitcher = '';
    }
}
require_once dirname(__FILE__) . '/setpermissions.php';
$include = '';
if ($page != '' && $page != 'install') {
    preg_match("/([\\w_]+)/", $page, $regs);
    $include = $regs[1];
    $include .= ".php";
    $include = $page . ".php";
} else {
    $include = $GLOBALS['homepage'] . ".php";
}
$pageinfo = new pageInfo();
$pageinfo->fetchInfoContent($include);
if (is_file('ui/' . $GLOBALS['ui'] . "/mainmenu.php")) {
    include 'ui/' . $GLOBALS['ui'] . "/mainmenu.php";
}
if (!$ajax) {
    if (USE_MINIFIED_ASSETS && file_exists(dirname(__FILE__) . '/ui/' . $GLOBALS['ui'] . '/header_minified.inc')) {
        include 'ui/' . $GLOBALS['ui'] . "/header_minified.inc";
    } else {
        include 'ui/' . $GLOBALS['ui'] . "/header.inc";
    }
}
if (!$ajax) {
    print '<h4 class="pagetitle">' . mb_strtolower($page_title) . '</h4>';
}
if ($GLOBALS["require_login"] && $page != "login") {
Пример #3
0
<?php

#Load settings
require 'settings.php';
#Load essential classes
require_once 'classes/database.php';
require_once 'classes/determinePage.php';
require_once 'classes/pageInfo.php';
global $classDatabase;
global $classPageInfo;
$classDatabase = new database();
$classPageInfo = new pageInfo();
#Run essential code
$classDatabase->DBConnect();
$classPageInfo->type = determinePage::determine();
#Get some information about the page
$classPageInfo->gatherBasicInfo();
?>
<!DOCTYPE html>
<html>
<head>
<!-- Powered by soylentblack - http://soylentblack.org/ -->
<title><?php 
echo $classPageInfo->title;
?>
</title>
<meta name="description" content='<?php 
echo settings::$description;
?>
'>
<meta charset="UTF-8">