Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Changing the referrer value for the root admin from 0 to NULL to make
the foreign key check work.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
security-in-depths reasons (de bene esse).
|
|
|
|
False gets converted to "0" when being stored in the DB which we don't
want.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This allows to use an api key to write a completly standalone client.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
$this in anonymous functions is only supported in PHP >= 5.4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
People usually want to view them rather than read the code.
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 got broken by 2a6a1c63cb21015009fe4fd13f62cdac64e1fe36 and
05a4d686b578794c180ddfaf4945a9d7443f330e.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
It's fine if users can invite an unlimited amount of people.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Apparently firefox doesn't like "style-src * 'unsafe-inline'", but wants
"style-src 'unsafe-inline' *" otherwise it doesn't honor
'unsafe-inline'. In chromium both behave the same.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Initial-patch-by: Lukas Epple <lukas.epple@me.com>
Switch from <table> to <div> like we did for pygments.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
|
|
It interferes with multiuser setups if you use X-Sendfile and it isn't
really needed anyway because you can set an upload_path outside the
docroot and because the default path is protected by an .htaccess file.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
|
|
|
|
|
|
|
|
Looks like this has been missed somewhere along the way
(36a1bb6770cb76ec7baf4e215c4379b070c60639) and ended up too deep down.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
show_error() already exits after displaying the message.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Nginx and Lighttpd
* The rangeDownload() function has been moved to libraries/Ddownload/drivers/Ddownload_php.php
* The nginx and lighttpd drivers can be set via $config['download_driver']
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
|
|
Mimetype detection doesn't always properly detect code (I saw javascript as
plain text, c as asm) and if there is an extension we can likely get
better result by using that.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|