|
From: Jon O. <jon...@us...> - 2008-07-10 22:54:31
|
Update of /cvsroot/mxbb/mx_news/mx_news/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18514 Modified Files: functions_comment.php Log Message: moving PORTAL_BACKEND from Core Index: functions_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/includes/functions_comment.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** functions_comment.php 1 Jul 2008 21:49:56 -0000 1.6 --- functions_comment.php 10 Jul 2008 22:54:28 -0000 1.7 *************** *** 119,145 **** global $db, $mx_news_cache; ! if ( $mx_news_cache->exists( 'ranks' ) ) ! { ! $ranks = $mx_news_cache->get( 'ranks' ); ! } ! else { ! $sql = "SELECT * ! FROM " . RANKS_TABLE . " ! ORDER BY rank_special, rank_min"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Could not obtain ranks information.", '', __LINE__, __FILE__, $sql ); } ! ! $ranks = array(); ! while ( $row = $db->sql_fetchrow( $result ) ) { ! $ranks[] = $row; ! } ! $db->sql_freeresult( $result ); ! $mx_news_cache->put( 'ranks', $ranks ); } } --- 119,148 ---- global $db, $mx_news_cache; ! if (PORTAL_BACKEND != 'internal') { ! if ( $mx_news_cache->exists( 'ranks' ) ) { ! $ranks = $mx_news_cache->get( 'ranks' ); } ! else { ! $sql = "SELECT * ! FROM " . RANKS_TABLE . " ! ORDER BY rank_special, rank_min"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not obtain ranks information.", '', __LINE__, __FILE__, $sql ); ! } ! ! $ranks = array(); ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $ranks[] = $row; ! } ! ! $db->sql_freeresult( $result ); ! $mx_news_cache->put( 'ranks', $ranks ); ! } } } |