2015-01-07 09:42:44 +00:00
|
|
|
<?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
|
2015-01-07 09:47:46 +00:00
|
|
|
* @author Pierre Rudloff <contact@rudloff.pro>
|
2015-01-07 09:42:44 +00:00
|
|
|
* @author Olivier Haquette <contact@olivierhaquette.fr>
|
|
|
|
* @license GNU General Public License http://www.gnu.org/licenses/gpl.html
|
|
|
|
* @link http://rudloff.pro
|
|
|
|
* */
|
2015-08-29 23:40:31 +00:00
|
|
|
require_once __DIR__.'/vendor/autoload.php';
|
2015-04-11 20:08:24 +00:00
|
|
|
if (is_file('config.php')) {
|
|
|
|
include_once 'config.php';
|
|
|
|
} else {
|
|
|
|
include_once 'config.example.php';
|
|
|
|
}
|
|
|
|
define('FILENAME', basename($_SERVER["SCRIPT_FILENAME"]));
|
|
|
|
if (DISABLED && FILENAME != 'disabled.php') {
|
2015-01-07 10:04:06 +00:00
|
|
|
header('Location: disabled.php'); exit;
|
2015-04-11 20:08:24 +00:00
|
|
|
} else if (MAINTENANCE && FILENAME != 'maintenance.php') {
|
2015-01-07 09:42:44 +00:00
|
|
|
header('Location: maintenance.php'); exit;
|
|
|
|
}
|
2015-04-11 20:08:24 +00:00
|
|
|
$smarty = new Smarty();
|
|
|
|
$smarty->assign(
|
|
|
|
array(
|
|
|
|
'base_url'=>BASE_URL,
|
|
|
|
'convert'=>CONVERT
|
|
|
|
)
|
|
|
|
);
|