Changeset 1753
- Timestamp:
- 09/01/2009 06:40:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-admin.php
r1625 r1753 16 16 <?php 17 17 18 if ( isset( $_REQUEST['reinstall'] ) || !bp_forums_is_installed_correctly() )18 if ( isset( $_REQUEST['reinstall'] ) || !bp_forums_is_installed_correctly() ) 19 19 bp_forums_bbpress_install_wizard(); 20 20 else { ?> … … 31 31 32 32 switch( $_REQUEST['step'] ) { 33 case 'existing': 33 case 'existing': 34 34 if ( 1 == (int)$_REQUEST['doinstall'] ) { 35 if ( !bp_forums_configure_existing_install() ) 35 if ( !bp_forums_configure_existing_install() ) { 36 36 _e( 'The bb-config.php file was not found at that location, please try again.', 'buddypress' ); 37 } 37 } else { 38 ?> 39 <h3><?php _e( 'Forums were set up correctly using your existing bbPress install!') ?></h3> 40 <p><?php _e( 'BuddyPress will now use its internal copy of bbPress to run the forums on your site. If you wish, you can remove your old bbPress installation files, as long as you keep the bb-config.php file in the same location.' ) ?></p><?php 41 } 42 } else { 38 43 ?> 39 44 <form action="" method="post"> … … 47 52 </form> 48 53 <?php 54 } 49 55 break; 50 56 51 57 case 'new': 52 58 if ( 1 == (int)$_REQUEST['doinstall'] ) { … … 89 95 check_admin_referer( 'bp_forums_existing_install_init' ); 90 96 97 /* Sanitize $_REQUEST['bbconfigloc'] */ 98 $_REQUEST['bbconfigloc'] = apply_filters( 'bp_forums_bbconfig_location', $_REQUEST['bbconfigloc'] ); 99 91 100 if ( false === strpos( $_REQUEST['bbconfigloc'], 'bb-config.php' ) ) { 92 101 if ( '/' != substr( $_REQUEST['bbconfigloc'], -1, 1 ) )
Note: See TracChangeset
for help on using the changeset viewer.