Commit graph

1553 commits

Author SHA1 Message Date
Thijs Kinkhorst
603c729096 When in threaddisplay, trim subjects of indented messages more. 2003-01-09 15:56:38 +00:00
Erin Schnabel
d0bc2d45e0 This makes more sense to me, and has been shown not to break anything, and while the other method should probably be fixed at some point, I think this is good for now. 2003-01-09 01:40:00 +00:00
tokul
344519528d $default_charset variable equal to user's locale when decoding messages.
set_my_locale function gets charset from locale if no language variable
found in user's prefs. Fixes possible problem when $default_charset and
$squirrelmail_default_language are incorrectly set in config.
2003-01-07 19:49:51 +00:00
Thijs Kinkhorst
3531e21d4d Implement sqextractGlobalVar with sqgetGlobalVar 2003-01-04 18:17:38 +00:00
Thijs Kinkhorst
dfddd88487 Undo this xhtml-compatibility thing because the html_tag function is used
incorrectly in many places around the code: no value is specified while
tags do have a value.
2003-01-04 18:00:19 +00:00
tassium
32740804c9 Improved error handling, especially for everyone whose CVS install just broke because plain auth no longer exists. (Now renamed to login) 2003-01-04 06:21:06 +00:00
tassium
d1cc599af5 Ok, I screwed up. When I put in cram-md5 and digest-md5, I left the alternative as being "plain", which is a misnomer. There really IS a mechanism called "plain", and what we're doing isn't it. So I've renamed our "plain" to "login".
For IMAP, it uses the IMAP4rev1 "LOGIN <user> <pass>" syntax.
For SMTP, it uses the AUTH LOGIN (two-step) method.
2003-01-04 06:01:26 +00:00
Erin Schnabel
6e38ee4a74 Thanks shiruken! needed single quotes around switch constants 2003-01-04 05:26:52 +00:00
Erin Schnabel
39496fd3bc added constants to fetch COOKIE and SERVER values 2003-01-04 05:02:40 +00:00
Erin Schnabel
9974a58f86 swap in the sqgetGlobalVar function 2003-01-04 04:15:37 +00:00
Erin Schnabel
5ec388426b use new function to get POST variables 2003-01-04 03:09:00 +00:00
Erin Schnabel
865e0e55e1 Use new function to get GET vars 2003-01-04 02:17:35 +00:00
Erin Schnabel
3b6e061082 Added new function:
sqgetGlobalVar($name, $value [, location] );
This function looks for a variable named $name.
If found, it sets the value into $value (in signature, is &$value) and
returns true. If the variable is not found, the function returns false.

The optional constant allows you to pick which location to
check for the variable in. If none is specified, it will check,
in this order, $_SESSION, $_POST, $_GET. These are defined constants
for use with this function:
 SQ_INORDER - same as specifying nothing, check all three.
 SQ_SESSION
 SQ_POST
 SQ_GET

    It is recommended that plugins, all functions use this instead of
    directly accessing $_SESSION/$_POST/$_GET arrays, as we have
    already taken care of scope (global, etc).

    The Administration plugin has been updated to use this function,
    as an example.

    This is an alternative to sqextractGlobalVar($name), which looks
    for a var named $name in the SESSION/GET/POST arrays, and creates
    a global variable if defined.
2003-01-04 01:12:14 +00:00
tokul
6e4087ecf9 Added windows-1253 and utf-8 decoding
Added windows-1254 decoding from stable
Removed comments in windows-1257, iso-8859-4 and iso-8859-13 decoding
2003-01-02 09:00:44 +00:00
philippe_mingo
ca403f2cbe Internationalization bugfix. 2003-01-01 11:18:31 +00:00
Thijs Kinkhorst
b9f6f4ca77 Forgot a SM_PATH 2002-12-31 14:36:56 +00:00
Thijs Kinkhorst
3a8028f597 *** empty log message *** 2002-12-31 13:06:27 +00:00
Thijs Kinkhorst
75de52f258 Getting ready for 1.4.0 RC1 2002-12-31 12:49:43 +00:00
Thijs Kinkhorst
f0fc6b10b3 Session naming in devel. 2002-12-30 19:52:19 +00:00
Erin Schnabel
2fe515893c forgot to re-enable after testing.. duh. 2002-12-29 19:12:20 +00:00
Erin Schnabel
415b302b6f Wanted to add the SquirrelMail versioning functions we'd talked about before
we split the streams to the new RC for 1.4.

check_sm_version performs similar function to check_php_version, and
will return true if version is >= what is specified.

For Thijs/Jonathan - the check_sm_version will return false if the
constant it checks against is not defined, making the function itself
safe for previous levels,  should you want to roll it back to stable
to allow plugin developers to use the check_sm_version function to
test for 'new' elements like SM_PATH, etc. that are present in 1.3.x
and up.

More info (though not a ton, I'll admit) is in the sm2-planning module
in cvs: cvs co sm2-planning, then pull up sm2-planning/index.php in your
browser.
2002-12-29 19:10:34 +00:00
Thijs Kinkhorst
3b7230b66a A small start in making Sqm XHTML 1.0 valid 2002-12-22 13:39:43 +00:00
Thijs Kinkhorst
583d3d87df Also give the remaining Subject column a width% that is the complement
of the sum of the other columns. This solves some macintosh-IE table
problems and is more correct.
2002-12-21 17:05:48 +00:00
Thijs Kinkhorst
b57577e4fd Assorted fixes, courtesy Roberto De Luca && kink 2002-12-21 16:13:47 +00:00
stekkel
bc999beb97 check for 0 messages in case of threadview 2002-12-20 15:29:53 +00:00
Thijs Kinkhorst
6deb18e8dc Fix for IIS, thanks Bruce Richardson 2002-12-20 11:35:48 +00:00
Erin Schnabel
8d444c3e17 Carried over modification made to file_prefs to distinguish
between a 0 value, and an unset value using ===.

Certain prefs were unsaveable after the XSS changes, which
cast zero values to ints (instead of strings), causing
them to pass the $set_to == '' check, and thus be treated
as an unset value, rather than a value of 0.
2002-12-17 20:36:23 +00:00
jangliss
b94ac6f063 Lets see if we can get this cookie thing right this time. 2002-12-17 19:13:51 +00:00
Thijs Kinkhorst
474d50b25a Change is_int to is_numeric, solves [ 655060 ] Image size for login.php and 2002-12-17 11:37:42 +00:00
jangliss
f6ac49ac49 And again... need to destroy cookies as they are created 2002-12-16 21:40:28 +00:00
jangliss
facbf3f2cc Sync'ing global.php with stable to fix multi-session merges, and also
start a session when trying to set a value to it vai $_SESSION.
2002-12-14 06:28:03 +00:00
tassium
286c5e1c39 sqimap_message_list_squisher() was returning nothing if the data passed to it was not an array. It should have just been returning the data as it was passed. 2002-12-11 17:52:23 +00:00
philippe_mingo
1e4c10ee0c Ukrainian Language , Oleg Baranovsky 2002-12-10 18:11:36 +00:00
tassium
78084bafd4 Minor changes.
* renamed auth.php/hmac() to hmac_md5()
* polished descriptions and helper text in conf.pl
* fixed minor bug with smtp auth mech default value in conf.pl
* minor documentation additions to authentication.txt
* added myself to AUTHORS.
2002-12-09 16:28:23 +00:00
stekkel
53ebca3407 html correction 2002-12-09 09:48:46 +00:00
stekkel
1e49e6a544 Proper initialisation of view_unsafe_images
fix for displaying the hide unsafe images link. If you show the unsafe
images, has_unsafe_images = false because it looks for the image
replacements. The hide unsafe images link was never initialized correct.
2002-12-09 09:05:37 +00:00
tassium
1fc6f1eced With a little help from Marc (ok, a lot), CRAM-MD5 and DIGEST-MD5 no longer require the mhash extension. If present, mhash will be used. 2002-12-07 04:02:05 +00:00
Thijs Kinkhorst
513e603e08 XXS fixes, as in stable 2002-12-06 16:42:12 +00:00
Thijs Kinkhorst
30e1a532a7 Fix by Martin Schulze of Debian. Please note, this is not a solution to the
recently reported xxs problem.
2002-12-05 11:32:27 +00:00
tassium
5414e1f492 sqimap_msgs_list_delete was calling sqimap_run_command using a variable ($handle_errors) which was not set. The call above it (also to sqimap_run_command) did not use $handle_errors, so I changed the bad call to match the other call. 2002-12-02 21:36:56 +00:00
tassium
c6b03fc667 Fixed some E_ALL warnings, should now be E_ALL clean.
No new functionality.
2002-12-02 19:33:23 +00:00
jangliss
caede20756 Session fix ported from stable, should fix DMN plugin, and prev/next links 2002-11-29 20:01:33 +00:00
tassium
108d7b4616 Force magic_quotes_runtime to be off, since SquirrelMail breaks badly if it's on.
If there's a better place to put this, someone let me know.
2002-11-26 14:40:19 +00:00
philippe_mingo
ea654e8a6b Grisha Mokhin 2002-11-22 19:05:37 +00:00
philippe_mingo
fb14180cd8 [ 639857 ] i18n.php (version 1.3.2) 2002-11-21 16:46:06 +00:00
philippe_mingo
6d4a5f4380 [ 613980 ] IE6 + iso-8859-13 problem 2002-11-16 12:45:26 +00:00
stekkel
44fd88a40a fix for checking specialmailboxes.
This solves the problem when a special mailbox isn't set and IsBoxBelow
gives a warning
2002-11-14 10:29:30 +00:00
Thijs Kinkhorst
45484c7dfd A preference-line can be of "unlimited" length now 2002-11-11 22:02:55 +00:00
Thijs Kinkhorst
4f552ee17e Fixes for minor bugs pointed out by Tyler Akins.
These were found because Tyler has error_reporting set to E_ALL.
To all developers: *please TURN E_ALL ON* to prevent these!
2002-11-07 11:55:09 +00:00
Thijs Kinkhorst
df76ef5549 Fix check_php_version for versions that contain a patchlevel. 2002-11-07 11:16:33 +00:00