[ 'qdated' => [ 'html' => function($tag) { $qdated = qdated(); return '' . $qdated . ''; } ] ] ]); /** * Returns the current qdated address * If qdated is not available, returns null * * @return string */ function qdated() { $path = $_SERVER['HOME'] . DS . '.qdated-current'; if(!is_file($path)) return null; return 'dated-' . trim(F::read($path)) . '@' . Url::host(); }