Base URL in config file

This commit is contained in:
Pierre Rudloff 2015-04-11 00:00:00 +02:00
parent 4edfdd3edd
commit eeb506bdf7
3 changed files with 4 additions and 4 deletions

View File

@ -17,4 +17,5 @@ define('PARAMS', '--no-playlist --no-warnings');
define('CONVERT', false);
define('MAINTENANCE', false);
define('DISABLED', false);
define('BASE_URL', 'http://alltubedownload.net/');
?>

View File

@ -11,7 +11,6 @@
* @license GNU General Public License http://www.gnu.org/licenses/gpl.html
* @link http://rudloff.pro
* */
$baseURL = 'http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['REQUEST_URI']);
?>
<footer>
<div class="footer_wrapper">
@ -29,6 +28,6 @@ $baseURL = 'http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['REQUEST_URI']);
&middot;
Based on <a href="http://rg3.github.io/youtube-dl/">youtube-dl</a>
&middot;
<a href="javascript:window.location='<?php echo $baseURL; ?>/api.php?url='+location.href;">Bookmarklet</a>
<a href="javascript:window.location='<?php echo BASE_URL; ?>/api.php?url='+location.href;">Bookmarklet</a>
</div>
</footer>

View File

@ -16,11 +16,11 @@
<header>
<div class="social">
<a class="twitter" href="http://twitter.com/home?status=<?php
echo urlencode('http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
echo urlencode(BASE_URL);
?>" target="_blank">
Share on Twitter<div class="twittermask"></div></a>
<a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php
echo urlencode('http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
echo urlencode(BASE_URL);
?>" target="_blank">Share on Facebook<div class="facebookmask"></div></a>
</div>
</header>