ian%hixie.ch
|
400e259499
|
Some versions of the Net::SMTP module handle the timeout by raising a SIG ALRM, so handle this case as well. Also increase the timeout by ten seconds since in the real world, some servers are actually that slow. We might need to make this asynchronous at some point.
git-svn-id: svn://10.0.0.236/trunk@122185 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-26 15:08:48 +00:00 |
|
ian%hixie.ch
|
9278fe7a1b
|
Perl 5.005_03 compatability: the precedence of the not and comma operators changed at some point, so disambiguate this usage.
git-svn-id: svn://10.0.0.236/trunk@122184 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-26 15:05:37 +00:00 |
|
ian%hixie.ch
|
8fb371cdfa
|
Cache the Term::ReadLine input device. On some systems, it has to be cached, otherwise you end up trying to open too many input handles or something like that. This also means we can have session history where available.
git-svn-id: svn://10.0.0.236/trunk@122183 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-26 15:03:48 +00:00 |
|
ian%hixie.ch
|
cbbeb386bf
|
Add some null checking -- if the string is undefined, then turn it into the empty string. This avoids many undefined value warnings when the data provided by the user is incomplete.
git-svn-id: svn://10.0.0.236/trunk@122182 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-26 15:02:33 +00:00 |
|
ian%hixie.ch
|
f641659fa9
|
Implemented rowsAffected(), which will return the number of database rows that were affected by the last execution of the statement associated with the results frame.
git-svn-id: svn://10.0.0.236/trunk@122181 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-26 15:00:56 +00:00 |
|
ian%hixie.ch
|
c7b3364fb9
|
Preliminary work in making the user prefs notifications page nicer.
git-svn-id: svn://10.0.0.236/trunk@120938 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-07 12:16:24 +00:00 |
|
ian%hixie.ch
|
c1c1c9842b
|
Add the hidden userPrefs.userID fields to the user prefs page so that changes to users other than yourself actually take effect.
git-svn-id: svn://10.0.0.236/trunk@120937 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-07 12:16:01 +00:00 |
|
ian%hixie.ch
|
6efcedea1b
|
pendingCommands.defined doesn't seem to work... Let's try pendingCommands.ref. It's technically more correct anyway.
git-svn-id: svn://10.0.0.236/trunk@120917 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-07 03:04:37 +00:00 |
|
ian%hixie.ch
|
daa25efe83
|
Forgot to fully convert the templates to Template Toolkit: nested dots need to be escaped differently now.
git-svn-id: svn://10.0.0.236/trunk@120916 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-07 03:03:00 +00:00 |
|
ian%hixie.ch
|
bd02b41d6b
|
Fix some bugs with the pendingCommand escaping code: First, extra spaces were being inserted (so much for s///x). Second, the escaping was actually modifying the original keys. Third, there were some logic errors that caused underescaping or resulted in the wrong key being escaped.
git-svn-id: svn://10.0.0.236/trunk@120911 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-07 01:50:22 +00:00 |
|
ian%hixie.ch
|
eaed54eda6
|
Lots of tweaks, mainly to make the source look pretty. Also hid the Settings header if there are no important settings.
git-svn-id: svn://10.0.0.236/trunk@120907 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-07 01:32:28 +00:00 |
|
ian%hixie.ch
|
dc84debdd8
|
Correct a typo: Output is done through the application object, not the user prefs object...
git-svn-id: svn://10.0.0.236/trunk@120897 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 23:05:08 +00:00 |
|
ian%hixie.ch
|
bab803e830
|
Add an additional check that the change ID is valid
git-svn-id: svn://10.0.0.236/trunk@120892 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 22:59:22 +00:00 |
|
ian%hixie.ch
|
97a39903b1
|
Forgot to fully convert the templates to Template Toolkit: nested dots need to be escaped differently now. Also added filters to the URI fragments so that spaces get escaped properly. They'll be stuck together at some point.
git-svn-id: svn://10.0.0.236/trunk@120872 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 21:15:05 +00:00 |
|
ian%hixie.ch
|
509dbdd477
|
Forgot to fully convert the templates to Template Toolkit: nested dots need to be escaped differently now
git-svn-id: svn://10.0.0.236/trunk@120869 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 21:05:28 +00:00 |
|
ian%hixie.ch
|
7fa663701f
|
Add more information to the hash passed to the change of address outputs
git-svn-id: svn://10.0.0.236/trunk@120865 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 21:01:48 +00:00 |
|
ian%hixie.ch
|
25757cccba
|
Remove the 'html' bit from the filenames.
git-svn-id: svn://10.0.0.236/trunk@120864 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 21:00:53 +00:00 |
|
ian%hixie.ch
|
91bcd3f99e
|
E-mail templates
git-svn-id: svn://10.0.0.236/trunk@120828 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 12:53:53 +00:00 |
|
ian%hixie.ch
|
9cf6b26355
|
Remove the 'html' bit from the filenames.
git-svn-id: svn://10.0.0.236/trunk@120826 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 11:03:12 +00:00 |
|
ian%hixie.ch
|
aa3b6dd129
|
Ok, handle undef in getArgumentsFromString the same as an empty string. This function sometimes gets called with the result of peekArgument(), which could be undef.
git-svn-id: svn://10.0.0.236/trunk@120825 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 10:10:57 +00:00 |
|
ian%hixie.ch
|
bba2709b08
|
There's a bug somewhere which results in the expansion of an undefined string. This assertion should help track it down.
git-svn-id: svn://10.0.0.236/trunk@120824 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 09:55:19 +00:00 |
|
ian%hixie.ch
|
a31edff424
|
Oops, forgot to make the primary key ID an auto_increment column.
git-svn-id: svn://10.0.0.236/trunk@120823 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 09:53:01 +00:00 |
|
ian%hixie.ch
|
781a940078
|
getFields returns an arrayref, so we have to dereference it before using it in a foreach loop.
git-svn-id: svn://10.0.0.236/trunk@120820 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 05:51:02 +00:00 |
|
ian%hixie.ch
|
1b4265f8b6
|
Oops, I was stomping on the fieldsByID property by treating it as a function instead of a hash. Also add in an assertion to check that insertField() is always called with a real field.
git-svn-id: svn://10.0.0.236/trunk@120819 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 05:50:06 +00:00 |
|
ian%hixie.ch
|
086b5ab6a1
|
Make user fields all provide the user.field service so that they can be easily recognised.
git-svn-id: svn://10.0.0.236/trunk@120818 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 05:48:48 +00:00 |
|
ian%hixie.ch
|
10cfb5209d
|
Change the expected field category name from 'detail' to 'personal' for consistency
git-svn-id: svn://10.0.0.236/trunk@120817 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 05:26:00 +00:00 |
|
ian%hixie.ch
|
d6a5a371d4
|
When getting ones password sent without getting a login failed message first, the pending command is the request to send a new password... so you get sent back to that once your password is sent. That's not good. This fixes it by moving the pendingCommands code to the login.failed page and making the login.detailsSent page only show the continue button when appropriate.
git-svn-id: svn://10.0.0.236/trunk@120816 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 05:17:00 +00:00 |
|
ian%hixie.ch
|
48ec2543c1
|
User Preferences Screens
git-svn-id: svn://10.0.0.236/trunk@120815 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 04:55:59 +00:00 |
|
ian%hixie.ch
|
b54f6a7738
|
Fixing the spelling of getRightsForGroups() where it is declared and used. Also fixing one of the SQL statements to use rights.rightID not rights.ID.
git-svn-id: svn://10.0.0.236/trunk@120813 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 04:36:42 +00:00 |
|
ian%hixie.ch
|
e93997dd50
|
Rename 'setting' to 'settings' throughout to be consistent. Also, make it so that someone with the right to change all groups gets to be the equivalent of an owner even in groups where he is only marked as administrator.
git-svn-id: svn://10.0.0.236/trunk@120810 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 03:54:14 +00:00 |
|
ian%hixie.ch
|
a1a5159f19
|
Hardcoded constants strike again... Changing the setup code to let the first administrator have the rights to let other people be administrators.
git-svn-id: svn://10.0.0.236/trunk@120808 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 03:10:50 +00:00 |
|
ian%hixie.ch
|
e70690de47
|
comment clarification
git-svn-id: svn://10.0.0.236/trunk@120803 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-05 22:43:05 +00:00 |
|
ian%hixie.ch
|
1c05c87769
|
Change variable names to reflect the fact that objects are instances, not classes.
git-svn-id: svn://10.0.0.236/trunk@120771 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:11:56 +00:00 |
|
ian%hixie.ch
|
bd2477f239
|
Add some debugging info to every page once and for all.
git-svn-id: svn://10.0.0.236/trunk@120769 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:10:38 +00:00 |
|
ian%hixie.ch
|
6691baf86d
|
Make the user factory return the same object if the same user is requested multiple times. This means that if the currect user is changed on the fly, the changes actually take effect instead of there being a potential race condition between the change, the access of the currect user, and the objects going out of scope and updating the database.
git-svn-id: svn://10.0.0.236/trunk@120768 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:09:27 +00:00 |
|
ian%hixie.ch
|
a3c9a95658
|
Pass the app reference to the user factory. Fix the code that uses argument branches to treat them as arrays instead of scalars.
git-svn-id: svn://10.0.0.236/trunk@120766 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:06:38 +00:00 |
|
ian%hixie.ch
|
5a049e0b50
|
Two more things to do: make getSettings return a boolean instead of raising an exception, and add a pass-through command that outputs can use to bring up specific templates
git-svn-id: svn://10.0.0.236/trunk@120765 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:03:48 +00:00 |
|
ian%hixie.ch
|
c68716f30e
|
Add support for converting + signs in URIs back to spaces.
git-svn-id: svn://10.0.0.236/trunk@120764 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:02:19 +00:00 |
|
ian%hixie.ch
|
adc37e223f
|
change the default include type from XML to x-auto so that by default we can include other templates without knowing what they are.
git-svn-id: svn://10.0.0.236/trunk@120262 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:24:48 +00:00 |
|
ian%hixie.ch
|
d2fc17dd5a
|
Make getSettings return a boolean instead of raising an exception.
git-svn-id: svn://10.0.0.236/trunk@120261 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:24:01 +00:00 |
|
ian%hixie.ch
|
0f90df3b8e
|
Add various FILTERs were required to keep the output valid HTML...
git-svn-id: svn://10.0.0.236/trunk@120260 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:23:07 +00:00 |
|
ian%hixie.ch
|
759a7da243
|
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.)
git-svn-id: svn://10.0.0.236/trunk@120259 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:18:33 +00:00 |
|
ian%hixie.ch
|
a8b1b7a2f7
|
Add getArgumentsAsString() and getArgumentsFromString() so that the arguments can be flattened and then 'retexturised' a later time and reused.
git-svn-id: svn://10.0.0.236/trunk@120258 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:13:20 +00:00 |
|
ian%hixie.ch
|
6e6f48680f
|
Login component output files for the HTTP protocol
git-svn-id: svn://10.0.0.236/trunk@120257 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:11:55 +00:00 |
|
ian%hixie.ch
|
39482f1bf4
|
If the app name is the same as the page name, only display it once in the page title
git-svn-id: svn://10.0.0.236/trunk@119739 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-24 20:31:53 +00:00 |
|
ian%hixie.ch
|
c840d6561b
|
Move from COSES to TemplateToolkit
git-svn-id: svn://10.0.0.236/trunk@119730 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-24 20:02:34 +00:00 |
|
ian%hixie.ch
|
f5ab46863f
|
Add an adminMessage to the default admin user.
git-svn-id: svn://10.0.0.236/trunk@119519 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-21 15:03:29 +00:00 |
|
ian%hixie.ch
|
5e2ee154d4
|
Add a (default, very simple) login command so that the standard footer can have a login link.
git-svn-id: svn://10.0.0.236/trunk@119518 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-21 14:58:13 +00:00 |
|
ian%hixie.ch
|
5a84742d94
|
Changing from COSES to TemplateToolkit
git-svn-id: svn://10.0.0.236/trunk@119517 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-21 14:53:34 +00:00 |
|
ian%hixie.ch
|
05037798ba
|
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).
git-svn-id: svn://10.0.0.236/trunk@119516 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-21 14:11:41 +00:00 |
|