36 lines
799 B
PHP
36 lines
799 B
PHP
<?php
|
|
require_once dirname(__FILE__).'/accesscheck.php';
|
|
|
|
class phplistPlugin {
|
|
var $name = "Default Plugin";
|
|
|
|
var $coderoot = "./PLUGIN_ROOTDIR/defaultplugin/"; # coderoot relative to the phplist admin directory
|
|
|
|
function phplistplugin() {
|
|
# initialisation code
|
|
}
|
|
|
|
# parse the text of the thankyou page
|
|
# parameters:
|
|
# pageid -> id of the subscribe page
|
|
# userid -> id of the user
|
|
# text -> current text of the page
|
|
# returns parsed text
|
|
function parseThankyou($pageid = 0,$userid = 0,$text = "") {
|
|
return $text;
|
|
}
|
|
# abstract method to be overriden
|
|
function displayUsers($user, $email, $listing){
|
|
}
|
|
|
|
function adminmenu() {
|
|
return array (
|
|
# page, description
|
|
"main" => "Main Page",
|
|
"helloworld" => "Hello World page"
|
|
);
|
|
}
|
|
}
|
|
|
|
?>
|