Example #1
0
">
<div class="tit2"><span style="float:right;"><a href="<?php 
            echo urr("public", "cate_id={$v['cate_id']}");
            ?>
" title="<?php 
            echo __('more');
            ?>
" target="_blank"><img src="images/more.gif" align="absmiddle" border="0"></a></span><a href="<?php 
            echo urr("public", "cate_id={$v['cate_id']}");
            ?>
"><?php 
            echo $v[cate_name];
            ?>
</a></div>
	<?php 
            $file_list = get_cate_file($v[cate_id]);
            if (count($file_list)) {
                ?>
	<ul>
	<?php 
                foreach ($file_list as $v2) {
                    ?>
	<li><?php 
                    echo $v2['file_time'];
                    ?>
<a href="<?php 
                    echo $v2['a_viewfile'];
                    ?>
" target="_blank"><?php 
                    echo $v2[file_icon];
                    ?>
Example #2
0
#
#	Copyright (C) 2008-2014 PHPDisk Team. All Rights Reserved.
#
*/
include "includes/commons.inc.php";
!$auth[is_fms] && exit(msg::umsg('Not_FMS', __('zcore_no_power')));
$in_front = true;
$cate_id = (int) gpc('cate_id', 'G', 0);
if ($cate_id) {
    $cate_name = $db->result_first("select cate_name from {$tpf}categories where cate_id='{$cate_id}'");
}
$nav_title = $cate_name ? $cate_name . '' : '';
$nav_title = $nav_title;
$title = $nav_title . ' - ' . $settings['site_title'];
$file_keywords = $nav_title . ',';
$C[cate_hot_file] = get_cate_file($cate_id, 'file_downs');
if ($auth[pd_a]) {
    $seo = get_seo('public', $cate_id);
    if ($seo[title]) {
        eval("\$title = \"{$seo['title']}\";");
    }
    eval("\$keywords = \"{$seo['keywords']}\";");
    eval("\$description = \"{$seo['description']}\";");
}
include PHPDISK_ROOT . "./includes/header.inc.php";
if ($cate_id) {
    //面包屑
    $cur_cate = $cate_obj->getNodeById($cate_id);
    $breadcrumb = array();
    get_cate_breakcrumb($cur_cate, $breadcrumb);
    //分类数据
Example #3
0
        eval("\$title = \"{$seo['title']} {$seo_a['title']}\";");
    }
    eval("\$keywords = \"{$seo['keywords']} {$seo_a['keywords']}\";");
    eval("\$description = \"{$seo['description']} {$seo_a['description']}\";");
}
$loading_secs = get_loadiong_secs();
$myinfo = get_profile($file[userid]);
//$curr_tpl = $myinfo[curr_tpl] ? $myinfo[curr_tpl] : 'default';
//$user_tpl_dir = 'templates/'.$curr_tpl.'/';
//$username = $file['p_name'] ? $file['p_name'] : $pd_username;
//$tmp_username = $username;//convert_str('utf-8','gbk',$username);
$logo = $myinfo[logo] ? $settings['file_path'] . '/' . $myinfo[logo] : $user_tpl_dir . 'images/logo.png';
$logo_url = $myinfo[logo_url] ? $myinfo[logo_url] : urr("space", "username="******"./includes/header.inc.php";
if ($auth[is_fms]) {
    $C[cate_last_file] = get_cate_file((int) @$db->result_first("select cate_id from {$tpf}files where file_id='{$file_id}'"));
    $C[user_other_file] = get_user_other_file($file_id, $file[userid], 5);
    $C[you_like_file] = super_cache::get('get_rand_file|5');
    if ($settings['open_comment']) {
        function file_last_comment($file_id)
        {
            global $db, $tpf;
            $q = $db->query("select c.*,u.username from {$tpf}comments c,{$tpf}users u where file_id='{$file_id}' and is_checked=1 and c.userid=u.userid order by cmt_id desc limit 5");
            $cmts = array();
            while ($rs = $db->fetch_array($q)) {
                $rs['content'] = filter_word(str_replace("\r\n", "<br>", $rs['content']));
                $rs['in_time'] = custom_time("Y-m-d H:i:s", $rs['in_time']);
                $rs['a_space'] = urr("space", "username=" . rawurlencode($rs['username']));
                $cmts[] = $rs;
            }
            $db->free($q);