Subversion Repositories computer_asset_manager_v1

Rev

Rev 59 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
56 rodolico 1
<?php
2
 
3
   include_once( '../../header.php' );
4
 
59 rodolico 5
   if ( isset( $_REQUEST['file_id'] ) ) {
56 rodolico 6
      $query =
7
           "select
59 rodolico 8
               concat( b.theValue, '/', a.theValue, '/', file.name_on_disk ) 
56 rodolico 9
            from 
59 rodolico 10
               file, _system a, _system b
56 rodolico 11
            where 
59 rodolico 12
               file.file_id = $_REQUEST[file_id]
13
               and a.group_name = 'Files' 
56 rodolico 14
               and a.key_name = 'root path'
15
               and b.group_name = 'System' 
16
               and b.key_name = 'root url'";
17
      $path = getOneDBValue( $query );
18
      if ( $path )
19
         header( "Location: $path" );
64 rodolico 20
      else
21
         print "<html><body>SQL Error running <pre>$query</pre></body></html>";
56 rodolico 22
   }
59 rodolico 23
   print "<html><body>Can not load file</body></html>";
56 rodolico 24
?>