1: <?php
2:
3: if (!class_exists('ProtectorRegistry')) {
4: exit('Registry not found');
5: }
6:
7: $registry = ProtectorRegistry::getInstance();
8: $mydirname = $registry->getEntry('mydirname');
9: $mydirpath = $registry->getEntry('mydirpath');
10: $language = $registry->getEntry('language');
11:
12:
13: eval('
14: function ' . $mydirname . '_notify_iteminfo( $category, $item_id )
15: {
16: return protector_notify_base( "' . $mydirname . '" , $category , $item_id ) ;
17: }
18: ');
19:
20: if (!function_exists('protector_notify_base')) {
21:
22: 23: 24: 25: 26: 27: 28:
29: function protector_notify_base($mydirname, $category, $item_id)
30: {
31: include_once __DIR__ . '/include/common_functions.php';
32:
33: $db = XoopsDatabaseFactory::getDatabaseConnection();
34:
35:
36: $module_handler = xoops_getHandler('module');
37: $module = $module_handler->getByDirname($mydirname);
38:
39: if ($category === 'global') {
40: $item['name'] = '';
41: $item['url'] = '';
42:
43: return $item;
44: }
45: return null;
46: }
47: }
48: