PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.7.0
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.7.0
V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 2.10.2 All 137 releases
← All changes | includes/API/Controller/EntryController.php +10 -5 2.02.7.0 View file →
@@ -6,18 +6,21 @@
6 6 use WP_Error;
7 7 use WP_REST_Controller;
8 8 use WP_REST_Request;
9 9
10 -class EntryController extends WP_REST_Controller {
10 +class EntryController extends WP_REST_Controller
11 +{
11 12 protected static $form;
12 13 protected $formModel;
13 14 protected $form_id;
14 15
15 - public function __construct() {
16 + public function __construct()
17 + {
16 18 $this->formModel = new FormModel();
17 19 }
18 20
19 - public function googleAuth() {
21 + public function googleAuth()
22 + {
20 23 $state = $_GET['state'];
21 24 $code = urlencode($_GET['code']);
22 25 // echo $code;
23 26 if (wp_redirect($state . '&code=' . $code, 302)) {
@@ -24,9 +27,10 @@
24 27 exit;
25 28 }
26 29 }
27 30
28 - public function oneDriveAuth() {
31 + public function oneDriveAuth()
32 + {
29 33 $state = $_GET['state'];
30 34 $code = urlencode($_GET['code']);
31 35 // echo $code;
32 36 if (wp_redirect($state . '&code=' . $code, 302)) {
@@ -33,9 +37,10 @@
33 37 exit;
34 38 }
35 39 }
36 40
37 - public function authRedirect(WP_REST_Request $request) {
41 + public function authRedirect(WP_REST_Request $request)
42 + {
38 43 $state = $request->get_param('state');
39 44 $parsed_url = parse_url(get_site_url());
40 45 $site_url = $parsed_url['scheme'] . '://' . $parsed_url['host'];
41 46 $site_url .= empty($parsed_url['port']) ? null : ':' . $parsed_url['port'];