Commit graph

212 commits

Author SHA1 Message Date
tokul
232912ec98 adding sq_is8bit and sq_mb_list_encodings functions.
sq_is8bit can be used in decoding functions and read_body.php
sq_mb_list_encodings provides replacement for mb_list_encodings
2004-10-15 09:12:12 +00:00
tokul
34a0b16773 xtra_code updates in strings 2004-08-08 14:59:29 +00:00
stekkel
935fc22b6f Fixed warning.
TODO: look at lines which are longer then the editor size and and theirfor
do not reach the code responsable for the smart wrapping of short lines.
Those lines should also be tested on first words.
2004-06-16 09:48:31 +00:00
stekkel
1fc1409425 Tweaked wrapping a little more. 2004-06-15 18:09:57 +00:00
stekkel
b92481b314 Possible fix for our wrapping problem. Please review it because I might have
did some stupid things bvecause I used the trial and error method for this
one.
2004-06-14 19:29:56 +00:00
tokul
ff6d3d6fe3 rewriting tests after ctype/sm_ctype comparision and reading php manual more creafully.
converted ereg to pcre. It would be better to include function_exist('ctype_space') test
in this function. P.S. reply code is broken if message includes double quotes.
2004-06-07 14:41:52 +00:00
Brian G. Peterson
26f3fc4e59 - add sm_ctype_space and function_exists check to support PHP without ctype
- sm_ctype_space function contributed by Tomas Kuliavas
2004-06-06 18:46:38 +00:00
Brian G. Peterson
9fc0c3ae3b - add sqBodyWrap utility functions to rewrap entire body rather than one line at a time
- improves old sqWordWrap for reply
  - patch contributed by Justus Pendleton
2004-06-06 14:28:48 +00:00
Fredrik Jervfors
9d4db8b166 Phpdocumentor update - sed is your friend for these kinds of things ;) 2004-05-21 23:56:53 +00:00
tokul
22a39f04e3 this way it looks better. 2004-04-25 10:26:56 +00:00
tokul
d550e50eb0 adding sq_htmlentities function 2004-04-25 10:04:57 +00:00
tokul
c680669021 phpdoc formating fixes 2004-04-25 09:25:58 +00:00
Thijs Kinkhorst
67b3f9cb87 Fix quote_imap, the ereg pattern wasn't always interpreted right
due to the escaping of backslashes. I've replaced it with the
faster preg_replace and used double quotes to lessen the escaping
confusion.
2004-03-23 10:39:24 +00:00
Thijs Kinkhorst
eb0871d7c9 Make writing to prefs/abook/calendar files more reliable by handling it
the right way when writing fails (error in stead of truncating file).
2004-03-15 10:10:00 +00:00
Thijs Kinkhorst
cde0377d36 We're living in 2004 now... perl is your friend for these kinds of things :) 2004-02-24 15:51:22 +00:00
Erin Schnabel
589545163f wooops. mismatched my brackets! 2004-02-03 22:15:30 +00:00
Erin Schnabel
d08af2c50a ready for continued development 2004-02-02 04:54:08 +00:00
Erin Schnabel
563d99a96e get ready for 1.5.0 dev release 2004-02-02 04:45:45 +00:00
pdontthink
4a8890bec5 Removed right target, which is redundant and problematic when viewing right frame in separate window 2003-12-25 10:19:02 +00:00
Thijs Kinkhorst
2751145774 Add phpdoc doc blocks to some files. 2003-10-29 09:35:51 +00:00
tassium
9098cb73e4 Preparation to begin using phpdocumentor.
Added basic @package/@subpackage tags
The decode/ files were documented slightly more thoroughly, although they're almost self-explanatory anyway.

The individual functions in the functions/ files need to be documented though, and now that this commit is in, anyone willing to write docblocks for functions should get cracking ;)
2003-10-28 21:27:47 +00:00
pdontthink
ec94b89f7d Fix: php_self() not working right for Windoze servers that don't have REQUEST_URI 2003-10-17 17:44:26 +00:00
indiri69
778a559cda A forward slash can appear in query of a string, so find the start of a query first. 2003-07-29 21:29:38 +00:00
Thijs Kinkhorst
6e8d622861 Extend sm_print_r so you can do:
sm_print_r($a, $b, $c);
2003-07-23 11:23:53 +00:00
tassium
2b5ba2626f New function: sm_print_r()
This is intended to be a debugging function.  Ever wanted to do a print_r, but found that some of the values were "eaten" by your browser's parser because they had <> in them?  Use this function instead.  It runs htmlentities() on the output of print_r() AND as a bonus wraps the entire thing in <pre> and </pre> tags.
2003-07-03 14:14:48 +00:00
Thijs Kinkhorst
9d5490c98a Fix comp_in_new: make outputing the compose link a function so that
the comp_in_new works the same everywhere.
In this new function, make sure that comp_in_new still works when
JavaScript off.
When JavaScript off, do not output all kinds of JavaScript functions
which are never going to be called.
2003-06-08 14:37:35 +00:00
Thijs Kinkhorst
62a3b54436 Remove some obsoleted parsing functions. 2003-05-22 16:22:52 +00:00
Erin Schnabel
f6730690f9 New Dev version strings.
slight include order change to avoid potential E_ALL message.
2003-04-04 04:00:36 +00:00
Thijs Kinkhorst
e04a02e1bd Continue development on 1.4.1!
Devel team can split 1.5.0 now if they wish.
2003-04-03 19:07:42 +00:00
Thijs Kinkhorst
e8bca9014e Preparing for 1.4.0 release 2003-04-03 17:58:31 +00:00
philippe_mingo
e4ba9851d4 Masato Higashiyama japanese patch. 2003-03-27 16:47:48 +00:00
jangliss
1910cefb96 Weird locales seem to mess with uppercase i, and php seems to like to
convert function names according to locales... bad php, but not much we can
do.  Changed quoteIMAP to quoteimap to work around this for now.  It's only
used during login as far as I can find.
2003-03-10 18:01:45 +00:00
Erin Schnabel
86968b3b4b Cache the base url (protocol://host:port) in the session to make it
faster. get_location already parsed php_self to get the url
e.g. /path/to/sqmail/src
So now, to make Locations compliant, you can either, call get_location if
you know the place you're redirecting to has the same url path you do
(src to src, for example), or check for 'sq_base_url' in the session vars,
call get_location to set it if it isn't there, and then use the
'sq_base_url' session var + base_uri from session + desired location to
redirect.
2003-03-10 07:19:20 +00:00
Erin Schnabel
de20bf0dc9 Clean up references to global vars 2003-03-03 01:43:16 +00:00
Thijs Kinkhorst
2ebce64cba We're talking Megabytes here, not millibytes :) 2003-02-12 05:52:59 +00:00
Thijs Kinkhorst
cfa5204ef3 Continue development 2003-01-24 09:56:34 +00:00
Thijs Kinkhorst
9b174f2895 Releasing RC2a 2003-01-24 09:42:17 +00:00
Thijs Kinkhorst
c02ac502f8 Obsolete duplicate function to make sure version comparison is done in a
predictable way.
2003-01-23 20:14:43 +00:00
Thijs Kinkhorst
2a24b91684 Continue development 2003-01-23 18:34:05 +00:00
Thijs Kinkhorst
ac398c4534 RC2 2003-01-23 17:09:54 +00:00
Thijs Kinkhorst
88a42368fc Obsolete code because crc32() does exist in our minimum php requirements. 2003-01-15 15:49:23 +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
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
6deb18e8dc Fix for IIS, thanks Bruce Richardson 2002-12-20 11:35:48 +00:00
stekkel
19da2d75db defrost 2002-10-29 21:38:01 +00:00
stekkel
842ee8b0d6 CVS FROST 2002-10-29 20:17:09 +00:00
Thijs Kinkhorst
f061369901 More rg=0 2002-09-21 20:26:52 +00:00
stekkel
155c8b350a Fixed stupid bug causing double lines (the same) 2002-09-05 14:58:38 +00:00