ian%hixie.ch
de97b7e2eb
Add support for converting + signs in URIs back to spaces.
2002-05-04 01:02:19 +00:00
ian%hixie.ch
cb000c2459
change the default include type from XML to x-auto so that by default we can include other templates without knowing what they are.
2002-04-30 00:24:48 +00:00
ian%hixie.ch
0cc155547e
Make getSettings return a boolean instead of raising an exception.
2002-04-30 00:24:01 +00:00
ian%hixie.ch
3f6224691f
Add various FILTERs were required to keep the output valid HTML...
2002-04-30 00:23:07 +00:00
ian%hixie.ch
15ff9e75dc
Add support for pending commands, so that after getting their password sent users can continue doing what they were doing before. (This requires support on the output side as well, typically the HTTP protocol will use this, and less interactive protocols like e-mail won't.)
2002-04-30 00:18:33 +00:00
ian%hixie.ch
b917e6b397
Add getArgumentsAsString() and getArgumentsFromString() so that the arguments can be flattened and then 'retexturised' a later time and reused.
2002-04-30 00:13:20 +00:00
ian%hixie.ch
5dae3f22b8
Login component output files for the HTTP protocol
2002-04-30 00:11:55 +00:00
ian%hixie.ch
b86ab38364
If the app name is the same as the page name, only display it once in the page title
2002-04-24 20:31:53 +00:00
ian%hixie.ch
3672975bff
Move from COSES to TemplateToolkit
2002-04-24 20:02:34 +00:00
ian%hixie.ch
cbd54ef96f
Add an adminMessage to the default admin user.
2002-04-21 15:03:29 +00:00
ian%hixie.ch
6a5b570278
Add a (default, very simple) login command so that the standard footer can have a login link.
2002-04-21 14:58:13 +00:00
ian%hixie.ch
7f92f4f9ec
Changing from COSES to TemplateToolkit
2002-04-21 14:53:34 +00:00
ian%hixie.ch
43f8ca9182
Split the confused getRights API into two, one to get the list of rights, and one to get the list of rights applicable to a set of groups. Make the user's output hash list all rights if the user is an administrator (this mirrors the behaviour of the user hasRight API).
2002-04-21 14:11:41 +00:00
ian%hixie.ch
17468fb239
add group names to the data passed to templates
2002-04-21 14:08:27 +00:00
ian%hixie.ch
469080dad5
If a user bookmarks or reloads the logout page, we don't want to show an error.
2002-04-21 14:05:15 +00:00
ian%hixie.ch
df6bd7a3a6
change the constructor to be a service instance constructor only, so that if descendants are also services, we don't leak the world through having a circular reference to the app.
2002-04-06 21:34:39 +00:00
ian%hixie.ch
6b0ed86249
Update the CosesEditor to use the new name for the customised string data source. (used to be dataSource.strings, now dataSource.strings.customised)
2002-04-06 21:30:05 +00:00
ian%hixie.ch
38b28733e1
Correcting inherited method call to call the right method -- serviceInstanceInit(), not init()
2002-04-06 21:27:45 +00:00
ian%hixie.ch
9ca5550433
Fix the removeObjects() function to ensure it actually removes the objects instead of leaving null pointers about for us to dereference later. Added some extra precautions to make sure that doesn't happen again. This all makes it possible to log out again.
2002-04-06 20:37:31 +00:00
ian%hixie.ch
05240d8e86
Fixing warning: 'Use of uninitialized value in concatenation (.) or string at ../PLIF/PLIF/Service/TemplateToolkit.pm line 70.'
2002-04-06 20:19:12 +00:00
ian%hixie.ch
c5ed21b8e9
Use Template::Stash::Context rather than Template::Stash because we need things like .ref
2002-04-06 20:13:44 +00:00
ian%hixie.ch
111c3af7cc
Updating built in COSES strings to match the new semantics (no 'data.' prefix required on variables)
2002-04-06 19:29:13 +00:00
ian%hixie.ch
34268809ac
Added support for password-less installations. Also added some comments and made font-lock happier.
2002-04-06 19:23:24 +00:00
ian%hixie.ch
871763fcb5
change the name adminHostname to the more accurate localHostname
2002-04-06 19:16:09 +00:00
ian%hixie.ch
f94e20287e
Adding Template Toolkit support. See http://www.template-toolkit.org/ for documentation on the template toolkit format.
2002-04-05 22:39:59 +00:00
ian%hixie.ch
70f92fe612
Add getArgumentsBranch() virtual method declaration (for completeness).
2002-04-05 22:13:52 +00:00
ian%hixie.ch
f8012497bf
Update: Yet more things that need doing.
2002-04-05 20:25:11 +00:00
ian%hixie.ch
7c6fe87ed8
Make the File string data source capable of looking for file-based templates in two locations, one specific to the app and one relative to the library. This allows PLIF to ship with default templates for various screens and thus makes it easier to bootstrap a simple app.
2002-04-05 20:17:34 +00:00
ian%hixie.ch
1f3b041aaa
Default error reporting page.
2002-04-05 20:15:27 +00:00
ian%hixie.ch
455922b478
Default templates for headers and footers that can be used by other templates.
2002-04-05 20:13:51 +00:00
ian%hixie.ch
ad1ba85936
Update the parameter list so that the 'type' parameter is explicitly named (although it still isn't used since this expander only supports one type). Also change the semantics of the data hash: no longer replace the data into a one member hash. This is a minor optimisation that eases interaction between expanders but will require changes to all existing templates.
2002-04-05 19:16:14 +00:00
ian%hixie.ch
b52700b1d2
Add a 'type' argument to the string expander interface so that string expanders can support multiple types. Also split getExpandedString so that callers can expand strings separately from getting strings, in case that is ever necessary.
2002-04-05 19:13:14 +00:00
ian%hixie.ch
5230bdd859
Minor typo correction: change 'import New::SMTP' to 'import Net::SMTP'
2002-04-05 19:11:21 +00:00
ian%hixie.ch
a89dffc374
* Added getGroupMembers() to the User data source.
...
* Fixed a bug in the MySQL implementation of User data source's getGroupName() method. It treated 'row' as an array ref instead of a normal array.
* Made the MySQL User data source automatically add a group with ID 1, named 'Administrators'.
* Special-cased the group with ID 1 in the user object so that if a user is in that group, he automatically is assumed to have all rights.
* Fixed a bug with the saving of the original groups in the user object (the backup object was simply a reference to the original object, which was later changed in place, causing the backup to change too).
* Fixed the handling of rights in the user object constructor to simply set the rights in one line instead of using indirection.
* Fixed the invalidateRights() method of the user object to correctly re-set the rights (previously it was not turning the generated array into a hashref).
* Added a setup.install implementation to the login component. It now queries the user for an administration username and creates the relevant user and puts it in the magic group 1.
* Fixed a call to checkAddress() in the login component.
2002-02-01 06:48:02 +00:00
ian%hixie.ch
1c49734d21
Commented out the call to Net::SMTP's verify() method and replaced it with a generic regexp sanity check. It appears that VRFY is not correctly implemented on all servers. (I may be mistaken on this; it might just be a bug somewhere in the PLIF code that is messing something up, but I couldn't find it if so.)
2002-02-01 06:38:55 +00:00
ian%hixie.ch
3a41393898
Added a check that ensures that the configuration file is not readable or writable by anyone except the user running the script. This closes a potential security hole on shared machines. Changed the umask during the creation of the configuration file so that the permission bits are set that way too. Added a comment to clarify the superficially recursive nature of the configuration database and the configuration data source.
2002-02-01 06:36:27 +00:00
ian%hixie.ch
2787ed1409
Another change that should be done at some point: Move PLIF/DataSource/*/MySQL.pm to PLIF/DataSource/MySQL/*.pm
2002-02-01 06:32:17 +00:00
ian%hixie.ch
7b34209a7b
Removed an erroneous comment, which should be the last traces of the old problem of the lack of a configuration file being a fatal error.
2002-01-31 18:30:21 +00:00
ian%hixie.ch
ed5ab39edd
Theoretical nit: call inherited constructor just in case at some point in the future it does something useful...
2002-01-31 17:35:52 +00:00
ian%hixie.ch
551d3369d7
Fix a minor typo in some SQL code which was causing an error during the creation of the user table.
2002-01-25 03:18:15 +00:00
ian%hixie.ch
28d425cd54
Moved the DBI module over to thew new more generic settings getting/saving API and removed the old DBI-specific one. Fixed an assert() call to check for the values being defined and not non-zero/non-blank. Fixed the password field to allow blank values (by making a blank value the default). Also fixed the calls to getArgument to not ever pass an undefined value as the default.
2002-01-25 03:17:05 +00:00
ian%hixie.ch
7ac3c80e5c
More things that need doing on the long (and not so long) run.
2002-01-25 03:12:26 +00:00
ian%hixie.ch
c80c11fad9
getting rid of the last traces of the newFieldXXX stuff
2001-12-31 06:28:59 +00:00
ian%hixie.ch
7674dacda9
abstracted out some common code. Made the flushing of pending text happen after each end tag as well as each start tag. (Not doing this was causing whitespace between sibling elements to be treated as trailing whitespace of the first element, resulting in excessive whitespace -- typically newlines -- in the output stream.)
2001-12-31 06:07:04 +00:00
ian%hixie.ch
1bb8d54c2c
Fixing SQL error (DROP COLUMN not REMOVE COLUMN)
2001-12-31 06:04:30 +00:00
ian%hixie.ch
fa701c948c
delete() doesn't work with array references in old versions of perl5.
2001-12-31 02:40:49 +00:00
ian%hixie.ch
eccb9aca1d
Checking in a list of things that still need doing.
2001-12-30 01:03:45 +00:00
ian%hixie.ch
7bb48dfffc
Changing e-mail address now sends a confirmation mail to the old address too. Implemented by making changing fields a generic mechanism. Also fixed some minor nits.
2001-12-30 00:33:36 +00:00
ian%hixie.ch
41564734e3
* Removed incorrect comments.
...
* Added some XXX comments.
* Changed the way text nodes are handled so that adjacent text nodes are merged.
* Changed the way original keys are kept so that they work across flattening, rounding, and that there is no 'coses: original keys' hash getting in the way.
* Fixed a bug whereby empty arrays and hashes caused extraneous iterations in <set> elements.
* Removed some redundant scalar()s.
2001-12-26 19:30:16 +00:00
ian%hixie.ch
dc80936c17
Made debug() be level 6 instead of level 7. Added various comments.
2001-12-26 19:12:57 +00:00