示例#1
0
文件: blogdetail.php 项目: cwcw/cms
function atturl($imageurl)
{
    global $_SC;
    return '<img src="' . $_SC['uchurl'] . '/' . $imageurl . '">';
}
$title = $blogdetail['subject'] . ' - ' . $_SCONFIG['sitename'];
$keywords = $blogdetail['subject'] . ',' . $lang['uchblog'];
$description = $blogdetail['subject'] . ',' . $lang['uchblog'];
$guidearr = array();
$guidearr[] = array('url' => geturl('action/uchblog'), 'name' => $channels['menus']['uchblog']['name']);
$guidearr[] = array('url' => geturl('action/bloglist'), 'name' => $lang['bloglist']);
$tplname = 'blog_detail';
$title = strip_tags($title);
$keywords = strip_tags($keywords);
$description = strip_tags($description);
include template($tplname);
ob_out();
if (!empty($_SCONFIG['htmlindex'])) {
    ehtml('make');
} else {
    maketplblockvalue('cache');
}
function addurlhttp($m)
{
    global $_SC;
    if (preg_grep("/^http\\:/", array($m[2]))) {
        return 'src="' . $m[2] . '.' . $m[3] . '"';
    } else {
        return 'src="' . $_SC['uchurl'] . '/' . $m[2] . '.' . $m[3] . '"';
    }
}
示例#2
0
文件: tag.php 项目: hongz1125/devil
}
//取出tag数最多的一项
$tabarr = array('news' => $tag['spacenewsnum']);
arsort($tabarr);
$activation = true;
foreach ($tabarr as $key => $val) {
    if ($activation) {
        $tabarr[$key] = array('curtab', '');
        $activation = false;
    } else {
        $tabarr[$key] = array('', ' style="display: none;"');
    }
}
if (!empty($tag['uid'])) {
    $tag['spaceurl'] = geturl('uid/' . $tag['uid'] . '/action/space');
} else {
    $tag['spaceurl'] = '#';
}
$title = 'TAG: ' . $tag['tagname'];
$keywords = $tag['tagname'];
$description = $tag['tagname'];
$guidearr = array();
$guidearr[] = array('url' => geturl('action/tag/tagid/' . $tagid), 'name' => 'TAG: ' . $tag['tagname']);
$tplname = 'site_tag';
$title = strip_tags($title);
$keywords = strip_tags($keywords);
$description = strip_tags($description);
include template($tplname);
ob_out();
maketplblockvalue('tagcache');