Menu

[r10]: / projects_site / clientaccessfile.php  Maximize  Restore  History

Download this file

22 lines (18 with data), 672 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
#Application name: PhpCollab
#Status page: 0
// no caching to keep phpCollab 2.0 behaviour
@session_cache_limiter('none'); // suppress error messages for PHP version < 4.0.2
error_reporting(0);
$checkSession = "true";
include("../includes/library.php"); // starts session and writes session cache headers
$tmpquery = "WHERE fil.id = '$id'";
$fileDetail = new request();
$fileDetail->openFiles($tmpquery);
// test if file is published and part of the current project
if ($fileDetail->fil_published[0] == "1" || $fileDetail->fil_project[0] != $projectSession) {
headerFunction("index.php");
}
// serve the requested file
include("../includes/download.php");
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.