move code up one directory
[atutor.git] / mods / _core / languages / missing_language.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 //if ($_SESSION['course_id'] > -1) { exit; }\r
18 \r
19 if (isset($_POST['submit'])) {\r
20         unset($_POST['g']);\r
21         unset($_POST['submit']);\r
22         $langEditor->updateTerms($_POST);\r
23 }\r
24 \r
25 $params = array();\r
26 if ($_POST['filter_new']) {\r
27         $params['new'] = true;\r
28 }\r
29 if ($_POST['filter_update']) {\r
30         $params['update'] = true;\r
31 }\r
32 $langEditor->setFilter($params);\r
33 \r
34 \r
35 $langEditor->printTerms($_GET['terms']);\r
36 \r
37 \r
38 ?>