plugins:blogrollingjp:blogrollingjp_code

NP_BlogRollingJP.php のソース

<?php
class NP_BlogRollingJP extends NucleusPlugin {
 
	function getName() {
		return 'BlogRolling JP'; 
	}
 
	function getAuthor()  { 
		return 'Osamu Higuchi'; 
	}
 
	function getURL() 
	{
		return 'http://www.higuchi.com/'; 
	}
 
	function getVersion() {
		return '1.0'; 
	}
 
	function getDescription() { 
		return 'Shows your Blogroll list from blogrolling.com. Re-encode Japanese characters in the list line by line into a single character code set. Usage: &lt%BlogRollingJP(http://rpc.blogrolling.com/display_raw.php?r=0123456789abcdef0123456789abcdef)%&gt; Use your own URL from the blogrolling.com code generator.';
	}
 
	function doSkinVar($skinType, $url) {
        if($blogroll = @file($url)){
            foreach ($blogroll as $blog){
                echo @mb_convert_encoding($blog, _CHARSET, "auto");
            }
        }else{
            echo "ERROR: $url is currently inaccessible";
        }
	}
}
?>
 
plugins/blogrollingjp/blogrollingjp_code.txt · 最終更新: 2011/03/23 21:28 (外部編集)