move code up one directory
[atutor.git] / mods / _core / languages / language_translate.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 // $Id$
14
15 define('AT_INCLUDE_PATH', '../../../include/');
16 require(AT_INCLUDE_PATH.'vitals.inc.php');
17 admin_authenticate(AT_ADMIN_PRIV_LANGUAGES);
18
19 if (isset($_POST['svn_submit'])) {
20         $languageManager->liveImport($addslashes($_POST['import_lang']));
21         header('Location: '.$_SERVER['PHP_SELF']);
22         exit;
23 }
24
25 require(AT_INCLUDE_PATH.'header.inc.php');
26
27
28 $button_state = '';
29 if (!defined('AT_DEVEL_TRANSLATE') || !AT_DEVEL_TRANSLATE) {
30         $button_state = 'disabled="disabled"';
31 }
32
33 $savant->assign('button_state', $button_state); 
34 $savant->display('admin/system_preferences/language_translate.tmpl.php');
35 require(AT_INCLUDE_PATH.'footer.inc.php'); ?>