Initial Commit
This commit is contained in:
18
download.php
Normal file
18
download.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
define('INDEX',True);
|
||||
|
||||
require('includer.php');
|
||||
|
||||
$filename = get_request('filename');
|
||||
$filename = preg_replace('/[^a-z0-9\.\-_]/i', '', $filename);
|
||||
|
||||
if (empty($filename))
|
||||
$filename = '.htaccess';
|
||||
|
||||
header('Content-Type: text/plain');
|
||||
header('Content-Disposition: attachment; filename="'.$filename.'"');
|
||||
|
||||
$rules = new HtRule_List();
|
||||
$rules = $rules->__toString();
|
||||
echo $rules;
|
||||
Reference in New Issue
Block a user