You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cvm/frontend/test.php

38 lines
593 B
PHTML

13 years ago
<?php
$_CVM = true;
require("includes/include.base.php");
$settings['master_privkey'] = "/etc/cvm/key";
$settings['master_pubkey'] = "/etc/cvm/key.pub";
$sContainer = new Container(1);
if($_GET['action'] == "start")
{
$sContainer->Start();
}
elseif($_GET['action'] == "stop")
{
$sContainer->Stop();
}
elseif($_GET['action'] == "bw")
{
$sContainer->UpdateTraffic();
}
elseif($_GET['action'] == "ip")
{
$sContainer->AddIp($_GET['ip']);
}
else
{
echo("idk");
}
echo("Done!");
13 years ago
?>
13 years ago
<title>CVM test</title>
<br><br>
<a href="?action=start">Start</a><br>
<a href="?action=stop">Stop</a><br>