| 1 |
<html> |
| 2 |
<head> |
| 3 |
<title>Kannel Administration</title> |
| 4 |
</head> |
| 5 |
<body bgcolor="#FFFFFF" text="#000000"> |
| 6 |
|
| 7 |
<?php |
| 8 |
include("config.inc"); |
| 9 |
include("functions.inc"); |
| 10 |
|
| 11 |
switch($command) |
| 12 |
{ |
| 13 |
case "status": |
| 14 |
$URL = "/cgi-bin/status"; |
| 15 |
http_send($URL,ADMIN_PORT); |
| 16 |
break; |
| 17 |
case "suspend": |
| 18 |
$URL = "/cgi-bin/suspend?password=".ADMIN_PASSWORD; |
| 19 |
http_send($URL,ADMIN_PORT); |
| 20 |
break; |
| 21 |
case "isolate": |
| 22 |
$URL = "/cgi-bin/isolate?password=".ADMIN_PASSWORD; |
| 23 |
http_send($URL,ADMIN_PORT); |
| 24 |
break; |
| 25 |
case "resume": |
| 26 |
$URL = "/cgi-bin/resume?password=".ADMIN_PASSWORD; |
| 27 |
http_send($URL,ADMIN_PORT); |
| 28 |
break; |
| 29 |
case "shutdown": |
| 30 |
$URL = "/cgi-bin/shutdown?password=".ADMIN_PASSWORD; |
| 31 |
http_send($URL,ADMIN_PORT); |
| 32 |
break; |
| 33 |
default: |
| 34 |
echo "command $command not yet implemented<br>\n"; |
| 35 |
} |
| 36 |
echo "<p><address><a href=\"$PHP_SELF?command=$command\">Reload page</a></address></p>\n"; |
| 37 |
?> |
| 38 |
|
| 39 |
<p> |
| 40 |
</p> |
| 41 |
<hr> |
| 42 |
<table border="0" width="100%"> |
| 43 |
<tr> |
| 44 |
<td width="50%"><address><a href="index.html">Back to admin</a></address></td> |
| 45 |
<td width="50%" align="right"><address>Visit the Kannel homepage at <a href="http://www.kannel.org">www.kannel.org</a>.</address></td> |
| 46 |
</tr> |
| 47 |
</table> |
| 48 |
</body> |
| 49 |
</html> |