-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathadmin-loader.php
38 lines (29 loc) · 1.16 KB
/
admin-loader.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
<?php
// $Id: admin-loader.php 825 2011-12-09 00:06:11Z i.bitcero $
// --------------------------------------------------------------
// Red México Common Utilities
// A framework for Red México Modules
// Author: Eduardo Cortés <i.bitcero@gmail.com>
// Email: i.bitcero@gmail.com
// License: GPL 2.0
// --------------------------------------------------------------
/**
* Admin loader file
*/
//require_once __DIR__ . '/loader.php';
// Usefull admin clases
$tpl = RMTemplate::get();
$rmc_config = RMSettings::cu_settings();
$rmc_theme = isset($rmc_config->theme) ? $rmc_config->theme : 'helium';
if (!file_exists(RMCPATH . '/themes/' . $rmc_theme . '/admin-gui.php')) {
$rmc_theme = 'helium';
}
RMTemplate::get()->add_style('general.min.css', 'rmcommon');
define('RMTHEMEPATH', RMCPATH . '/themes/' . $rmc_theme);
define('RMTHEMEURL', RMCURL . '/themes/' . $rmc_theme);
// Load theme events
//RMEvents::get()->load_extra_preloads(RMTHEMEPATH, ucfirst($rmc_theme).'Theme');
header('Expires: Mon, 26 Jul 1990 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');