<?php
/****************************************************
SIMPLEPIE
A PHP-Based RSS and Atom Feed Framework
Takes the hard work out of managing a complete RSS/Atom solution.
Version: 1.0 Beta 2
Updated: 30 May 2006
Copyright: 2004-2006 Ryan Parman, Geoffrey Sneddon
http://simplepie.org
*****************************************************
LICENSE:
GNU Lesser General Public License 2.1 (LGPL)
http://creativecommons.org/licenses/LGPL/2.1/
*****************************************************
Please submit all bug reports and feature requests to the SimplePie forums.
http://simplepie.org/support/
****************************************************/
class SimplePie {
// SimplePie Information
var $name = 'SimplePie';
var $version = '1.0 Beta 2';
var $build = '20060530';
var $url = 'http://simplepie.org/';
var $useragent;
var $linkback;
// Run-time Variables
var $rss_url;
var $encoding;
var $xml_dump = false;
var $caching = true;
var $max_minutes = 60;
var $cache_location = './data/simplepie_cache';
var $bypass_image_hotlink = 'i';
var $bypass_image_hotlink_page = false;
var $replace_headers = false;
var $remove_div = true;
var $order_by_date = true;
var $strip_ads = false;
var $strip_htmltags = 'blink,body,doctype,embed,font,form,frame,frameset,html,iframe,input,marquee,meta,noscript,object,param,script,style';
var $strip_attributes = 'class,id,style,onclick,onmouseover,onmouseout,onfocus,onblur';
var $encode_instead_of_strip = false;
// RSS Auto-Discovery Variables
var $parsed_url;
var $local = array();
var $elsewhere = array();
// XML Parsing Variables
var $xml;
var $tagName;
var $insideItem;
var $insideChannel;
var $insideImage;
var $insideAuthor;
var $itemNumber = 0;
var $authorNumber = 0;
var $categoryNumber = 0;
var $enclosureNumber = 0;
var $linkNumber = 0;
var $itemLinkNumber = 0;
var $data = false;
var $attribs;
var $xmldata;
var $feed_xmlbase;
var $item_xmlbase;
var $xhtml_prefix;
/****************************************************
CONSTRUCTOR
Initiates a couple of variables. Accepts feed_url, cache_location,
and cache_max_minutes.
****************************************************/
function SimplePie($feed_url = null, $cache_location = null, $cache_max_minutes = null) {
$this->useragent = $this->name . '/' . $this->version . ' (Feed Parser; ' . $this->url . '; Allow like Gecko) Build/' . $this->build;
$this->linkback = '<a href="' . $this->url . '" title="' . $this->name . ' ' . $this->version . '">' . $this->name . '</a>';
if (!is_null($feed_url)) {
$this->feed_url($feed_url);
}
if (!is_null($cache_location)) {
$this->cache_location($cache_location);
}
if (!is_null($cache_max_minutes)) {
$this->cache_max_minutes($cache_max_minutes);
}
if (!is_null($feed_url)) {
return $this->init();
}
// If we've passed an xmldump variable in the URL, snap into XMLdump mode
if (isset($_GET['xmldump'])) {
$this->enable_xmldump($_GET['xmldump']);
}
}
/****************************************************
CONFIGURE OPTIONS
Set various options (feed URL, XML dump, caching, etc.)
****************************************************/
// Feed URL
function feed_url($url) {
$url = $this->fix_protocol($url, 1);
$this->rss_url = $url;
return true;
}
// XML Dump
function enable_xmldump($enable) {
$this->xml_dump = (bool) $enable;
return true;
}
// Bypass Image Hotlink
function bypass_image_hotlink($getvar='i') {
$this->bypass_image_hotlink = (string) $getvar;
return true;
}
// Bypass Image Hotlink Page
function bypass_image_hotlink_page($page = false) {
$this->bypass_image_hotlink_page = (string) $page;
return true;
}
// Caching
function enable_caching($enable) {
$this->caching = (bool) $enable;
return true;
}
// Cache Timeout
function cache_max_minutes($minutes) {
$this->max_minutes = (int) $minutes;
return true;
}
// Cache Location
function cache_location($location) {
$this->cache_location = (string) $location;
return true;
}
// Replace H1, H2, and H3 tags with the less important H4 tags.
function replace_headers($enable) {
$this->replace_headers = (bool) $enable;
return true;
}
// Remove outer div in XHTML content within Atom
function remove_div($enable) {
$this->remove_div = (bool) $enable;
return true;
}
// Order the items by date
function order_by_date($enable) {
$this->order_by_date = (bool) $enable;
return true;
}
// Strip out certain well-known ads
function strip_ads($enable) {
$this->strip_ads = (bool) $enable;
return true;
}
// Strip out potentially dangerous tags
function strip_htmltags($tags, $encode=false) {
$this->strip_htmltags = (string) $tags;
$this->encode_instead_of_strip = (bool) $encode;
return true;
}
// Encode dangerous tags instead of stripping them
function encode_instead_of_strip($encode=true) {
$this->encode_instead_of_strip = (bool) $encode;
return true;
}
// Strip out potentially dangerous attributes
function strip_attributes($attrib) {
$this->strip_attributes = (string) $attrib;
return true;
}
/****************************************************
MAIN INITIALIZATION FUNCTION
Rewrites the feed so that it actually resembles XML, processes the XML,
and builds an array from the feed.
****************************************************/
function init() {
// If Bypass Image Hotlink is enabled, send image to the page and quit.
if ($this->bypass_image_hotlink) {
if (isset($_GET[$this->bypass_image_hotlink]) && !empty($_GET[$this->bypass_image_hotlink])) {
$this->display_image($_GET[$this->bypass_image_hotlink]);
exit;
}
}
// If Bypass Image Hotlink is enabled, send image to the page and quit.
if (isset($_GET['js'])) {
// JavaScript for the Odeo Player
$embed='';
$embed.='function embed_odeo(link) {';
$embed.='document.writeln(\'';
$embed.='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
$embed.=' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ';
$embed.=' width="440" ';
$embed.=' height="80" ';
$embed.=' align="middle">';
$embed.='<param name="movie" value="http://odeo.com/flash/audio_player_fullsize.swf" />';
$embed.='<param name="allowScriptAccess" value="any" />';
$embed.='<param name="quality" value="high">';
$embed.='<param name="wmode" value="transparent">';
$embed.='<param name="flashvars" value="valid_sample_rate=true&external_url=\'+link+\'" />';
$embed.='<embed src="http://odeo.com/flash/audio_player_fullsize.swf" ';
$embed.=' pluginspage="http://www.macromedia.com/go/getflashplayer" ';
$embed.=' type="application/x-shockwave-flash" ';
$embed.=' quality="high" ';
$embed.=' width="440" ';
$embed.=' height="80" ';
$embed.=' wmode="transparent" ';
$embed.=' allowScriptAccess="any" ';
$embed.=' flashvars="valid_sample_rate=true&external_url=\'+link+\'">';
$embed.='</embed>';
$embed.='</object>';
$embed.='\');';
$embed.='}';
$embed.="\r\n";
$embed.='function embed_quicktime(type, bgcolor, width, height, link, placeholder, loop) {';
$embed.='document.writeln(\'';
$embed.='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ';
$embed.=' style="cursor:hand; cursor:pointer;" ';
$embed.=' type="\'+type+\'" ';
$embed.=' codebase="http://www.apple.com/qtactivex/qtplugin.cab" ';
$embed.=' bgcolor="\'+bgcolor+\'" ';
$embed.=' width="\'+width+\'" ';
$embed.=' height="\'+height+\'">';
$embed.='<param name="href" value="\'+link+\'" />';
$embed.='<param name="src" value="\'+placeho
没有合适的资源?快使用搜索试试~ 我知道了~
仿13980网址导航程序PHP版+集成博客
共2038个文件
gif:1225个
php:399个
htm:291个
3星 · 超过75%的资源 需积分: 10 70 下载量 117 浏览量
2009-11-01
21:51:50
上传
评论 1
收藏 4.08MB RAR 举报
温馨提示
13980格子导航,正是怪鸟从去年一直很想要的一个程序.起初是因为看到一个导航跟13980一样的,叫什么来的?我忘了,当时看到它是就喜欢上它.但它不是开源的,当时再网上也找不到有人去仿.后来就慢慢忘了得到它的念头.而现在..哈..终于有人去仿了,还是免费的.好了,话不多说了,下面我们就来看一下13980格子导航的介绍和安装方法吧. 介绍:13980是一个个人网络浏览页面,按一下就可以找到您最喜爱的网站,如百度,谷歌,淘宝,开心网等。也可以听在线广播! 版本:1.0 (Beta) 演示:http://www.13980.com 功能: 目前只支持以下内容: 1、分为Rss订阅列表和书签两部分。 2、书签包括:系统(常用网址,在线广播,搜索模块,Rss订阅,以及小组件),也可以用户自己添加。 3、用户个性域名添加。 4、整图上传功能。 5、桌面格子连连看游戏。
资源推荐
资源详情
资源评论
收起资源包目录
仿13980网址导航程序PHP版+集成博客 (2038个子文件)
index.php.bak 5KB
style.css 64KB
style.css 43KB
style.css 43KB
style.css 43KB
admincp.css 10KB
style.css 9KB
style.css 4KB
style.css 4KB
style.css 3KB
style.css 1KB
style.css 1KB
style.css 1KB
style.css 1KB
rss.css 1KB
style.css 1KB
style.css 1KB
style.css 1KB
13980.popup.css 537B
widget.css 0B
Thumbs.db 250KB
Thumbs.db 178KB
Thumbs.db 149KB
Thumbs.db 92KB
Thumbs.db 39KB
Thumbs.db 37KB
Thumbs.db 9KB
Thumbs.db 8KB
Thumbs.db 8KB
Thumbs.db 8KB
Thumbs.db 7KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 5KB
Thumbs.db 4KB
header.gif 52KB
body_bg.gif 42KB
512.gif 30KB
512-2.gif 30KB
doing.gif 24KB
mtag1.gif 23KB
space.gif 23KB
header.gif 20KB
noavatar_big.gif 17KB
album.gif 15KB
link_cnfstar.gif 15KB
cp2.gif 14KB
submenu_site_indicator.gif 14KB
cp.gif 13KB
mtag2.gif 10KB
header.gif 10KB
bg_repno.gif 9KB
body_bg.gif 9KB
noavatar_middle.gif 8KB
home.gif 8KB
box_background_main_4_2zwsw.gif 7KB
body_bg.gif 7KB
blog.gif 6KB
gupiaozaixian.gif 6KB
cctv.gif 6KB
desktop_button_type_multi.gif 6KB
niugucaijing.gif 6KB
zhaopianfenxiang.gif 6KB
niuguluntan.gif 6KB
dazhihuishuju.gif 6KB
caijing24.gif 6KB
yishijie.gif 6KB
114la.gif 6KB
youbo.gif 6KB
box_background_main_4_2google.gif 6KB
sohu.gif 6KB
youjikugou.gif 6KB
dingniubuluo.gif 6KB
youguayinyue.gif 6KB
jiudianyuding.gif 6KB
chinahr.gif 6KB
1616.gif 6KB
blogcn.gif 6KB
gongjiaochaxun.gif 6KB
suishenyou.gif 6KB
zhanzhangwang.gif 6KB
sina.gif 6KB
chaip.gif 6KB
mtag3.gif 6KB
qiangzhifengqi.gif 6KB
163.gif 5KB
huayucaijing.gif 5KB
hao123.gif 5KB
box_background_main_4_2.gif 5KB
jiejiewang.gif 5KB
5566.gif 5KB
friend.gif 5KB
ganji.gif 5KB
51.gif 5KB
qianchezhijia.gif 5KB
buluowo.gif 5KB
heidougaoqing.gif 5KB
tiantianzhengquan.gif 5KB
fenghuang.gif 5KB
共 2038 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21
资源评论
- sampofly2012-11-15确实文件,也是没打补丁的版本
- pwz2342013-10-09不是很实用了,打开比较慢了点
- jiangtibing2012-03-28倒是能用,得先装ucenter然后程序是uhome的插件,装完uhome就可以从后台管理。后台有个 桌面管理 就是。是UTF8的,编码不是gbk,不完美了。另外,是得装根目录还是则么?用户登陆有问题
- collys2012-05-17确实文件,也是没打补丁的版本。
jiesenfeng
- 粉丝: 1
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功