XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
notification.php
Go to the documentation of this file.
1
<?php
2
// start hack by Trabis
3
if
(!class_exists(
'ProtectorRegistry'
))
exit
(
'Registry not found'
);
4
5
$registry
=&
ProtectorRegistry::getInstance
();
6
$mydirname
=
$registry
->getEntry(
'mydirname'
);
7
$mydirpath
=
$registry
->getEntry(
'mydirpath'
);
8
$language
=
$registry
->getEntry(
'language'
);
9
// end hack by Trabis
10
11
eval(
'
12
function '
.
$mydirname
.
'_notify_iteminfo( $category, $item_id )
13
{
14
return protector_notify_base( "'
.
$mydirname
.
'" , $category , $item_id ) ;
15
}
16
'
) ;
17
18
if
( ! function_exists(
'protector_notify_base'
) ) {
19
20
function
protector_notify_base(
$mydirname
, $category , $item_id )
21
{
22
include_once dirname(__FILE__).
'/include/common_functions.php'
;
23
24
$db
=&
XoopsDatabaseFactory::getDatabaseConnection
();
25
26
$module_handler
=&
xoops_gethandler
(
'module'
) ;
27
$module
=&
$module_handler
->getByDirname(
$mydirname
) ;
28
29
if
( $category ==
'global'
) {
30
$item[
'name'
] =
''
;
31
$item[
'url'
] =
''
;
32
return
$item ;
33
}
34
}
35
36
}
37
38
?>
L:
0xoops
xoops-2.5.6
htdocs
xoops_lib
modules
protector
notification.php
Generated on Fri May 10 2013 01:04:27 for XOOPS 2.5.6 by
1.8.3.1