|
From: Florin C B. <ory...@us...> - 2013-04-16 21:03:59
|
Update of /cvsroot/mxbb/mx_music/music_box/modules In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv25461/modules Modified Files: music_rss.php Log Message: Index: music_rss.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_rss.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** music_rss.php 7 Sep 2008 18:06:50 -0000 1.5 --- music_rss.php 16 Apr 2013 21:03:56 -0000 1.6 *************** *** 15,56 **** } - // ------- - // Begin Page specific functions - // - function make_xml_compatible($text, $bbcode_uid = '', $use_bbcode = 0) - { - global $board_config, $base_url; - - if($use_bbcode) - { - if($bbcode_uid != '') - { - $text = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($text, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $text); - } - else - { - $text = preg_replace('/\:[0-9a-z\:]+\]/si', ']', $text); - } - $text = make_clickable($text); - if($board_config['allow_smilies']) - { - $text = smilies_pass($text); - $text = str_replace("./".$board_config['smilies_path'], $base_url.$board_config['smilies_path'], $text); - } - } - $text = nl2br($text); - - $text = str_replace('£', '&#163;', $text); - $text = str_replace('©', '(c)', $text); - - $text = htmlspecialchars($text); - - return $text; - } - // - // End page specific functions - // ------ - - // XML and nocaching headers header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0'); --- 15,18 ---- *************** *** 109,113 **** // BEGIN Recent Photo // Start check permissions ! $sql_allowed_cat=""; $admin_mode = ($userdata['user_level'] <> ADMIN) ? false : true; --- 71,75 ---- // BEGIN Recent Photo // Start check permissions ! $sql_allowed_cat = ""; $admin_mode = ($userdata['user_level'] <> ADMIN) ? false : true; *************** *** 175,179 **** $NotErrorFlag = false; $sql_limit_time = ""; ! if (!$no_limit and isset($HTTP_SERVER_VARS['HTTP_IF_MODIFIED_SINCE'])) { $NotErrorFlag = true; $NotModifiedSince = strtotime($HTTP_SERVER_VARS['HTTP_IF_MODIFIED_SINCE']); --- 137,142 ---- $NotErrorFlag = false; $sql_limit_time = ""; ! if (!$no_limit and isset($HTTP_SERVER_VARS['HTTP_IF_MODIFIED_SINCE'])) ! { $NotErrorFlag = true; $NotModifiedSince = strtotime($HTTP_SERVER_VARS['HTTP_IF_MODIFIED_SINCE']); *************** *** 205,209 **** $LastPostTime = 0; ! if ( count($topics) == 0 ) { die("No songs found"); --- 168,172 ---- $LastPostTime = 0; ! if (count($topics) == 0) { die("No songs found"); |