aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2013-02-10 15:58:16 +0000
committerRomain d'Alverny <rda@mageia.org>2013-02-10 15:58:16 +0000
commit3c48686e1167c42d4af5824b9756e02c3b88ad2d (patch)
tree532da84d4befe10b37d538e129f8901f34d04f79
parent44f8c1c54dcda264e3083308c93bb735b3449b6d (diff)
downloadnav-3c48686e1167c42d4af5824b9756e02c3b88ad2d.tar
nav-3c48686e1167c42d4af5824b9756e02c3b88ad2d.tar.gz
nav-3c48686e1167c42d4af5824b9756e02c3b88ad2d.tar.bz2
nav-3c48686e1167c42d4af5824b9756e02c3b88ad2d.tar.xz
nav-3c48686e1167c42d4af5824b9756e02c3b88ad2d.zip
add license headers
-rw-r--r--README.md2
-rw-r--r--css/index.php18
-rw-r--r--html/index.php15
-rw-r--r--index.php20
-rw-r--r--js/index.php18
-rw-r--r--lib.php17
6 files changed, 88 insertions, 2 deletions
diff --git a/README.md b/README.md
index 8e0fd4d..a109ae7 100644
--- a/README.md
+++ b/README.md
@@ -78,7 +78,7 @@ The detected and used features are:
## Code & license
* code is in [svn://svn.mageia.org/svn/web/nav/](http://svn.mageia.org/web/nav/)
-* licensed under GNU GPL-3+, 2012, rda
+* licensed under GNU GPL-2+, 2012, rda
* issues on [bugs.mageia.org](https://bugs.mageia.org/buglist.cgi?query_format=advanced&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&component=nav.mageia.org&product=Websites)
* patches and discussions welcome in [Mageia Web team](https://wiki.mageia.org/en/Web_team)
diff --git a/css/index.php b/css/index.php
index 3960012..493b1c8 100644
--- a/css/index.php
+++ b/css/index.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * mageia.org global nav bar.
+ *
+ * PHP version 5.4
+ *
+ * @category Mageia
+ * @package Mageia\Web\nav
+ * @author rda <rda@mageia.org>
+ * @link http://nav.mageia.org/
+ *
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2+
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License aspublished by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+*/
+
header('Content-Type: text/css;charset=utf-8');
header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day'))));
readfile('source.css');
diff --git a/html/index.php b/html/index.php
index 2de3938..e93080e 100644
--- a/html/index.php
+++ b/html/index.php
@@ -1,5 +1,20 @@
<?php
/**
+ * mageia.org global nav bar.
+ *
+ * PHP version 5.4
+ *
+ * @category Mageia
+ * @package Mageia\Web\nav
+ * @author rda <rda@mageia.org>
+ * @link http://nav.mageia.org/
+ *
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2+
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License aspublished by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
*/
$t0 = microtime();
diff --git a/index.php b/index.php
index a0f32d8..6467e80 100644
--- a/index.php
+++ b/index.php
@@ -1,4 +1,22 @@
-<html lang="en">
+<?php
+/**
+ * mageia.org global nav bar.
+ *
+ * PHP version 5.4
+ *
+ * @category Mageia
+ * @package Mageia\Web\nav
+ * @author rda <rda@mageia.org>
+ * @link http://nav.mageia.org/
+ *
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2+
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License aspublished by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+*/
+?><html lang="en">
<head>
<meta name="robots" content="noindex,nosnippet,nofollow">
<title>mognase doc</title>
diff --git a/js/index.php b/js/index.php
index ed17b04..9373b09 100644
--- a/js/index.php
+++ b/js/index.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * mageia.org global nav bar.
+ *
+ * PHP version 5.4
+ *
+ * @category Mageia
+ * @package Mageia\Web\nav
+ * @author rda <rda@mageia.org>
+ * @link http://nav.mageia.org/
+ *
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2+
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License aspublished by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+*/
+
//header('Access-Control-Allow-Origin: *');
//header('Access-Control-Allow-Methods: GET');
header('Content-Type: text/javascript;charset=utf-8');
diff --git a/lib.php b/lib.php
index bd4af2a..44b954f 100644
--- a/lib.php
+++ b/lib.php
@@ -1,4 +1,21 @@
<?php
+/**
+ * mageia.org global nav bar utilities.
+ *
+ * PHP version 5.4
+ *
+ * @category Mageia
+ * @package Mageia\Web\nav
+ * @author rda <rda@mageia.org>
+ * @link http://nav.mageia.org/
+ *
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2+
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License aspublished by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+*/
// definition
class NCache