|
|
@@ -16,15 +16,7 @@ function plus_userarclist(&$atts, &$refObj, &$fields) |
|
|
|
FillAtts($atts,$attlist); |
|
|
|
FillFields($atts,$fields,$refObj); |
|
|
|
extract($atts, EXTR_OVERWRITE); |
|
|
|
|
|
|
|
$sql = "SELECT arc.*,mt.mtypename,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule, |
|
|
|
tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath |
|
|
|
FROM `#@__archives` arc |
|
|
|
LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id |
|
|
|
LEFT JOIN `#@__mtypes` mt ON mt.mtypeid=arc.mtype |
|
|
|
WHERE arc.mid='{$_vars['mid']}' AND arc.channel=$channel AND arc.arcrank=0 |
|
|
|
ORDER BY id DESC LIMIT 0,$row"; |
|
|
|
|
|
|
|
$sql = "SELECT arc.*,mt.mtypename,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath FROM `#@__archives` arc LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id LEFT JOIN `#@__mtypes` mt ON mt.mtypeid=arc.mtype WHERE arc.mid='{$_vars['mid']}' AND arc.channel=$channel AND arc.arcrank=0 ORDER BY id DESC LIMIT 0,$row"; |
|
|
|
$dsql->SetQuery($sql); |
|
|
|
$dsql->Execute("ul"); |
|
|
|
$rearr = array(); |
|
|
@@ -36,9 +28,8 @@ function plus_userarclist(&$atts, &$refObj, &$fields) |
|
|
|
$row['arcrank'],$row['namerule'],$row['typedir'],$row['money'],$row['filename'],$row['moresite'],$row['siteurl'],$row['sitepath']); |
|
|
|
$row['typeurl'] = GetTypeUrl($row['typeid'],$row['typedir'],$row['isdefault'],$row['defaultname'],$row['ispart'], |
|
|
|
$row['namerule2'],$row['moresite'],$row['siteurl'],$row['sitepath']); |
|
|
|
if($row['litpic']=='') $row['litpic'] = '/images/defaultpic.gif'; |
|
|
|
if(!preg_match("#^(http|https):\/\/#i", $row['litpic'])) |
|
|
|
{ |
|
|
|
if ($row['litpic']=='') $row['litpic'] = '/static/web/img/thumbnail.jpg'; |
|
|
|
if (!preg_match("#^(http|https):\/\/#i", $row['litpic'])) { |
|
|
|
$row['picname'] = $row['litpic'] = $GLOBALS['cfg_cmsurl'].$row['litpic']; |
|
|
|
} else { |
|
|
|
$row['picname'] = $row['litpic']; |
|
|
@@ -49,18 +40,16 @@ function plus_userarclist(&$atts, &$refObj, &$fields) |
|
|
|
$row['imglink'] = "<a href='".$row['filename']."'>".$row['image']."</a>"; |
|
|
|
$row['fulltitle'] = $row['title']; |
|
|
|
$row['title'] = cn_substr($row['title'],$titlelen); |
|
|
|
if($row['color']!='') { |
|
|
|
$row['title'] = "<font color='".$row['color']."'>".$row['title']."</font>"; |
|
|
|
if ($row['color']!='') { |
|
|
|
$row['title'] = "<span color='".$row['color']."'>".$row['title']."</span>"; |
|
|
|
} |
|
|
|
if(preg_match('#b#', $row['flag'])) |
|
|
|
{ |
|
|
|
if (preg_match('#b#', $row['flag'])) { |
|
|
|
$row['title'] = "<strong>".$row['title']."</strong>"; |
|
|
|
} |
|
|
|
$row['textlink'] = "<a href='".$row['filename']."'>".$row['title']."</a>"; |
|
|
|
$row['plusurl'] = $row['phpurl'] = $GLOBALS['cfg_phpurl']; |
|
|
|
$row['memberurl'] = $GLOBALS['cfg_memberurl']; |
|
|
|
$row['templeturl'] = $GLOBALS['cfg_templeturl']; |
|
|
|
|
|
|
|
$rearr[] = $row; |
|
|
|
} |
|
|
|
$dsql->FreeResult("ul"); |
|
|
|