1: <?php
2: /**
3: * Private Messages
4: *
5: * You may not change or alter any portion of this comment or credits
6: * of supporting developers from this source code or any supporting source code
7: * which is considered copyrighted (c) material of the original comment or credit authors.
8: * This program is distributed in the hope that it will be useful,
9: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11: *
12: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
13: * @license GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
14: * @package pm
15: * @since 2.4.0
16: * @author trabis <lusopoemas@gmail.com>
17: */
18:
19: // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
20:
21: /**
22: * PM core preloads
23: *
24: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
25: * @license GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
26: * @author trabis <lusopoemas@gmail.com>
27: */
28: class PmCorePreload extends XoopsPreloadItem
29: {
30: /**
31: * @param $args
32: */
33: public static function eventCorePmliteStart($args)
34: {
35: header('location: ./modules/pm/pmlite.php' . (empty($_SERVER['QUERY_STRING']) ? '' : '?' . $_SERVER['QUERY_STRING']));
36: exit();
37: }
38:
39: /**
40: * @param $args
41: */
42: public static function eventCoreReadpmsgStart($args)
43: {
44: header('location: ./modules/pm/readpmsg.php' . (empty($_SERVER['QUERY_STRING']) ? '' : '?' . $_SERVER['QUERY_STRING']));
45: exit();
46: }
47:
48: /**
49: * @param $args
50: */
51: public static function eventCoreViewpmsgStart($args)
52: {
53: header('location: ./modules/pm/viewpmsg.php' . (empty($_SERVER['QUERY_STRING']) ? '' : '?' . $_SERVER['QUERY_STRING']));
54: exit();
55: }
56:
57: /**
58: * @param $args
59: */
60: public static function eventCoreClassSmartyXoops_pluginsXoinboxcount($args)
61: {
62: $args[0] = xoops_getModuleHandler('message', 'pm');
63: }
64: }
65: