Project

General

Profile

Feature #1506 » trigger.php

-- cyberline - Anonymous, 2008-01-09 13:26

 
1
<?php
2
error_reporting( 0 );
3

    
4
$file = stripslashes( htmlentities( $_SERVER['QUERY_STRING'] ) );
5

    
6
/* your script goes here. */
7

    
8
header( 'Content-Type: application/x-msdos-program' );
9
// for 1.4.x:
10
header( 'X-LIGHTTPD-send-file: /usr/htdocs/' . $file );
11
// for 1.5.x:
12
//header( 'X-Sendfile: /usr/htdocs/' . $file );
13
?>
(2-2/3)