ACC SHELL

Path : /srv/www/vhosts/amk/admin/
File Upload :
Current File : //srv/www/vhosts/amk/admin/cropper.php

<?php
function load_cropper_script()
{
	echo "<script type=\"text/javascript\" src=\"cropper.js\" ></script>";
}
	
function display_cropper($headline, $button, $filename, $action)
{

	echo "<body onload=\"init()\">";
	echo "<form method=\"post\" action=\"index.php?action=" . $action . "\">";
	echo "<h2>" . $headline . "</h2>";
?>
	<div>
	<?php echo "<img id=\"image\" style=\"display: block; cursor: crosshair; margin-left: auto; margin-right: auto; width: auto\" src=\"" . $filename . "\"/>"; ?>
	</div>

	<div id="top" style="cursor: crosshair; position: absolute; left: 50px; top: 10px;height: 10px; width: 10px; background-color: blue; overflow: hidden">&nbsp;</div>
	<div id="left" style="cursor: crosshair; position: absolute; left: 50px; top: 10px;height: 1px; width: 1px; background-color: blue; overflow: hidden">&nbsp;</div>
	<div id="right" style="cursor: crosshair; position: absolute; left: 50px; top: 10px;height: 1px; width: 1px; background-color: blue; overflow: hidden">&nbsp;</div>
	<div id="bottom" style="cursor: crosshair; position: absolute; left: 50px; top: 10px;height: 1px; width: 1px; background-color: blue; overflow: hidden">&nbsp;</div>
	
		<input type="hidden" id="from_x" name="from_x" value="-1"/>
		<input type="hidden" id="from_y" name="from_y" value="-1"/>
		<input type="hidden" id="to_x" name="to_x" value="-1"/>
		<input type="hidden" id="to_y" name="to_y" value="-1"/>
		<?php
		 echo "<input type=\"submit\" style=\"display: block; margin: 1em; margin-left: auto; margin-right: auto;\" value=\"" . $button . "\"/>";
		 //echo "<input type=\"hidden\" name=\"id\" value=\"" . $id . "\"/>"; 
		 ?>
	
	</form>
<?php
}
?>

ACC SHELL 2018