Esempio n. 1
0
function wifidog_css()
{
    header("Content-type: text/css");
    $cachefile = "{$GLOBALS["CACHEDIR"]}/{$_GET["wifidog-css"]}." . __FUNCTION__ . ".css";
    if (is_file($cachefile)) {
        echo @file_get_contents($cachefile);
        return;
    }
    wifidog_load_classes();
    $wifidog_templates = new wifidog_templates($_GET["wifidog-css"]);
    $data = $wifidog_templates->css();
    @file_put_contents($cachefile, $data);
    echo $data;
}
Esempio n. 2
0
function wifidog_css()
{
    header("Content-type: text/css");
    $wifidog_templates = new wifidog_templates($_GET["wifidog-css"]);
    echo $wifidog_templates->css();
}