Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This probably increases the database queries a bit, but greatly
simplifies the code and fixes the missing deletion of multipaste
tarballs (delete_id handles that).
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
mmultipaste->delete_id() also deletes multipaste tarballs which would
otherwise be left over
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Style cleanup and some regression fixes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This is only needed for clients not yet using api keys.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
|
|
This also reindents colorbox.css.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This is the first of hopefully more classes using namespaces and proper
classes that can be used as objects rather than CI's singleton
approach. The namespace is mainly used to gain nice autoloading
capabilities and it's not really yet used for separation.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This also moves the code from mfile->image_dimension() to the only
place where it was called.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
* pgsql_controllers:
file/cron: Protecting identifiers
Fixing multipaste delete queries
|
|
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This converts any error (including INFO, NOTICE and those hidden with @)
to an exception and displays a nice error page for uncaught exceptions.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
|
|
* pgsql_controllers:
Fix user/register mistaken query handling
WIP: Cascading delete
where_in for in array queries a proper count usage
Fix timestamp adjusting for a list of arrays
Correct unsupported open/close where query statements
File controller uses query builder, except 2 queries
Integrating query builder in models
User controller queries built dynamically
Query builder in user login and controller
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This got lost in the multipaste change.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This is necessary to prevent migrations from running multiple times in
parallel. A git hook can be used to run this after checkout so impact
should be fairly low.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
The new text is friendlier and less presumptuous and actually describes
the reason why I introduced the invitation system. Not sure why I
didn't write that in the first place.
Thanks to <https://lobste.rs/about> for the idea.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Conflicts:
system/libraries/Session.php
user_guide/
|
|
When using external authentication databases (ldap, fluxbb, ..) the
users table is empty so adding the constraints won't work.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
For some strange reason using "rename table" causes an exception in
system/database/DB_driver.php:query() because
it trys to call num_rows() on a boolean. Using "alter table" works.
According to the php manpage mysqli::query() it should return a boolean
too, but whatever...
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|