* Added initial functionality for pagination
* Display of pagination now works for total page number greater than 8. Note that the actual pagination is not yet implemented
* Pagination is now functional and loads the requested sites
* Added cursor pointer to pagination
* page parameter is now set to 1 if not a number or smaller than 1
* page parameter is now checked with isset to prevent errors if it is not supplied
* Changed default number of domains per page to 15
* Added isset check to $input->page to prevent errors if it is not set
SQL92 requires that all columns (except aggregates) in the select clause
is part of the group by clause. SQL99 loosens this restriction a bit and
states that all columns in the select clause must be functionally
dependent of the group by clause.
This commit fixes all partial GROUP BY queries to be compatible with
SQL92. Previously, when MySQLs sql_mode included ONLY_FULL_GROUP_BY,
aggregating queries failed, resulting in an empty domain listing.