Пример #1
0
function arcmaj3_wint()
{
    $main_console = new FluidActive('Arcmaj3 management web console');
    $db = new FractureDB('arcmaj3');
    #$main_console->DBTextEntry($db, 'am_urls', 'location', 0);
    #$main_console->DBRowEntry($db, 'am_urls', 1);
    $main_console->DBTableEntry($db, 'am_urls');
    $main_console->getQueryCount($db);
    $main_console->close();
}
function discosync()
{
    global $classesAuthKey;
    if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_PW'] != $classesAuthKey) {
        header('WWW-Authenticate: Basic realm="DOOM"');
        header('HTTP/1.0 401 Unauthorized');
        echo 'DOOM';
        exit;
    } else {
        $main = new FluidActive('discosync', 'Discography');
        $main->append('<div style="background-color:#A8FFEC;left:50px;top:50px;bottom:50px;right:50px;position:fixed;overflow-x:scroll;overflow-y:scroll;z-index:1998;text-align:center;"> ');
        $main->append('<!-- <div style="z-index:2001;left:10px;position:fixed;top:10px;background:#F954A2;"><b>what</b>: What the event/project is. <b>begin</b>: When it begins. <b>end</b>: When it ends or is due. <b>location</b>: Where it happens. <b>notes</b>: e.g. assignment details.</div> -->');
        //print('what: What the event/project is. begin: When it begins. end: When it ends or is due. location: Where it happens. notes: e.g. assignment details.');
        $db = new FractureDB('futuqiur_calendarsync');
        //$music  = $db->getTable('music');
        //$main->append('</script>');
        $main->DBTableEntry($db, 'releases');
        $main->DBTableEntry($db, 'works');
        $main->DBTableEntry($db, 'versions');
        $main->DBTableEntry($db, 'artist');
        $main->DBTableEntry($db, 'label');
        $main->DBTableEntry($db, 'medium');
        //$main->append('<script type="text/javascript">');
        $main->close();
    }
}