Commit Graph

75 Commits

Author SHA1 Message Date
3486deefd1 Merge branch 'develop' of git+ssh://git.sihnon.net/home/git/public/sihnon-php-lib into develop 2011-12-31 01:17:37 +00:00
c7077a8813 Add options for customising Session parameters 2011-12-31 01:16:22 +00:00
f5187de9f4 Fix arguments to proc_open 2011-12-31 01:15:54 +00:00
830ab78a45 Fix base_uri calculation when using site root 2011-12-30 13:11:46 +00:00
671b87a211 Add placeholder FlatFile Auth classes 2011-12-30 12:59:51 +00:00
7bee3e83ba Add Enum validation for class constants 2011-12-29 17:56:06 +00:00
295e0045f5 Fix character class definitions 2011-12-29 17:55:46 +00:00
62d5614bb4 Fix bug in compile-time statics 2011-12-26 01:11:58 +00:00
1cc440a885 Fix typo in exception names 2011-12-26 01:11:37 +00:00
977254fa1d Rename charsets test to contents 2011-12-26 01:11:10 +00:00
990effc237 Extend text validation to accept multiple inputs 2011-12-26 00:56:54 +00:00
da57ccf8de Added first attempt at input validation framework 2011-12-26 00:52:10 +00:00
786076b5c6 Add features on allFor to all and improve code through reuse. 2011-12-23 01:32:21 +00:00
04f9764904 Make pluralise argument order more intuitive 2011-12-23 01:32:08 +00:00
8c352938e9 Fix call to base class method 2011-12-22 22:04:21 +00:00
2cddde6d08 Fix conditional passing in DatabaseObject 2011-12-22 22:02:23 +00:00
c570a6b026 Remove superfluous parameter to eliminate warning 2011-12-22 22:01:57 +00:00
3a81b6fe40 Added a Formatting class 2011-12-22 11:33:20 +00:00
38b687f420 Fix naming convention for class methods 2011-12-21 11:22:08 +00:00
fd2f3af5d0 Add support for custom WHERE restrictions
DatabaseObject::all_for() now supports additional constraints (with
variables) to further filter the results returned.
2011-12-20 19:10:22 +00:00
5181fe1b4c Add support for 401 errors in the templating system 2011-12-20 01:42:21 +00:00
1a490a0ae0 Bug fix in Auth->hasPermission() 2011-12-20 01:41:48 +00:00
5584e8e4d8 Add a DateTime class to expose a fuzzyTime method 2011-12-20 00:34:20 +00:00
664d5e6923 Expose backend listUsers via Auth class 2011-12-20 00:33:53 +00:00
e30535f88b Expose changePassword() method through the Auth object 2011-12-19 19:29:02 +00:00
414b696f60 Fix bug in save() method's UPDATE query generation 2011-12-19 19:28:40 +00:00
aaf19079bb Catch unknown user errors on failed login 2011-12-19 16:06:12 +00:00
d92cc576d7 Initial commit of Session/Authentication code
Plugin architecture with single Database-backed implementation.
2011-12-19 12:13:14 +00:00
5b72a8a206 Update Page to support processed includes
Permit inclusion of templates through the templating code, rather than
through smarty.
2011-12-19 12:07:12 +00:00
537583a231 Add DatabaseObject base class
DatabaseObject exposes common behaviours for database table wrapper
classes.
2011-12-19 12:00:08 +00:00
bc154dd1c8 Add shortfile option for console logging
To reduce the width of console log messages, add an field to display the
filename without full path info.
2011-12-13 01:23:02 +00:00
d7dfdadc14 Upgrade BackgroundTask to support modified environment 2011-10-06 22:54:07 +01:00
de1519c5bb Merge branch 'develop' of git+ssh://git.sihnon.net/home/git/public/sihnon-php-lib into develop 2011-10-02 23:10:07 +01:00
90f190578d Update formatDuration to support fuzzy times 2011-09-24 18:16:55 +01:00
6c5596e436 Add support for hashes in the Config class. 2011-09-24 16:13:23 +01:00
0fb3284403 Check for config or environment variable defining base directory 2011-08-29 23:46:07 +01:00
b8dfca3aa5 Add support for renaming config settings 2011-08-29 19:19:29 +01:00
01d97bface Add support for removing config settings 2011-08-28 16:18:25 +01:00
faf8806472 Add write support to Config backends with add/set methods 2011-08-28 13:01:56 +01:00
da746cb118 Bug fixes: remove debug output, return values from functions 2011-08-28 13:01:17 +01:00
f0012d7be2 Add method to verify user input exists as class constant of given type 2011-08-28 12:58:47 +01:00
23cca3ff74 Fix double-slash bug in absolute url generation 2011-08-22 18:44:41 +01:00
24b2c837eb Prevent non-error logs being fatal if logging not initialised 2011-08-21 16:10:55 +01:00
2f076848ea Bug fix for errors thrown during Log initialisation 2011-08-21 11:30:23 +01:00
2781b63b68 Bug fixes to reduce logging-related crashes
* Provide a method for plugins to report failure to initialise
* Check plugins initialised properly before adding to list of logging
backends
* Check the logger is available before trying to log a message
(might cause bugs if errors are logged very early in initialisation)
2011-08-20 11:34:29 +01:00
fc33112097 Check for gone-away database server and reconnect
Should stop the worker process crashing if mysql closes the connection
due to timeout.
2011-08-13 13:06:02 +01:00
294679567f Fix bug following hostname/progname alterations 2011-08-07 15:52:50 +01:00
04de50cecd Add Syslog logging backend 2011-08-06 14:51:51 +01:00
87b0789137 Fix log handling of hostname and progname
Log classes previously assumed all logs to be sourced from the local
machine with no program name set. This change adds support to read/set
the program name, and ensures the hostname/program name are properly
tracked into and out of the database.
2011-08-06 14:49:11 +01:00
f7b5947863 Merge branch 'master' of git+ssh://git.sihnon.net/home/git/public/sihnon-php-lib 2011-06-26 18:25:12 +01:00