Location: PHPKode > projects > SCOP Heartbeat Administration interface > scop-2.0/html/scop/index.php
<?
// SCOP administration software.
//  Copyright (C) 2002  Loadbalancer.org Limited

//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2 of the License, or
//  (at your option) any later version.

//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.

//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

include ("inc/header.inc");



?>

<? if ($menu=="editconf") { ?>
<?
$trans="3";
$a3 = "${$l.$trans}";
$trans="77";
$a77 = "${$l.$trans}";
$trans="78";
$a78 = "${$l.$trans}";
$trans="79";
$a79 = "${$l.$trans}";
$trans="80";
$a80 = "${$l.$trans}";
$trans="81";
$a81 = "${$l.$trans}";
$trans="82";
$a82 = "${$l.$trans}";
$trans="83";
$a83 = "${$l.$trans}";
$trans="84";
$a84 = "${$l.$trans}";
?>
<div id="contentArea">
<h1><?=$a3?></h1>
<div class="border">
<?

//<h2>Logical SCOP Configuration</h2>
$trans="7";
$llbc = "${$l.$trans}";
echo "<h2>$llbc</h2>";
$trans="7a";
$mlvs = "${$l.$trans}";
$trans="7b";
$mlrs = "${$l.$trans}";
$trans="7c";
$mgs = "${$l.$trans}";
$trans="107";
$t107 = "${$l.$trans}";
?>

<ul>
  <li><a href="config/display.php?srcfile=ldirectord&action=modvirtual&t=<?=$t?>"><?=$mlvs?> </a><?=helpitem(5);?> </li>
 <li><a href="config/haproxy.php?action=modvirtual&t=<?=$t?>"><?=$mlvs?> <?=$t107?> </a><?=helpitem(37);?></li>
  <li><a href="config/display.php?srcfile=ldirectord&action=modreal&t=<?=$t?>"><?=$mlrs?> </a><?=helpitem(4);?> </li>
 <li><a href="config/haproxy.php?action=modreal&t=<?=$t?>"><?=$mlrs?> <?=$t107?> </a><?=helpitem(38);?></li>
  <li><a href="config/display.php?srcfile=ldirectord&action=modglobal&subaction=edit&t=<?=$t?>"><?=$mgs?><?=helpitem(6);?> </a></li>
</ul>

<hr class="sep1">
<?
//<h2>Physical SCOP Configuration</h2>
$trans="8";
$txt = "${$l.$trans}";
echo "<h2>$txt</h2>";
$trans="8a";
$a = "${$l.$trans}";
$trans="8b";
$b = "${$l.$trans}";
$trans="8c";
$c = "${$l.$trans}";
$trans="108";
$t108 = "${$l.$trans}";
?>

<ul>
<li><a href="config/changeip.php?t=<?=$t?>"><?=$a?></a><?=helpitem(8);?></li>
<li><a href="config/changeip.php?action=shownet&t=<?=$t?>"><?=$b?></a><?=helpitem(12);?></li>
<li><a href="config/changevips.php?t=<?=$t?>"><?=$c?> </a><?=helpitem(7);?></li>
<li><a href="config/pound.php?action=modvirtual&t=<?=$t?>"><?=$t108?> </a><?=helpitem(40);?></li>
</ul>

<hr class="sep1">
<?
//<h2>Services</h2>
$trans="10";
$txt = "${$l.$trans}";
echo "<h2>$txt</h2>";
$trans="10a";
$a = "${$l.$trans}";
$trans="10b";
$b = "${$l.$trans}";
$trans="109";
$t109 = "${$l.$trans}";
$trans="110";
$t110 = "${$l.$trans}";
?>
<ul>
<li><a href="config/restart.php?service=haproxy&t=<?=$t?>"><?=$t109?></a><?=helpitem(42);?></li>
<li><a href="config/restart.php?service=pound&t=<?=$t?>"><?=$t110?></a><?=helpitem(43);?></li>
<li><a href="config/restart.php?service=heartbeat&t=<?=$t?>" onclick="return areyousure('<?=$a77?>')"><?=$a?></a><?=helpitem(20);?></li>
<li><a href="config/restart.php?service=ldirectord&t=<?=$t?>" onclick="return areyousure('<?=$a78?>')"><?=$b?></a><?=helpitem(21);?></li>
</ul>

<hr class="sep1">

<?
//<h2>Power Control</h2>
$trans="11";
$txt = "${$l.$trans}";
echo "<h2>$txt</h2>";
$trans="11a";
$a = "${$l.$trans}";
$trans="11b";
$b = "${$l.$trans}";
?>
<ul>
<li><a href="config/power.php?action=restart&t=<?=$t?>" onclick="return areyousure('<?=$a79?>')"><?=$a?></a><?=helpitem(22);?></li>
<li><a href="config/power.php?action=shutdown&t=<?=$t?>" onclick="return areyousure('<?=$a80?>')"><?=$b?></a><?=helpitem(23);?></li>
</ul>

<hr class="sep1">


<hr class="sep1">


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

<? }  ?>

<? if ($menu=="viewconf") { ?>

<?
//<h2>View Configuration</h2>
$trans="2";
$a2 = "${$l.$trans}";

$trans="13a";
$a = "${$l.$trans}";
$trans="13b";
$b = "${$l.$trans}";
$trans="13c";
$c = "${$l.$trans}";
$trans="13d";
$dd = "${$l.$trans}";
$trans="13e";
$ee = "${$l.$trans}";
$trans="107";
$t107 = "${$l.$trans}";
$trans="108";
$t108 = "${$l.$trans}";
?>

<div id="contentArea">
<h1><?=$a2?></h1>
<div class="border">

<ul>
<!-- <a href="config/display.php?srcfile=ldirectord&action=overview&t=<?=$t?>">Display the SCOP configuration</a></br>
-->
<li><a href="config/display.php?srcfile=ldirectord&action=display&t=<?=$t?>"><?=$a?></a><?=helpitem(1);?></li>
<li><a href="stats/reports.php?srcfile=haproxy&t=<?=$t?>"><? echo"$a $t107"; ?> </a><?=helpitem(42);?></li>
<li><a href="stats/reports.php?srcfile=pound&t=<?=$t?>"><? echo"$a $t108"; ?> </a><?=helpitem(43);?></li>
<li><a href="stats/reports.php?srcfile=ifconfig&t=<?=$t?>"><?=$b?> </a><?=helpitem(3);?></li>
<li><a href="stats/reports.php?srcfile=haresources&t=<?=$t?>"><?=$c?> </a><?=helpitem(2);?></li>
<li><a href="stats/reports.php?srcfile=route&t=<?=$t?>"><?=$dd?> </a><?=helpitem(3);?></li>
<li><a href="stats/reports.php?srcfile=firewall&t=<?=$t?>"><?=$ee?> </a><?=helpitem(3);?></li>
</ul>
<hr class="sep1">

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

<? } ?>
<? if ($menu=="reports") { ?>
<?
//<h2>Reports</h2>
$trans="14";
$txt = "${$l.$trans}";

$trans="14a";
$a = "${$l.$trans}";
$trans="14b";
$b = "${$l.$trans}";
$trans="14c";
$c = "${$l.$trans}";
$trans="14d";
$dd = "${$l.$trans}";
$trans="14e";
$ee = "${$l.$trans}";
$trans="14f";
$ff = "${$l.$trans}";
$trans="107";
$t107 = "${$l.$trans}";
?>
<div id="contentArea">
<h1><?=$txt?></h1>
<div class="border">
<ul>
<li><a href="stats/reports.php?srcfile=normal&t=<?=$t?>"><?=$a?></a><?=helpitem(26);?> </li>
<li><a href="stats/redirect_stats.php"><?=$a?> <?=$t107?></a> <?=helpitem(41);?></li>
<li><a href="stats/reports.php?srcfile=rate&t=<?=$t?>"><?=$b?></a><?=helpitem(27);?></li>
<li><a href="stats/reports.php?srcfile=stats&t=<?=$t?>"><?=$c?></a><?=helpitem(28);?></li>
<li><a href="stats/reports.php?srcfile=connection&t=<?=$t?>"><?=$dd?></a><?=helpitem(29);?></li>
<li><a href="stats/reports.php?srcfile=connectionwithlookup&t=<?=$t?>"><?=$ee?></a><?=helpitem(30);?></li>
<li><a href="stats/charts.php?t=<?=$t?>"><?=$ff?></a></br><?=helpitem(31);?></li>
</ul>

<hr class="sep1">

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


<? } ?>
<? if ($menu=="logs") { ?>
<?
//<h2>Log Files</h2>
$trans="6";
$txt = "${$l.$trans}";
$trans="15a";
$a = "${$l.$trans}";
$trans="15b";
$b = "${$l.$trans}";
$trans="81";
$a81 = "${$l.$trans}";
?>

<div id="contentArea">
<h1><?=$txt?></h1>
<div class="border">
<ul>
<li><a href="stats/reports.php?srcfile=ldirectordlog&t=<?=$t?>">Ldirectord</a><?=helpitem(32);?></li>
<li><a href="stats/reports.php?srcfile=SCOPlog&t=<?=$t?>">SCOP</a><?=helpitem(33);?></li>
<li><a href="stats/reports.php?srcfile=heartbeatlog&t=<?=$t?>">Heartbeat </a><?=helpitem(34);?></li>
</ul>
<hr class="sep1">
<ul>
<li><a href="stats/reports.php?srcfile=clear&t=<?=$t?>" onclick="return areyousure('<?=$a81?>')"><?=$a?></a><?=helpitem(35);?></li>
<li><a href="config/changetimezone.php?&t=<?=$t?>"><?=$b?></a><?=helpitem(24);?></li>
</ul>
<hr class="sep1">

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


<? if ($menu=="maint") { ?>
<?
//<h2>Maintain Real Servers</h2>
$trans="16";
$txt = "${$l.$trans}";

$trans="16a";
$a16a = "${$l.$trans}";
$trans="4";
$a4 = "${$l.$trans}";
?>
<div id="contentArea">
<h1><?=$a4?></h1>
<div class="border">

<h2><?=$txt?></h2>
<ul>
<li><a href="/scop/maint/maint.php?srcfile=ldirectord&action=modrealweight&t=<?=$t?>"><?=$a16a?></a><?=helpitem(25);?></li>
</ul>
<hr class="sep1">
<?
//<h2>Backup & Recovery</h2>
$trans="17";
$txt = "${$l.$trans}";
echo "<h2>$txt</h2>";
$trans="17a";
$a = "${$l.$trans}";
$trans="17b";
$b = "${$l.$trans}";
$trans="17c";
$c = "${$l.$trans}";
$trans="82";
$a82 = "${$l.$trans}";
?>
<ul>
<li><a href="config/userbackup.php?t=<?=$t?>"><?=$a?></a><?=helpitem(17);?></li>
<li><a href="config/userrestore.php?t=<?=$t?>" onclick="return areyousure('<?=$a82?>')"><?=$b?></a><?=helpitem(18);?></li>
<li><a href="config/getconfig.php?t=<?=$t?>"><?=$c?></a><?=helpitem(19);?></li>
</ul>
<hr class="sep1">
<?
//<h2>Security & Maintenance</h2>
$trans="18";
$txt = "${$l.$trans}";
echo "<h2>$txt</h2>";
$trans="18a";
$a = "${$l.$trans}";
$trans="18b";
$b = "${$l.$trans}";
$trans="18c";
$c = "${$l.$trans}";
$trans="18d";
$dd = "${$l.$trans}";
$trans="18e";
$ee = "${$l.$trans}";
$trans="18f";
$ff = "${$l.$trans}";
$trans="83";
$a83 = "${$l.$trans}";
$trans="84";
$a84 = "${$l.$trans}";
$trans="111";
$a111 = "${$l.$trans}";
?>
<ul>
<li><a href="config/password.php?t=<?=$t?>"><?=$a?></a><?=helpitem(15);?></li>
<li><a href="config/uploadmaint.php?t=<?=$t?>"><?=$b?> </a><?=helpitem(9);?></li>
<li><a href="config/firewallwizard.php?t=<?=$t?>"><?=$a111?> </a><?=helpitem(16);?></li>
<li><a href="config/uploadfirewall.php?t=<?=$t?>"><?=$c?> </a><?=helpitem(16);?></li>
<? if ($demo=="TRUE") { ?>
			<li><a href="">Initialise statistics tracking database (rrdtool) </a>(disabled)<?=helpitem(13);?></li>
			<li><a href="">Re-initialise statistics tracking database </a>(disabled)<?=helpitem(14);?></li>
<?
		} else { ?>

<li><a href="config/display.php?srcfile=ldirectord&action=CreateRRDToolDBs&t=<?=$t?>" onclick="return areyousure('<?=$a83?>')"><?=$dd?></a><?=helpitem(13);?></li>
<li><a href="config/display.php?srcfile=ldirectord&action=CreateRRDToolDBs&notdb=true&t=<?=$t?>" onclick="return areyousure('<?=$a84?>')"><?=$ee?></a><?=helpitem(14);?></li>


<? } ?>
</ul>
<hr class="sep1">

<?
//<h2>Advanced</h2>
$trans="12";
$txt = "${$l.$trans}";
echo "<h2>$txt</h2>";
$trans="12a";
$a = "${$l.$trans}";
?>
<ul>
<li><a href="config/command.php?&t=<?=$t?>"><?=$a?></a><?=helpitem(24);?></li>
</ul>
<hr class="sep1">


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




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