示例#1
0
 public function API_json()
 {
     $vars = array('appid' => iCMS_APP_ARTICLE, 'id' => (int) $_GET['id'], 'iid' => (int) $_GET['iid'], 'date_format' => 'Y-m-d H:i');
     $_GET['by'] && ($vars['by'] = iS::escapeStr($_GET['by']));
     $_GET['date_format'] && ($vars['date_format'] = iS::escapeStr($_GET['date_format']));
     $vars['page'] = true;
     iPHP::app('comment.func', 'static');
     $array = comment_list($vars);
     iPHP::json($array);
     //iPHP::assign('vars',$vars);
     //iPHP::view('iCMS://comment/api.json.htm');
 }
示例#2
0
        }
    }
    unset($n);
    ?>
                    </ul>
                    <div class="clear">
                    </div>
                </div>
                <?php 
}
?>
				<!--<div class="m_T12">
                    发表评论:
                </div>-->
                <?php 
$data = comment_list($page, $catid, $id);
?>
                <div class="m_Box19" style="width: 728px;">
                    <div class="comment-amount">
                        <a href="javascript:;" class="comment_num" title="">
                            共有<?php 
echo $data['total'];
?>
条评论
                        </a>
                    </div>
                    <div id="comments">
                        <ul class="commentlist">
                            <?php 
$n = 1;
if (is_array($data['commentDatas'])) {
示例#3
0
    ?>
" alt="編輯"></a></span>
<?php 
}
?>
				<div id="post-text">
<!-- Start of Post -->
<?php 
echo show_text($row["post_content"]);
?>
<!-- End of Post -->
				</div>
<?php 
if (isset($mod_time) && isset($mod_who)) {
    ?>
				<span id="post-view-modified">本文章在 <?php 
    echo $mod_time;
    ?>
 由 <strong><?php 
    echo $mod_who;
    ?>
</strong> 做了最後一次修改</span>
<?php 
}
?>
			</div>
<?php 
comment_list($to, $comment_page = isset($_GET['comment_page']) ? $_GET['comment_page'] : -1, 5);
comment_add($to);
post_list($board['name'], $post_page = isset($_GET['post_page']) ? $_GET['post_page'] : 0, 10, $order = isset($_GET['list_order']) && $_GET['list_order'] == 'update' ? 'update' : 'post');
include load_template('footer');
示例#4
0
文件: index.php 项目: noikiy/zays
function space_lifetimes()
{
    global $_MooClass, $dbTablePre, $userid, $user_arr, $diamond, $last_login_time;
    //判断性别类型
    $gender_value = check_diff_gender();
    //根据来访性别显示固定评语
    $comment_list = comment_list($gender_value, $type = 2);
    //人生经历评论
    $pagesize = 5;
    $page = max(1, intval($_GET['page']));
    $start = ($page - 1) * $pagesize;
    $currenturl = 'http://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
    $currenturl2 = preg_replace("/(&page=\\d+)/", "", $currenturl);
    $sql = "select count(*) c from {$dbTablePre}diamond_comment where comment_type='2' and cid='{$GLOBALS['style_uid']}'";
    $life_count = $_MooClass['MooMySQL']->getOne($sql);
    $count = $life_count['c'];
    if ($count > 0) {
        $sql = "select comment,uid,nickname,dateline from {$dbTablePre}diamond_comment where comment_type=2 and cid='{$GLOBALS['style_uid']}' order by id desc LIMIT {$start},{$pagesize}";
        $life_comment = $_MooClass['MooMySQL']->getAll($sql);
    }
    //note 您可能喜欢的人,匹配相同地区
    $able_like = youAbleLike($l, 5);
    include MooTemplate('space_lifetimes', 'data');
}
示例#5
0
function refresh_comment()
{
    include "include/function_comment.php";
    $status = comment_list();
    if ($status == 'ok') {
        salert("缓存文件生成成功,请返回继续操作!", 'index.php?action=site_diamond&h=comment');
    }
}