Kabak
![]() |
|
---|---|
Заменил - заработало
defined('COT_CODE') or die('Wrong URL'); require_once cot_langfile('toplastseen', 'plug'); require_once cot_incfile('toplastseen', 'plug'); $date = cot::$sys['now']; // ЗАМЕНИЛ - заработало $sql = $db->query("SELECT * FROM $db_users WHERE user_lastlog >= $date ORDER BY user_lastlog DESC LIMIT {$cfg['users']['maxusersperpage']}"); // $temp1 = new XTemplate(cot_tplfile('toplastseen', 'plug')); $count = 0; while ( ($row = $sql->fetch()) != 0 ){ $count++; $t->assign(array( 'UMP_ROW_ODDEVEN' => cot_build_oddeven($count), 'UMP_ROW_NUM' => $count, 'UMP_ROW' => $row, )); $t->assign(array( 'UMP_ROW_USERNAME' => $row['user_name'], 'UMP_ROW_LASTLOGIN' => cot_date('datetime_medium',$row['user_lastlog']), 'UMP_ROW_LASTLOGIN_STAMP' => $row['user_lastlog'], 'UMP_ROW_TIMEAGO' => cot_build_timegap($row['user_lastlog']), )); $t->parse('MAIN.UMP_ROW'); } $t->parse('ALTERNATIVE');
|