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'=>'users', 'met'=>'lib'));

if($GLOBALS['currentUser']) {

  $currentUser = $GLOBALS['currentUser'];
  $forumCurrentUser = xs2GetLinks(array('mod'=>'forum',
                                        'NType'=>'user',
                                        'lnkField'=>'User',
                                        'NodId'=>$currentUser['NodId']));
  if(count($forumCurrentUser)>0) {

    $forumCurrentUser = $forumCurrentUser[0];
    if('loginUser'==$_POST['action']) {
      $forumCurrentUser['LastVisitDate'] = date("Y-m-d H:i:s");
      xs2UpdateNode($forumCurrentUser);
      $forumCurrentUser = xs2GetNode($forumCurrentUser);
      $_SESSION['VisitedThreads'] = array();
      $GLOBALS['VisitedThreads'] = $_SESSION['VisitedThreads'];
      $_HTML->assign('VisitedThreads', $GLOBALS['VisitedThreads']);
    }
    $GLOBALS['VisitedThreads'] = $_SESSION['VisitedThreads'];
    $_HTML->assign('VisitedThreads', $GLOBALS['VisitedThreads']);
    $GLOBALS['forumCurrentUser'] = $forumCurrenUser;
    $_HTML->assign('forumCurrentUser', $forumCurrentUser);

  }

}

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