[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
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 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |