|
From: Jon O. <jon...@us...> - 2006-06-30 12:42:47
|
Update of /cvsroot/mxbb/mx_sitestats/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28746/modules/mx_sitestats/includes Modified Files: common.php Log Message: fix for images Index: common.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/includes/common.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** common.php 29 Jun 2006 19:08:04 -0000 1.7 --- common.php 30 Jun 2006 12:42:41 -0000 1.8 *************** *** 43,67 **** define( 'SITESTATS_REFERER_TABLE', $mx_table_prefix . 'sitestats_referer' ); - // - // Load language files. - // - if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) - { - include_once( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); - } - else - { - include_once( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); - } - - if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) - { - include_once( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); - } - else - { - include_once( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); - } - // ================================================================================ // [ SITESTATS CONFIG ] --- 43,46 ---- *************** *** 112,115 **** --- 91,110 ---- $sitestats_config['referers_show_disabled'] = ( $sitestats_config['referers_show_disabled'] == 1 ) ? true : false; } + + // ------------------------------------------------------------------------- + // Footer Copyrights + // ------------------------------------------------------------------------- + if (is_object($mx_page)) + { + // ------------------------------------------------------------------------- + // Extend User Style with module lang and images + // Usage: $mx_user->extend(LANG, IMAGES) + // Switches: + // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE + // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE + // ------------------------------------------------------------------------- + $mx_user->extend(MX_LANG_ALL, MX_IMAGES); + } + // ================================================================================ // [ COMMON CLASSES ] *************** *** 406,413 **** $vote_bar = $images['mx_vote_bar']; ! $template->assign_vars( array( 'LEFT_GRAPH_IMAGE' => $vote_left, ! 'RIGHT_GRAPH_IMAGE' => $vote_right, ! 'GRAPH_IMAGE' => $vote_bar ) ! ); } } //class sitestats_phpbb --- 401,409 ---- $vote_bar = $images['mx_vote_bar']; ! $template->assign_vars( array( ! 'LEFT_GRAPH_IMAGE' => $vote_left, ! 'RIGHT_GRAPH_IMAGE' => $vote_right, ! 'GRAPH_IMAGE' => $vote_bar ) ! ); } } //class sitestats_phpbb |