clockwerk-www

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 43  →  ?path2? @ 44
/sendiar.php
@@ -1,5 +1,9 @@
<?php
 
///////////////////////////////////////////////////////////////////////////
// Copyright (C) Wizardry and Steamworks 2014 - License: MIT //
///////////////////////////////////////////////////////////////////////////
 
require_once 'lib/recaptchalib.php';
require_once 'lib/wasRemoteAdmin.php';
 
@@ -26,7 +30,6 @@
}
$iar_path = '/var/lib/iar/'.$first.'_'.$last.'/'.$first.'_'.$last.'.iar';
if(file_exists($iar_path)) {
if(false !== ($handler = fopen($iar_path, 'r'))) {
header('Content-Description: File Transfer');
header('Content-Type: application/x-gzip-compressed');
header('Content-Disposition: attachment; filename='.basename($iar_path));
@@ -35,14 +38,10 @@
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: '.filesize($iar_path));
while(false !== ($chunk = fread($handler, 4096))) {
echo $chunk;
}
}
readfile($iar_path);
exit;
}
}
echo '<p>Sorry, incorrect captcha. Please try again.</p>';
echo '<p>Sorry, incorrect CAPTCHA. Please try again.</p>';