Location: PHPKode > projects > SCOP Heartbeat Administration interface > scop-2.0/html/scop/config/licence.php
<?
include ("../inc/header.inc");
include ("../inc/functions.inc");

$command = $_POST['command'];

$trans="107";
$a107 = "${$l.$trans}";
$trans="3";
$a3 = "${$l.$trans}";
$trans="75";
$a75 = "${$l.$trans}";

//echo "<center><h2>$a74</h2></center>";
?>
<div id="contentArea">
<h1><a href="/scop/index.php?menu=editconf&l=<?=$l?>"><?=$a3?></a> &gt; Licence Key Activation</h1>
<div class="border">
<?

if ($action==exe) {

			#echo "<center><p>$a107:</p></center>";

			$command = strtolower($command);
			if ($command=="apple" || $command=="orange" || $command=="pear" ) {
				echo "<center><p>Licence activated.</p></center>";
				`sudo rm /var/www/html/inc/eval.inc`;
				`sudo rm /etc/cron.daily/counter.sh`;

			} else {
				echo "<center><p>Invalid Licence Key. Please contact <a href=\"mailto:hide@address.com\">hide@address.com</a></p></center>";
			}




} else {

	//echo "This allows you to execute shell commands on the SCOP.</br>";
	//echo "<i>NB. Make sure you know what you are doing.</i></br>";
	echo "<table align=\"center\"><FORM method=\"post\" action=\"licence.php?action=exe&l=$l\">";
	echo "<tr><td><INPUT type=\"text\" size=20 name=\"command\" value=\"\"></td></tr>";
	echo "<tr><td><INPUT type=\"submit\" value=\"Licence Key Activation\" name=\"go\" ></td></tr>";
	echo "</FORM></table>";

}
?></div>
<div class="bottom"><span>-----</span></div>
</div>
<?

include ("../inc/footer.inc");
?>
Return current item: SCOP Heartbeat Administration interface