93# 54alin - <?php
- /*
- 文件名:getpicwall.php
- 插件名称:PicWall V1.0
- 作者:54alin http://hialin.com
- 本插件免费使用,欢迎到处传播!
- 尊重作者的劳动,请勿删除本信息!
- */
- if(!defined('IN_UCHOME')) {
- exit('Access Denied');
- }
- $uchome_url="http://www.swren.net".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
- $uchome_url=substr($uchome_url,0,strrpos($uchome_url,'/')+1);
- $content ='<?xml version="1.0" encoding="utf8" ?>';
- $content.='<tiltviewergallery>';
- $content.='<photos>';
- $query = $_SGLOBAL['db']->query("SELECT s.picid, s.albumid, s.uid, s.filename, s.size, s.filepath
- FROM ".tname('pic')." s
- LEFT JOIN ".tname('album')." sf ON sf.albumid = s.albumid
- WHERE s.size > '10000'
- AND s.size < '100000'
- AND sf.friend = '0'
- ORDER BY s.picid DESC");
- while($get = $_SGLOBAL['db']->fetch_array($query)){
- $content.='<photo imageurl="'.$uchome_url.'attachment/'.$get['filepath'].'" linkurl="'.$uchome_url.'space.php?uid='.$get['uid'].'&do=album&picid='.$get['picid'].'">';
- $content.='<title>'.$get['filename'].'</title>';
- $content.='<description>'.$get['filename'].'</description>';
- $content.='</photo>';
- }
- $content.='</photos>';
- $content.='</tiltviewergallery>';
- $fp=fopen(S_ROOT."./picwall/show.xml","w+");
- fwrite($fp,$content);
- fclose($fp);
- ?>
复制代码 |