Merge pull request #8 from radiocontrolled/0004872
[atutor.git] / popuphelp.php
1 <?php
2 /****************************************************************/
3 /* ATutor                                                                                                               */
4 /****************************************************************/
5 /* Copyright (c) 2002-2010                                      */
6 /* Inclusive Design Institute                                   */
7 /* http://atutor.ca                                             */
8 /*                                                              */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License  */
11 /* as published by the Free Software Foundation.                                */
12 /****************************************************************/
13 define('AT_INCLUDE_PATH', 'include/');
14
15 require (AT_INCLUDE_PATH.'vitals.inc.php');
16
17 require(AT_INCLUDE_PATH.'html/frameset/header.inc.php');        
18 ?>
19 [<a href="javascript:window.close()"><?php echo _AT('close_help_window'); ?></a>]
20 <?php
21
22         /**
23          * Modified Jacek Materna
24          * Using Message.class.php layer to print
25          */
26         if ($_GET['h']) {
27                 $h = $_GET['h'];
28                 
29                 if (is_string($_GET['h'])) { // just a AT_HELP code with no prefix
30                         $msg->printHelps($h);
31                 } else {
32                         /* it's probably an array */
33                         $h = unserialize(urldecode(stripslashes($_GET['h'])));
34                         $msg->printHelps($h);
35                 }
36         }
37 ?>
38 </body>
39 </html>