Ejemplo n.º 1
0
<?php

$topix = GetTopicByLiker($url[1], 10);
$smarty->assign('topix', $topix);
$r = TRelation::GetInstance();
$member['likes'] = $r->GetSourceCount($url[1], REALTION_LIKE);
$member['frinds'] = $r->GetSourceCount($url[1], REALTION_FRIEND);
$member['comz'] = GetCount('comment', ' comment_member_id = ' . (int) $_COOKIE['mid']);
$smarty->assign('member', $member);
$smarty->assign('frindz', GetFrienz($url[1]));
$idd = isset($_COOKIE['mid']) ? $_COOKIE['mid'] : 0;
$smarty->assign('is_f', $r->Has($idd, $url[1], REALTION_FRIEND));
Ejemplo n.º 2
0
<?php

if (!isset($_COOKIE['mid'])) {
    Redirect('/msg/شما وارد نشده اید');
}
$topix = GetTopicByLiker($_COOKIE['mid'], 10);
$a = new TModel('member', 'member_');
$mem = $a->GetRecord($_COOKIE['mid']);
$rep = new TModel('report', 'report_');
$repz = $rep->Read('report_id,report_title', 99, 'report', 'report_');
$smarty->assign('topix', $topix);
$smarty->assign('left', floor(($_COOKIE['mact'] - time()) / (60 * 60 * 24)));
$smarty->assign('frindz', GetFrienz($_COOKIE['mid'], 999));
$smarty->assign('mem', $mem);
$smarty->assign('repz', $repz);