| Server IP : 172.67.201.108 / Your IP : 216.73.216.37 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/domains/ndb/wp-content/w3-total-cache/ |
Upload File : |
<?php
namespace W3TC;
class Cdn_GoogleDrive_Page {
// called from plugin-admin
static public function admin_print_scripts_w3tc_cdn() {
wp_enqueue_script( 'w3tc_cdn_google_drive',
plugins_url( 'Cdn_GoogleDrive_Page_View.js', W3TC_FILE ),
array( 'jquery' ), '1.0' );
$path = 'admin.php?page=w3tc_cdn';
$return_url = self_admin_url( $path );
wp_localize_script( 'w3tc_cdn_google_drive',
'w3tc_cdn_google_drive_url',
W3TC_GOOGLE_DRIVE_AUTHORIZE_URL . '?return_url=' . urlencode( $return_url ) );
// it's return from google oauth
if ( isset( $_GET['oa_client_id'] ) ) {
$path = wp_nonce_url( 'admin.php', 'w3tc' ) .
'&page=w3tc_cdn&w3tc_cdn_google_drive_auth_return';
foreach ( $_GET as $key => $value ) {
if ( substr( $key, 0, 3 ) == 'oa_' )
$path .= '&' . urlencode( $key ) . '=' . urlencode( $value );
}
$popup_url = self_admin_url( $path );
wp_localize_script( 'w3tc_cdn_google_drive',
'w3tc_cdn_google_drive_popup_url', $popup_url );
}
}
static public function w3tc_settings_cdn_boxarea_configuration() {
$config = Dispatcher::config();
include W3TC_DIR . '/Cdn_GoogleDrive_Page_View.php';
}
}