Redirect with PHP instead of .htaccess

This commit is contained in:
Pierre Rudloff 2015-01-07 10:42:44 +01:00
parent 39f81c3674
commit 816b556c65
7 changed files with 32 additions and 7 deletions

18
common.php Normal file
View file

@ -0,0 +1,18 @@
<?php
/**
* PHP web interface for youtube-dl (http://rg3.github.com/youtube-dl/)
* PHP file included on all pages
*
* PHP Version 5.3.10
*
* @category Youtube-dl
* @package Youtubedl
* @author Pierre Rudloff <rudloff@strasweb.fr>
* @author Olivier Haquette <contact@olivierhaquette.fr>
* @license GNU General Public License http://www.gnu.org/licenses/gpl.html
* @link http://rudloff.pro
* */
if (MAINTENANCE) {
header('Location: maintenance.php'); exit;
}
?>