-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathddos.php
41 lines (31 loc) · 1.09 KB
/
ddos.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
<?php
/*
* Frontend plugin: ddos
*
* Required functions: ddos_ParseInput and demoplugin_Run
*
*/
/*
* ddos_ParseInput is called prior to any output to the web browser
* and is intended for the plugin to parse possible form data. This
* function is called only, if this plugin is selected in the plugins tab.
* If required, this function may set any number of messages as a result
* of the argument parsing.
* The return value is ignored.
*/
function ddos_ParseInput( $plugin_id ) {
SetMessage('error', "Error set by demo plugin!");
SetMessage('warning', "Warning set by demo plugin!");
SetMessage('alert', "Alert set by demo plugin!");
SetMessage('info', "Info set by demo plugin!");
} // End of ddos_ParseInput
/*
* This function is called after the header and the navigation bar have
* been sent to the browser. It's now up to this function what to display.
* This function is called only, if this plugin is selected in the plugins tab
* Its return value is ignored.
*/
function ddos_Run( $plugin_id ) {
// your code here
} // End of ddos_Run
?>