0){ $offset = esc($offset); if($offset) $offset--; } else $offset = 0; $sql_pre = "select * from `gb` where visible=1"; $pre = mysql_query($sql_pre); $messcount = @mysql_num_rows($pre); //main news SmartyPaginate::paging_init('offset', _SET_PAGING_LIMIT, $messcount, '/gb/'); Gb::get_gb_records($obj, $offset, _SET_PAGING_LIMIT); $rnd = mt_rand(); $obj->assign("CAPTCHA", ""); $obj->assign("CALLSIGN_TITLE", '317 AT 118'); $obj->assign("TITLE", '317AT118 - Guestbook'); $obj->parse("MAIN_CONTEXT", ".gb"); $obj->parse("CONTEXT", ".index"); $obj->no_strict(); //для отладки $obj->parse('result', "index"); $obj->FastPrint('result'); ?>