Compare commits
2 Commits
lmbrowse-1
...
lmbrowse-1
| Author | SHA1 | Date | |
|---|---|---|---|
| b722d620e4 | |||
| a4ae21b60f |
@@ -1,13 +1,7 @@
|
||||
<?
|
||||
// $RCSfile: lmbrowse.php,v $
|
||||
// $Revision: 1.17 $
|
||||
// $Name: lmbrowse-1_7_2-1 $
|
||||
// $Date: 2016/03/21 16:07:30 $
|
||||
// $Author: agibert $
|
||||
|
||||
/*
|
||||
* LMBrowse - Langueur Monotone Browser
|
||||
* Copyright (C) 2012-2022 Arnaud G. GIBERT
|
||||
* Copyright (C) 2012-2025 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());
|
||||
@@ -41,7 +37,7 @@ $time_start = microtime_float();
|
||||
include "lmbrowse_config.inc";
|
||||
|
||||
$lmb_myname="LMBrowse";
|
||||
$lmb_tag_tab=explode( " ", "\$Name: lmbrowse-1_7_4-1 $");
|
||||
$lmb_tag_tab=explode( " ", "\$Name: lmbrowse-1_8_0-1 $");
|
||||
$lmb_tag_tab=explode( "-", $lmb_tag_tab[1]);
|
||||
$lmb_myver=strtr( "$lmb_tag_tab[1]-$lmb_tag_tab[2]", "_", ".");
|
||||
|
||||
@@ -309,6 +305,7 @@ function lmb_size_convert( $size)
|
||||
function lmb_html_text_format( $input_text)
|
||||
{
|
||||
$search_tab = array(
|
||||
"#",
|
||||
"&",
|
||||
"\n",
|
||||
"< >",
|
||||
@@ -323,11 +320,13 @@ function lmb_html_text_format( $input_text)
|
||||
"<LM>",
|
||||
"</LM>",
|
||||
"<F+1/>",
|
||||
"<MSF/>",
|
||||
"<TW/>"
|
||||
"<TW/>",
|
||||
"<BC/>",
|
||||
"<YT/>"
|
||||
);
|
||||
|
||||
$replace_tab = array(
|
||||
"",
|
||||
"&",
|
||||
"<br/>\n ",
|
||||
" ",
|
||||
@@ -341,18 +340,10 @@ function lmb_html_text_format( $input_text)
|
||||
"</span>",
|
||||
"<span style=\"font-family:CustomFont; font-weight:normal;\">",
|
||||
"</span>",
|
||||
"
|
||||
<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\" /> <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>"
|
||||
"<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));
|
||||
@@ -384,7 +375,9 @@ function lmb_xml_text_format( $input_text)
|
||||
"</LM>",
|
||||
"<F+1/>",
|
||||
"<MSF/>",
|
||||
"<TW/>"
|
||||
"<TW/>",
|
||||
"<BC/>",
|
||||
"<YT/>"
|
||||
);
|
||||
|
||||
$replace_tab = array(
|
||||
@@ -404,6 +397,7 @@ function lmb_xml_text_format( $input_text)
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
);
|
||||
|
||||
@@ -664,6 +658,7 @@ 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\"/>
|
||||
@@ -930,7 +925,6 @@ function lmb_welcome_tab( $skin_path)
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -968,7 +962,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
|
||||
@@ -1101,63 +1095,6 @@ function lmb_news_tab( $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\">
|
||||
|
||||
<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\"> </td>
|
||||
</tr>
|
||||
<tr class=\"twitter1\">
|
||||
<td class=\"twitter01\"></td>
|
||||
<td class=\"twitter0\"></td>
|
||||
<td class=\"twitter01\"></td>
|
||||
</tr>
|
||||
";
|
||||
|
||||
/*
|
||||
|
||||
<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>
|
||||
<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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
/* Main Body */
|
||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||
@@ -1169,10 +1106,6 @@ function lmb_main_body( $skin_path)
|
||||
lmb_spacer(4);
|
||||
|
||||
lmb_news_tab( $skin_path);
|
||||
|
||||
lmb_spacer(4);
|
||||
|
||||
lmb_twitter_tab( $skin_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -1413,20 +1346,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>
|
||||
";
|
||||
|
||||
@@ -1458,17 +1388,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>
|
||||
";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user