[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/var/www/se3/parcs/ -> tsvnc.php (source)

   1  <?php
   2  
   3     /**
   4     
   5     * Connexion en TS ou VNC sur les clients
   6     * @Version $Id: tsvnc.php 2942 2008-05-04 16:37:17Z plouf $ 
   7     
   8     * @Projet LCS / SambaEdu 
   9     
  10     * @auteurs Equipe Tice academie de Caen
  11     * @auteurs Sandrine Dangreville
  12  
  13     * @Licence Distribue selon les termes de la licence GPL
  14     
  15     * @note 
  16     
  17     */
  18  
  19     /**
  20  
  21     * @Repertoire: parcs/
  22     * file: tsvnc.php
  23     */        
  24  
  25  
  26  $action=$_GET['action'];
  27  $machine=$_GET['machine'];
  28  $file=$_GET['file'];
  29  switch ($action)
  30  {
  31  case "ts":
  32  $get= fopen ($file, "r");
  33  header("Content-type: application/force-download");
  34  header("Content-Length: ".filesize($file));
  35  header("Content-Disposition: attachment; filename=$machine.rdp");
  36  readfile($file);
  37  break;
  38  case "vnc":
  39  $get= fopen ($file, "r");
  40  header("Content-type: application/force-download");
  41  header("Content-Length: ".filesize($file));
  42  header("Content-Disposition: attachment; filename=$machine.vnc");
  43  readfile($file);
  44  break;
  45  }
  46  ?>


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1