<?
If ($action=="ldirectord.cf" ){
$orig="/etc/ha.d/conf/ldirectord.cf";
exec ("sudo chmod 777 $orig");
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=$orig");
header("Content-transfer-encoding: binary");
readfile($orig);
#$fp=fopen($orig, 'r');
#fpassthru($fp);
}
If ($action=="haresources") {
$orig="/etc/ha.d/haresources";
exec ("sudo chmod 777 $orig");
echo "DOWNLOAD VIPs>>>";
}
else {
include ("../inc/header.inc");
$trans="17c";
$a17c = "${$l.$trans}";
$trans="88";
$a88 = "${$l.$trans}";
$trans="89";
$a89 = "${$l.$trans}";
$trans="90";
$a90 = "${$l.$trans}";
$trans="91";
$a91 = "${$l.$trans}";
$trans="92";
$a92 = "${$l.$trans}";
$trans="93";
$a93 = "${$l.$trans}";
$trans="94";
$a94 = "${$l.$trans}";
$trans="4";
$a3 = "${$l.$trans}";
?>
<div id="contentArea">
<h1><a href="/scop/index.php?menu=maint&l=<?=$l?>"><?=$a3?></a> > <?=$a17c?></h1>
<div class="border">
<?
//echo "<center><h2>$a17c</h2></center>";
//echo "It is recommended that you download the configuration and keep an up to date copy.</br>";
?><table border="0" class="datagrid" align="center"><tr><td colspan="3" style="text-align:left;"><?
echo "<center>[ <a href=\"getSCOPcf.php\" class=\"action\">$a88</a> ]</center>";
echo "<center>[ <a href=\"getrealip.php\" class=\"action\">$a89 </a> ]</center> ";
echo "<center>[ <a href=\"getharesources.php\" class=\"action\">$a90</a> ]</center>";
echo "<center>[ <a href=\"getfirewall.php\" class=\"action\">$a91</a> ]</center>";
//echo "Or you can restore the manufacturers origional configuration...</br>";
echo "<center>[ <a href=\"restore.php\" class=\"action\" onclick=\"return areyousure('$a93')\">$a92</a> ]</center></br>";
?>
<br />
<form enctype="multipart/form-data" action="recieve.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<center><input name="userfile" type="file" />
<input type="hidden" name="name" value="ldirectord.cf" /></br>
<input type="submit" value="<?=$a94?>" /></center>
</form>
<br />
</td></tr></table>
<?
include ("../inc/footer.inc");
}
?></div>
<div class="bottom"><span>-----</span></div>
</div>
<?
?>