Solution Technologies
Управление сайтом без ограничений
<?php
/**
 * XS2:
 *
 * This file is developed by Solutecs, LLC for the purpose of the company
 * and is provided together with XS2 Framework as and inherent part of the
 * system. This file can be used on the terms of License Agreement.
 *
 * +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
 *
 * @link http://www.solutecs.com
 * @copyright ©1998-2007 Solutecs, LLC
 * @package XS2-MODCOM
 * @subpackage proc-forum
 * @version 1.XX
 */



xs2Fetch(array('mod'=>'forum', 'obj'=>'config', 'met'=>'append'));
xs2Fetch(array('mod'=>'forum', 'obj'=>'config', 'met'=>'date'));
xs2Fetch(array('mod'=>'forum', 'obj'=>'user', 'met'=>'lib'));
xs2Fetch(array('mod'=>'forum', 'obj'=>'config', 'met'=>'vars'));
xs2Fetch(array('mod'=>'forum',  'obj'=>'config', 'met'=>'parse'));

$thread = xs2GetNode(array('NodId'=>$_THE['PARAMS'][0]));
$_HTML->assign('thread', $thread);

$forumCurrentUser = $_HTML->get_template_vars('forumCurrentUser');

if ($thread['NodId']>0
    && $forumCurrentUser['NodId']>0
    && ForumTimeDiff($thread['LastChangeDate'], $forumCurrentUser['LastVisitDate'])>0
    && !in_array($thread['NodId'], $_SESSION['VisitedThreads'])) {
  $_SESSION['VisitedThreads'][] = $thread['NodId'];
  $GLOBALS['VisitedThreads'] = $_SESSION['VisitedThreads'];
  $_HTML->assign('VisitedThreads', $GLOBALS['VisitedThreads']);
}

?>
Copyright ©1998-2008 Солютекс. Все права защищены.
Этот сайт сделан в designLab | Работает на технологии XS2
Условия использования | О защите конфиденциальности