/
templates_modules.php
48 lines (41 loc) · 1.36 KB
/
templates_modules.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
@package catalog::admin::applications
@author Loaded Commerce
@copyright Copyright 2003-2014 Loaded Commerce, LLC
@copyright Portions Copyright 2003 osCommerce
@copyright Template built on Developr theme by DisplayInline http://themeforest.net/user/displayinline under Extended license
@license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
@version $Id: templates_modules.php v1.0 2013-08-08 datazen $
*/
class lC_Application_Templates_modules extends lC_Template_Admin {
/*
* Protected variables
*/
protected $_module = 'templates_modules',
$_page_title,
$_page_contents = 'main.php';
/*
* Class constructor
*/
public function __construct() {
global $lC_Language;
if ( !isset($_GET['set']) ) {
$_GET['set'] = '';
}
$lC_DirectoryListing = new lC_DirectoryListing('../includes/modules/' . $_GET['set']);
$lC_DirectoryListing->setIncludeDirectories(false);
$_SESSION['modules_location'] = $lC_DirectoryListing->getDirectory();
switch ( $_GET['set'] ) {
case 'content':
$this->_page_title = $lC_Language->get('heading_title_content');
break;
case 'boxes':
default:
$_GET['set'] = 'boxes';
$this->_page_title = $lC_Language->get('heading_title_boxes');
break;
}
}
}
?>