403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.25
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/tgnew/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tgnew/wp-content/plugins/w3-total-cache/Cdn_RackSpaceCdn_AdminActions.php
<?php
/**
 * File: Cdn_RackSpaceCdn_AdminActions.php
 *
 * @package W3TC
 */

namespace W3TC;

/**
 * Class Cdn_RackSpaceCdn_AdminActions
 */
class Cdn_RackSpaceCdn_AdminActions {
	/**
	 * Reloads the Rackspace CDN domains (CNAMEs).
	 *
	 * This method retrieves the latest Rackspace CDN domains (CNAMEs) from the CDN service and updates the configuration.
	 * If the domains cannot be retrieved due to an exception, an error message is displayed and the process is halted.
	 * On successful retrieval, the domains are saved to the configuration, and a success message is displayed.
	 *
	 * @return void
	 */
	public function w3tc_cdn_rackspace_cdn_domains_reload() {
		$c    = Dispatcher::config();
		$core = Dispatcher::component( 'Cdn_Core' );
		$cdn  = $core->get_cdn();

		try {
			// try to obtain CNAMEs.
			$domains = $cdn->service_domains_get();
		} catch ( \Exception $ex ) {
			Util_Admin::redirect_with_custom_messages2(
				array(
					'errors' => array( 'Failed to obtain <acronym title="Canonical Name">CNAME</acronym>s: ' . $ex->getMessage() ),
				),
				true
			);
			return;
		}

		$c->set( 'cdn.rackspace_cdn.domains', $domains );
		$c->save();

		Util_Admin::redirect_with_custom_messages2(
			array(
				'notes' => array( 'CNAMEs are reloaded successfully' ),
			),
			true
		);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit