'.sprint_img('titles/new_at_ca.png').'
'); require_once('./engine/libraries/news.lib.php'); $previously = new news(&$db, 0); $previously -> limit_by_date(0, time()); $previously -> limit_by_range(0, 3); if (is_array($p_data = $previously -> get_data())) { if (count($p_data)) { print( 'News'. '
' ); foreach ($p_data as $p_item) { print(' '.strftime('%d.%m.%Y', $p_item['date_shown']).' '.txt2www($p_item['title']).'
'.NL); } print('
'); } } else { # Tehniline viga! } if ($res = $db -> query('SELECT * FROM `'.TABLE_DISCUSSION_TOPICS.'` ORDER BY last_comment DESC LIMIT 3', __FILE__, __LINE__)) { print( 'Discussion'. '
' ); while ($row = mysql_fetch_assoc($res)) { print(' '.strftime('%d.%m.%Y', $row['last_comment']).' '.txt2www($row['title']).' ('.($row['comments'] - 1).')
'.NL); } print('
'); } if (USER_LOGGED_IN) { print( '

You have logged in as '.CURRENT_USER_REAL_NAME.'.

'.NL. '

'.NL. ' » View your profile
'.NL. ' » Edit your profile
'.NL. ' » Log out'); } else { print( '

'.NL. '
'.NL. '
'.NL. '
'.NL. ' Remember me?
'.NL. ' '.NL. '
'.NL. '
'.NL. '
Not registered yet? Click here!
' ); } ?>
'.sprint_img('titles/'.$strImgName.(defined('TITLE_SUFFIX') ? TITLE_SUFFIX : '').'.png').'
'); } if (defined('CONTENT_HTML')) { print('
'.CONTENT_HTML.'
'); } ?>