Base URL in config file
This commit is contained in:
parent
4edfdd3edd
commit
eeb506bdf7
3 changed files with 4 additions and 4 deletions
|
@ -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/');
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -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']);
|
||||||
·
|
·
|
||||||
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>
|
||||||
·
|
·
|
||||||
<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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue