From e938b1de117cfde17a5773fe0c6fc92185c873fe Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 30 Dec 2012 13:36:40 +0400 Subject: rename plugin main class files --- plugins/example_routing/init.php | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 plugins/example_routing/init.php (limited to 'plugins/example_routing/init.php') diff --git a/plugins/example_routing/init.php b/plugins/example_routing/init.php new file mode 100644 index 000000000..31c5b6f28 --- /dev/null +++ b/plugins/example_routing/init.php @@ -0,0 +1,54 @@ +link = $host->get_link(); + $this->host = $host; + + $host->add_handler("test", "example", $this); + $host->add_handler("public", "getunread", $this); + } + + function getunread() { + print rand(0,100); # yeah right + } + + function example() { + print "example method called"; + } + + function csrf_ignore($method) { + return true; + } + + function before($method) { + return true; + } + + function after() { + return true; + } + +} +?> -- cgit v1.2.3