8928473219051506420851cd38dc4fe783f0bebc
[atutor.git] / docs / mods / _core / file_manager / preview_top.php
1 <?php\r
2 /************************************************************************/\r
3 /* ATutor                                                                                                                               */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2002-2010                                              */\r
6 /* Inclusive Design Institute                                           */\r
7 /* http://atutor.ca                                                                                                             */\r
8 /*                                                                                                                                              */\r
9 /* This program is free software. You can redistribute it and/or        */\r
10 /* modify it under the terms of the GNU General Public License          */\r
11 /* as published by the Free Software Foundation.                        */\r
12 /************************************************************************/\r
13 // $Id$\r
14 \r
15 define('AT_INCLUDE_PATH', '../../../include/');\r
16 require(AT_INCLUDE_PATH.'vitals.inc.php');\r
17 \r
18 if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {\r
19         $get_file = AT_BASE_HREF.'get.php/';\r
20 } else {\r
21         $get_file = AT_BASE_HREF.'content/' . $_SESSION['course_id'] . '/';\r
22 }\r
23 \r
24 ?>\r
25 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />\r
26 <html lang="<?php echo $myLang->getCode(); ?>">\r
27 <head>\r
28         <title><?php echo _AT('file_manager_frame'); ?></title>\r
29         <meta http-equiv="Content-Type" content="text/html; <?php echo $myLang->getCharacterSet(); ?>" />\r
30 </head>\r
31 \r
32 <body>\r
33 <p align="bottom">\r
34 \r
35 <a href="index.php?framed=<?php echo SEP; ?>popup=<?php echo SEP; ?>pathext=<?php echo $_GET['pathext'].SEP . 'popup=' . $_GET['popup'] . SEP . 'framed=' . $_GET['framed']; ?>" target="_top"><?php echo _AT('return_file_manager'); ?></a> \r
36 <?php if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE): ?>\r
37          | \r
38         <a href="<?php echo $get_file; ?>@/<?php echo $_GET['file']; ?>" target="_top"><?php echo _AT('download_file'); ?></a>\r
39 <?php endif; ?> |\r
40 <a href="<?php echo $get_file; ?><?php echo $_GET['file']; ?>" target="_top"><?php echo _AT('remove_frame'); ?></a>\r
41 </p>\r
42 \r
43 </body>\r
44 </html>