Catalog of LLama Free Flash Games, Play Online Games For Boys and Girls

Catalog of Flash Games - this area of our website where we have compiled a complete catalog of flash games and unity games for parents and children, here you can play online for free flash games. We are sure - you will find here interesting games. Catalog of Flash Games are constantly updated and on the site loaded only interesting and proven game. By spending time on our website, you get a lot of positive emotions, pleasant experiences and positive charge. We regularly add to the catalog new games, each game past a quality check. Our site was created for boys and girls. We can play online flash games over here to just spend some time. Our site is completely free to play and there is no need to register. But we would appreciate if you like us on share us.

Please check categories of games shown below, and we are sure you will find interesting games on our site. Games are available to all users of our website for free, if you like our site, please press the buttons of social networks on the page of your favorite game - , it will help us in developing our website and don`t forget notify your friends that you've found a very interesting free games and advise to play it.

Boost up project by clicking
Next'; private $prev_page_text = 'Previous'; private $result_text_pattern = 'Showing from %s to %s of %s'; private $page_var = 'p'; private $db; private $q; private $total_rows; private $total_pages; private $cur_page; public function __construct($db, $q='', $page_var='p') { $this->db = $db; if ($q) $this->set_query($q); $this->page_var = $page_var; $this->cur_page = isset($_GET[$this->page_var]) && (int)$_GET[$this->page_var] > 0 ? (int)$_GET[$this->page_var] : 1; } public function set_query($q) { $this->q = $q; } public function set_page_size($page_size) { $this->page_size = abs((int)$page_size); } public function set_link_padding($padding) { $this->link_padding = abs((int)$padding); } public function get_page($q='') { if ($q) $this->set_query($q); $r = $this->db->query( $this->query_paging($this->q) ); $this->total_rows = array_pop($this->db->query('SELECT FOUND_ROWS()')->fetch_row()); if ($this->page_size !== 0) $this->total_pages = ceil($this->total_rows/$this->page_size); if ($this->cur_page > $this->total_pages) { $this->cur_page = $this->total_pages; if ( $this->total_pages > 0 ) $r = $this->db->query( $this->query_paging($this->q) ); } return $r; } public function get_result_text() { $start = (($this->cur_page-1) * $this->page_size)+1; $end = (($start-1+$this->page_size) >= $this->total_rows)? $this->total_rows:($start-1+$this->page_size); return sprintf($this->result_text_pattern, $start, $end, $this->total_rows); } public function get_page_links() { if ( !isset($this->total_pages) ) return ''; $page_link_list = array(); $start = $this->cur_page - $this->link_padding; if ( $start < 1 ) $start = 1; $end = $this->cur_page + $this->link_padding-1; if ( $end > $this->total_pages ) $end = $this->total_pages; if ( $start > 1 ) $page_link_list[] = $this->get_page_link( $start-1, $start - 2 > 0 ? '...' : '' ); for ($i=$start; $i <= $end; $i++) $page_link_list[] = $this->get_page_link( $i ); if ( $end + 1 < $this->total_pages ) $page_link_list[] = $this->get_page_link( $end +1, $end + 2 == $this->total_pages ? '' : '...' ); if ( $end + 1 <= $this->total_pages ) $page_link_list[] = $this->get_page_link( $this->total_pages ); return implode($this->page_link_separator, $page_link_list); } public function get_next_page_link() { return isset($this->total_pages) && $this->cur_page < $this->total_pages ? $this->get_page_link( $this->cur_page + 1, $this->next_page_text ) : ''; } public function get_prev_page_link() { return isset($this->total_pages) && $this->cur_page > 1 ? $this->get_page_link( $this->cur_page - 1, $this->prev_page_text ) : ''; } private function get_page_link($page, $text='') { if (!$text) $text = $page; if ($page != $this->cur_page) { $reg = '/((&|^)'.$this->page_var.'=)[^&#]*/'; $url = '?'.( preg_match( $reg, $_SERVER['QUERY_STRING'] ) ? preg_replace($reg, '${1}'.$page, $_SERVER['QUERY_STRING']) : ( $_SERVER['QUERY_STRING'] ? $_SERVER['QUERY_STRING'].'&' : '' ).$this->page_var.'='.$page); return ''.$text.''; } return ''.$text.''; } private function query_paging() { $q = $this->q; if ($this->page_size != 0) { //calculate the starting row $start = ($this->cur_page-1) * $this->page_size; //insert SQL_CALC_FOUND_ROWS and add the LIMIT $q = preg_replace('/^SELECT\s+/i', 'SELECT SQL_CALC_FOUND_ROWS ', $this->q)." LIMIT {$start},{$this->page_size}"; } return $q; } } ?>