Update of /cvsroot/mxbb/mx_sitestats In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2225/modules/mx_sitestats Modified Files: adminstats.php collector.php db_install.php db_uninstall.php fastestusers.php monthlyposts.php monthlytopics.php monthlyusers.php mostintopics.php sitestaff.php topavatars.php topposters.php topposters_tiny.php topreferers.php topsmilies.php topstarters.php toptopics.php topwords.php usersranks.php Log Message: replaced all message_die with mx_message_die Index: topwords.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topwords.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** topwords.php 23 Oct 2005 18:52:36 -0000 1.2 --- topwords.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 55,59 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve words data", "", __LINE__, __FILE__, $sql ); } $words_data = $db->sql_fetchrowset( $result ); --- 55,59 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve words data", "", __LINE__, __FILE__, $sql ); } $words_data = $db->sql_fetchrowset( $result ); *************** *** 67,71 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve words data", "", __LINE__, __FILE__, $sql ); } $words_count = $db->sql_numrows( $result ); --- 67,71 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve words data", "", __LINE__, __FILE__, $sql ); } $words_count = $db->sql_numrows( $result ); Index: usersranks.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/usersranks.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** usersranks.php 23 Oct 2005 18:52:36 -0000 1.2 --- usersranks.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 56,60 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve ranks data", '', __LINE__, __FILE__, $sql ); } $ranks_count = $db->sql_numrows( $result ); --- 56,60 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve ranks data", '', __LINE__, __FILE__, $sql ); } $ranks_count = $db->sql_numrows( $result ); *************** *** 91,95 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } $user_data = $db->sql_fetchrowset( $result ); --- 91,95 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } $user_data = $db->sql_fetchrowset( $result ); Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/db_uninstall.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_uninstall.php 15 Oct 2005 22:18:27 -0000 1.1 --- db_uninstall.php 24 Oct 2005 20:19:01 -0000 1.2 *************** *** 46,50 **** if ( !defined( 'SITESTATS_COUNTER_TABLE' ) ) { ! message_die( GENERAL_ERROR, "Couldn't load file includes/common.$phpEx", "", __LINE__, __FILE__ ); } // SQL statements to drop module tables... --- 46,50 ---- if ( !defined( 'SITESTATS_COUNTER_TABLE' ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't load file includes/common.$phpEx", "", __LINE__, __FILE__ ); } // SQL statements to drop module tables... Index: topstarters.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topstarters.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** topstarters.php 23 Oct 2005 18:52:36 -0000 1.2 --- topstarters.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 59,63 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } $user_count = $db->sql_numrows( $result ); --- 59,63 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } $user_count = $db->sql_numrows( $result ); Index: topavatars.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topavatars.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** topavatars.php 23 Oct 2005 18:52:36 -0000 1.2 --- topavatars.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 58,62 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve users data", "", __LINE__, __FILE__, $sql ); } $user_count = $db->sql_numrows( $result ); --- 58,62 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve users data", "", __LINE__, __FILE__, $sql ); } $user_count = $db->sql_numrows( $result ); Index: collector.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/collector.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** collector.php 23 Oct 2005 18:52:36 -0000 1.2 --- collector.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 49,53 **** if ( $userdata['user_level'] == ADMIN ) { ! // message_die(GENERAL_ERROR, "Could not update SiteStats counter information for page: " . $sitestats_counter->page, // "", __LINE__, __FILE__, $sitestats_counter->sql); } --- 49,53 ---- if ( $userdata['user_level'] == ADMIN ) { ! // mx_message_die(GENERAL_ERROR, "Could not update SiteStats counter information for page: " . $sitestats_counter->page, // "", __LINE__, __FILE__, $sitestats_counter->sql); } *************** *** 62,66 **** if ( $userdata['user_level'] == ADMIN ) { ! // message_die(GENERAL_ERROR, "Couldn't insert new referer", "", __LINE__, __FILE__, $sql); } } --- 62,66 ---- if ( $userdata['user_level'] == ADMIN ) { ! // mx_message_die(GENERAL_ERROR, "Couldn't insert new referer", "", __LINE__, __FILE__, $sql); } } Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/db_install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_install.php 15 Oct 2005 22:18:27 -0000 1.1 --- db_install.php 24 Oct 2005 20:19:01 -0000 1.2 *************** *** 49,53 **** if ( !defined( 'SITESTATS_COUNTER_TABLE' ) ) { ! message_die( GENERAL_ERROR, "Couldn't load file includes/common.$phpEx", "", __LINE__, __FILE__ ); } // SQL statements to build required module tables... --- 49,53 ---- if ( !defined( 'SITESTATS_COUNTER_TABLE' ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't load file includes/common.$phpEx", "", __LINE__, __FILE__ ); } // SQL statements to build required module tables... Index: topsmilies.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topsmilies.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** topsmilies.php 23 Oct 2005 18:52:36 -0000 1.2 --- topsmilies.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 105,109 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve smilies data", '', __LINE__, __FILE__, $sql ); } --- 105,109 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve smilies data", '', __LINE__, __FILE__, $sql ); } *************** *** 120,124 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve smilies data", '', __LINE__, __FILE__, $sql ); } $smile_codes = $db->sql_fetchrowset( $result ); --- 120,124 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve smilies data", '', __LINE__, __FILE__, $sql ); } $smile_codes = $db->sql_fetchrowset( $result ); *************** *** 131,135 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve smilies data", '', __LINE__, __FILE__, $sql ); } if ( $smile_pref == 0 ) --- 131,135 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve smilies data", '', __LINE__, __FILE__, $sql ); } if ( $smile_pref == 0 ) Index: monthlytopics.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/monthlytopics.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** monthlytopics.php 23 Oct 2005 18:52:36 -0000 1.2 --- monthlytopics.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 58,62 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve topics data", '', __LINE__, __FILE__, $sql ); } $topics_count = $db->sql_numrows( $result ); --- 58,62 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve topics data", '', __LINE__, __FILE__, $sql ); } $topics_count = $db->sql_numrows( $result ); Index: topposters_tiny.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topposters_tiny.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** topposters_tiny.php 23 Oct 2005 18:52:36 -0000 1.2 --- topposters_tiny.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 57,61 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } --- 57,61 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } Index: fastestusers.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/fastestusers.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fastestusers.php 23 Oct 2005 18:52:36 -0000 1.2 --- fastestusers.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 62,66 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } $user_count = $db->sql_numrows( $result ); --- 62,66 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } $user_count = $db->sql_numrows( $result ); Index: topposters.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topposters.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** topposters.php 23 Oct 2005 18:52:36 -0000 1.2 --- topposters.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 58,62 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } --- 58,62 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } Index: sitestaff.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/sitestaff.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sitestaff.php 23 Oct 2005 18:52:36 -0000 1.2 --- sitestaff.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 59,63 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, "Couldn't query forums.", '', __LINE__, __FILE__, $sql ); } while ( $row = $db->sql_fetchrow( $result ) ) --- 59,63 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't query forums.", '', __LINE__, __FILE__, $sql ); } while ( $row = $db->sql_fetchrow( $result ) ) *************** *** 74,78 **** if ( !( $results = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't obtain user information.", '', __LINE__, __FILE__, $sql ); } --- 74,78 ---- if ( !( $results = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't obtain user information.", '', __LINE__, __FILE__, $sql ); } *************** *** 129,133 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Error getting user last post time", '', __LINE__, __FILE__, $sql ); } $row = $db->sql_fetchrow( $result ); --- 129,133 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Error getting user last post time", '', __LINE__, __FILE__, $sql ); } $row = $db->sql_fetchrow( $result ); *************** *** 149,153 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't obtain ranks information.", '', __LINE__, __FILE__, $sql ); } $ranksrow = array(); --- 149,153 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't obtain ranks information.", '', __LINE__, __FILE__, $sql ); } $ranksrow = array(); Index: monthlyposts.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/monthlyposts.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** monthlyposts.php 23 Oct 2005 18:52:36 -0000 1.2 --- monthlyposts.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 58,62 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve posts data", '', __LINE__, __FILE__, $sql ); } $posts_count = $db->sql_numrows( $result ); --- 58,62 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve posts data", '', __LINE__, __FILE__, $sql ); } $posts_count = $db->sql_numrows( $result ); Index: adminstats.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/adminstats.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** adminstats.php 23 Oct 2005 18:52:36 -0000 1.2 --- adminstats.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 244,248 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } $row = $db->sql_fetchrow( $result ); --- 244,248 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } $row = $db->sql_fetchrow( $result ); *************** *** 255,259 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve configuration data", '', __LINE__, __FILE__, $sql ); } $row = $db->sql_fetchrowset( $result ); --- 255,259 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve configuration data", '', __LINE__, __FILE__, $sql ); } $row = $db->sql_fetchrowset( $result ); Index: topreferers.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topreferers.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** topreferers.php 23 Oct 2005 18:52:36 -0000 1.2 --- topreferers.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 51,55 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve HTTP Referers data", '', __LINE__, __FILE__, $sql ); } $numrows = $db->sql_numrows( $result ); --- 51,55 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve HTTP Referers data", '', __LINE__, __FILE__, $sql ); } $numrows = $db->sql_numrows( $result ); Index: mostintopics.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/mostintopics.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mostintopics.php 23 Oct 2005 18:52:36 -0000 1.2 --- mostintopics.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 62,66 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve topic data", '', __LINE__, __FILE__, $sql ); } $topic_data = $db->sql_fetchrowset( $result ); --- 62,66 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve topic data", '', __LINE__, __FILE__, $sql ); } $topic_data = $db->sql_fetchrowset( $result ); *************** *** 86,90 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve topic data", '', __LINE__, __FILE__, $sql ); } $least_first_place = $topiccount - count( $topic_data ) + 1; --- 86,90 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve topic data", '', __LINE__, __FILE__, $sql ); } $least_first_place = $topiccount - count( $topic_data ) + 1; Index: toptopics.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/toptopics.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** toptopics.php 23 Oct 2005 18:52:36 -0000 1.2 --- toptopics.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 62,66 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t retrieve topic data', '', __LINE__, __FILE__, $sql ); } $topic_count = $db->sql_numrows( $result ); --- 62,66 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t retrieve topic data', '', __LINE__, __FILE__, $sql ); } $topic_count = $db->sql_numrows( $result ); *************** *** 87,91 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t retrieve topic data', '', __LINE__, __FILE__, $sql ); } $topic_count = $db->sql_numrows( $result ); --- 87,91 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t retrieve topic data', '', __LINE__, __FILE__, $sql ); } $topic_count = $db->sql_numrows( $result ); Index: monthlyusers.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/monthlyusers.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** monthlyusers.php 23 Oct 2005 18:52:36 -0000 1.2 --- monthlyusers.php 24 Oct 2005 20:19:01 -0000 1.3 *************** *** 59,63 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } $users_count = $db->sql_numrows( $result ); --- 59,63 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't retrieve users data", '', __LINE__, __FILE__, $sql ); } $users_count = $db->sql_numrows( $result ); |