Example #1
0
}
// Initialise the current user.
$txp_user = null;
// i18n.
$textarray = txpinterface == 'css' ? array() : load_lang(LANG);
// Tidy up the site.
janitor();
// Here come the plugins.
if ($use_plugins) {
    load_plugins();
}
// This step deprecated as of 1.0 - really only useful with old-style section
// placeholders, which passed $s='section_name'.
$s = empty($s) ? '' : $s;
$pretext = !isset($pretext) ? array() : $pretext;
$pretext = array_merge($pretext, pretext($s, $prefs));
callback_event('pretext_end');
extract($pretext);
// Now that everything is initialised, we can crank down error reporting.
set_error_level($production_status);
if (!empty($feed) && in_array($feed, array('atom', 'rss'), true)) {
    include txpath . "/publish/{$feed}.php";
    echo $feed();
    trace_log(TEXTPATTERN_TRACE_DISPLAY);
    exit;
}
if (gps('parentid') && gps('submit')) {
    saveComment();
} elseif (gps('parentid') and $comments_mode == 1) {
    // Popup comments?
    header("Content-type: text/html; charset=utf-8");
Example #2
0
$microstart = getmicrotime();
// check the size of the url request
bombShelter();
// get all prefs as an array
$prefs = get_prefs();
$prefs['path_from_root'] = !$prefs['path_from_root'] ? '/' : $prefs['path_from_root'];
// add prefs to globals
extract($prefs);
if ($txpac['use_plugins']) {
    // get plugins, write to a temp file, include, then destroy
    plugins();
}
define("LANG", $language);
$textarray = load_lang('en-gb');
$s = empty($s) ? '' : $s;
$pretext = pretext($s, $prefs);
extract($pretext);
if (gps('parentid') && gps('submit')) {
    saveComment();
} elseif (gps('parentid') and $comments_mode == 1) {
    // popup comments?
    exit(popComments(gps('parentid')));
}
if (!isset($nolog)) {
    if ($logging == 'all') {
        logit();
    } elseif ($logging == 'refer') {
        logit('refer');
    }
}
/*