include_once SPAPI . 'sp-api-filters.php'; include_once SPAPI . 'sp-api-auths.php'; include_once SPAPI . 'sp-api-users.php'; include_once SPAPI . 'sp-api-globals.php'; include_once SPAPI . 'sp-api-class-user.php'; include_once SPAPI . 'sp-api-common-display.php'; include_once SPAPI . 'sp-api-form-support.php'; include_once SPAPI . 'sp-api-plugins.php'; include_once SPAPI . 'sp-api-themes.php'; include_once SPAPI . 'sp-api-profile.php'; include_once SPAPI . 'sp-api-class-post.php'; # Load core support code include_once SPBOOT . 'site/sp-site-cron.php'; include_once SPBOOT . 'site/sp-ahah-handler.php'; # Set th system status as soon as possible and init the globals sp_get_system_status(); sp_initialize_globals(); # Load template functions file if exsists if ($spStatus == 'ok') { # load theme spFunctions.php if it exists if (file_exists(SPTEMPLATES . 'spFunctions.php')) { include_once SPTEMPLATES . 'spFunctions.php'; } # if child theme, load the parent spFunctions.php if it exists $curTheme = $spGlobals['theme']; if (!empty($curTheme['parent']) && file_exists(SPTHEMEBASEDIR . $curTheme['parent'] . '/templates/spFunctions.php')) { include_once SPTHEMEBASEDIR . $curTheme['parent'] . '/templates/spFunctions.php'; } do_action('sph_theme_functions_loaded'); } # Load active plugins
<?php /* Simple:Press Forum RSS Feeds $LastChangedDate: 2015-05-16 12:11:22 -0700 (Sat, 16 May 2015) $ $Rev: 12892 $ */ if (preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('Access denied - you cannot directly call this file'); } global $spVars, $spThisUser, $spPostList, $spThisPostList; # check installed version is correct if (sp_get_system_status() != 'ok') { $out .= '<img style="style="vertical-align:bottom;border:none;"" src="' . sp_paint_file_icon(SPTHEMEICONSURL, 'sp_Information.png') . '" alt="" />' . "\n"; $out .= ' ' . sp_text('The forum is temporarily unavailable while being upgraded to a new version'); echo $out; } # are we doing feed keys? If so reset user to that f the passed feedkey - else leave as guest $rssopt = sp_get_option('sfrss'); if (isset($rssopt['sfrssfeedkey']) && $rssopt['sfrssfeedkey']) { # get the user requesting feed $feedkey = $spVars['feedkey']; $userid = spdb_table(SFMEMBERS, "feedkey='{$feedkey}'", 'user_id'); $spThisUser = sp_get_user($userid, true); } # = Support Functions =========================== function sp_rss_filter($text) { echo convert_chars(ent2ncr($text)); }