XOOPS RMCommon Utilities
2.1.8.91RC
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
rmcommon.php
Go to the documentation of this file.
1
<?php
2
// $Id: rmcommon.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
11
class
RmcommonRmcommonPreload
12
{
13
public
function
eventRmcommonLoadRightWidgets
($widgets){
14
15
if
(!defined(
'RMCLOCATION'
))
return
;
16
17
include_once
RMCPATH
.
'/include/right_widgets.php'
;
18
19
global
$xoopsModule
;
20
if
(
RMCLOCATION
==
'modules'
&& $xoopsModule->dirname()==
'rmcommon'
&&
rmc_server_var
($_REQUEST,
'action'
,
''
)==
''
)
21
$widgets[] =
rmc_available_mods
();
22
23
if
(
RMCLOCATION
==
'blocks'
&& $xoopsModule->dirname()==
'rmcommon'
){
24
//$widgets[] = rmc_blocks_new();
25
//$widgets[] = rmc_blocks_addpos();
26
}
27
28
return
$widgets;
29
30
}
31
32
public
function
eventRmcommonXoopsCommonEnd
(){
33
global
$xoopsConfig
;
34
35
// Get preloaders from current theme
36
RMEvents::get
()->load_extra_preloads(XOOPS_THEME_PATH.
'/'
.$xoopsConfig[
'theme_set'
], ucfirst($xoopsConfig[
'theme_set'
].
'Theme'
));
37
38
$url
=
RMFunctions::current_url
();
39
$p
= parse_url(
$url
);
40
41
$config =
RMFunctions::configs
();
42
43
if
(substr(
$p
[
'path'
], -11)==
'backend.php'
&& $config[
'rss_enable'
]){
44
include_once
RMCPATH
.
'/rss.php'
;
45
die();
46
}
47
}
48
}
L:
XOOPS_Allure
SVN_XOOPS2
RMC
rmcommon
trunk
rmcommon
events
rmcommon.php
Generated on Sun Mar 17 2013 20:41:07 for XOOPS RMCommon Utilities by
1.8.3.1