5 Commits

View File

@@ -1,13 +1,13 @@
<?
// $RCSfile: lmbrowse.php,v $
// $Revision: 1.17 $
// $Name: lmbrowse-1_7_0-1 $
// $Name: lmbrowse-1_7_5-1 $
// $Date: 2016/03/21 16:07:30 $
// $Author: agibert $
/*
* LMBrowse - Langueur Monotone Browser
* Copyright (C) 2012-2020 Arnaud G. GIBERT
* Copyright (C) 2012-2022 Arnaud G. GIBERT
* mailto:arnaud@rx3.net
* http://www.rx3.org/dvp/lmbrowse
*
@@ -41,7 +41,7 @@ $time_start = microtime_float();
include "lmbrowse_config.inc";
$lmb_myname="LMBrowse";
$lmb_tag_tab=explode( " ", "\$Name: lmbrowse-1_7_0-1 $");
$lmb_tag_tab=explode( " ", "\$Name: lmbrowse-1_7_5-1 $");
$lmb_tag_tab=explode( "-", $lmb_tag_tab[1]);
$lmb_myver=strtr( "$lmb_tag_tab[1]-$lmb_tag_tab[2]", "_", ".");
@@ -323,7 +323,8 @@ function lmb_html_text_format( $input_text)
"<LM>",
"</LM>",
"<F+1/>",
"<MSF/>"
"<MSF/>",
"<TW/>"
);
$replace_tab = array(
@@ -341,26 +342,17 @@ function lmb_html_text_format( $input_text)
"<span style=\"font-family:CustomFont; font-weight:normal;\">",
"</span>",
"
<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>",
<div id=\"fb-root\"></div>
<script async defer crossorigin=\"anonymous\" src=\"https://connect.facebook.net/en_EN/sdk.js#xfbml=1&version=v9.0\" nonce=\"8VpYfMEc\"></script>
<img src=\"icons/f_logo_RGB-Blue_58.png\" style=\"width: 20px\" />&nbsp;<div class=\"fb-like\" data-href=\"https://www.facebook.com/langueur.monotone\" data-width=\"\" data-layout=\"button\" data-action=\"like\" data-size=\"small\" data-share=\"true\" style=\"width:auto;\"></div>",
"
<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 href=\"https://twitter.com/langueurmon?ref_src=twsrc%5Etfw\" class=\"twitter-follow-button\" style=\"vertical-align: top;\" data-show-screen-name=\"false\" data-show-count=\"false\">Follow @langueurmon</a><script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script></div>"
);
return( str_replace( $search_tab, $replace_tab, $input_text));
@@ -391,7 +383,8 @@ function lmb_xml_text_format( $input_text)
"<LM>",
"</LM>",
"<F+1/>",
"<MSF/>"
"<MSF/>",
"<TW/>"
);
$replace_tab = array(
@@ -410,6 +403,7 @@ function lmb_xml_text_format( $input_text)
"",
"",
"",
"",
""
);
@@ -674,15 +668,11 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords,
<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),
@@ -693,9 +683,28 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords,
ga('send', 'pageview');
</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;\">
";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"{$mw_tag}\">
<tbody>
<tr>
@@ -832,6 +841,8 @@ function lmb_footer( $skin_path)
<td style=\"width: 8px;\">&nbsp;&nbsp;&nbsp;</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;\">&nbsp;&nbsp;&nbsp;</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;\">&nbsp;&nbsp;&nbsp;</td>
<td class=\"button-item\" style=\"width: 32px;\"><a class=\"button-item\" href=\"https://www.google.com/analytics/web/?hl=en&amp;pli=1#dashboard//a37642754w66067134p67926512\" title=\"Google Analytics\"><div class=\"sprite-button-stats-on\"></div></a></td>
<td style=\"width: 8px;\">&nbsp;&nbsp;&nbsp;</td>
<td class=\"button-item\" style=\"width: 32px;\"><a class=\"button-item\" href=\"https://www.google.com/webmasters/tools/dashboard?hl=fr&amp;siteUrl=http%3A%2F%2F{$lmb_url_pre}%2F\" title=\"Google Webmaster Tools\"><div class=\"sprite-button-stats-on\"></div></a></td>
@@ -957,7 +968,7 @@ function lmb_news_tab_get( )
$news_tab[$i]["name"] = "{$play_name}";
$news_tab[$i]["rlink"] = "{$lmb_url_post}?page=play&amp;type={$play_type}&amp;id={$play_id}&amp;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
@@ -1102,6 +1113,7 @@ function lmb_twitter_tab( $skin_path)
ob_start();
echo " <tr class=\"twitter1\">
<td class=\"twitter01\"></td>
<td class=\"twitter0\"></td>
@@ -1110,8 +1122,10 @@ function lmb_twitter_tab( $skin_path)
<tr class=\"twitter1\">
<td class=\"twitter01\">&nbsp;</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>
<a class=\"twitter-timeline\" data-width=\"640\" data-height=\"900\" data-theme=\"dark\" href=\"https://twitter.com/langueurmon?ref_src=twsrc%5Etfw\">Tweets by langueurmon</a>
<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>
</td>
<td class=\"twitter01\">&nbsp;</td>
</tr>
@@ -1123,6 +1137,10 @@ function lmb_twitter_tab( $skin_path)
";
/*
<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>
echo " <tr class=\"twitter1\">
<td class=\"twitter01\"></td>
<td class=\"twitter1\">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</td>
@@ -1395,20 +1413,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>
";
@@ -1440,17 +1455,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>
";
}
@@ -1776,7 +1795,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;\"><a href=\"{$cover_path}-1-1024.png\"><img class=\"button-item-big\" src=\"{$cover_path}-1-400.png\" alt=\"\"/></a></td>
</tr>
</tbody>
</table>
@@ -1820,7 +1839,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;\"><a href=\"{$cover_path}-2-1024.png\"><img class=\"button-item-big\" src=\"{$cover_path}-2-400.png\" alt=\"\"/></a></td>
</tr>
</tbody>
</table>
@@ -2690,7 +2709,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\"><a href=\"{$file_tab[2]["url"]}\"><img class=\"button-item\" src=\"{$extra_prefix}-icon.png\" alt=\"\"/></a></td>
<td class=\"extras2\">&nbsp;{$extra_type}&nbsp;</td>
<td class=\"extras3\">&nbsp;{$extra_subid}&nbsp;</td>
<td class=\"extras4\">&nbsp;{$extra_format}&nbsp;</td>