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/example_routing.php | 54 ----------------------------- plugins/example_routing/init.php | 54 +++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 54 deletions(-) delete mode 100644 plugins/example_routing/example_routing.php create mode 100644 plugins/example_routing/init.php (limited to 'plugins/example_routing') diff --git a/plugins/example_routing/example_routing.php b/plugins/example_routing/example_routing.php deleted file mode 100644 index 31c5b6f28..000000000 --- a/plugins/example_routing/example_routing.php +++ /dev/null @@ -1,54 +0,0 @@ -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; - } - -} -?> 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-54-g00ecf