Ejemplo n.º 1
0
<?php

// saving objects to session to pick up next time
$_SESSION['oUser'] = $oUser;
// saving global 'sticky' attributes values to session
setStickyAttributes($ogFuseaction->getName(), $ogFuseaction->getStickyAttributes());
// saving 'sticky' attributes values to session
setStickyAttributes($oFuseaction->getName(), $oFuseaction->getStickyAttributes());
// assigning variables before display
_assign_by_ref("application", $application);
_assign_by_ref("fusebox", $fusebox);
_assign_by_ref("attributes", $attributes);
// relocating if exit fuseaction exists and no error or warning to show... messages appended to XFA URL
if (_gotxfa() && !_gotErrors() && !_gotWarnings()) {
    // appending messages to URL to allow processing messages on 'landing' page
    $xfa = _getxfa();
    // saving XFAs to session to pick up next time
    $_SESSION['globalXFA'] = $XFA;
    if (_gotMessages()) {
        $tmparrMsgs = _getMessages();
        $tmparrMsgs = array_keys($tmparrMsgs);
        $xfa .= "&messages=" . join(",", $tmparrMsgs);
    }
    // moving to exit
    Location($xfa, 0);
    // 0 means no PHPSESSID
} else {
    // saving XFAs to session to pick up next time
    $_SESSION['globalXFA'] = $XFA;
}
Ejemplo n.º 2
0
function _debug($file, $mode, $caption = "")
{
    global $application;
    global $attributes;
    global $oDB;
    global $oUser;
    global $XFA;
    global $oSettingsManager;
    global $oFuseaction;
    ob_start();
    echo $caption . ": " . date("m/d/Y H:i:s") . "\n";
    echo "Executed in " . $oFuseaction->getLifeTime() . " sec\n\n";
    echo "Attributes: ";
    print_r($attributes);
    echo "Settings: ";
    print_r($oSettingsManager->getSettings());
    echo "Session: ";
    print_r($_SESSION);
    echo "User: "******"Queries: ";
    print_r($oDB->getDump());
    echo "Errors: ";
    print_r(_getErrors());
    echo "Warnings: ";
    print_r(_getWarnings());
    echo "Messages: ";
    print_r(_getMessages());
    echo "XFA: ";
    print_r($XFA);
    $debug = ob_get_contents();
    ob_end_clean();
    if ($f = fopen($file, $mode)) {
        fwrite($f, $debug);
        fclose($f);
    }
    return true;
}
Ejemplo n.º 3
0
?>
</p>
<table class="msgTable">
<?php 
$next_sub = _getNextSub();
$prev_sub = _getPrevSub();
$pointer = _getPointer($_SESSION['sub'], $_SESSION['id']);
$passed_pointer = isset($req['pointer']) ? $req['pointer'] : null;
if (isset($req['newscan'])) {
    $sth_msgs = _getNewMessages($_SESSION['sub'], $pointer);
    list($new_pointer, $low_pointer) = _loopMsgs($sth_msgs, $pointer, $anonymous);
} elseif ($order and $order == 'desc') {
    $sth_msgs = _getMessages($_SESSION['sub'], true, $passed_pointer);
    list($new_pointer, $low_pointer) = _loopMsgs($sth_msgs, $pointer, $anonymous);
} else {
    $sth_msgs = _getMessages($_SESSION['sub'], false, $passed_pointer);
    list($new_pointer, $low_pointer) = _loopMsgs($sth_msgs, $pointer, $anonymous);
}
if ($new_pointer > $pointer) {
    _setPointer($_SESSION['sub'], $_SESSION['id'], $new_pointer);
}
if (!$low_pointer) {
    $low_pointer = $new_pointer;
}
list($more_msgs, $next_sub_with_msgs) = _nextSubWithMsgs($_SESSION['id']);
?>
</table>
<br />
<?php 
if (_areMoreMsgs($_SESSION['sub'], $low_pointer, $order)) {
    if (isset($req['newscan'])) {