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('CONVERT', false);
define('MAINTENANCE', false); define('MAINTENANCE', false);
define('DISABLED', 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 * @license GNU General Public License http://www.gnu.org/licenses/gpl.html
* @link http://rudloff.pro * @link http://rudloff.pro
* */ * */
$baseURL = 'http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['REQUEST_URI']);
?> ?>
<footer> <footer>
<div class="footer_wrapper"> <div class="footer_wrapper">
@ -29,6 +28,6 @@ $baseURL = 'http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['REQUEST_URI']);
&middot; &middot;
Based on <a href="http://rg3.github.io/youtube-dl/">youtube-dl</a> Based on <a href="http://rg3.github.io/youtube-dl/">youtube-dl</a>
&middot; &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> </div>
</footer> </footer>

View file

@ -16,11 +16,11 @@
<header> <header>
<div class="social"> <div class="social">
<a class="twitter" href="http://twitter.com/home?status=<?php <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"> ?>" target="_blank">
Share on Twitter<div class="twittermask"></div></a> Share on Twitter<div class="twittermask"></div></a>
<a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php <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> ?>" target="_blank">Share on Facebook<div class="facebookmask"></div></a>
</div> </div>
</header> </header>