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