Ejemplo n.º 1
0
            unset($rss_item);
        }
    }
    $rss .= $rss_end;
    // debugging
    #pr($rss);
    #$db_connector = $environment->getDBConnector();
    #$sql_query_array = $db_connector->getQueryArray();
    #pr($sql_query_array);
    #exit();
    // Wir werden eine XML Datei ausgeben
    header('Content-type: application/rss+xml; charset=UTF-8');
    echo $rss;
    # logging
    if (!empty($_GET['hid'])) {
        $l_current_user_item = $hash_manager->getUserByRSSHash($_GET['hid']);
        if (!empty($l_current_user_item)) {
            $environment->setCurrentUserItem($l_current_user_item);
        }
    }
    include_once 'include/inc_log.php';
    exit;
} else {
    chdir('..');
    include_once 'etc/cs_constants.php';
    include_once 'etc/cs_config.php';
    include_once 'classes/cs_environment.php';
    $environment = new cs_environment();
    $translator = $environment->getTranslationObject();
    die($translator->getMessage('RSS_NO_CONTEXT'));
}
Ejemplo n.º 2
0
        if (!$authentication->check($session->getValue('user_id'), $session->getValue('auth_source')) and $environment->getCurrentFunction() != 'logout') {
            $params = array();
            $params['environment'] = $environment;
            $params['with_modifying_actions'] = true;
            $errorbox_left = $class_factory->getClass(ERRORBOX_VIEW, $params);
            unset($params);
            $error_array = $authentication->getErrorArray();
            if (!empty($error_array)) {
                $error_string = implode('<br />', $error_array);
                $errorbox->setText($error_string);
            } else {
                $errorbox->setText($translator->getMessage('COMMON_ERROR'));
            }
        }
        $current_user = $authentication->getUserItem();
        $environment->setCurrentUserItem($current_user);
    } else {
        // there is no user id in the session information,
        // so delete session and just turn to the beginning of the process
        // a new unknown user comes to a commsy page ...
        $session_manager->delete($SID, true);
        $session->reset();
        // so session will not saved at redirect
        $url = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'];
        if (mb_stristr($url, '&SID=')) {
            $url = mb_substr($url, 0, mb_strpos($url, '&SID='));
        }
        redirect_with_url($url);
    }
}
/*********** javascript check *************/