[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 define( 'BB_IS_ADMIN', true ); 3 4 require_once ('../bb-load.php'); 5 6 bb_ssl_redirect(); 7 8 bb_auth(); 9 10 if ( bb_get_option( 'bb_db_version' ) > bb_get_option_from_db( 'bb_db_version' ) ) { 11 bb_safe_redirect( 'upgrade.php' ); 12 die(); 13 } 14 15 require_once ( BB_PATH . 'bb-admin/includes/functions.bb-admin.php' ); 16 17 $bb_admin_page = bb_find_filename( $_SERVER['PHP_SELF'] ); 18 19 $_check_callback = false; 20 if ( $bb_admin_page == 'admin-base.php' ) { 21 $bb_admin_page = (string) @$_GET['plugin']; 22 $_check_callback = true; 23 } 24 25 wp_enqueue_script( 'common' ); 26 27 bb_user_settings(); 28 if ( isset( $_GET['foldmenu'] ) ) { 29 if ( $_GET['foldmenu'] ) { 30 bb_update_user_setting( 'fm', 'f' ); 31 } else { 32 bb_delete_user_setting( 'fm' ); 33 } 34 bb_safe_redirect( remove_query_arg( 'foldmenu', stripslashes( $_SERVER['REQUEST_URI'] ) ) ); 35 die; 36 } 37 bb_admin_menu_generator(); 38 bb_get_current_admin_menu(); 39 40 if ( $_check_callback ) { 41 if ( empty( $bb_registered_plugin_callbacks ) || empty( $bb_admin_page ) || !in_array( $bb_admin_page, $bb_registered_plugin_callbacks ) ) { 42 unset( $bb_admin_page ); 43 } 44 } 45 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Dec 7 01:01:35 2017 | Cross-referenced by PHPXref 0.7.1 |