Plugin Directory

Changeset 2495860


Ignore:
Timestamp:
03/15/2021 11:42:44 AM (5 years ago)
Author:
wpmwa
Message:

mwa zoom meet up update 2.5

Location:
mwa-zoom-meetup/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • mwa-zoom-meetup/trunk/admin/inc/handler/deletemeeting.php

    r2486824 r2495860  
    2323            $result_host        = $wpdb->get_row( $wpdb->prepare( "SELECT `meetingid` FROM `$tbl_host` WHERE `id`=%d",$meet_did ), OBJECT );
    2424            $meetingid          = $result_host->meetingid;
    25            
    26             $client = new GuzzleHttp\Client(['base_uri' => 'https://api.zoom.us']);     
     25
     26            try{
     27                $client = new GuzzleHttp\Client(['base_uri' => 'https://api.zoom.us']);     
    2728             
    28             $response = $client->request('DELETE', '/v2/meetings/'.$meetingid, [
    29                 "headers" => [
    30                     "Authorization" => "Bearer $only_accessToken"
    31                 ]
    32             ]);
    33             $json = json_decode($response, TRUE);
    34             if($json['code']==124){
    35                 /*Get Token ID for auth id*/
     29                $response = $client->request('DELETE', '/v2/meetings/'.$meetingid, [
     30                    "headers" => [
     31                        "Authorization" => "Bearer $only_accessToken"
     32                    ]
     33                ]);
     34                $wpdb->query( $wpdb->prepare( "DELETE FROM `$tbl_host` WHERE `id` = %d",$meet_did ) );
     35                $send_json_array_meetdel = array( "success_meet_del" => 1 );   
     36                wp_send_json($send_json_array_meetdel);
     37                //$json = json_decode($response, TRUE);     
     38            } catch(Exception $e) { 
    3639                $tbl_tok    = $wpdb->prefix."mwa_zoom_token";
    3740                $result_tok = $wpdb->get_row( "SELECT `authid` FROM `$tbl_tok`", OBJECT );
     
    4851                $send_json_array_meetdel = array( "success_meet_del" => 0 ,"failed_url" => $home_url);                 
    4952                wp_send_json($send_json_array_meetdel);
    50             }else{
    51                 $wpdb->query( $wpdb->prepare( "DELETE FROM `$tbl_host` WHERE `id` = %d",$meet_did ) );
    52                 $send_json_array_meetdel = array( "success_meet_del" => 1 );   
    53                 wp_send_json($send_json_array_meetdel);                 
    54         }// else close
     53            }           
     54           
    5555    }// else close 
    5656die();
  • mwa-zoom-meetup/trunk/admin/inc/handler/deluserformail.php

    r2488303 r2495860  
    1313    }
    1414    else {
    15             if(isset($_POST['delid'])){
    16                 $delid              = isset($_POST['delid']) ? sanitize_text_field($_POST['delid']) : "";   
    17                 $multi_delid_comp   = isset($_POST['multi_delid']) ? sanitize_text_field($_POST['multi_delid']) : "";   
     15            $table_name   = $wpdb->prefix . "mwa_zoom_email_users";
     16            $del_type = isset($_POST['del_type']) ? sanitize_text_field($_POST['del_type']) : "";
    1817
    19                 $table_name   = $wpdb->prefix . "mwa_zoom_email_users";                 
    20                 $res = $wpdb->delete($table_name, array('id' => $delid ), array('%d'));
     18            if($del_type=="multi"){
     19                 $multi_delid_comp      = isset($_POST['multi_delid']) ? sanitize_text_field($_POST['multi_delid']) : "";
     20               
     21                $remove_stripslash_str  = stripslashes($multi_delid_comp);
     22                $remove_other_char_str  = str_replace( array('[',']','"') , ''  , $remove_stripslash_str );
     23                $final_multi_delid_arr  = explode (",", $remove_other_char_str);           
    2124
    22                 if($res){
    23                     $send_json_array_del = array( "success_msg_del" => 1 );
    24                     wp_send_json($send_json_array_del);
    25                 }else{
    26                     $send_json_array_del = array( "success_msg_del" => 0 );
    27                     wp_send_json($send_json_array_del);
     25                foreach($final_multi_delid_arr as $multi_delid){
     26                    if( $multi_delid != "on" ){                     
     27                        $res_multi =  $wpdb->delete($table_name, array('id' => $multi_delid ), array('%d'));
     28                    }
    2829                }
    29             }else if(isset($multi_delid_comp)){ 
    30                 /* Multiple User email Delete By Admin*/
    31                 foreach($multi_delid_comp as $multi_delid){
    32                      $table_name   = $wpdb->prefix . "mwa_zoom_email_users";                       
    33                      $res_multi =  $wpdb->delete($table_name, array('id' => $multi_delid ), array('%d'));
    34                 }
     30            }else if($del_type=="single"){
     31                $delid      = isset($_POST['delid']) ? sanitize_text_field($_POST['delid']) : "";
     32                $res_multi =  $wpdb->delete($table_name, array('id' => $delid ), array('%d'));
     33            }         
    3534
    36                 if($res_multi){
    37                     $send_json_array_del = array( "success_msg_del" => 1 );                 
    38                     wp_send_json($send_json_array_del);
    39                 }else{
    40                     $send_json_array_del = array( "success_msg_del" => 0 );                 
    41                     wp_send_json($send_json_array_del);
    42                 }
    43             }       
     35            if($res_multi){
     36                $send_json_array_del = array( "success_msg_del" => 1 );                 
     37                wp_send_json($send_json_array_del);
     38            }else{
     39                $send_json_array_del = array( "success_msg_del" => 0 );                 
     40                wp_send_json($send_json_array_del);
     41            }       
    4442        }   
    4543die();
  • mwa-zoom-meetup/trunk/admin/inc/handler/tokensave.php

    r2488303 r2495860  
    1515}
    1616else { 
     17
     18    $aura_factory = MWA_WP_ZOOM_DIR_PATH . 'libs/aura/vendor/autoload.php';
     19    include($aura_factory);
     20
     21    $session_factory = new \Aura\Session\SessionFactory;
     22    $session = $session_factory->newInstance($_COOKIE);
     23
     24    /*get a _Segment_ object*/
     25    $segment = $session->getSegment('Vendor\Package\ClassName');
     26   
     27    /*Empty the session segment*/
     28    $segment->set('client', "");
     29    $segment->set('secret', "");
     30    $segment->set('authid', "");
     31    $segment->set('reduri', "");
    1732
    1833    $uac       = isset($_POST['uac']) ? sanitize_text_field( $_POST['uac'] ) : "" ;
  • mwa-zoom-meetup/trunk/admin/libs/js/custom-js.js

    r2477068 r2495860  
    222222                    delid:delid,   
    223223                    nonce_deluserdata:get_nonce,
     224                    del_type: "single",
    224225                },
    225226                success: function(response_del) {
     
    314315                data : {
    315316                    action: "deluser",
    316                     multi_delid:multi_delid,   
     317                    multi_delid:JSON.stringify(multi_delid),   
    317318                    nonce_deluserdata:get_muldelusernonce,
     319                    del_type: "multi",
    318320                },
    319321                success: function(response_del_multi) {
  • mwa-zoom-meetup/trunk/changelog.txt

    r2490538 r2495860  
    55This file contains older changelog entries, so we can keep the size of the standard WordPress readme.txt file reasonable.
    66For the latest changes, please see the "Changelog" section of the [readme.txt file](https://plugins.svn.wordpress.org/mwa-zoom-meetup/trunk/readme.txt).
     7
     8= 2.2 =
     9*Release Date - 04 March 2021*
     10* Updated code for more security
     11* Tested upto Wordpress 5.6.2
    712
    813= 2.1 =
  • mwa-zoom-meetup/trunk/mwa-wp-zoom.php

    r2490538 r2495860  
    88 * Plugin URI:        https://wordpress.org/plugins/mwa-zoom-meetup/
    99 * Description:       Video Conferencing - Zoom Meetings is capable to manage Zoom Meetings, Video Conferencing, Schedule Video Conferences and Record meetings directly from WordPress Dashboard
    10  * Version:           2.4
     10 * Version:           2.5
    1111 * Author:            MyWebApp
    1212 * Author URI:        https://mywebapp.in/
  • mwa-zoom-meetup/trunk/readme.txt

    r2490538 r2495860  
    55Tags: zoom, meeting, video conference, e-commerce, video, zoom booking, woocommerce zoom, zoom meeting, zoom calender, zoom video conference, web conferencing, remote meeting
    66Requires at least: 4.9
    7 Tested up to: 5.6.2
    8 Stable tag: 2.4
     7Tested up to: 5.7
     8Stable tag: 2.5
    99Requires PHP: 5.2
    1010License: GPLv2 or later
     
    1313The plugin is capable to manage Zoom Meetings, Video Conferencing, Schedule Video Conferences and Record meetings directly from WordPress Dashboard.
    1414
     15
    1516== Description ==
     17
     18https://www.youtube.com/watch?v=jO1Wht3ZDQs
    1619
    1720Today’s workforce prioritizes mobility, flexibility and modern forms of communication over private offices, corporates, organizations, startups and seclusion. Video conferencing is a choice and need of today and future. Zoom is the leader of modern video communications with a reliable cloud platform for audio and video conferencing. MyWebApp Team develops a plugin which makes you capable to use all Zoom Video Conference functions and  features from your WordPress Dashboard.
     
    102105== Changelog ==
    103106
     107= 2.5 =
     108*Release Date - 09 March 2021*
     109* Tested upto Wordpress 5.7
     110* Minor bug fixed
     111
    104112= 2.4 =
    105113*Release Date - 09 March 2021*
     
    111119* Minor Bug Fixed
    112120* Update bootstrap library
    113 
    114 = 2.2 =
    115 *Release Date - 04 March 2021*
    116 * Updated code for more security
    117 * Tested upto Wordpress 5.6.2
    118121
    119122== Upgrade Notice ==
  • mwa-zoom-meetup/trunk/uninstall.php

    r2490538 r2495860  
    22/**
    33 *
    4  * @since      2.4
     4 * @since      2.5
    55 *
    66 * @package    mwa-zoom-meetup
Note: See TracChangeset for help on using the changeset viewer.