Commit a36d7de3 authored by Emmanuel Puig's avatar Emmanuel Puig

* New menu changes

parent 5691750c
<?
$title = "404 forbidden";
$title = "403 forbidden";
$menu = array( "home", "" );
require("header.php3");
?>
<h1>403 error: forbidden</h1>
<h1 class="error">403 error: forbidden</h1>
<p> Nice try :-) </p>
<? footer('$Id: 403.html,v 1.4 2003/01/20 09:53:39 sam Exp $'); ?>
<? footer('$Id: 403.html,v 1.5 2003/04/08 20:18:51 karibu Exp $'); ?>
<?
$title = "404 not found";
$menu = array( "home", "" );
require("header.php3");
?>
<h1>404 error: page not found</h1>
<h1 class="error">404 error: page not found</h1>
<p>Please check your links, or contact <a
href="mailto:webmaster@videolan.org">the VideoLAN team</a> if you think
there should be something here. </p>
<? footer('$Id: 404.html,v 1.5 2003/01/20 09:53:39 sam Exp $'); ?>
<? footer('$Id: 404.html,v 1.6 2003/04/08 20:18:51 karibu Exp $'); ?>
......@@ -2,6 +2,7 @@
$title = "VideoLAN - Contact us";
$lang = "en";
$date = "28 Septembre 2001";
$menu = array( "home", "contact" );
require("header.php3");
?>
......@@ -35,7 +36,7 @@ href="/vlc/download-sources.html">VLC source code page</a>.</p>
have a copy of it to add to our press book. You can send us the article
at the following address :</p>
<pre>
<pre style="margin-left: 60px;">
VideoLAN
Club VIA Centrale Réseaux
Résidence Ecole Centrale
......@@ -44,4 +45,4 @@ R
France
</pre>
<? footer('$Id: contact.html,v 1.9 2003/03/05 10:11:19 alexis Exp $'); ?>
<? footer('$Id: contact.html,v 1.10 2003/04/08 20:18:51 karibu Exp $'); ?>
......@@ -2,6 +2,7 @@
$title = "VideoLAN - Contribute to the project";
$lang = "en";
$date = "24 July 2002";
$menu = array( "home", "contribute" );
require("header.php3");
?>
......@@ -152,4 +153,4 @@ licence. There is absolutely no requirement to donate money (this is not
shareware software). But if you want to help us move faster, we welcome
donations. </p>
<? footer('$Id: contribute.html,v 1.20 2003/03/28 22:32:58 alexis Exp $'); ?>
<? footer('$Id: contribute.html,v 1.21 2003/04/08 20:18:51 karibu Exp $'); ?>
......@@ -2,6 +2,7 @@
$title = "VideoLAN - Documentation";
$lang = "en";
$date = "4 October 2002";
$menu = array( "doc" );
require("header.php3");
?>
......@@ -94,4 +95,4 @@
</table>
<? footer('$Id: index.html,v 1.27 2003/03/21 15:04:26 alexis Exp $'); ?>
<? footer('$Id: index.html,v 1.28 2003/04/08 20:18:51 karibu Exp $'); ?>
......@@ -2,6 +2,7 @@
$title = "VideoLAN - Thank you for your donation";
$lang = "en";
$date = "06 July 2002";
$menu = array( "home", "contribute" );
require("header.php3");
?>
......@@ -28,4 +29,4 @@ want to contact VideoLAN's Treasurer, write a mail to Julien Leproust
</p>
<? footer('$Id: donation-thankyou.html,v 1.6 2003/03/18 21:51:36 alexis Exp $'); ?>
<? footer('$Id: donation-thankyou.html,v 1.7 2003/04/08 20:18:51 karibu Exp $'); ?>
......@@ -2,6 +2,7 @@
$title = "VideoLAN - the events";
$lang = "en";
$date = "6 April 2002";
$menu = array( "home", "events" );
require("header.php3");
?>
......@@ -127,4 +128,4 @@ and streaming.</p>
<p><a href="20010407/index.html">Slides of the presentation (in french)</a></p>
<? footer('$Id: index.html,v 1.18 2003/03/26 23:24:36 alexis Exp $'); ?>
<? footer('$Id: index.html,v 1.19 2003/04/08 20:18:51 karibu Exp $'); ?>
......@@ -2,6 +2,7 @@
$title = "VideoLAN - Goodies";
$lang = "en";
$date = "9 March 2003";
$menu = array( "home", "goodies" );
require("header.php3");
?>
......@@ -119,4 +120,4 @@ may be used or modified by anyone to refer to the VideoLAN project
or any product developed by the VideoLAN team, but does not indicate
endorsement by the project.</pre>
<? footer('$Id: goodies.html,v 1.13 2003/04/07 11:20:36 alexis Exp $'); ?>
<? footer('$Id: goodies.html,v 1.14 2003/04/08 20:18:51 karibu Exp $'); ?>
......@@ -4,19 +4,11 @@
* starthtml: beginning of the page
*/
function h2($title) {
global $HTTP_GET_VARS;
?>
<table class="h2" cellspacing="0" cellpadding="0">
<tr class="h2">
<td class="h2">
<? if(! $HTTP_GET_VARS['poukram']) { ?><h2 class="h2poukram"><? } else { ?><h2><? } ?>
<? echo $title; ?>
</h2>
</td>
</tr>
</table>
<?
function h2($title)
{
?><h2><?
echo $title;
?></h2><?
}
function h3($title) {
......@@ -33,7 +25,7 @@ function h3($title) {
<?
}
function starthtml($title) {
function StartHtml( $title ) {
global $HTTP_GET_VARS;
......@@ -54,223 +46,76 @@ global $HTTP_GET_VARS;
</head>
<body><?
/*
* The cool navigation bar, including mirror drop-down menu
*/
$modules = split("/", $GLOBALS['PHP_SELF']);
}
switch($modules[1]) {
case "404.html": case "403.html": break;
case "vlc": break;
case "streaming": break;
case "doc": break;
case "support": break;
default: $modules[2]=$modules[1]; $modules[1]="home"; break;
}
function DrawMenu( $file, $mod )
{
?>
<? if(! $HTTP_GET_VARS['poukram']) { ?>
<form action="index.html" method="get">
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td style="width: 35px; text-align: center; vertical-align: middle">
<a href="/index.html"><img
src="/images/cone-soppera10-mini.png" alt="Logo VideoLAN"
style="vertical-align: middle; border-width: 0px;" /></a>
</td>
<td style="width: 100%; text-align: center; vertical-align: top;">
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tr>
<td class="topleft" style="width: 8%">&nbsp;</td><?
get_first_bar_item_poukram(6, "home", "Home", "/", $modules[1]);
get_first_bar_item_poukram(6, "vlc", "VLC&nbsp;media&nbsp;player", "/vlc/", $modules[1]);
get_first_bar_item_poukram(6, "streaming", "Streaming", "/streaming/", $modules[1]);
get_first_bar_item_poukram(6, "doc", "Documentation", "/doc/", $modules[1]);
get_first_bar_item_poukram(6, "support", "Support", "/support/", $modules[1]);
get_first_bar_item_poukram(6, "developers", "Developers", "http://developers.videolan.org/", $modules[1]); ?>
<td class="topright" style="width: 8%">
</td>
</tr>
</table>
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<table class="menu" cellspacing="3">
<tr>
<td class="bottomleft">&nbsp;</td>
<? switch($modules[1]) {
case "vlc": second_bar_vlc($modules[2]); break;
case "streaming": second_bar_stream($modules[2]); break;
case "doc": ?><td></td><?; break;
case "support": second_bar_support($modules[2]); break;
case "home": second_bar_home($modules[2]); break;
} ?>
<td class="bottomright">&nbsp;</td>
</tr>
</table>
</td>
<td style="text-align: center; vertical-align: middle">
<select name="mirror">
<!-- current: $GLOBALS['HTTP_HOST'] -->
<option value="www.videolan.org">Main site (VIA)</option>
<option value="www.fr.videolan.org">Mirror site (Zoy)</option>
</select><br /><input type="submit" value="Select Mirror" />
</td>
</tr>
</table>
</form>
<? } else { ?>
<form action="index.html" method="get">
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td style="width: 35px; text-align: center; vertical-align: middle">
<a href="/index.html"><img
src="/images/cone-soppera10-mini.png" alt="Logo VideoLAN"
style="vertical-align: middle; border-width: 0px;" /></a>
</td>
<td style="width: 100%; text-align: center; vertical-align: top;">
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 8%">&nbsp;</td><?
get_first_bar_item(6, "home", "Home", "/", $modules[1]);
get_first_bar_item(6, "vlc", "VLC&nbsp;media&nbsp;player", "/vlc/", $modules[1]);
get_first_bar_item(6, "streaming", "Streaming", "/streaming/", $modules[1]);
get_first_bar_item(6, "doc", "Documentation", "/doc/", $modules[1]);
get_first_bar_item(6, "support", "Support", "/support/", $modules[1]);
get_first_bar_item(6, "developers", "Developers", "http://developers.videolan.org/", $modules[1]); ?>
<td style="width: 8%">&nbsp;</td>
</tr>
</table>
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tr>
<? switch($modules[1]) {
case "vlc": second_bar_vlc($modules[2]); break;
case "streaming": second_bar_stream($modules[2]); break;
case "doc": ?><td></td><?; break;
case "support": second_bar_support($modules[2]); break;
case "home": second_bar_home($modules[2]); break;
} ?>
</tr>
</table>
</td>
<td style="text-align: center; vertical-align: middle">
<select name="mirror">
<!-- current: $GLOBALS['HTTP_HOST'] -->
<option value="www.videolan.org">Main site (VIA)</option>
<option value="www.fr.videolan.org">Mirror site (Zoy)</option>
</select><br/><input type="submit" value="Select Mirror" />
</td>
</tr>
</table>
</form>
<? } ?>
<div style="margin: 10px;">
<?
/* This is where the real user page stands */
}
/* Give an entire cell html code for the first menubar */
function get_first_bar_item_poukram($number, $module, $text, $url, $current_module) {
if($current_module == $module)
{
?><td class="topbarselected"><? echo $text; ?></td>
<?
}
else
{
?><td class="topbar"><a class="topbar" href="<? echo $url; ?>"><? echo $text; ?></a></td>
<?
}
}
/* Give an entire cell html code for the first menubar */
function get_first_bar_item($number, $module, $text, $url, $current_module) {
if($current_module == $module)
{
?><td class="firstbarselected"><? echo $text; ?></td>
<?
}
else
{
?><td class="firstbar"><a class="firstbar" href="<? echo $url; ?>"><? echo $text; ?></a></td>
<?
}
}
/* Give an entire cell html code for the second menubar */
function get_second_bar_item($number, $module, $text, $url, $current_module) {
global $HTTP_GET_VARS;
$size = floor(100 / $number);
if($current_module == $module)
{
?><td class="<? if(! $HTTP_GET_VARS['poukram']) { echo "bottom"; } else { echo "second"; } ?>barselected" style="width: <? echo $size; ?>%"><? echo $text; ?></td>
<?
}
else
if( $m = fopen( "menu/$file", "r", 1 ) )
{
?><td class="<? if(! $HTTP_GET_VARS['poukram']) { echo "bottom"; } else { echo "second"; } ?>bar" style="width: <? echo $size; ?>%"><a class="<? if(! $HTTP_GET_VARS['poukram']) { echo "bottom"; } else { echo "second"; } ?>bar" href="<? echo $url; ?>"><? echo $text; ?></a></td>
<?
while( $l = fgets( $m, 300 ) )
{
$l = rtrim( $l );
if( $l == "sep" )
{
?><td><div class="sep"></div></td>
<?
}
else
{
list( $name, $text, $link, $icon ) = split( "[\t;]+", $l );
if( $name == $mod )
{
?><td class="button-down" onclick="document.location='<?
echo $link;
?>'">
<?
}
else
{
?><td class="button" <?
?>onmouseout="this.className='button'" <?
?>onmouseover="this.className='button-up'" <?
?>onmousedown="this.className='button-down'" <?
?>onclick="document.location='<? echo $link ?>'">
<?
}
?><table cellpadding="1" cellspacing="0" style="margin: 0px;">
<tr><?
if( $icon != "" )
{
?><td>
<img class="button" src="/images/menu/<?
echo $icon;
?>" alt="<?
echo $name;
?>"/></td><?
}
?><td class="button-text"><?
echo $text;
?></td></tr></table></td><?
}
}
}
?>
</tr>
</table>
<?
}
/* Second bar for vlc */
function second_bar_vlc($module) {
get_second_bar_item(3, "index.html", "Download", "/vlc/", $module);
get_second_bar_item(3, "features.html", "Features", "/vlc/features.html", $module);
get_second_bar_item(3, "screenshots.html", "Screenshots", "/vlc/screenshots.html", $module);
}
/* Second bar for streaming */
function second_bar_stream($module) {
get_second_bar_item (2, "index.html", "Overview", "/streaming/", $module);
get_second_bar_item (2, "features.html", "Features", "/streaming/features.html", $module);
}
/* Second bar for support */
function second_bar_support($module) {
get_second_bar_item(4, "index.html", "Overview", "/support/", $module);
get_second_bar_item(4, "bug-reporting.html", "Report a bug", "/support/bug-reporting.html", $module);
get_second_bar_item(4, "lists.html", "Mailing-lists", "/support/lists.html", $module);
get_second_bar_item(4, "irc", "IRCWeb", "/cgi-bin/irc/irc.cgi", $module);
}
/* Second bar for home */
function second_bar_home($module) {
get_second_bar_item(9, "index.html", "Overview", "/index.html", $module);
get_second_bar_item(9, "news.html", "News", "/news.html", $module);
get_second_bar_item(9, "events", "Events", "/events/", $module);
get_second_bar_item(9, "team", "Team", "/team/", $module);
get_second_bar_item(9, "partners.html", "Partners", "/partners.html", $module);
get_second_bar_item(9, "contribute.html", "Contribute", "/contribute.html", $module);
get_second_bar_item(9, "contact.html", "Contact", "/contact.html", $module);
get_second_bar_item(9, "links.html", "Links", "/links.html", $module);
get_second_bar_item(9, "goodies.html", "Goodies", "/goodies.html", $module);
}
/*
* footer: bottom of the page
*/
function footer($tag) {
global $language; ?>
<hr />
<table cellspacing="0" cellpadding="2" style="width: 100%;" border="0">
<table class="footer" cellspacing="3" cellpadding="2">
<tr>
<td align="left">
<a href="/">VideoLAN</a> &nbsp;-&nbsp;
......@@ -288,7 +133,7 @@ function footer($tag) {
</tr>
</table>
</div><?
<?
/*
* end of the body
......@@ -309,9 +154,37 @@ if($mirror)
}
/* default language and date */
if($lang=="") { $lang = "en"; }
if( $lang == "" ) { $lang = "en"; }
/* render the page */
starthtml(ereg_replace("<[^>]*>","",$title));
// HTML header
StartHtml( ereg_replace( "<[^>]*>" , "" , $title ) );
?><table class="menu-back" cellspacing="0" cellpadding="0">
<tr align="center">
<td>
<?
$file = "menu.txt";
foreach( $menu as $module )
{
DrawMenu( $file, $module );
$file = "$module.$file";
}
?>
</td>
<td>
<select name="mirror">
<!-- current: $GLOBALS['HTTP_HOST'] -->
<option value="www.videolan.org">Main site (VIA)</option>
<option value="www.fr.videolan.org">Mirror site (Zoy)</option>
</select><br /><input type="submit" value="Select Mirror" />
</td>
</tr>
</table><?
?>
......@@ -6,12 +6,12 @@
/*
* C'est assez mal crit mais a montre la page de news
* je rcris ds que j'ai le temps ....
* --
* --
* henri
*
*
* $style: soit "full", soit "title"
* $max: nombre maximal afficher, 0 s'il les faut toutes
*
*
*/
function shownews($style,$max) {
$file=fopen("news.msg","r");
......@@ -31,30 +31,30 @@
if( ereg("^ *[|]",$line) )
{
// C'est une nouvelle neuve
if( $msg )
if( $msg )
{
$ex=explode("|",$msg);
if( $date==$ex[1] ) $number++; else $number=0;
if( ereg("^ *",$msg) )
{
$important=1;
if( ereg("^ *",$msg) )
{
$important=1;
$anchor=ereg_replace("","",ereg_replace(" ","_",$ex[0])."_".$number);
}
else
else
{
$important=0;
$anchor=ereg_replace(" ","_",$ex[1])."_".$number;
}
if ( $important )
if ( $important )
{
$date = ereg_replace("","",$ex[0]);
$title = ereg_replace("$","",$ex[1]);
$text = $ex[2];
}
else
else
{
$date = $ex[1];
$title = $ex[2];
......@@ -73,9 +73,9 @@
echo "$date: <b><a href=\"#$anchor\">$title</a></b>\n";
if( $max > 1 ) echo "<br />\n";
}
$max--; if($max == 0) return;
$msg="";
$msg="";
}
}
$msg.=" ".$line;
......
......@@ -2,37 +2,29 @@
$title = "VideoLAN - OpenSource video streaming solution for every OS!";
$lang = "en";
$date = "06 April 2002";
$menu = array( "home", "overview" );
require("header.php3");
include("news.php3");
?>
<table style="width: 100%;" border="0" cellspacing="0" cellpadding="10">
<table style="margin: 8px 0px 10px 30px;" border="0" cellspacing="5">
<tr>
<td style="width: auto;">
<div style="text-align: center; margin-bottom: 15px;">
<img width="300" height="75" alt="VideoLAN"
src="/images/videolan-new4.png" />
</div>
</td><td>
<div style="left-margin: 10px; right-margin: 10px;">
<table cellspacing="0" cellpadding="0" border="0">
<tr><td class="firstbarselected">Latest news</td></tr>
<tr><td>
<? shownews("title",5); ?>
</td></tr>
</table>
</div>
<td align="center" rowspan="2">
<img alt="VideoLAN" src="/images/videolan-new4.png"
style="margin: 0px 50px;"/>
</td>
<td class="news-title">
Latest news
</td>
</tr>
<tr valign="top">
<td class="news">
<? shownews("title",5); ?>
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 75%">
......@@ -116,4 +108,4 @@ href="contribute.html">contribution page</a> for more information.</p>
</tr>
</table>
<? footer('$Id: index.html,v 1.73 2003/04/07 11:20:36 alexis Exp $'); ?>
<? footer('$Id: index.html,v 1.74 2003/04/08 20:18:51 karibu Exp $'); ?>
......@@ -2,6 +2,7 @@
$title = "VideoLAN - links";
$lang = "en";
$date = "14 Octobre 2001";
$menu = array( "home", "links" );
require("header.php3");
?>
......@@ -63,4 +64,4 @@ library to access the DVB drivers.</li>
</ul>
<? footer('$Id: links.html,v 1.8 2003/03/11 22:52:33 alexis Exp $'); ?>
<? footer('$Id: links.html,v 1.9 2003/04/08 20:18:51 karibu Exp $'); ?>
/* CSS for the VideoLAN website
* Stolen from the Gnumeric website by Sam :-)
* Hardly modified by karibu :(
*
* $Id: main.css,v 1.77 2003/02/03 16:00:00 sam Exp $ */
* $Id: main.css,v 1.78 2003/04/08 20:18:51 karibu Exp $ */
body {
font-family: sans-serif, Helvetica, Arial;
font-size: 1em;
background: white;
color: black;
margin: 0px 0px;
width: 99%;
margin: 0px;
padding: 0px;
border: 0px;
width: 100%;
background-color: white;
}
code {
......@@ -21,12 +24,24 @@ img {
margin-right: 5px;
}
p {
p
{
font-size: 1em;
font-family: inherit;
text-indent: 0px;
background: inherit;
color: inherit;
margin-left: 30px;
margin-right: 10px;
text-align: justify;
}
/**********
* Table *
**********/
table
{
margin: 0px 0px 0px 30px;
}
td {
......@@ -36,57 +51,93 @@ td {
color: inherit;
}
h1 {
/* Styles used for the features tables */
td.yes {
color: black;
background-image: none;
background-color: #cfc;
vertical-align: middle;
text-align: center;
}
td.no {
color: black;
background-image: none;
background-color: #fcc;
vertical-align: middle;
text-align: center;
}
td.partial {
color: black;
background-image: none;
background-color: #ffa;
vertical-align: middle;
text-align: center;
}
td.none {
color: black;
background-image: none;
background-color: #fff;
vertical-align: middle;
text-align: center;
}
td.type {
color: black;
background-image: none;
background-color: #eef;
vertical-align: middle;
}
td.category {
color: black;
background-image: none;
background-color: #ccf;
vertical-align: middle;
}
th.os {
color: black;
background-image: none;
/* background-color: #eaa; */
vertical-align: middle;
}