forked from e107inc/calendar_menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
e_notify.php
55 lines (42 loc) · 1.11 KB
/
e_notify.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2013 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
if (!defined('e107_INIT')) { exit; }
// v2.x Standard
class calendar_menu_notify extends notify
{
function config()
{
$config = array();
$config[] = array(
'name' => NT_LAN_EC_7,
'function' => "ecalnew",
'category' => ''
);
$config[] = array(
'name' => NT_LAN_EC_2,
'function' => "ecaledit",
'category' => ''
);
return $config;
}
function ecalnew($data)
{
$message = NT_LAN_EC_3.': '.USERNAME.' ('.NT_LAN_EC_4.': '.$data['ip'].' )<br />';
$message .= NT_LAN_EC_5.':<br />'.$data['cmessage'].'<br /><br />';
$this->send('ecalnew', NT_LAN_EC_6, $message);
}
function ecaledit($data)
{
$message = NT_LAN_EC_3.': '.USERNAME.' ('.NT_LAN_EC_4.': '.$data['ip'].' )<br />';
$message .= NT_LAN_EC_5.':<br />'.$data['cmessage'].'<br /><br />';
$this->send('ecaledit', NT_LAN_EC_8, $message);
}
}
?>