Esempio n. 1
0
function BuildFullPage($content, $error = null, $headerAdd = null)
{
    $prefix = null;
    $tpl = new templates();
    $sock = new sockets();
    if ($error != null) {
        $content = "<p class=text-error>" . $tpl->_ENGINE_parse_body($error) . "</p>{$content}";
    }
    $wifidog_templates = new wifidog_templates($_SESSION["WIFIDOG_RULES"], $headerAdd);
    if ($GLOBALS["HOTSPOT_DEBUG"]) {
        wifidog_logs("End BuildFullPage " . strlen($content) . " bytes");
    }
    return $wifidog_templates->build($content);
}
Esempio n. 2
0
function BuildFullPage($content, $error = null, $headerAdd = null)
{
    $prefix = null;
    $tpl = new templates();
    $users = new usersMenus();
    $hostname = $users->hostname;
    $sock = new sockets();
    if ($error != null) {
        $content = "<p class=text-error>{$error}</p>{$content}";
    }
    $wifidog_templates = new wifidog_templates($_SESSION["WIFIDOG_RULES"], $headerAdd);
    return $wifidog_templates->build($content);
}