Compare commits
10 Commits
lmbrowse-1
...
lmbrowse-1
| Author | SHA1 | Date | |
|---|---|---|---|
| d270f2e2b4 | |||
| 1d03dc1df3 | |||
| b722d620e4 | |||
| a4ae21b60f | |||
| 6c119a448f | |||
| 6516ba3a7a | |||
| 8ebd42e83e | |||
| bec60e3bf0 | |||
| d5f7cf5bc8 | |||
| 2d8ad0c05b |
@@ -1,13 +1,7 @@
|
||||
<?
|
||||
// $RCSfile: lmbrowse.php,v $
|
||||
// $Revision: 1.17 $
|
||||
// $Name: lmbrowse-1_6_0-1 $
|
||||
// $Date: 2016/03/21 16:07:30 $
|
||||
// $Author: agibert $
|
||||
|
||||
/*
|
||||
* LMBrowse - Langueur Monotone Browser
|
||||
* Copyright (C) 2012-2018 Arnaud G. GIBERT
|
||||
* Copyright (C) 2012-2026 Arnaud G. GIBERT
|
||||
* mailto:arnaud@rx3.net
|
||||
* http://www.rx3.org/dvp/lmbrowse
|
||||
*
|
||||
@@ -26,6 +20,8 @@
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
function microtime_float()
|
||||
{
|
||||
list($usec, $sec) = explode(" ", microtime());
|
||||
@@ -38,13 +34,10 @@ $time_start = microtime_float();
|
||||
|
||||
|
||||
|
||||
//include "/var/httpd/www.langueurmonotone.com/html/lmbrowse_config.inc";
|
||||
include "lmbrowse_config.inc";
|
||||
|
||||
$lmb_myname="LMBrowse";
|
||||
$lmb_tag_tab=explode( " ", "\$Name: lmbrowse-1_6_0-1 $");
|
||||
$lmb_tag_tab=explode( "-", $lmb_tag_tab[1]);
|
||||
$lmb_myver=strtr( "$lmb_tag_tab[1]-$lmb_tag_tab[2]", "_", ".");
|
||||
$lmb_myver="1.9.0-1";
|
||||
|
||||
|
||||
|
||||
@@ -173,7 +166,7 @@ function lmb_cookies_load()
|
||||
|
||||
|
||||
lmb_cookie_load( "video_res", "1080p");
|
||||
lmb_cookie_load( "jpsolution", "html, flash");
|
||||
lmb_cookie_load( "jpsolution", "native");
|
||||
lmb_cookie_load( "admin", "");
|
||||
}
|
||||
|
||||
@@ -204,6 +197,24 @@ function lmb_cookie_update( $get_array)
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
/* Get Array */
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
function lmb_get_array( $get_array, $get_key, $default_value)
|
||||
{
|
||||
if( array_key_exists ( "$get_key", $get_array))
|
||||
{
|
||||
return( preg_replace("/[^A-Za-z0-9\-_\*\.]/", "", $get_array["$get_key"]));
|
||||
}
|
||||
else
|
||||
{
|
||||
return( "$default_value");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
/* Admin Is */
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
@@ -292,6 +303,7 @@ function lmb_size_convert( $size)
|
||||
function lmb_html_text_format( $input_text)
|
||||
{
|
||||
$search_tab = array(
|
||||
"#",
|
||||
"&",
|
||||
"\n",
|
||||
"< >",
|
||||
@@ -305,13 +317,14 @@ function lmb_html_text_format( $input_text)
|
||||
"</H>",
|
||||
"<LM>",
|
||||
"</LM>",
|
||||
"<G+1/>",
|
||||
"<G+B/>",
|
||||
"<F+1/>",
|
||||
"<MSF/>"
|
||||
"<TW/>",
|
||||
"<BC/>",
|
||||
"<YT/>"
|
||||
);
|
||||
|
||||
$replace_tab = array(
|
||||
"",
|
||||
"&",
|
||||
"<br/>\n ",
|
||||
" ",
|
||||
@@ -325,63 +338,10 @@ function lmb_html_text_format( $input_text)
|
||||
"</span>",
|
||||
"<span style=\"font-family:CustomFont; font-weight:normal;\">",
|
||||
"</span>",
|
||||
"
|
||||
<script type=\"text/javascript\" src=\"https://apis.google.com/js/plusone.js\"></script>
|
||||
<div class=\"g-plusone\" style=\"font-size: 0px;\" data-href=\"http://plus.google.com/117621568322370019205\" data-size=\"medium\" data-annotation=\"inline\" data-align=\"right\"></div>",
|
||||
"
|
||||
<div style=\"text-align: right;\"> <div id=\"gplus-div\"></div></div>
|
||||
<script type=\"text/javascript\">
|
||||
function getElementByIdUniversal( id )
|
||||
{
|
||||
return ( document.getElementById ) ? document.getElementById( id ) : document.all[ id ];
|
||||
}
|
||||
function plusoneready()
|
||||
{
|
||||
gapi.plus.render( 'gplus-div', { 'href': 'http://plus.google.com/117621568322370019205', 'theme': 'dark', 'height': '69', 'width': '400'} );
|
||||
}
|
||||
(function()
|
||||
{
|
||||
var gp = document.createElement( 'script' );
|
||||
gp.type = 'text/javascript';
|
||||
gp.async = true;
|
||||
gp.src = 'https://apis.google.com/js/plusone.js';
|
||||
gp.onload = plusoneready;
|
||||
|
||||
// Only for IE 6 and 7
|
||||
gp.onreadystatechange = function()
|
||||
{
|
||||
if( this.readyState == 'complete' )
|
||||
{
|
||||
plusoneready();
|
||||
}
|
||||
}
|
||||
|
||||
var div = getElementByIdUniversal( 'gplus-div' );
|
||||
div.parentNode.insertBefore( gp, div );
|
||||
}
|
||||
)();
|
||||
</script>",
|
||||
"
|
||||
<div class=\"fb-like\" style=\"font-size: 0px;\" data-href=\"http://www.facebook.com/langueur.monotone\" data-send=\"false\" data-layout=\"button_count\" data-width=\"90\" data-show-faces=\"true\" data-colorscheme=\"dark\"></div>
|
||||
<div id=\"fb-root\"></div>
|
||||
<script type=\"text/javascript\">
|
||||
(function(d, s, id)
|
||||
{
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = \"//connect.facebook.net/fr_FR/all.js#xfbml=1\";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>",
|
||||
"
|
||||
<form method=\"post\" action=\"http://www.myspace.com/my/friends/addtofriends/langueur-monotone\">
|
||||
<input type=\"submit\" value=\"myspace Friend\">
|
||||
<style type=\"text/css\">input {background-color: 000000; border-width:1px; border-style:groove; border-color: 444444; color: FFFFFF; font-family:;}
|
||||
</style>
|
||||
</form>
|
||||
"
|
||||
"<div style=\"text-align: right; vertical-align: top; display:block;\"><a class=\"button-item\" href=\"http://www.facebook.com/langueur.monotone\" style=\"vertical-align: text-bottom;\" title=\"Langueur Monotone on FaceBook\"><i class=\"sprite-icon-facebook-16x16\" style=\"display:block;\"></i></a></div>",
|
||||
"<div style=\"text-align: right; vertical-align: top; display:block;\"><a class=\"button-item\" href=\"http://www.twitter.com/langueurmon\" style=\"vertical-align: text-bottom;\" title=\"Langueur Monotone on X\"><i class=\"sprite-icon-twitter-16x16\" style=\"display:block;\"></i></a></div>",
|
||||
"<div style=\"text-align: right; vertical-align: top; display:block;\"><a class=\"button-item\" href=\"https://langueur-monotone.bandcamp.com/\" style=\"vertical-align: text-bottom;\" title=\"Langueur Monotone on BandCamp\"><i class=\"sprite-icon-bandcamp-16x16\" style=\"display:block;\"></i></a></div>",
|
||||
"<div style=\"text-align: right; vertical-align: top; display:block;\"><a class=\"button-item\" href=\"https://www.youtube.com/c/langueur-monotone\" style=\"vertical-align: text-bottom;\" title=\"Langueur Monotone on YouTube\"><i class=\"sprite-icon-youtube-16x16\" style=\"display:block;\"></i></a></div>",
|
||||
);
|
||||
|
||||
return( str_replace( $search_tab, $replace_tab, $input_text));
|
||||
@@ -397,6 +357,7 @@ function lmb_xml_text_format( $input_text)
|
||||
{
|
||||
$search_tab = array(
|
||||
"&",
|
||||
"\"",
|
||||
"\n",
|
||||
"< >",
|
||||
"<br/>",
|
||||
@@ -410,14 +371,16 @@ function lmb_xml_text_format( $input_text)
|
||||
"</H>",
|
||||
"<LM>",
|
||||
"</LM>",
|
||||
"<G+1/>",
|
||||
"<G+B/>",
|
||||
"<F+1/>",
|
||||
"<MSF/>"
|
||||
"<MSF/>",
|
||||
"<TW/>",
|
||||
"<BC/>",
|
||||
"<YT/>"
|
||||
);
|
||||
|
||||
$replace_tab = array(
|
||||
"&",
|
||||
""",
|
||||
"\n ",
|
||||
"",
|
||||
"\n",
|
||||
@@ -463,11 +426,22 @@ function lmb_play_path_get( $play_type, $play_id, $play_priority)
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
/* Play Validate */
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
function lmb_play_validate( $play_type, $play_id, $play_priority)
|
||||
{
|
||||
return( file_exists( lmb_play_path_get( $play_type, $play_id, $play_priority)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
/* Make Tab */
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
function lmb_make_tab( $tab_id, $css_id, $tab_side, $logo_path, $data, $skin_path)
|
||||
function lmb_make_tab( $tab_id, $css_id, $tab_side, $logo_path, $img_path, $data, $skin_path)
|
||||
{
|
||||
$tab_class = "sprite-tab-{$tab_id}-{$tab_side}";
|
||||
|
||||
@@ -483,9 +457,16 @@ function lmb_make_tab( $tab_id, $css_id, $tab_side, $logo_path, $data, $skin_pat
|
||||
$tab_tag = "<td class=\"{$css_id}0\"><div class=\"{$tab_class}\"></div></td>";
|
||||
|
||||
if( $logo_path[0] == "/")
|
||||
{
|
||||
if( $img_path[0] == "/")
|
||||
{
|
||||
$logo_tag = "<td class=\"logo-{$logo_side}\" style=\"width: 20%;\"><img class=\"button-item\" src=\"{$logo_path}\" alt=\"\" onclick=\"openModal('{$img_path}')\" style=\"cursor:pointer\"/></td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$logo_tag = "<td class=\"logo-{$logo_side}\" style=\"width: 20%;\"><img src=\"{$logo_path}\" alt=\"\"/></td>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$logo_tag = "<td class=\"logo-{$logo_side}\" style=\"width: 20%;\"><div class=\"{$logo_path}\"></div></td>";
|
||||
@@ -634,6 +615,18 @@ function lmb_menu( $menu_id, $skin_path)
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
/* Redirect Page */
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
function lmb_redirect_page( $page)
|
||||
{
|
||||
header( "Location: /${page}");
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
/* Header */
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
@@ -670,19 +663,16 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords,
|
||||
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
|
||||
<meta name=\"Description\" content=\"$description\"/>
|
||||
<meta name=\"keywords\" content=\"$keywords\"/>
|
||||
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>
|
||||
<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"{$skin_path}/images/favicon.ico\"/>
|
||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"{$skin_path}/default.css\"/>
|
||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"/jplayer/skin/pink.flag/css/jplayer.pink.flag.css\"/>
|
||||
<title>$page_name</title>
|
||||
</head>
|
||||
";
|
||||
|
||||
echo " <body style=\"background-image:url(''); background-repeat:repeat;\">
|
||||
";
|
||||
|
||||
|
||||
if( $lmb_ga_enable == true)
|
||||
{
|
||||
/*
|
||||
echo "<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
@@ -694,8 +684,61 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords,
|
||||
|
||||
</script>
|
||||
";
|
||||
*/
|
||||
|
||||
echo " <!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-37642754-1\"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-37642754-1');
|
||||
</script>
|
||||
";
|
||||
}
|
||||
|
||||
echo " </head>
|
||||
";
|
||||
|
||||
echo " <body style=\"background-image:url(''); background-repeat:repeat;\">
|
||||
";
|
||||
|
||||
/* Modal Window */
|
||||
echo " <script type=\"text/javascript\" class=\"init\">
|
||||
function openModal(src)
|
||||
{
|
||||
document.getElementById('modal-img').src = src;
|
||||
document.getElementById('overlay').style.display = 'block';
|
||||
}
|
||||
|
||||
function closeModal()
|
||||
{
|
||||
document.getElementById('overlay').style.display = 'none';
|
||||
}
|
||||
|
||||
// Close when clicking the dark backdrop
|
||||
document.getElementById('overlay').addEventListener('click', function(e)
|
||||
{
|
||||
if (e.target === this) closeModal();
|
||||
});
|
||||
|
||||
// Close with Escape key
|
||||
document.addEventListener('keydown', e =>
|
||||
{
|
||||
if (e.key === 'Escape') closeModal();
|
||||
});
|
||||
</script>
|
||||
";
|
||||
|
||||
echo " <div id=\"overlay\" class=\"overlay\">
|
||||
<div class=\"modal\">
|
||||
<button class=\"modal\" onclick=\"closeModal()\">✕</button>
|
||||
<img id=\"modal-img\" class=\"modal\" src=\"\" alt=\"\">
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"{$mw_tag}\">
|
||||
<tbody>
|
||||
<tr>
|
||||
@@ -776,6 +819,7 @@ function lmb_footer( $skin_path)
|
||||
global $time_start;
|
||||
|
||||
|
||||
|
||||
echo " </tbody>
|
||||
</table>
|
||||
</td>
|
||||
@@ -804,11 +848,11 @@ function lmb_footer( $skin_path)
|
||||
<table style=\"width: 100%; height: auto; \" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class=\"button-item\" style=\"width: 32px;\"><a rel=\"nofollow\" class=\"button-item\" href=\"http://{$lmb_url_pre}/?page=rss\" title=\"Langueur Monotone RSS feed\"><div class=\"sprite-button-rss-on\" style=\"\"></div></a></td>
|
||||
<td class=\"button-item\" style=\"width: 32px;\"><a rel=\"nofollow\" class=\"button-item\" href=\"/?page=rss\" title=\"Langueur Monotone RSS feed\"><div class=\"sprite-button-rss-on\" style=\"\"></div></a></td>
|
||||
<td style=\"width: 8px;\"> </td>
|
||||
<td class=\"button-item\" style=\"width: 96px;\"><a rel=\"\" class=\"button-item\" href=\"http://www.rx3.net/\" title=\"Rx3.Net\"><div class=\"sprite-button-rx3-on\"></div></a></td>
|
||||
<td class=\"button-item\" style=\"width: 96px;\"><a rel=\"\" class=\"button-item\" href=\"https://www.rx3.net/\" title=\"Rx3.Net\"><div class=\"sprite-button-rx3-on\"></div></a></td>
|
||||
<td style=\"width: 8px;\"> </td>
|
||||
<td class=\"button-item\" style=\"width: 32px;\"><a rel=\"nofollow\" class=\"button-item\" href=\"http://www.safecreative.org/\" title=\"SafeCreative\"><div class=\"sprite-button-safe_creative-on\"></div></a></td>
|
||||
<td class=\"button-item\" style=\"width: 32px;\"><a rel=\"nofollow\" class=\"button-item\" href=\"https://www.safecreative.org/\" title=\"SafeCreative\"><div class=\"sprite-button-safe_creative-on\"></div></a></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -831,11 +875,13 @@ function lmb_footer( $skin_path)
|
||||
<td style=\"width: 8px;\"> </td>
|
||||
<td class=\"button-item\" style=\"width: 32px;\"><a class=\"button-item\" href=\"/www-stats/\" title=\"Rx3 Statistics\"><div class=\"sprite-button-stats-on\"></div></a></td>
|
||||
<td style=\"width: 8px;\"> </td>
|
||||
<td class=\"button-item\" style=\"width: 32px;\"><a class=\"button-item\" href=\"/www-ssl-stats/\" title=\"Rx3 SSL Statistics\"><div class=\"sprite-button-stats-on\"></div></a></td>
|
||||
<td style=\"width: 8px;\"> </td>
|
||||
<td class=\"button-item\" style=\"width: 32px;\"><a class=\"button-item\" href=\"https://www.google.com/analytics/web/?hl=en&pli=1#dashboard//a37642754w66067134p67926512\" title=\"Google Analytics\"><div class=\"sprite-button-stats-on\"></div></a></td>
|
||||
<td style=\"width: 8px;\"> </td>
|
||||
<td class=\"button-item\" style=\"width: 32px;\"><a class=\"button-item\" href=\"https://www.google.com/webmasters/tools/dashboard?hl=fr&siteUrl=http%3A%2F%2F{$lmb_url_pre}%2F\" title=\"Google Webmaster Tools\"><div class=\"sprite-button-stats-on\"></div></a></td>
|
||||
<td style=\"width: 8px;\"> </td>
|
||||
<td class=\"button-item\" style=\"width: 32px;\"><a rel=\"nofollow\" class=\"button-item\" href=\"http://{$lmb_url_pre}/?page=sitemap\" title=\"SiteMap\"><div class=\"sprite-button-rss-on\"></div></a></td>
|
||||
<td class=\"button-item\" style=\"width: 32px;\"><a rel=\"nofollow\" class=\"button-item\" href=\"/?page=sitemap\" title=\"SiteMap\"><div class=\"sprite-button-rss-on\"></div></a></td>
|
||||
<td style=\"width: 8px;\"> </td>
|
||||
<td class=\"button-item\" style=\"width: 32px;\">
|
||||
<form action=\"{$lmb_url_post}\" method=\"post\">
|
||||
@@ -917,8 +963,7 @@ function lmb_welcome_tab( $skin_path)
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
lmb_make_tab( "welcome", "welcome", "l", "{$skin_path}/images/lm-logo1-border-220.png", $data, $skin_path);
|
||||
// lmb_make_tab( "welcome", "welcome", "l", "sprite-lm-logo1-border-220", $data, $skin_path);
|
||||
lmb_make_tab( "welcome", "welcome", "l", "{$skin_path}/images/lm-logo1-border-220.png", "", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -956,7 +1001,7 @@ function lmb_news_tab_get( )
|
||||
$news_tab[$i]["name"] = "{$play_name}";
|
||||
$news_tab[$i]["rlink"] = "{$lmb_url_post}?page=play&type={$play_type}&id={$play_id}&priority={$play_priority}";
|
||||
$news_tab[$i]["alink"] = "http://{$lmb_url_pre}{$news_tab[$i]["rlink"]}";
|
||||
$news_tab[$i]["rimg"] = lmb_play_path_get( $play_type, $play_id, $play_priority) . "/covers/{$play_id}-cover-1-icon.png";
|
||||
$news_tab[$i]["rimg"] = "{$lmb_url_post}" . lmb_play_path_get( $play_type, $play_id, $play_priority) . "/covers/{$play_id}-cover-1-icon.png";
|
||||
$news_tab[$i]["aimg"] = "http://{$lmb_url_pre}{$news_tab[$i]["rimg"]}";
|
||||
}
|
||||
else
|
||||
@@ -997,25 +1042,22 @@ function lmb_news_json_ld( $news_tab)
|
||||
echo "<script type=\"application/ld+json\"> {
|
||||
\"@context\": {
|
||||
\"ical\": \"http://www.w3.org/2002/12/cal/ical#\",
|
||||
\"xsd\": \"http://www.w3.org/2001/XMLSchema#\",
|
||||
\"ical:dtstart\": {
|
||||
\"@type\": \"xsd:dateTime\"
|
||||
}
|
||||
\"xsd\": \"http://www.w3.org/2001/XMLSchema#\"
|
||||
},
|
||||
";
|
||||
|
||||
if( "{$news_tab[$i]["news"]}" == "")
|
||||
{
|
||||
echo " \"ical:summary\": \"{$news_tab[$i]["title"]}: {$news_tab[$i]["name"]}\",
|
||||
\"ical:description\": \"{$news_tab[$i]["title"]}: {$news_tab[$i]["name"]}\",
|
||||
echo " \"ical:summary\": \"".lmb_xml_text_format( "{$news_tab[$i]["title"]}: {$news_tab[$i]["name"]}")."\",
|
||||
\"ical:description\": \"".lmb_xml_text_format( "{$news_tab[$i]["title"]}").": ".lmb_xml_text_format( "{$news_tab[$i]["name"]}")."\",
|
||||
\"ical:url\": \"{$news_tab[$i]["alink"]}\",
|
||||
\"ical:attach\": \"{$news_tab[$i]["aimg"]}\",
|
||||
";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " \"ical:summary\": \"{$news_tab[$i]["title"]}\",
|
||||
\"ical:description\": \"{$news_tab[$i]["news"]}\",
|
||||
echo " \"ical:summary\": \"".lmb_xml_text_format( "{$news_tab[$i]["title"]}")."\",
|
||||
\"ical:description\": \"".lmb_xml_text_format( "{$news_tab[$i]["news"]}")."\",
|
||||
\"ical:url\": \"http://www.langueur-monotone.com/\",
|
||||
\"ical:attach\": \"http://www.langueur-monotone.com/skin/images/lm-logo2-96.png\",
|
||||
";
|
||||
@@ -1087,57 +1129,7 @@ function lmb_news_tab( $skin_path)
|
||||
ob_end_clean();
|
||||
|
||||
// lmb_make_tab( "news", "news", "r", "{$skin_path}/images/lm_logo2-border-220.png", $data, $skin_path);
|
||||
lmb_make_tab( "news", "news", "r", "sprite-lm-logo2-border-220", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
/* Twitter Tab */
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
function lmb_twitter_tab( $skin_path)
|
||||
{
|
||||
global $lmb_url_post;
|
||||
|
||||
|
||||
ob_start();
|
||||
|
||||
|
||||
echo " <tr class=\"twitter1\">
|
||||
<td class=\"twitter01\"></td>
|
||||
<td class=\"twitter0\"></td>
|
||||
<td class=\"twitter01\"></td>
|
||||
</tr>
|
||||
<tr class=\"twitter1\">
|
||||
<td class=\"twitter01\"> </td>
|
||||
<td class=\"twitter0\">
|
||||
<div class=\"button-item\" style=\"display: inline-block; border-radius: 5px;\"><a class=\"twitter-timeline\" href=\"https://twitter.com/langueurmon\" data-widget-id=\"544258336741670912\">Tweets by @langueurmon</a></div>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+\"://platform.twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document,\"script\",\"twitter-wjs\");</script>
|
||||
</td>
|
||||
<td class=\"twitter01\"> </td>
|
||||
</tr>
|
||||
<tr class=\"twitter1\">
|
||||
<td class=\"twitter01\"></td>
|
||||
<td class=\"twitter0\"></td>
|
||||
<td class=\"twitter01\"></td>
|
||||
</tr>
|
||||
";
|
||||
|
||||
/*
|
||||
echo " <tr class=\"twitter1\">
|
||||
<td class=\"twitter01\"></td>
|
||||
<td class=\"twitter1\">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</td>
|
||||
<td class=\"twitter01\"></td>
|
||||
</tr>
|
||||
";
|
||||
*/
|
||||
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
// lmb_make_tab( "twitter", "twitter", "l", "{$skin_path}/images/lm_logo1-border-220.png", $data, $skin_path);
|
||||
lmb_make_tab( "twitter", "twitter", "l", "sprite-lm-logo1-border-220", $data, $skin_path);
|
||||
lmb_make_tab( "news", "news", "r", "sprite-lm-logo2-border-220", "", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -1153,10 +1145,6 @@ function lmb_main_body( $skin_path)
|
||||
lmb_spacer(4);
|
||||
|
||||
lmb_news_tab( $skin_path);
|
||||
|
||||
lmb_spacer(4);
|
||||
|
||||
lmb_twitter_tab( $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -1397,20 +1385,17 @@ function lmb_rss_page()
|
||||
header( 'Content-Type: application/rss+xml');
|
||||
|
||||
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
|
||||
<rss version=\"2.0\"
|
||||
xmlns:atom=\"http://www.w3.org/2005/Atom\"
|
||||
xmlns:dc=\"http://purl.org/dc/elements/1.1/\"
|
||||
>
|
||||
<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">
|
||||
|
||||
<channel>
|
||||
<title>Langueur Monotone News Page</title>
|
||||
<link>http://{$lmb_url_pre}/?page=rss</link>
|
||||
<link>http://{$lmb_url_pre}/</link>
|
||||
<atom:link href=\"http://{$lmb_url_pre}/?page=rss\" rel=\"self\" type=\"application/rss+xml\" />
|
||||
<description>Langueur Monotone project news RSS feed</description>
|
||||
<image>
|
||||
<url>http://{$lmb_url_pre}/images/lm_logo2-border-220.png</url>
|
||||
<url>http://{$lmb_url_pre}/skin/images/lm-logo2-border-rss.png</url>
|
||||
<title>Langueur Monotone News Page</title>
|
||||
<link>http://{$lmb_url_pre}/?page=rss</link>
|
||||
<link>http://{$lmb_url_pre}/</link>
|
||||
</image>
|
||||
";
|
||||
|
||||
@@ -1442,17 +1427,21 @@ xmlns:dc=\"http://purl.org/dc/elements/1.1/\"
|
||||
|
||||
if( "{$news_tab[$i]["name"]}" != "")
|
||||
{
|
||||
echo " <enclosure url=\"{$news_tab[$i]["aimg"]}\" length=\"".filesize("{$news_tab[$i]["rimg"]}")."\" type=\"picture/png\" />
|
||||
<link>{$news_tab[$i]["alink"]}</link>
|
||||
<description>{$news_tab[$i]["alink"]}</description>
|
||||
";
|
||||
echo " <enclosure url=\"{$news_tab[$i]["aimg"]}\" length=\"".filesize(".{$news_tab[$i]["rimg"]}")."\" type=\"picture/png\" />
|
||||
<link>{$news_tab[$i]["alink"]}</link>";
|
||||
|
||||
$data = "<table stryle=\"width: 100%;\"><tr><td>{$news_tab[$i]["date"]}: </td><td>{$news_tab[$i]["title"]}</td><td><a href=\"{$news_tab[$i]["alink"]}\">{$news_tab[$i]["name"]}</td><td><a href=\"{$news_tab[$i]["alink"]}\"><img src=\"{$news_tab[$i]["rimg"]}\"/></a></td></tr></table>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <description>{$news}</description>
|
||||
";
|
||||
$data = "<table stryle=\"width: 100%;\"><tr><td>{$news}</td></tr></table>";
|
||||
}
|
||||
|
||||
echo '
|
||||
<description><![CDATA[<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width, initial-scale=1"><style>table { border-collapse: collapse; width: 100%; border: 0px solid #ddd; color: white; background-color: #333333; font-family: verdana, geneva, lucida, \'lucida grande\', arial, helvetica, sans-serif; font-size: 14px;} th, td { text-align: left; padding: 16px;} a:link { font-weight: bold; color: #6644FF;} a:visited { font-weight: bold; color: #FF00FF;}</style></head><body></br></br></br>';
|
||||
echo "{$data}";
|
||||
echo '</br></br></br></body></html>]]></description>
|
||||
';
|
||||
echo " </item>
|
||||
";
|
||||
}
|
||||
@@ -1497,7 +1486,7 @@ function lmb_about_tab( $skin_path)
|
||||
ob_end_clean();
|
||||
|
||||
// lmb_make_tab( "about", "about", "l", "{$skin_path}/images/lm_logo2-border-220.png", $data, $skin_path);
|
||||
lmb_make_tab( "about", "about", "l", "sprite-lm-logo2-border-220", $data, $skin_path);
|
||||
lmb_make_tab( "about", "about", "l", "sprite-lm-logo2-border-220", "", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -1544,7 +1533,7 @@ function lmb_history_tab( $skin_path)
|
||||
ob_end_clean();
|
||||
|
||||
// lmb_make_tab( "history", "history", "r", "{$skin_path}/images/lm_logo1-border-220.png", $data, $skin_path);
|
||||
lmb_make_tab( "history", "history", "r", "sprite-lm-logo1-border-220", $data, $skin_path);
|
||||
lmb_make_tab( "history", "history", "r", "sprite-lm-logo1-border-220", "", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -1708,7 +1697,7 @@ function lmb_playlist( $play_type, $side, $skin_path)
|
||||
ob_end_clean();
|
||||
|
||||
// lmb_make_tab( "{$play_type}", "play", $side, "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path);
|
||||
lmb_make_tab( "{$play_type}", "play", $side, "sprite-lm-logo1-96", $data, $skin_path);
|
||||
lmb_make_tab( "{$play_type}", "play", $side, "sprite-lm-logo1-96", "", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -1778,7 +1767,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path)
|
||||
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class=\"cover\" style=\"width: 266px; height: 266px;\"><a href=\"{$cover_path}-1-1024.png\"><img class=\"button-item-big\" src=\"{$cover_path}-1-256.png\" alt=\"\"/></a></td>
|
||||
<td class=\"cover\" style=\"width: 266px; height: 266px;\"><img class=\"button-item-big\" src=\"{$cover_path}-1-400.png\" alt=\"\" onclick=\"openModal('{$cover_path}-1-1024.png')\" style=\"cursor:pointer\"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1813,7 +1802,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path)
|
||||
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class=\"logo\"><img src=\"{$logo_path}-1-128.png\" alt=\"\"/><br/></td>
|
||||
<td class=\"logo\"><img class=\"button-item\" src=\"{$logo_path}-1-128.png\" alt=\"\" onclick=\"openModal('{$logo_path}-1-1024.png')\" style=\"cursor:pointer\"/><br/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1822,7 +1811,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path)
|
||||
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class=\"cover\" style=\"width: 266px; height: 266px;\"><a href=\"{$cover_path}-2-1024.png\"><img class=\"button-item-big\" src=\"{$cover_path}-2-256.png\" alt=\"\"/></a></td>
|
||||
<td class=\"cover\" style=\"width: 266px; height: 266px;\"><img class=\"button-item-big\" src=\"{$cover_path}-2-400.png\" alt=\"\" onclick=\"openModal('{$cover_path}-2-1024.png')\" style=\"cursor:pointer\"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1862,6 +1851,21 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path)
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
/* Track Validate */
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
function lmb_track_validate( $play_type, $play_id, $play_priority, $track_id)
|
||||
{
|
||||
$play_path = lmb_play_path_get( $play_type, $play_id, $play_priority);
|
||||
$track_path = "{$play_path}/tracks";
|
||||
$track_array = glob("{$track_path}/flac/{$track_id}-*.flac");
|
||||
|
||||
return( isset($track_array[0]) && file_exists($track_array[0]));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
/* Track Info Get */
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
@@ -2186,7 +2190,7 @@ function lmb_tracklist( $play_type, $play_id, $play_priority, $skin_path)
|
||||
ob_end_clean();
|
||||
|
||||
// lmb_make_tab( "tracks", "tracks", "r", "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path);
|
||||
lmb_make_tab( "tracks", "tracks", "r", "sprite-lm-logo1-96", $data, $skin_path);
|
||||
lmb_make_tab( "tracks", "tracks", "r", "sprite-lm-logo1-96", "", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -2340,7 +2344,7 @@ function lmb_coverlist( $play_type, $play_id, $play_priority, $skin_path)
|
||||
$css_row = $i % 2 + 1;
|
||||
|
||||
$entry_tag = " <tr class=\"covers{$css_row}\" style=\"height: {$height}px\">
|
||||
<td class=\"covers1\"><a href=\"{$file_tab[0]["url"]}\"><img class=\"button-item\" src=\"{$cover_path}-{$sheet_tab[$i]}-icon.png\" alt=\"\"/></a></td>
|
||||
<td class=\"covers1\"><img class=\"button-item\" src=\"{$cover_path}-{$sheet_tab[$i]}-icon.png\" alt=\"\" onclick=\"openModal('{$file_tab[0]["url"]}')\" style=\"cursor:pointer\"/></td>
|
||||
<td class=\"covers2\"> {$sheet_name} </td>";
|
||||
|
||||
lmb_file_entry_print( $file_tab, "covers3", "covers4", "{$entry_tag}", count( $file_tab));
|
||||
@@ -2351,7 +2355,7 @@ function lmb_coverlist( $play_type, $play_id, $play_priority, $skin_path)
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
lmb_make_tab( "covers", "covers", "l", "/{$logo_path}-2-128.png", $data, $skin_path);
|
||||
lmb_make_tab( "covers", "covers", "l", "/{$logo_path}-2-128.png", "/{$logo_path}-2-1024.png", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -2507,7 +2511,7 @@ ${title_tag} <td class=\"videos4\">&nbs
|
||||
$cmd="ls {$video_path}/* | grep -v -- -icon | grep -v -- -poster | sed -e 's/-[0-9][0-9]*p//' -e 's/.*\///' | sort -u";
|
||||
exec($cmd, $video_tab);
|
||||
|
||||
$height = max( 86, ( ( 220 - 30 * $codec_nb) / count($extra_tab)));
|
||||
$height = max( 86, ( ( 220 - 30 * $codec_nb) / count($video_tab)));
|
||||
|
||||
for( $i = 0; $i < count($video_tab); $i++)
|
||||
{
|
||||
@@ -2546,7 +2550,7 @@ ${title_tag} <td class=\"videos4\">&nbs
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
lmb_make_tab( "videos", "videos", "r", "/{$logo_path}-1-128.png", $data, $skin_path);
|
||||
lmb_make_tab( "videos", "videos", "r", "/{$logo_path}-1-128.png", "/{$logo_path}-1-1024.png", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -2677,7 +2681,7 @@ ${title_tag} <td class=\"extras4\">&nbs
|
||||
$css_row = $i % 2 + 1;
|
||||
|
||||
$entry_tag = " <tr class=\"extras{$css_row}\" style=\"height: {$height}px\">
|
||||
<td class=\"extras1\"><a href=\"{$file_tab[1]["url"]}\"><img class=\"button-item\" src=\"{$extra_prefix}-icon.png\" alt=\"\"/></a></td>
|
||||
<td class=\"extras1\"><img class=\"button-item\" src=\"{$extra_prefix}-icon.png\" alt=\"\" onclick=\"openModal('{$file_tab[array_key_last($file_tab)]["url"]}')\" style=\"cursor:pointer\"/></td>
|
||||
<td class=\"extras2\"> {$extra_type} </td>
|
||||
<td class=\"extras3\"> {$extra_subid} </td>
|
||||
<td class=\"extras4\"> {$extra_format} </td>
|
||||
@@ -2691,7 +2695,7 @@ ${title_tag} <td class=\"extras4\">&nbs
|
||||
ob_end_clean();
|
||||
|
||||
// lmb_make_tab( "extras", "extras", "l", "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path);
|
||||
lmb_make_tab( "extras", "extras", "l", "sprite-lm-logo1-96", $data, $skin_path);
|
||||
lmb_make_tab( "extras", "extras", "l", "sprite-lm-logo1-96", "", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -2930,6 +2934,10 @@ function lmb_play_page( $play_type, $play_id, $play_priority)
|
||||
|
||||
|
||||
$play_path = lmb_play_path_get( $play_type, $play_id, $play_priority);
|
||||
|
||||
if( file_exists( $play_path) && ( ! file_exists( "{$play_path}/.hide" ) || lmb_admin_is()))
|
||||
{
|
||||
|
||||
$play_info = lmb_play_info_get( $play_type, $play_id, $play_priority);
|
||||
$play_title = lmb_play_title_get( $play_type, $play_id, $play_priority);
|
||||
$play_image = "{$play_type}";
|
||||
@@ -2941,6 +2949,11 @@ function lmb_play_page( $play_type, $play_id, $play_priority)
|
||||
lmb_play_body( $play_type, $play_id, $play_priority, $skin_path);
|
||||
lmb_footer( $skin_path);
|
||||
}
|
||||
else
|
||||
{
|
||||
lmb_redirect_page( "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3012,7 +3025,7 @@ function lmb_tracklist_body( $skin_path)
|
||||
ob_end_clean();
|
||||
|
||||
// lmb_make_tab( "tracks", "tracks", "r", "{$skin_path}/images/lm_logo2-96.png", $data, $skin_path);
|
||||
lmb_make_tab( "tracks", "tracks", "r", "sprite-lm-logo2-96", $data, $skin_path);
|
||||
lmb_make_tab( "tracks", "tracks", "r", "sprite-lm-logo2-96", "", $data, $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -3273,8 +3286,8 @@ function lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $t
|
||||
<td style=\"vertical-align: middle; padding: 10px 0px 0px 0px;\">
|
||||
|
||||
<audio controls autoplay style=\"width: 90%;\">
|
||||
<source src=\"http://{$lmb_url_pre}/{$track_file_ogg}\" type=\"audio/ogg\">
|
||||
<source src=\"http://{$lmb_url_pre}/{$track_file_mp3}\" type=\"audio/mpeg\">
|
||||
<source src=\"{$track_file_ogg}\" type=\"audio/ogg\">
|
||||
<source src=\"{$lmb_url_pre}/{$track_file_mp3}\" type=\"audio/mpeg\">
|
||||
Your browser does not support the audio element.
|
||||
</audio>
|
||||
</td>
|
||||
@@ -3313,8 +3326,8 @@ Your browser does not support the audio element.
|
||||
ready: function (event) {
|
||||
$(this).jPlayer(\"setMedia\", {
|
||||
title: \"{$track_fulltitle}\",
|
||||
oga:\"http://{$lmb_url_pre}/{$track_file_ogg}\",
|
||||
mp3:\"http://{$lmb_url_pre}/{$track_file_mp3}\"
|
||||
oga:\"{$track_file_ogg}\",
|
||||
mp3:\"{$track_file_mp3}\"
|
||||
}).jPlayer(\"play\");
|
||||
},
|
||||
swfPath: \"/jplayer\",
|
||||
@@ -3429,7 +3442,7 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac
|
||||
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class=\"cover\" style=\"width: {$border2_size}px; height: {$border2_size}px;\"><a href=\"{$cover_path}-1-1024.png\"><img class=\"button-item-big\" src=\"{$cover_path}-1-{$cover_size}.png\" alt=\"\"/></a></td>
|
||||
<td class=\"cover\" style=\"width: {$border2_size}px; height: {$border2_size}px;\"><img class=\"button-item-big\" src=\"{$cover_path}-1-{$cover_size}.png\" alt=\"\" onclick=\"openModal('{$cover_path}-1-1024.png')\" style=\"cursor:pointer\"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -3500,7 +3513,7 @@ echo " </td>
|
||||
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class=\"cover\" style=\"width: {$border2_size}px; height: {$border2_size}px;\"><a href=\"{$cover_path}-2-1024.png\"><img class=\"button-item-big\" src=\"{$cover_path}-2-{$cover_size}.png\" alt=\"\"/></a></td>
|
||||
<td class=\"cover\" style=\"width: {$border2_size}px; height: {$border2_size}px;\"><img class=\"button-item-big\" src=\"{$cover_path}-2-{$cover_size}.png\" alt=\"\" onclick=\"openModal('{$cover_path}-2-1024.png')\" style=\"cursor:pointer\"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -3529,6 +3542,7 @@ function lmb_track_video( $play_type, $play_id, $play_priority, $track_id, $trac
|
||||
{
|
||||
global $lmb_cookie_tab;
|
||||
global $lmb_url_pre;
|
||||
global $lmb_url_post;
|
||||
|
||||
|
||||
$play_path = lmb_play_path_get( $play_type, $play_id, $play_priority);
|
||||
@@ -3651,7 +3665,7 @@ Your browser does not support the video tag.
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
lmb_make_tab( "video", "videos", "r", "/{$logo_path}-1-128.png", $data, $skin_path);
|
||||
lmb_make_tab( "video", "videos", "r", "/{$logo_path}-1-128.png", "/{$logo_path}-1-1024.png", $data, $skin_path);
|
||||
|
||||
echo " </tr>
|
||||
<tr><td><br/><br/><br/><br/><br/></td></tr>
|
||||
@@ -3842,6 +3856,9 @@ function lmb_track_page( $play_type, $play_id, $play_priority, $track_id)
|
||||
|
||||
|
||||
$play_path = lmb_play_path_get( $play_type, $play_id, $play_priority);
|
||||
|
||||
if( file_exists( $play_path) && ( ! file_exists( "{$play_path}/.hide" ) || lmb_admin_is()))
|
||||
{
|
||||
$skin_path = "{$play_path}/skin";
|
||||
$track_title = lmb_title_get( $play_type, $play_id, $play_priority, $track_id);
|
||||
$track_fulltitle = lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id);
|
||||
@@ -3850,6 +3867,11 @@ function lmb_track_page( $play_type, $play_id, $play_priority, $track_id)
|
||||
lmb_track_body( $play_type, $play_id, $play_priority, $track_id, $skin_path);
|
||||
lmb_footer( $skin_path);
|
||||
}
|
||||
else
|
||||
{
|
||||
lmb_redirect_page( "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3877,7 +3899,6 @@ function lmb_download_zip( $directory, $file_list, $mode)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -3914,10 +3935,19 @@ function lmb_download_file( $play_dir, $file_list, $mode, $download_name)
|
||||
function lmb_download_tracks( $play_type, $play_id, $play_priority, $file_type, $mode)
|
||||
{
|
||||
$play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority);
|
||||
$file_array = glob("{$play_dir}/tracks/{$file_type}/*");
|
||||
|
||||
if( isset($file_array[0]) && file_exists( $file_array[0]))
|
||||
{
|
||||
$file_list = "tracks/{$file_type}/* covers/{$play_id}-*-800.png";
|
||||
|
||||
return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$file_type}"));
|
||||
}
|
||||
else
|
||||
{
|
||||
lmb_redirect_page( "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3929,9 +3959,17 @@ function lmb_download_covers( $play_type, $play_id, $play_priority, $cover_forma
|
||||
{
|
||||
$play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority);
|
||||
$file_list = "covers/{$play_id}-cover-*-{$cover_format}.png";
|
||||
$file_array = glob("{$play_dir}/{$file_list}");
|
||||
|
||||
if( isset($file_array[0]) && file_exists( $file_array[0]))
|
||||
{
|
||||
return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$cover_format}"));
|
||||
}
|
||||
else
|
||||
{
|
||||
lmb_redirect_page( "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3943,9 +3981,17 @@ function lmb_download_videos( $play_type, $play_id, $play_priority, $video_forma
|
||||
{
|
||||
$play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority);
|
||||
$file_list = "videos/*-{$video_format}";
|
||||
$file_array = glob("{$play_dir}/{$file_list}");
|
||||
|
||||
if( isset($file_array[0]) && file_exists( $file_array[0]))
|
||||
{
|
||||
return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$video_format}"));
|
||||
}
|
||||
else
|
||||
{
|
||||
lmb_redirect_page( "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3957,9 +4003,17 @@ function lmb_download_extras( $play_type, $play_id, $play_priority, $extra_forma
|
||||
{
|
||||
$play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority);
|
||||
$file_list = "extras/{$play_id}-*-{$extra_format}.png";
|
||||
$file_array = glob("{$play_dir}/{$file_list}");
|
||||
|
||||
if( isset($file_array[0]) && file_exists( $file_array[0]))
|
||||
{
|
||||
return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$extra_format}"));
|
||||
}
|
||||
else
|
||||
{
|
||||
lmb_redirect_page( "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -4098,14 +4152,7 @@ function lmb_get_proceed( $get_array)
|
||||
lmb_admin_update();
|
||||
lmb_cookie_update( $get_array);
|
||||
|
||||
if( array_key_exists ( "page", $get_array))
|
||||
{
|
||||
$page_id=$get_array["page"];
|
||||
}
|
||||
else
|
||||
{
|
||||
$page_id="";
|
||||
}
|
||||
$page_id = lmb_get_array( $get_array, "page", "main");
|
||||
|
||||
switch ($page_id)
|
||||
{
|
||||
@@ -4135,11 +4182,19 @@ function lmb_get_proceed( $get_array)
|
||||
|
||||
case "play":
|
||||
{
|
||||
$play_type=$get_array["type"];
|
||||
$play_id=$get_array["id"];
|
||||
$play_priority=$get_array["priority"];
|
||||
$play_type = lmb_get_array( $get_array, "type", "");
|
||||
$play_id = lmb_get_array( $get_array, "id", "");
|
||||
$play_priority = lmb_get_array( $get_array, "priority", "");
|
||||
|
||||
if( lmb_play_validate( $play_type, $play_id, $play_priority))
|
||||
{
|
||||
lmb_play_page( $play_type, $play_id, $play_priority);
|
||||
}
|
||||
else
|
||||
{
|
||||
lmb_redirect_page( "");
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -4151,27 +4206,37 @@ function lmb_get_proceed( $get_array)
|
||||
|
||||
case "track":
|
||||
{
|
||||
$play_type=$get_array["type"];
|
||||
$play_id=$get_array["id"];
|
||||
$play_priority=$get_array["priority"];
|
||||
$track_id=$get_array["tid"];
|
||||
$play_type = lmb_get_array( $get_array, "type", "");
|
||||
$play_id = lmb_get_array( $get_array, "id", "");
|
||||
$play_priority = lmb_get_array( $get_array, "priority", "");
|
||||
$track_id = lmb_get_array( $get_array, "tid", "");
|
||||
|
||||
if( lmb_track_validate( $play_type, $play_id, $play_priority, $track_id))
|
||||
{
|
||||
lmb_track_page( $play_type, $play_id, $play_priority, $track_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
lmb_redirect_page( "");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case "download":
|
||||
{
|
||||
$play_type=$get_array["type"];
|
||||
$play_id=$get_array["id"];
|
||||
$play_priority=$get_array["priority"];
|
||||
$download_type=$get_array["dtype"];
|
||||
$play_type = lmb_get_array( $get_array, "type", "");
|
||||
$play_id = lmb_get_array( $get_array, "id", "");
|
||||
$play_priority = lmb_get_array( $get_array, "priority", "");
|
||||
|
||||
if( lmb_play_validate( $play_type, $play_id, $play_priority))
|
||||
{
|
||||
$download_type = lmb_get_array( $get_array, "dtype", "");
|
||||
|
||||
switch( "{$download_type}")
|
||||
{
|
||||
case "track":
|
||||
{
|
||||
$file_type=$get_array["ftype"];
|
||||
$file_type = lmb_get_array( $get_array, "ftype", "");
|
||||
|
||||
lmb_download_tracks( $play_type, $play_id, $play_priority, $file_type, "DUMP");
|
||||
break;
|
||||
@@ -4179,7 +4244,7 @@ function lmb_get_proceed( $get_array)
|
||||
|
||||
case "cover":
|
||||
{
|
||||
$cover_format=$get_array["cformat"];
|
||||
$cover_format = lmb_get_array( $get_array, "cformat", "");
|
||||
|
||||
lmb_download_covers( $play_type, $play_id, $play_priority, $cover_format, "DUMP");
|
||||
break;
|
||||
@@ -4187,7 +4252,7 @@ function lmb_get_proceed( $get_array)
|
||||
|
||||
case "video":
|
||||
{
|
||||
$video_format=$get_array["vformat"];
|
||||
$video_format=lmb_get_array( $get_array, "vformat", "");
|
||||
|
||||
lmb_download_videos( $play_type, $play_id, $play_priority, $video_format, "DUMP");
|
||||
break;
|
||||
@@ -4195,11 +4260,22 @@ function lmb_get_proceed( $get_array)
|
||||
|
||||
case "extra":
|
||||
{
|
||||
$extra_format=$get_array["eformat"];
|
||||
$extra_format=lmb_get_array( $get_array, "eformat", "");
|
||||
|
||||
lmb_download_extras( $play_type, $play_id, $play_priority, $extra_format, "DUMP");
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
lmb_redirect_page( );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lmb_redirect_page( );
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -4211,11 +4287,17 @@ function lmb_get_proceed( $get_array)
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
case "main":
|
||||
{
|
||||
lmb_main_page( );
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
lmb_redirect_page( );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user