Exemplo n.º 1
0
 public function processRequests()
 {
     processRequests($this);
 }
function processActions()
{
    global $CONFIG;
    require LIVEZILLA_PATH . "_lib/functions.internal.process.inc.php";
    processAcceptedConversations();
    processAuthentications();
    processStatus();
    processClosures();
    processRequests();
    processForwards();
    processWebsitePushs();
    processFilters();
    processProfile();
    processProfilePictures();
    processWebcamPictures();
    processAlerts();
    processPermissions();
    processClosedTickets();
    processExternalReloads();
    processReceivedPosts();
    processCancelInvitation();
    processEvents();
    processGoals();
    if (SERVERSETUP) {
        processBannerPictures();
    }
}
Exemplo n.º 3
0
        $openURL = $_REQUEST['openURL'];
        trace("openURL {$openURL}");
        $dt = new DateTime();
        $date = $dt->format('Y-m-d H:i:s');
        $window = array("id" => "", "win_id" => "", "section" => "", "state" => "", "file" => $openURL, "handler" => "/usr/bin/nohup /usr/bin/dwb", "userid" => "", "date" => $date);
        createNewWindow($db, $window);
    }
    // TODO: chef if query redundant?
    if (array_key_exists('closeAll', $_REQUEST)) {
        $close = $_REQUEST['closeAll'];
        trace("close all windows {$close}");
        closeAll();
    }
}
// processRequests
processRequests($db);
if ($unittest[__FILE__]) {
    // Experimental: Get function call from startx.
    parse_str(implode('&', array_slice($argv, 1)), $_GET);
    if (isset($_GET) && count($_GET) > 0) {
        foreach ($_GET as $key => $value) {
            // Only defined actions allowed.
            if ($key == "doLogout") {
                doLogout($value);
            }
        }
    } else {
        // Run unit test.
        echo "<p>Running unit test</p>";
        trace("Running unit test for " . __FILE__);
        trace("Finished unit test");