File: admin.php

package info (click to toggle)
kannel 1.4.5-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,284 kB
  • sloc: ansic: 105,659; sh: 32,211; xml: 20,360; php: 1,103; perl: 711; makefile: 583; yacc: 548; awk: 133; python: 122; javascript: 27; pascal: 3
file content (49 lines) | stat: -rw-r--r-- 1,161 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<html>
<head>
<title>Kannel Administration</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">

<?php
include("config.inc");
include("functions.inc");

switch($command)
{
 case "status":
	$URL = "/cgi-bin/status";
 	http_send($URL,ADMIN_PORT);
 	break;
 case "suspend":
	$URL = "/cgi-bin/suspend?password=".ADMIN_PASSWORD;
 	http_send($URL,ADMIN_PORT);
 	break;
 case "isolate":
	$URL = "/cgi-bin/isolate?password=".ADMIN_PASSWORD;
 	http_send($URL,ADMIN_PORT);
 	break;
 case "resume":
	$URL = "/cgi-bin/resume?password=".ADMIN_PASSWORD;
 	http_send($URL,ADMIN_PORT);
 	break;
 case "shutdown":
	$URL = "/cgi-bin/shutdown?password=".ADMIN_PASSWORD;
 	http_send($URL,ADMIN_PORT);
 	break;
 default:
	echo "command $command not yet implemented<br>\n";
}
 echo "<p><address><a href=\"$PHP_SELF?command=$command\">Reload page</a></address></p>\n";
?>

<p>
</p>
<hr>
<table border="0" width="100%">
  <tr>
    <td width="50%"><address><a href="index.html">Back to admin</a></address></td>
    <td width="50%" align="right"><address>Visit the Kannel homepage at <a href="http://www.kannel.org">www.kannel.org</a>.</address></td>
  </tr>
</table>
</body>
</html>