Plugin Directory

source: crm-customer-relationship-management-by-vcita/trunk/vcita-callback.php

Last change on this file was 3256449, checked in by vCita, 5 weeks ago

security update and verification for wordpress 6.7.2

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1<?php
2if (current_user_can('install_plugins')) {
3        if (isset($_GET['_wpnonce']) && wp_verify_nonce($_GET['_wpnonce'], 'vcita_action')) {
4                $success = filter_var($_GET['success'], FILTER_VALIDATE_BOOLEAN);
5                $uid = filter_var($_GET['uid'], FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_ENCODE_HIGH);
6                $first_name = filter_var($_GET['first_name'], FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_ENCODE_HIGH);
7                $last_name = filter_var($_GET['last_name'], FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_ENCODE_HIGH);
8                $title = filter_var($_GET['title'], FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_ENCODE_HIGH);
9                $confirmation_token = filter_var($_GET['confirmation_token'], FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_ENCODE_HIGH);
10                $confirmed = filter_var($_GET['confirmed'], FILTER_VALIDATE_BOOLEAN);
11                $engage_delay = filter_var($_GET['engage_delay'], FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_ENCODE_HIGH);
12                $implementation_key = filter_var($_GET['implementation_key'], FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_ENCODE_HIGH);
13                $email = filter_var($_GET['email'], FILTER_VALIDATE_EMAIL);
14                $confirmed = 'true';
15               
16                vcita_uninstall();
17                vcita_clean_expert_data();
18                vcita_parse_expert_data(compact(
19                        'success',
20                        'uid',
21                        'first_name',
22                        'last_name',
23                        'email',
24                        'title',
25                        'confirmation_token',
26                        'confirmed',
27                        'engage_delay',
28                        'implementation_key',
29                        'confirmed'
30                ));
31        }
32       
33        $redirectURL = get_admin_url('', '', 'admin') . 'admin.php?page=' . VCITA_WIDGET_UNIQUE_ID . '/vcita-settings-functions.php';
34}
35?>
36<script type="text/javascript">
37    window.location = "<?php echo esc_url($redirectURL); ?>";
38</script>
Note: See TracBrowser for help on using the repository browser.