コード例 #1
0
/**
 * Delete a variable from the session.
 * @param string $name the name of the var to delete
 * @return void
 */
function sqsession_unregister($name)
{
    sqsession_is_active();
    unset($_SESSION[$name]);
    session_unregister("{$name}");
}
コード例 #2
0
function sqsession_unregister($name)
{
    sqsession_is_active();
    if (!check_php_version(4, 1)) {
        global $HTTP_SESSION_VARS;
        unset($HTTP_SESSION_VARS[$name]);
    } else {
        unset($_SESSION[$name]);
    }
    session_unregister("{$name}");
}
コード例 #3
0
ファイル: global.php プロジェクト: jprice/EHCP
/**
 * Delete a variable from the session.
 * @param string $name the name of the var to delete
 * @return void
 */
function sqsession_unregister($name)
{
    sqsession_is_active();
    unset($_SESSION[$name]);
    // starts throwing warnings in PHP 5.3.0 and is
    // removed in PHP 6 and is redundant anyway
    //session_unregister($name);
}
コード例 #4
0
 * After initialisation of the mailbox array it's time to handle the FORM data
 */
$sError = handleMessageListForm($imapConnection, $aMailbox);
if ($sError) {
    $note = $sError;
}
/*
 * If we try to forward messages as attachment we have to open a new window
 * in case of compose in new window or redirect to compose.php
 */
if (isset($aMailbox['FORWARD_SESSION'])) {
    if ($compose_new_win) {
        // write the session in order to make sure that the compose window has
        // access to the composemessages array which is stored in the session
        session_write_close();
        sqsession_is_active();
        $comp_uri = SM_PATH . 'src/compose.php?mailbox=' . urlencode($mailbox) . '&session=' . $aMailbox['FORWARD_SESSION'];
        displayPageHeader($color, $mailbox, "comp_in_new('{$comp_uri}');", false);
    } else {
        // save mailboxstate
        sqsession_register($aMailbox, 'aLastSelectedMailbox');
        session_write_close();
        // we have to redirect to the compose page
        $location = SM_PATH . 'src/compose.php?mailbox=' . urlencode($mailbox) . '&session=' . $aMailbox['FORWARD_SESSION'];
        header("Location: {$location}");
        exit;
    }
} else {
    displayPageHeader($color, $mailbox);
}
do_hook('right_main_after_header');
コード例 #5
0
ファイル: functions.php プロジェクト: jprice/EHCP
function compatibility_sqsession_is_active()
{
    sqsession_is_active();
}