Subversion Repositories computer_asset_manager_v1

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
56 rodolico 1
<?php
2
 
3
   include_once( '../../header.php' );
4
 
5
   if ( isset( $_REQUEST['document_id'] ) ) {
6
      $query =
7
           "select
8
               concat( b.theValue, '/', a.theValue, '/', document.name_on_disk ) 
9
            from 
10
               document, _system a, _system b
11
            where 
12
               document.document_id = $_REQUEST[document_id]
13
               and a.group_name = 'Documents' 
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" );
20
   }
21
   print "<html><body>Can not load document</body></html>";
22
?>