- Remove tweeter widget,
- Fix security, - Cleanup code.
This commit is contained in:
@@ -1,13 +1,7 @@
|
|||||||
<?
|
<?
|
||||||
// $RCSfile: lmbrowse.php,v $
|
|
||||||
// $Revision: 1.17 $
|
|
||||||
// $Name: lmbrowse-1_7_5-1 $
|
|
||||||
// $Date: 2016/03/21 16:07:30 $
|
|
||||||
// $Author: agibert $
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* LMBrowse - Langueur Monotone Browser
|
* LMBrowse - Langueur Monotone Browser
|
||||||
* Copyright (C) 2012-2022 Arnaud G. GIBERT
|
* Copyright (C) 2012-2025 Arnaud G. GIBERT
|
||||||
* mailto:arnaud@rx3.net
|
* mailto:arnaud@rx3.net
|
||||||
* http://www.rx3.org/dvp/lmbrowse
|
* http://www.rx3.org/dvp/lmbrowse
|
||||||
*
|
*
|
||||||
@@ -26,6 +20,8 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function microtime_float()
|
function microtime_float()
|
||||||
{
|
{
|
||||||
list($usec, $sec) = explode(" ", microtime());
|
list($usec, $sec) = explode(" ", microtime());
|
||||||
@@ -41,7 +37,7 @@ $time_start = microtime_float();
|
|||||||
include "lmbrowse_config.inc";
|
include "lmbrowse_config.inc";
|
||||||
|
|
||||||
$lmb_myname="LMBrowse";
|
$lmb_myname="LMBrowse";
|
||||||
$lmb_tag_tab=explode( " ", "\$Name: lmbrowse-1_7_5-1 $");
|
$lmb_tag_tab=explode( " ", "\$Name: lmbrowse-1_8_0-1 $");
|
||||||
$lmb_tag_tab=explode( "-", $lmb_tag_tab[1]);
|
$lmb_tag_tab=explode( "-", $lmb_tag_tab[1]);
|
||||||
$lmb_myver=strtr( "$lmb_tag_tab[1]-$lmb_tag_tab[2]", "_", ".");
|
$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)
|
function lmb_html_text_format( $input_text)
|
||||||
{
|
{
|
||||||
$search_tab = array(
|
$search_tab = array(
|
||||||
|
"#",
|
||||||
"&",
|
"&",
|
||||||
"\n",
|
"\n",
|
||||||
"< >",
|
"< >",
|
||||||
@@ -323,11 +320,13 @@ function lmb_html_text_format( $input_text)
|
|||||||
"<LM>",
|
"<LM>",
|
||||||
"</LM>",
|
"</LM>",
|
||||||
"<F+1/>",
|
"<F+1/>",
|
||||||
"<MSF/>",
|
"<TW/>",
|
||||||
"<TW/>"
|
"<BC/>",
|
||||||
|
"<YT/>"
|
||||||
);
|
);
|
||||||
|
|
||||||
$replace_tab = array(
|
$replace_tab = array(
|
||||||
|
"",
|
||||||
"&",
|
"&",
|
||||||
"<br/>\n ",
|
"<br/>\n ",
|
||||||
" ",
|
" ",
|
||||||
@@ -341,18 +340,10 @@ function lmb_html_text_format( $input_text)
|
|||||||
"</span>",
|
"</span>",
|
||||||
"<span style=\"font-family:CustomFont; font-weight:normal;\">",
|
"<span style=\"font-family:CustomFont; font-weight:normal;\">",
|
||||||
"</span>",
|
"</span>",
|
||||||
"
|
"<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 id=\"fb-root\"></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>",
|
||||||
<script async defer crossorigin=\"anonymous\" src=\"https://connect.facebook.net/en_EN/sdk.js#xfbml=1&version=v9.0\" nonce=\"8VpYfMEc\"></script>
|
"<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>",
|
||||||
<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>",
|
"<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>",
|
||||||
"
|
|
||||||
<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));
|
return( str_replace( $search_tab, $replace_tab, $input_text));
|
||||||
@@ -384,7 +375,9 @@ function lmb_xml_text_format( $input_text)
|
|||||||
"</LM>",
|
"</LM>",
|
||||||
"<F+1/>",
|
"<F+1/>",
|
||||||
"<MSF/>",
|
"<MSF/>",
|
||||||
"<TW/>"
|
"<TW/>",
|
||||||
|
"<BC/>",
|
||||||
|
"<YT/>"
|
||||||
);
|
);
|
||||||
|
|
||||||
$replace_tab = array(
|
$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 http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
|
||||||
<meta name=\"Description\" content=\"$description\"/>
|
<meta name=\"Description\" content=\"$description\"/>
|
||||||
<meta name=\"keywords\" content=\"$keywords\"/>
|
<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=\"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=\"{$skin_path}/default.css\"/>
|
||||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"/jplayer/skin/pink.flag/css/jplayer.pink.flag.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();
|
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", "{$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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -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 */
|
/* Main Body */
|
||||||
/*--------------------------------------------------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------------------------------------------------*/
|
||||||
@@ -1169,10 +1106,6 @@ function lmb_main_body( $skin_path)
|
|||||||
lmb_spacer(4);
|
lmb_spacer(4);
|
||||||
|
|
||||||
lmb_news_tab( $skin_path);
|
lmb_news_tab( $skin_path);
|
||||||
|
|
||||||
lmb_spacer(4);
|
|
||||||
|
|
||||||
lmb_twitter_tab( $skin_path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user