diff options
author | Andrew Dolgov <[email protected]> | 2021-03-05 09:54:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-05 09:54:28 +0300 |
commit | 573fbe93ffb03d07c91c00aebcb91ec3932cbc1b (patch) | |
tree | 4b3c57394a576ab14263627e0672e32a691714f1 |
initial
-rw-r--r-- | init.js | 9 | ||||
-rw-r--r-- | init.php | 24 |
2 files changed, 33 insertions, 0 deletions
@@ -0,0 +1,9 @@ +require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) { + ready(function () { + hash_set = function () { + }; + hash_get = function () { + }; + }); +}); + diff --git a/init.php b/init.php new file mode 100644 index 0000000..57d4c99 --- /dev/null +++ b/init.php @@ -0,0 +1,24 @@ +<?php +class No_URL_Hashes extends Plugin { + private $host; + + function about() { + return array(null, + "Disable URL hash usage (e.g. #f=10, etc)", + "fox"); + } + + function init($host) { + $this->host = $host; + + } + + function get_js() { + return file_get_contents(__DIR__ . "/init.js"); + } + + function api_version() { + return 2; + } + +}
\ No newline at end of file |