Commit graph

1416 commits

Author SHA1 Message Date
Thijs Kinkhorst
f061369901 More rg=0 2002-09-21 20:26:52 +00:00
Thijs Kinkhorst
fc8e29e7bd Wrong include path 2002-09-21 16:18:45 +00:00
Thijs Kinkhorst
067363daea Update function directory to rg=0. 2002-09-21 15:59:32 +00:00
Thijs Kinkhorst
32711b7f1e Start some register_globals = off fixes:
Login, logout, and folder manipulation are now possible with rg=0. More to come.
2002-09-21 14:57:32 +00:00
robsiemb
0ddd8468f9 more noselect fixes 2002-09-17 20:57:13 +00:00
robsiemb
afb51c2333 don't STATUS a mailbox that isn't selectable 2002-09-17 20:48:06 +00:00
stekkel
d1708e2a00 somehow url vars with &amp are not picked up by PHP 2002-09-16 17:05:35 +00:00
stekkel
982bc03d03 added unsave tags (commited to stable by Konstantin) 2002-09-13 17:22:46 +00:00
indiri69
3631db4aff Remove SM_PATH from prefs file path 2002-09-12 18:15:40 +00:00
indiri69
56f1d28aec More SM_PATH changes 2002-09-10 22:35:30 +00:00
indiri69
93f4589423 Javascript detection no longer requires SquirrelSpell. 2002-09-10 21:10:17 +00:00
indiri69
0f3a2014b7 SM_PATH fix 2002-09-10 17:55:14 +00:00
Thijs Kinkhorst
2fb9d476ee Fix HTML-compliance here and there. 2002-09-08 15:04:47 +00:00
stekkel
9970784525 fix for never ending while loop 2002-09-06 17:44:29 +00:00
philippe_mingo
771b38ffb8 Masato's Fix 2002-09-06 15:56:12 +00:00
thomppj
de9848ded8 A terrible pile of things done to the code. Did a little bit of SM_PATH
stuff in plugins.

Then I moved some files:
  src/validate.php         -> include/validate.php
  src/load_prefs.php       -> include/load_prefs.php
  src/options_personal.php -> include/options/personal.php
  src/options_display.php  -> include/options/display.php
  src/options_folder.php   -> include/options/folder.php

Basically, the concept here is that src/ should ONLY contain files that
actually get called from the web browser as a php script directly. All
of these files do not really contain functions or anything (so the
functions/ directory did not really make sense), but were more strictly
include files.

Of course, the name functions for a directory is bad organization, IMHO,
anyhow. I guess class would fall in the same category. Oh well, some of
that might get fixed someday.

So, new rule. Only put it in src/ if it gets called directly.

That was really sort of an unwritten rule before. However, since it was
never really enforced or officialized, things got sloppy.

I think I have everything fixed in the CORE with this traumatic moves. I
am sure all of the plugins will be broken. Oh well, the error messages
should be pretty loud and easy enough to fix.
2002-09-06 01:16:40 +00:00
thomppj
9001d31cf8 Converted all files in functions/ to use SM_PATH. This will break all
plugins. Each callable script needs a:

  define('SM_PATH', '../../');

Or something like that put at the top.
2002-09-06 00:31:43 +00:00
stekkel
160495f0f7 previous cleanup broke the find_ent_id function 2002-09-05 17:34:27 +00:00
stekkel
155c8b350a Fixed stupid bug causing double lines (the same) 2002-09-05 14:58:38 +00:00
philippe_mingo
b24964ea69 "Tomas Kuliavas" <tokul@users.sourceforge.net> 2002-09-03 06:52:43 +00:00
indiri69
9e71dc6684 Formatting changes and added some more html->plain transforms. 2002-08-30 17:55:25 +00:00
thomppj
caeff8b548 First, more formatting conventions.
1. Wrap all operands of a complex expression with parentheses.
     For instance:
         if ($bob == 'foo' || $bob == 'bar') {
     is wrong. Do this instead:
         if (($bob == 'foo') || ($bob == 'bar')) {

  2. Carefully decide between pre and post incrementation. If it
     does not matter, always choose pre because it is technically
     more efficient. For instance:
         for ($i = 0; $i < $count; $i++) {
     is wrong. Do this instead:
         for ($i = 0; $i < $count; ++$i) {

  3. Classes should be named in style like this:
         MessageHeader
         Rfc8222Header
     etc. When there is an acronym at the beginning, treat it
     like a word - do NOT captitalize each letter of the acronym.

  4. Put each class in a seperate file named ClassName.class.php.
     Related classes can be put in one directory and then included
     in a main include file.

Second, big changes with mime.class.php here. And I don't think I broke
anything. (Sounds like famous last words, eh?)
2002-08-29 23:42:46 +00:00
robsiemb
550f4e31ee correctly detect \Noselect in LSUB responses, and set $mbx->is_noselect
so that the folder tree does not allow you to select a nonexistant
mailbox
2002-08-29 15:43:38 +00:00
Pontus Ullgren
cef25192a9 FIxing bug #600369 2002-08-28 22:35:03 +00:00
stekkel
0835e1dddb Fixes from Jason to sqimap_read_data.
This also removes the ")" characters which doesn't belong to the requested
data but are part of the imap output.
2002-08-28 14:52:01 +00:00
philippe_mingo
ed24327ac8 "J.I Kim" <aporie@iskra.sarang.net> 2002-08-28 11:36:08 +00:00
stekkel
2487cf51be htmlspecialvars bodystructure 2002-08-27 17:38:01 +00:00
stekkel
9d9bd3f356 Added error message in case the bodystructure couldn't processed. 2002-08-27 17:23:09 +00:00
stekkel
c6c52f991f finally managed to solve the bad Junk after literal output from the
imap-server
2002-08-27 16:36:10 +00:00
stekkel
141a78f4dd fix for Junk after literal error message from imap-server when mail is
appended to the sentfolder
2002-08-27 12:48:30 +00:00
stekkel
0c00d72e12 added extra check for save internal link extensions. (for use with
magicHTML)
Maybe this is the wrong fix but in case of iframes tags with a cid link to an
internal entity it's possible that stupid users download attached virus
entities because the iframe src pointed to a filename with .scr, .exe, .bat or
other extension. This patch only allow the following hardcoded save extensions:
gif, jpeg, jpg, png, bmp.

To do:
notify user in case of invalid extensions.
totally remove iframes because I think in most cases (virus) they are unsave.
2002-08-26 14:31:15 +00:00
stekkel
ea6df0a14c modified html_link to redirect output to view_text. 2002-08-26 11:18:10 +00:00
philippe_mingo
c8103ced19 Marc check this. 2002-08-26 09:38:08 +00:00
stekkel
2dbacf86da typo 2002-08-26 09:31:22 +00:00
stekkel
ad52b8232c quick hack to remove the preg_match for * [0-9]+ FETCH in case of
sqimap_run_command. Explanation: if we request for a single fetch (not a
list) we shouldn't look for extra fetch lines because this stops the
processing in case of body entities with * a001 fetch lines.
Later we can glue the 2 functions together if we add information to
sqimap_read_data_list about the nature of the call (list or not)
2002-08-26 09:27:43 +00:00
philippe_mingo
7f9fbe7fd2 Minor sintax changes 2002-08-26 08:32:21 +00:00
indiri69
17197b6e9c Removed findDisplayEntity. The mime class has one like it already. 2002-08-24 19:39:02 +00:00
stekkel
91e2a319b4 fix for undefined textarea 2002-08-23 16:46:15 +00:00
indiri69
08de620a70 Change &nbsp; &gt; &lt; to they're plain text equivalents. Now when we view text/html as plaintext it doesn't look as bad. 2002-08-23 16:45:41 +00:00
stekkel
c9e1d627c3 fixed warnings 2002-08-23 16:44:14 +00:00
stekkel
ad0b20f326 Sorry Philippe I get terrible warnings and I use language NL_nl, Is this the
proper fix?
2002-08-23 16:38:16 +00:00
philippe_mingo
c3a33a5b83 Indentation 2002-08-23 16:27:28 +00:00
philippe_mingo
08f45be1c0 Masato:
Change into the extra encode philosophy to allow other languages to
use it.
2002-08-23 15:46:58 +00:00
stekkel
f23a76ecd8 This fixes the broken smtp transport when dot's are not handled properly.
it is tested for smtp but i'm not sure if it also counts for sendmail (I
think it does).
2002-08-23 11:59:02 +00:00
stekkel
df6e4152d5 small changes that maybe solve a paginator bug 2002-08-22 11:57:37 +00:00
philippe_mingo
2391925b00 Bugfix 2002-08-22 10:14:25 +00:00
philippe_mingo
6a1659b234 Masato
Japanes patch
2002-08-22 09:33:09 +00:00
philippe_mingo
bc933726f9 Masato
Japanese encodings
2002-08-22 09:18:54 +00:00
thomppj
80df84b2fc Lots of small user interface fixes. Added user option to enable/disable "forward as attachment". 2002-08-21 22:56:09 +00:00
stekkel
6d85a93ba4 fix for image-display $passed_ent_id -> ent_id
Now we only use passed_ent_id in case of message/rfc822 attachments
2002-08-21 10:10:52 +00:00