diff --git a/common.php b/common.php index 9ac4d7c..ca94951 100644 --- a/common.php +++ b/common.php @@ -12,7 +12,9 @@ * @license GNU General Public License http://www.gnu.org/licenses/gpl.html * @link http://rudloff.pro * */ -if (MAINTENANCE) { +if (DISABLED) { + header('Location: disabled.php'); exit; +} else if (MAINTENANCE) { header('Location: maintenance.php'); exit; } ?> diff --git a/config.example.php b/config.example.php index e6a4927..9d703bd 100644 --- a/config.example.php +++ b/config.example.php @@ -16,4 +16,5 @@ define('PYTHON', '/usr/bin/python'); define('PARAMS', '--no-playlist --no-warnings'); define('CONVERT', true); define('MAINTENANCE', false); +define('DISABLED', false); ?> diff --git a/disabled.php b/disabled.php new file mode 100644 index 0000000..22b49e0 --- /dev/null +++ b/disabled.php @@ -0,0 +1,50 @@ + + * @author Olivier Haquette + * @license GNU General Public License http://www.gnu.org/licenses/gpl.html + * @link http://rudloff.pro + * */ +require_once 'config.php'; +if (!DISABLED) { + header('Location: index.php'); exit; +} +require 'head.php'; +?> + + + + + +
+
+

+
+ Due to various technical reasons, + we can no longer host an online version of AllTube.
+ However, you are free to + + download the code + and run it on your own server. +
+
+
+ + + + + +