home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / admin / fileZilla.inc.php < prev    next >
Encoding:
PHP Script  |  2004-03-27  |  1014 b   |  35 lines

  1. <html> 
  2. <head>
  3. <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
  4. <link href="../../css/style.css" rel="stylesheet" type="text/css">
  5. <title></title> 
  6. </head> 
  7. <?php
  8.  
  9.  
  10. function fileZilla($control)
  11. {
  12.     include ("./config.inc.php");
  13.     include ("../lang/".$lang."/global.php");
  14.     
  15.     // Start FileZilla daemon (NT, 2000, XP, 2003)
  16.     if ($control == "start")
  17.     {
  18.         print("$desc_srv_start $sn_filezi<br></span><span class=\"tdinfotitle\">");
  19.         system("net start ".$sn_filezi."") or die ("</span><br><br><a href=\"".$backfrominc."\" target=bodyFrame>".$name_tswcc."</a>");
  20.     }
  21.     // Stop FileZilla daemon (NT, 2000, XP, 2003)
  22.     elseif ($control == "stop")
  23.     {
  24.         print("$desc_srv_stop $sn_filezi<br></span><span class=\"tdinfotitle\">");
  25.         system("net stop ".$sn_filezi."") or die ("</span><br><br><a href=\"".$backfrominc."\" target=bodyFrame>".$name_tswcc."</a>");
  26.     }
  27.     else
  28.     {
  29.         print("<br><br><span class=tdinfo>".$noaction."</span>");
  30.     }
  31. }
  32. fileZilla($control);
  33. ?>
  34. </body>
  35. </html>