hpdl
|
1856
|
1
|
<?php
|
|
2
|
/*
|
|
3
|
$Id: languages.php 1863 2009-03-06 23:53:49Z hpdl $
|
|
4
|
|
|
5
|
osCommerce, Open Source E-Commerce Solutions
|
|
6
|
http://www.oscommerce.com
|
|
7
|
|
|
8
|
Copyright (c) 2009 osCommerce
|
|
9
|
|
|
10
|
This program is free software; you can redistribute it and/or modify
|
|
11
|
it under the terms of the GNU General Public License v2 (1991)
|
|
12
|
as published by the Free Software Foundation.
|
|
13
|
*/
|
|
14
|
|
|
15
|
require('includes/applications/languages/classes/languages.php');
|
|
16
|
require('includes/applications/currencies/classes/currencies.php');
|
|
17
|
|
|
18
|
class osC_Application_Languages extends osC_Template_Admin {
|
|
19
|
|
|
20
|
/* Protected variables */
|
|
21
|
|
|
22
|
protected $_module = 'languages',
|
|
23
|
$_page_title,
|
|
24
|
$_page_contents = 'main.php';
|
|
25
|
|
|
26
|
/* Class constructor */
|
|
27
|
|
|
28
|
function __construct() {
|
|
29
|
global $osC_Language;
|
|
30
|
|
|
31
|
$this->_page_title = $osC_Language->get('heading_title');
|
|
32
|
|
|
33
|
if ( !empty($_GET[$this->_module]) && is_numeric($_GET[$this->_module]) && osC_Languages_Admin::exists($_GET[$this->_module]) ) {
|
|
34
|
$this->_page_title .= ': ' . osC_Languages_Admin::get($_GET[$this->_module], 'name');
|
|
35
|
$this->_page_contents = 'groups.php';
|
|
36
|
|
|
37
|
if ( isset($_GET['group']) && !empty($_GET['group']) && osC_Languages_Admin::isDefinitionGroup($_GET[$this->_module], $_GET['group']) ) {
|
|
38
|
$this->_page_title .= ': ' . $_GET['group'];
|
|
39
|
$this->_page_contents = 'definitions.php';
|
|
40
|
}
|
|
41
|
}
|
|
42
|
}
|
|
43
|
}
|
|
44
|
?>
|