Commit graph

9 commits

Author SHA1 Message Date
lamclennan 7972a197ee PDO Conversion 2017-01-07 20:18:39 +10:00
Maurice Meyer 788c0d1d19 Added pagination (#19)
* 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
2016-06-07 19:00:35 +02:00
Alexander Dormann dc8fab4d42 Implement ONLY_FULL_GROUP_BY compatibility (#15) (#16)
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.
2016-05-14 12:03:06 +02:00
Lukas Metzger 3ce4af18af Fixed bug when deleting domain 2016-02-07 18:48:05 +01:00
Lukas Metzger f628e147cd Added csrf protection 2016-01-29 16:52:23 +01:00
Lukas Metzger 3f8156939e Added function to delete a complete domain 2016-01-23 20:38:01 +01:00
Lukas Metzger 818cb9fbc5 Fixed possible bux if multiple persons can acces one domain 2016-01-16 16:25:56 +01:00
Lukas Metzger 9415367dfb Checked permissions when retriving domains 2016-01-16 16:13:14 +01:00
Lukas Metzger a3ebd21541 Implemented domain overview, permissions are still ignored 2016-01-16 15:46:43 +01:00