|
From: Jon O. <jon...@us...> - 2008-07-10 22:54:49
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18528 Modified Files: functions_comment.php Log Message: moving PORTAL_BACKEND from Core Index: functions_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_comment.php,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** functions_comment.php 1 Jul 2008 21:50:32 -0000 1.29 --- functions_comment.php 10 Jul 2008 22:54:46 -0000 1.30 *************** *** 129,155 **** global $db, $pafiledb_cache; ! if ( $pafiledb_cache->exists( 'ranks' ) ) ! { ! $ranks = $pafiledb_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 ); ! $pafiledb_cache->put( 'ranks', $ranks ); } } --- 129,158 ---- global $db, $pafiledb_cache; ! if (PORTAL_BACKEND != 'internal') { ! if ( $pafiledb_cache->exists( 'ranks' ) ) { ! $ranks = $pafiledb_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 ); ! $pafiledb_cache->put( 'ranks', $ranks ); ! } } } |