Rev 59 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
<?php
include_once( '../../header.php' );
if ( isset( $_REQUEST['file_id'] ) ) {
$query =
"select
concat( b.theValue, '/', a.theValue, '/', file.name_on_disk )
from
file, _system a, _system b
where
file.file_id = $_REQUEST[file_id]
and a.group_name = 'Files'
and a.key_name = 'root path'
and b.group_name = 'System'
and b.key_name = 'root url'";
$path = getOneDBValue( $query );
if ( $path )
header( "Location: $path" );
else
print "<html><body>SQL Error running <pre>$query</pre></body></html>";
}
print "<html><body>Can not load file</body></html>";
?>