Quick Search:

View

Revision:

Diff

Diff from 1165 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/branches/frank/osc-tickets/admin/index.php

Annotated File View

hpdl
1
1 <?php
2 /*
mattice
151
3   $Id: index.php 1103 2006-11-03 22:16:19Z hpdl $
hpdl
1
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
hpdl
1076
8   Copyright (c) 2006 osCommerce
hpdl
1
9
10   Released under the GNU General Public License
11 */
12
13   require('includes/application_top.php');
14
hpdl
1076
15   $module = 'index';
hpdl
1
16
hpdl
1076
17   if (empty($_GET) === false) {
18     $first_array = array_slice($_GET, 0, 1);
19     $_module = osc_sanitize_string(basename(key($first_array)));
20
21     if (file_exists('includes/content/' . $_module . '.php')) {
22       $module = $_module;
23     }
24   }
25
hpdl
1078
26   if ( !osC_Access::hasAccess($module) ) {
27     $osC_MessageStack->add_session('header', 'No access.', 'error');
28
29     osc_redirect( osc_href_link_admin( FILENAME_DEFAULT ) );
30   }
31
hpdl
1076
32   $osC_Language->loadConstants($module . '.php');
33
hpdl
1078
34   require('../includes/classes/template.php');
35   require('includes/content/' . $module . '.php');
hpdl
1076
36
37   $module_class = 'osC_Content_' . ucfirst($module);
38
39   $osC_Template = new $module_class();
hpdl
1103
40   $osC_Template->set('default');
hpdl
1076
41
hpdl
1
42   require('templates/default.php');
43
44   require('includes/application_bottom.php');
45 ?>