$this->argc = count($this->argv);
if((array_key_exists('0',$this->argv)) && strlen($this->argv[0])) {
$this->module = str_replace(".", "_", $this->argv[0]);
+ $this->module = str_replace("-", "_", $this->module);
}
else {
$this->argc = 1;
$this->module = 'home';
}
- /**
- * Special handling for the webfinger/lrdd host XRD file
- */
-
- if($this->cmd === '.well-known/host-meta') {
- $this->argc = 1;
- $this->argv = array('hostxrd');
- $this->module = 'hostxrd';
- }
-
/**
* See if there is any page number information, and initialise
* pagination
--- /dev/null
+<?php\r
+require_once("hostxrd.php");\r
+\r
+function _well_known_init(&$a){\r
+ if ($a->argc > 1) {\r
+ switch($a->argv[1]) {\r
+ case "host-meta":\r
+ hostxrd_init($a);\r
+ break;\r
+ }\r
+ }\r
+ http_status_exit(404);\r
+ killme();\r
+}
\ No newline at end of file