init.php 332 B

123456789101112131415161718192021222324
  1. <?php
  2. class No_URL_Hashes extends Plugin {
  3. private $host;
  4. function about() {
  5. return array(1.0,
  6. "Disable URL hash usage (e.g. #f=10, etc)",
  7. "fox");
  8. }
  9. function init($host) {
  10. $this->host = $host;
  11. }
  12. function get_js() {
  13. return file_get_contents(__DIR__ . "/init.js");
  14. }
  15. function api_version() {
  16. return 2;
  17. }
  18. }