|
From: Jon O. <jon...@us...> - 2008-07-10 22:53:31
|
Update of /cvsroot/mxbb/mx_bugsbt/bugsbt/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18056 Modified Files: functions_comment.php Log Message: moving PORTAL_BACKEND from Core Index: functions_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/includes/functions_comment.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** functions_comment.php 8 Jul 2008 22:07:05 -0000 1.7 --- functions_comment.php 10 Jul 2008 22:53:28 -0000 1.8 *************** *** 175,201 **** global $db, $mx_bugsbt_cache; ! if ( $mx_bugsbt_cache->exists( 'ranks' ) ) ! { ! $ranks = $mx_bugsbt_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_bugsbt_cache->put( 'ranks', $ranks ); } } --- 175,204 ---- global $db, $mx_bugsbt_cache; ! if (PORTAL_BACKEND != 'internal') { ! if ( $mx_bugsbt_cache->exists( 'ranks' ) ) { ! $ranks = $mx_bugsbt_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_bugsbt_cache->put( 'ranks', $ranks ); ! } } } |