Commit 65fc2367 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

New test website

parent 1d9eb8e0

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

#####################################################################
# Miscellaneous configuration
#####################################################################
AddType application/octet-stream .dmg
AddType application/octet-stream .rpm
AddType application/octet-stream .ipk
AddType application/octet-stream .vlt
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
RewriteEngine on
RewriteRule \.svn /404.html [L]
RewriteRule removed/ /403.html [L]
RewriteRule HOWTO.Makefile /404.html [L]
RewriteRule ^favicon.gif$ /favicon.ico [L]
Redirect /videos http://download2.videolan.org/videos
#######################################################################
# Redirects for moved pages
#######################################################################
################# Project ####################
# Contact / Team / Events
RewriteRule ^contact.htm$ /videolan/index.html [R=permanent,L]
RewriteRule ^contact.htm$ /videolan/index.html [R=permanent,L]
RewriteRule ^contact.html$ /videolan/index.html [R=permanent,L]
RewriteRule ^team.html$ /videolan/team/index.html [R=permanent,L]
RewriteRule ^team/$ /videolan/team/index.html [R=permanent,L]
RewriteRule ^events/$ /videolan/events/ [R=permanent,L]
# Support
RewriteRule ^lists.html$ /support/lists.html [R=permanent,L]
RewriteRule ^vlc/lists.html$ /support/lists.html [R=permanent,L]
RewriteRule ^support/consultants(.*)$ /videolan/partners.html [R=permanent,L]
RewriteRule ^support/irc(.*)$ /support/index.html [R=permanent,L]
RewriteRule ^irc(.*)$ /support/index.html [R=permanent,L]
RewriteRule ^support/bug-reporting.* /support/index.html [R=permanent,L]
RewriteRule ^vlc/bug-reporting.html$ /support/bug-reporting.html [R=permanent,L]
# Contribute
RewriteRule ^project/contribute.html$ /contribute.html [R=permanent,L]
# Press
RewriteRule ^pr2(.*)$ /press/2$1 [R=permanent,L]
RewriteRule ^eucd.html$ /press/eucd.html [R=permanent,L]
RewriteRule ^patents.html$ /press/patents.html [R=permanent,L]
RewriteRule ^news.msg$ /news.html [R=permanent,L]
#################### VLC ###########################
# Misc
RewriteRule ^packages(.*)$ /pub/vlc$1 [R=permanent,L]
RewriteRule ^vlc/doc.html$ /vlc/index.html [R=permanent,L]
RewriteRule ^screenshots(.*)$ /vlc/screenshots$1 [R=permanent,L]
RewriteRule ^live.(.*)$ /vlc/index.html [R=permanent,L]
# Downloads
Redirect /mirror.html http://www.videolan.org/mirror.php
RewriteRule ^vlc/download.html$ /vlc/index.html [R=permanent,L]
RewriteRule ^download.html$ /vlc/index.html [R=permanent,L]
RewriteRule ^vlc/bsd.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/download-unix.html$ /vlc/download-sources.html [R=permanent,L]
RewriteRule ^vlc/download-linux.html$ /vlc/index.html [R=permanent,L]
RewriteRule ^vlc/download-source.html$ /vlc/download-sources.html [R=permanent,L]
Redirect /vlc/download-mandrake.html http://www.videolan.org/vlc/download-mandriva.php
RewriteRule ^vlc/partners.html /videolan/partners.html [R=permanent,L]
# Features
#RewriteRule ^vlc/features(.*)$ http://wiki.videolan.org/VLCFeatures [R=permanent,L]
RewriteRule ^vlc/beos.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/linux.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/macosx.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/qnx.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/solaris.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/familiar.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/todo.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^vlc/windows.html$ /vlc/features.html [R=permanent,L]
RewriteRule ^streaming/features.html$ /streaming-features.html [R=permanent,L]
# Skins
RewriteRule ^download-skins2-go.php /vlc/download-skins2-go.php [R=permanent,L]
RewriteRule ^vlc/skins.html$ /vlc/skins.php [R=permanent,L]
RewriteRule ^vlc/download-skins2\..*$ /vlc/skins.php [R=permanent,L]
RewriteRule ^vlc/skins-(.*)$ /vlc/skins.php [R=permanent,L]
##################### Streaming #####################
RewriteRule ^vlma(.*)$ /projects/vlma$1 [R=permanent,L]
RewriteRule ^streaming/$ /vlc/streaming.html [R=permanent,L]
RewriteRule ^intro.html$ /vlc/streaming.html [R=permanent,L]
RewriteRule ^vlcs(.*)$ /network$1 [R=permanent,L]
RewriteRule ^vls/(.*)$ /streaming/index.html [R=permanent,L]
RewriteRule ^vlms/(.*)$ /streaming/index.html [R=permanent,L]
RewriteRule ^network/(.*)$ /streaming/index.html [R=permanent,L]
RewriteRule ^streaming/download.*$ /vlc/streaming.html [R=permanent,L]
#################### Documentation ######################
# New directory structure
Redirect permanent /doc/videolan-howto/videolan-howto-en.html http://www.videolan.org/doc/videolan-howto/en/videolan-howto-en.html
Redirect permanent /doc/vlc-user-guide/vlc-user-guide-en.html http://www.videolan.org/doc/vlc-user-guide/en/vlc-user-guide-en.html
Redirect permanent /doc/vls-user-guide/vls-user-guide-en.html http://www.videolan.org/doc/vls-user-guide/en/vls-user-guide-en.html
Redirect permanent /doc/faq/index.html http://www.videolan.org/doc/faq/en/videolan-faq-en.html
Redirect permanent /doc/videolan-howto/index.html http://www.videolan.org/doc/videolan-howto/en/videolan-howto-en.html
Redirect permanent /doc/vlc-user-guide/index.html http://www.videolan.org/doc/vlc-user-guide/en/vlc-user-guide-en.html
Redirect permanent /doc/vls-user-guide/index.html http://www.videolan.org/doc/vls-user-guide/en/vls-user-guide-en.html
Redirect permanent /doc/faq/videolan-faq-en.html http://www.videolan.org/doc/faq/en/videolan-faq-en.html
Redirect permanent /doc/faq/videolan-faq-fr.html http://www.videolan.org/doc/faq/en/videolan-faq-fr.html
Redirect permanent /doc/faq/videolan-faq-es.html http://www.videolan.org/doc/faq/en/videolan-faq-es.html
#The VideoLAN quickstart does not exist anymore
Redirect permanent /doc/videolan-quickstart http://www.videolan.org/doc/
Redirect permanent /doc/en/videolan-quickstart-en.html http://www.videolan.org/doc/
Redirect permanent /doc/fr/videolan-quickstart-fr.html http://www.videolan.org/doc/
# Some dumb people link to us with doc//$LANG/document
Redirect permanent /doc/fr/vlc-user-guide http://www.videolan.org/doc/vlc-user-guide/fr
Redirect permanent /doc/fr/videolan-howto http://www.videolan.org/doc/videolan-howto/fr
Redirect permanent /doc/fr/vls-user-guide http://www.videolan.org/doc/vls-user-guide/fr
Redirect permanent /doc/en/vlc-user-guide http://www.videolan.org/doc/vlc-user-guide/en
Redirect permanent /doc/en/videolan-howto http://www.videolan.org/doc/videolan-howto/en
Redirect permanent /doc/en/vls-user-guide http://www.videolan.org/doc/vls-user-guide/en
RewriteRule ^vlc/doc/vlc-howto.html$ /doc/vlc-user-guide/ [R=permanent,L]
RewriteRule ^doc/faq-vlc/faq/(.*)$ /doc/faq/ [R=permanent,L]
RewriteRule ^doc/faq/videolan-faq.html$ /doc/faq/ [R=permanent,L]
####################### Moved to developers #########################
Redirect /cgi-bin http://krishna.videolan.org/cgi-bin
RewriteRule ^dtsdec.html /developers/libdca.html [R=permanent,L]
RewriteRule ^x264.html /developers/x264.html [R=permanent,L]
RewriteRule ^libdca.html /developers/libdca.html [R=permanent,L]
RewriteRule ^vlc/changelog.html /developers/vlc/ChangeLog [R=permanent,L]
RewriteRule ^vls/changelog.html /developers/vls/ChangeLog [R=permanent,L]
RewriteRule ^cvs.html http://wiki.videolan.org/Subversion [R=permanent,L]
RewriteRule ^vlc/developers.html /developers/vlc/devel_doc.html [R=permanent,L]
RewriteRule ^vls/developers.html /developers/vls/devel_doc.html [R=permanent,L]
RewriteRule ^libdvdcss/download.html http://www.videolan.org/pub/videolan/libdvdcss/ [R=permanent,L]
RewriteRule ^libdvdcss.* /developers/libdvdcss.html [R=permanent,L]
RewriteRule ^libdvbpsi/download.html http://www.videolan.org/pub/videolan/libdvbpsi/ [R=permanent,L]
RewriteRule ^libdvbpsi.* /developers/libdvbpsi.html [R=permanent,L]
RewriteRule ^libdvdplay/download.html http://www.videolan.org/pub/videolan/libdvdplay/ [R=permanent,L]
RewriteRule ^libdvdplay.* /developers/libdvdplay.html [R=permanent,L]
Redirect permanent /cvs http://wiki.videolan.org/Subversion
###################### Images ############################
RewriteRule ^images/([^/]*)bri7x(.*)$ /images/goodies/$1bri7x$2 [R=permanent,L]
RewriteRule ^images/videolan_org(.*)$ /images/goodies/videolan_org$1 [R=permanent,L]
RewriteRule ^images/cone-soppera(.*)$ images/goodies/cone-soppera$1 [R=permanent,L]
############### Security advisories ######################
RewriteRule ^sa(.*).html$ /security/sa$1.html [R=permanent,L]
Redirect permanent /patches http://www.videolan.org/security/patches
##################### Unsorted misc stuff ####################
RewriteRule ^tests/(.*)$ /rez/ [R=permanent,L]
RewriteRule ^vlc/dx7headers.tgz http://download.videolan.org/pub/videolan/testing/contrib/win32-dx7headers.tgz [R=permanent,L]
RewriteRule ^vlc/(.*).tgz$ /removed/$1.tgz [R=permanent,L]
RewriteRule ^vlc/(.*).bz2$ /removed/$1.bz2 [R=permanent,L]
RewriteRule ^freedvd.html$ /removed/freedvd.html [R=permanent,L]
#typos
RewriteRule ^vic(.*)$ /vlc$1 [R=permanent,L]
RewriteRule ^VLC(.*)$ /vlc$1 [R=permanent,L]
# We get many 404 for this one
Redirect permanent debian/ http://www.videolan.org
Redirect permanent /webirc http://webchat.freenode.net/
<?php
$title = "403 forbidden";
$menu = array( "vlc", "" );
require($_SERVER["DOCUMENT_ROOT"]."/include/header.php");
?>
<h1 class="error">403 error: forbidden</h1>
<p>Nice try :-)</p>
<?php footer('$Id$'); ?>
<?php
$title = "404 not found";
$menu = array( "vlc", "" );
require($_SERVER["DOCUMENT_ROOT"]."/include/header.php");
?>
<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>
<?php footer('$Id$'); ?>
The purpose of the Makefile is to preprocess website's pages
statically through the PHP processor, so as to reduce the load on the
web server.
In each directories, you should create a Makefile.inc file that will
be included by the Makefile scripts. In that file, you can create a
SUBDIR variable to specify the list of subdirectories.
You can optionnaly define a PHP_FILES variable to specify the list of
files to be preprocessed (without trailing .html/.php). It defaults to
"*.php". Additionnaly, PHP_IGNORE can be used to explicitly exclude
some PHP scripts from static preprocessing.
--
Remi Denis-Courmont
#!/usr/bin/make -f
#
# Makefile to build PHP-based websites statically
# by Remi Denis-Courmont
# $Id$
ifeq ($(ROOT),)
ROOT := ./
NEXTROOT := ../
else
NEXTROOT := ../$(ROOT)
endif
PHPCGI := $(ROOT)bin/php-cgi.sh
STRIP_HEADERS := $(ROOT)bin/strip-headers.sh
all: real-all
include Makefile.inc
ifneq ($(PHP_FILES),)
PHP_FILES := $(PHP_FIL