escape(sanitizeData(trim($_REQUEST['new_status']),'xss_clean')) : ''; if($update_status=='Update' && $new_status!="") { if($check_approve_profile_status->setting_status=='Y') { // if Profile approve status is Y then Profile Automatically Approved. $wpdb->query("UPDATE $dsp_user_profiles SET my_status= '$new_status' WHERE user_id = $current_user->ID"); $status_approval_message=language_code('DSP_UPDATE_STATUS_MESSAGE'); dsp_add_news_feed($current_user->ID,'status'); dsp_add_notification($current_user->ID,0,'status'); } else { $wpdb->query("UPDATE $dsp_user_profiles SET my_status= '$new_status' ,status_id=0 WHERE user_id = $current_user->ID"); $status_approval_message=language_code('DSP_STATUS_UPDATE_IN_HOURS_MSG'); } } ///////////////////////////end status update/////////////////////// if(isset($_REQUEST['Action']) && $_REQUEST['Action'] == 'update') { $stealth_mode_id=isset($_REQUEST['smid']) ? $_REQUEST['smid'] : ''; $smode=isset($_REQUEST['smode']) ? $_REQUEST['smode'] : ''; if($smode == 'Y') { $wpdb->query("UPDATE $dsp_user_profiles SET stealth_mode= 'N' WHERE user_id = $stealth_mode_id"); }else { $wpdb->query("UPDATE $dsp_user_profiles SET stealth_mode= 'Y' WHERE user_id = $stealth_mode_id"); } } $exist_profile_details = $wpdb->get_row("SELECT * FROM $dsp_user_profiles WHERE user_id = '$current_user->ID'"); $profile_user_id=$exist_profile_details->user_id; $count_online_member=$wpdb->get_var("SELECT COUNT(distinct oln.user_id) FROM $tbl_name oln INNER JOIN $dsp_user_profiles usr ON ( usr.user_id = oln.user_id ) WHERE oln.status = 'Y' AND usr.country_id !=0 AND usr.stealth_mode = 'N'"); ?>