XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
admin_loader.php
Go to the documentation of this file.
1 <?php
2 // $Id: admin_loader.php 825 2011-12-09 00:06:11Z i.bitcero $
3 // --------------------------------------------------------------
4 // Red México Common Utilities
5 // A framework for Red México Modules
6 // Author: Eduardo Cortés <i.bitcero@gmail.com>
7 // Email: i.bitcero@gmail.com
8 // License: GPL 2.0
9 // --------------------------------------------------------------
10 
15 //require_once 'loader.php';
16 
17 // Usefull admin clases
19 
21 $rmc_theme = isset($rmc_config['theme']) ? $rmc_config['theme'] : 'designia';
22 
23 if (!file_exists(RMCPATH.'/themes/'.$rmc_theme.'/admin_gui.php')){
24  $rmc_theme = 'default';
25 }
26 
27 RMTemplate::get()->add_style('general.css','rmcommon');
28 
29 define('RMTHEMEPATH', RMCPATH.'/themes/'.$rmc_theme);
30 define('RMTHEMEURL', RMCURL.'/themes/'.$rmc_theme);
31 
32 // Load theme events
33 RMEvents::get()->load_extra_preloads(RMTHEMEPATH, ucfirst($rmc_theme).'Theme');
34 
35 header ("Expires: Mon, 26 Jul 1990 05:00:00 GMT");
36 header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
37 header ("Cache-Control: no-cache, must-revalidate");
38 header ("Pragma: no-cache");