filepath = admin_url() . 'admin.php?page=' . $_GET['page']; $this->price_url = $bpxs->home_url . 'prices.php'; // only process if $_POST vars are available if( ! empty( $_POST ) ) $this->processor(); } /** * Process any $_POST variables * @since 1.0 */ function processor() { global $bpxs; if ( isset( $_POST['update_bpxs'] ) ) { check_admin_referer( 'bpxs_settings' ); $error = false; $message = ''; if( $_POST['newsletter'] == true ) { if( empty( $_POST['mcapi_list_id'] ) || empty( $_POST['mcapi_key'] ) ) { $message .= __( 'You need to enter a Mailchimp List ID and an API Key.', 'bpxs' ); $error = true; } if( ! empty( $_POST['email_recipient'] ) ) { if( ! is_email( $_POST['email_recipient'] ) ) { $message .= __( 'You need to enter a valid email address.', 'bpxs' ); $error = true; } } } if( $_POST['date_of_birth'] == true ) { if( empty( $_POST['dob_field'] ) ) { $message .= __( 'You need to specify a date of birth profile field.', 'bpxs' ); $error = true; } if( empty( $_POST['dob_age'] ) || $_POST['dob_age'] == '----' ) { $message .= __( 'You need to specify an age.', 'bpxs' ); $error = true; } } // proceed if there is no error if( ! $error ) { if( $_POST['page_options'] ) $options = explode( ',', stripslashes( $_POST['page_options'] ) ); if( $options ) { foreach( $options as $option ) { $option = trim( $option ); $value = trim( $_POST[$option] ); // make sure all boolean values get saved as such if( in_array( $option, array( 'tos', 'newsletter', 'email_confirmation', 'u_availability', 'psw_strength', 'date_of_birth', 'email_check' ) ) ) $bpxs->options->{$option} = (bool)$value; else $bpxs->options->{$option} = $value; } } // Save options update_option( 'bpxs_options', $bpxs->options ); BPXS_Admin_Loader::show_message( __( 'Update Successfully', 'bpxs' ) ); } // or show any errors else { BPXS_Admin_Loader::show_error( $message ); } } do_action( 'bpxs_update_options_page' ); } /** * Render the page content * @since 1.0 */ function controller() { // get list of tabs $tabs = $this->tabs_order(); ?>
$tab_name ) { echo "\n\t
\n"; // Looks for the internal class function, otherwise enable a hook for plugins if( method_exists( $this, "tab_$tab_key" ) ) call_user_func( array( &$this , "tab_$tab_key" ) ); else do_action( 'bpxs_tab_content_' . $tab_key ); echo "\n\t
"; } ?>
get_results( $wpdb->prepare( "SELECT id, name FROM {$bp->profile->table_name_fields} WHERE parent_id = 0" ) ); $field_ids = array_merge( array(''), (array)$field_ids ); ?>


()

()

()

()

()

()

()

()

()

()

()

()

()

()

()

()
()
()
= $api_time_seconds ) { if( ! class_exists( 'WP_Http' ) ) include_once( ABSPATH . WPINC. '/class-http.php' ); $request = new WP_Http; $http = $request->request( $this->price_url ); if( is_array( $http ) ) { $result = unserialize( $http['body'] ); $shabu_array = array( 'time' => date( 'Y-m-d H:i:s' ), 'info' => $result ); update_option( 'shabu_software', $shabu_array ); } else $http_error = true; } else $result = $shabu['info']; if( ! $http_error ) { ?>

register on ShabuShabu.eu.', 'jobs' ), $jb->home_url . 'membership-options/', $jb->home_url ); ?>

$price ) { $alt = $this->alternate( 'odd', 'even' ); ?>
EUR

alternate( 'odd', 'even' ); ?>

alternate( 'odd', 'even' ); ?>
'. __( 'Help', 'jobs' ) .''; echo '

'. __( 'Information could not be retrieved.', 'jobs' ) .'

'; } } /** * Content of the Donate tab * @since 1.0 */ function tab_donate() { ?>


ShabuShabu Webdesign Team