HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/hcv/wp-content/plugins/w3-total-cache/inc/options/cdn/common/cnames.php
<?php
namespace W3TC;

if (!defined('W3TC'))
	die();

?>
<ol id="cdn_cnames" style="margin: 0">
<?php
if (! count($cnames)) {
	$cnames = array('');
}

$count = count( $cnames );
if ( isset( $cnames['http_default'] ) )
	$count--;
if ( isset( $cnames['https_default'] ) )
	$count--;

$real_index = 0;
foreach ( $cnames as $index => $cname ):
	if ( $index === 'http_default' || $index === 'https_default' ) {
		continue;
	}

	$label = '';

	if ($count > 1):
		switch ($real_index):
			case 0:
				$label = __('(reserved for CSS)', 'w3-total-cache');
				break;

			case 1:
				$label = __('(reserved for JS in <head>)', 'w3-total-cache');
				break;

			case 2:
				$label = __('(reserved for JS after <body>)', 'w3-total-cache');
				break;

			case 3:
				$label = __('(reserved for JS before </body>)', 'w3-total-cache');
				break;

			default:
				$label = '';
				break;
		endswitch;
	endif;
?>
	<li>
		<input type="text" name="cdn_cnames[]" id="cdn_cnames_<?php echo $real_index ?>"
					   <?php Util_Ui::sealing_disabled('cdn.') ?> value="<?php echo esc_attr($cname); ?>" size="60" />
		<input class="button cdn_cname_delete" type="button"
					   <?php Util_Ui::sealing_disabled('cdn.') ?> value="<?php _e('Delete', 'w3-total-cache'); ?>"<?php if (!$index): ?> style="display: none;"<?php endif; ?> />
		<span><?php echo htmlspecialchars($label); ?></span>
	</li>
<?php $real_index++; endforeach; ?>
</ol>
<input id="cdn_cname_add" class="button" type="button" value="<?php _e('Add CNAME', 'w3-total-cache'); ?>"
	<?php Util_Ui::sealing_disabled('cdn.') ?> />