admin.php
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:1k
源码类别:

手机WAP编程

开发平台:

WINDOWS

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