403Webshell
Server IP : 172.67.201.108  /  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/tgnewprod/admin/mod/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tgnewprod/admin/mod/clear_cache.php
<?php
	require('_mod_security.php');

	form_prep('frm_cache', 'basic_info');
	if (($_POST['form_submitted'] ?? '') === '1') :
		form_prep_submit();
		form_validate_all();
		if (!$err_flag) :
			if (empty($_POST['clear_cf']) && empty($_POST['clear_apc'])) :
				$form_message = "Nothing selected!";
			endif;
			if (($_POST['clear_cf']) === '1') :
				$form_message .= '<br>' . clear_cloudflare_cache();
			endif;
			if (($_POST['clear_apc']) === '1') :
				$form_message .= '<br>' . clear_apc_cache();
			endif;
			form_uid_reset();
		else :
			$active_tab = $err_tab;
			$form_message = "Errors found!";
		endif;
	endif;
	
?>

<script>
	var active_page = '<?php echo $_REQUEST['IX']; ?>';
	var active_tab = '';

	update_header = function() {
		if ($("#description").val() > "" ) {
			$("#header_repeater").text(" - " + $("#description").val());
		}
	}
	
	$(document).ready(function() {
		switch_tab('<?php echo $active_tab; ?>');
		update_header();
		//$(':input:not(.search)').change(function() {sheet_dirty = true; } );
		$(':input:not(.search, .no_dirty, .no_dirty input)').change(function() {sheet_dirty = true; } );
	});
</script>

<h1>Clear Cache</h1>
<?php echo form_message($form_message); ?>

<form name="frm_cache" id="frm_cache" method="post" action="">
	<input name="form_submitted" type="hidden" value="1" />
	<input name="id" type="hidden" value="<?php echo $_REQUEST['id']; ?>" />
	<input name="active_tab" id="active_tab" type="hidden" value="basic_info" />
	<?php
		form_button_strip('top', [
			'save' => ['show' => false],
			'save_as' => ['show' => false],
			'save_close' => ['show' => false],
			'save_new' => ['show' => false],
			'cancel'=>['show' => true, 'caption' => 'Cancel', 'js' => "sheet_dirty = false; window.location.href = 'index.php?IX=events';"],
			'clear_cache'=>['show' => true, 'caption' => 'Clear Cache', 'js' => "sheet_dirty = false; document.getElementById('xsubmit').value = this.value; this.form.submit();"],
		]);
		form_tab_strip_start();
		form_tab_header('basic_info', 'Basic Info', 'admin');
		form_tab_strip_end();
		//******************************************************************************************
		form_tab_start('basic_info', 'Basic Info');

		form_column_start();
		form_field(['fname'=>'clear_cf', 'ftype'=>'checkbox', 'frequired'=>false, 'fdbname'=>'', 'flabel'=>'Clear CloudFlare Cache', 'fclass'=>'no_dirty']);
		form_field(['fname'=>'clear_apc', 'ftype'=>'checkbox', 'frequired'=>false, 'fdbname'=>'', 'flabel'=>'Clear APCu Cache', 'fclass'=>'no_dirty']);
		form_column_end();

		form_tab_end();

		//******************************************************************************************

		form_button_strip('bottom', [
			'save' => ['show' => false],
			'save_as' => ['show' => false],
			'save_close' => ['show' => false],
			'save_new' => ['show' => false],
			'cancel'=>['show' => true, 'caption' => 'Cancel', 'js' => "sheet_dirty = false; window.location.href = 'index.php?IX=events';"],
			'clear_cache'=>['show' => true, 'caption' => 'Clear Cache', 'js' => "sheet_dirty = false; document.getElementById('xsubmit').value = this.value; this.form.submit();"],
		], false);
	?>
</form>


Youez - 2016 - github.com/yon3zu
LinuXploit