[Kos-cvs] kos-web/include header.php, 1.12, 1.13 main.php, 1.6,
1.7 toc.php, 1.10, 1.11
thomas at kos.enix.org
thomas at kos.enix.org
Thu Dec 30 02:01:31 CET 2004
Update of /var/cvs/kos/kos-web/include
In directory the-doors:/tmp/cvs-serv15457/include
Modified Files:
header.php main.php toc.php
Log Message:
Accès à l'interface d'administration
Index: main.php
===================================================================
RCS file: /var/cvs/kos/kos-web/include/main.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- main.php 29 Dec 2004 23:30:16 -0000 1.6
+++ main.php 30 Dec 2004 01:01:29 -0000 1.7
@@ -47,8 +47,9 @@
function make_link($url, $title)
{
global $lang;
+ global $topsrcdir;
- echo "<a href=\"$url?lang=$lang\">$title</a>";
+ echo "<a href=\"" . $topsrcdir . "/$url?lang=$lang\">$title</a>";
}
Index: header.php
===================================================================
RCS file: /var/cvs/kos/kos-web/include/header.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- header.php 30 Dec 2004 00:46:51 -0000 1.12
+++ header.php 30 Dec 2004 01:01:29 -0000 1.13
@@ -31,10 +31,7 @@
else
echo "<title>Bienvenue sur le site officiel du projet KOS [$title]</title>\n";
- if($topsrcdir)
- echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $topsrcdir . "/site.css\"/>\n";
- else
- echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"./site.css\"/>\n";
+ echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $topsrcdir . "/site.css\"/>\n";
echo "</head>\n\n";
if ($additional_head != "")
@@ -44,7 +41,7 @@
/* Logo */
echo " <div id=\"header\">\n";
- echo " <img id=\"logo\" src=\"images/kosmain1.jpg\" alt=\"KOS logo\" />\n";
+ echo " <img id=\"logo\" src=\"" . $topsrcdir . "/images/kosmain1.jpg\" alt=\"KOS logo\" />\n";
echo " <p>";
Index: toc.php
===================================================================
RCS file: /var/cvs/kos/kos-web/include/toc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- toc.php 30 Dec 2004 00:50:38 -0000 1.10
+++ toc.php 30 Dec 2004 01:01:29 -0000 1.11
@@ -21,11 +21,12 @@
function make_toc($title,$toc_entry,$url,$current)
{
global $lang;
+ global $topsrcdir;
if($current == $toc_entry)
- echo " <a class=\"current_topic\" href=\"/$url?lang=$lang\">$title</a><br/>\n";
+ echo " <a class=\"current_topic\" href=\"" . $topsrcdir . "/$url?lang=$lang\">$title</a><br/>\n";
else
- echo " <a class=\"other_topic\" href=\"/$url?lang=$lang\">$title</a><br/>\n";
+ echo " <a class=\"other_topic\" href=\"" . $topsrcdir . "/$url?lang=$lang\">$title</a><br/>\n";
}
More information about the Kos-cvs
mailing list