-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventRegistration.module.php
More file actions
executable file
·115 lines (95 loc) · 2.5 KB
/
EventRegistration.module.php
File metadata and controls
executable file
·115 lines (95 loc) · 2.5 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
#-------------------------------------------------------------------------
# Module: EventRegistration
# Version: 0.1
#-------------------------------------------------------------------------
class EventRegistration extends CMSModule{
function GetName()
{
return 'EventRegistration';
}
function GetFriendlyName()
{
return $this->Lang('friendlyname');
}
function SetParameters()
{
$this->RegisterModulePlugin();
$this->RestrictUnknownParams();
$this->CreateParameter('teamname');
$this->SetParameterType('teamname', CLEAN_STRING);
$this->CreateParameter('mail');
$this->SetParameterType('mail', CLEAN_STRING);
$this->CreateParameter('phone');
$this->SetParameterType('phone', CLEAN_STRING);
$this->CreateParameter('password');
$this->SetParameterType('password', CLEAN_STRING);
$this->CreateParameter('submit');
$this->SetParameterType('submit', CLEAN_STRING);
$this->CreateParameter('message');
$this->SetParameterType('message', CLEAN_STRING);
$this->CreateParameter('eventname');
$this->SetParameterType('eventname', CLEAN_STRING);
$this->CreateParameter('eventid');
$this->SetParameterType('eventid', CLEAN_INT);
$this->CreateParameter('maxteams');
$this->SetParameterType('maxteams', CLEAN_INT);
}
function GetVersion()
{
return '0.2';
}
function GetHelp()
{
return $this->Lang('help');
}
function GetAuthor()
{
return 'Johannes Loher';
}
function GetAuthorEmail()
{
return 'johannes.loher@fg4f.de';
}
function GetChangeLog() {
return $this->Lang('changelog');
}
function IsPluginModule()
{
return true;
}
function HasAdmin()
{
return true;
}
function GetAdminSection()
{
return 'extensions';
}
function GetAdminDescription()
{
return $this->Lang('admindescription');
}
function VisibleToAdminUser()
{
return true;
$this->CheckPermisson('Use EventRegistration');
}
function MinimumCMSVersion()
{
return "1.9";
}
function InstallPostMessage()
{
return $this->Lang('postinstall');
}
function UninstallPostMessage()
{
return $this->Lang('postuninstall');
}
function UninstallPreMessage()
{
return $this->Lang('really_uninstall');
}
}
?>