diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-05-11 12:08:06 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-05-11 12:08:06 +0000 |
commit | abc8436bfdc331609342105d8c56e8bd6468e693 (patch) | |
tree | 8d0e9e6dfef0f764e36573b5d508d49dc1a3dc52 /_nav/html | |
parent | 2f1a0016e212b6feb9b64a141e0c2319a31f0e01 (diff) | |
download | www-abc8436bfdc331609342105d8c56e8bd6468e693.tar www-abc8436bfdc331609342105d8c56e8bd6468e693.tar.gz www-abc8436bfdc331609342105d8c56e8bd6468e693.tar.bz2 www-abc8436bfdc331609342105d8c56e8bd6468e693.tar.xz www-abc8436bfdc331609342105d8c56e8bd6468e693.zip |
new global nav bar service
Diffstat (limited to '_nav/html')
-rw-r--r-- | _nav/html/index.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/_nav/html/index.php b/_nav/html/index.php new file mode 100644 index 000000000..31ba1d514 --- /dev/null +++ b/_nav/html/index.php @@ -0,0 +1,28 @@ +<?php +/** +*/ + +/** Below variables are defined after the document variables. */ + +/** URL of the document calling the service. */ +$url = isset($_GET['u']) ? trim($_GET['u']) : null; + +/** html[lang] of the doc. */ +$lang = isset($_GET['l']) ? trim($_GET['l']) : null; + +/** body[class] of the doc. */ +$body = isset($_GET['b']) ? trim($_GET['b']) : null; + +/** meta[name=context] */ +$context = isset($_GET['c']) ? trim($_GET['c']) : null; + +/** wrap the returned HTML in <header id="hmgn" />? */ +$wrap = isset($_GET['w']) ? true : false; + +include '../lib.php'; + +header('Access-Control-Allow-Origin: *'); +header('Access-Control-Allow-Methods: GET'); +header('Content-Type: text/html;charset=utf-8'); +header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day')))); +echo _mgnav_html($wrap, $lang);
\ No newline at end of file |