XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> Phpxmail 0.70

Reply to this topicStart new topic

> Phpxmail 0.70, after quite some time a new release
mancini
  Posted: Oct 21 2004, 01:13 AM
Quote Post


Newbie
*

Group: Members
Posts: 24
Member No.: 973
Joined: 7-March 04



several bugs and some security enhancements in this version plus support for managing the old and the new SMTP filter files

anyone using older versions is advised to upgrade because of the big security hazard of the servers.php file with the encrypted xmail admin password being visible trough a browser
PMEmail Poster
Top
mancini
Posted: Oct 23 2004, 12:47 PM
Quote Post


Newbie
*

Group: Members
Posts: 24
Member No.: 973
Joined: 7-March 04



i have been told that some users eperience slow loading times of the left frame , wich is caused by a code there that accesses the phpxmail site checking for a new version , the default settings of phpxmail having this feature on

if you experience this please let me know so i can disable that feature by default in the next release

you can enable/disable it while logged in as admin in "phpxmail config>Update checking in main"
PMEmail Poster
Top
JoergHH
Posted: Nov 13 2004, 05:06 PM
Quote Post


Newbie
*

Group: Members
Posts: 2
Member No.: 1402
Joined: 13-November 04



I've got the following error after 'phpxmail/main.php?action=serverfilters&ftype=pre' :

QUOTE

Warning: Invalid argument supplied for foreach() in /home/user/www/phpxmail/server/serverfilters.inc on line 117

What went wrong??
PMEmail Poster
Top
bLuTm8
Posted: Dec 3 2004, 07:11 PM
Quote Post


Newbie
*

Group: Members
Posts: 2
Member No.: 1416
Joined: 2-December 04



same error, but a little more background wink.gif

phpxmail 0.70,
xmail 1.20,
apache 2.0.49
mysql 4.0.18
php 4.3.4
kernel 2.65

related links that produces this error: (serverfilters.inc)
http://localhost/phpxmail/main.php?action=...lters&ftype=pre
http://localhost/phpxmail/main.php?action=...ters&ftype=post
http://localhost/phpxmail/main.php?action=...ilters&ftype=in
http://localhost/phpxmail/main.php?action=...lters&ftype=out

QUOTE
Warning: Invalid argument supplied for foreach() in /srv/ftp/hda5/www/htdocs/phpxmail/server/serverfilters.inc on line 121


=> serverfilters.inc:
CODE
121: <?php $i=0; foreach ($vars as $var) { $i++; ?>


ok lets find the bug:

added some code to serverfilters.inc:
CODE
25:
26: $vars = $mail_server->cfgfileget($file);
27:
28: echo "~ ".$vars." ~"<br><br>";
29:


=> produces following output @ filter details:
CODE
~ ~

server filters >>s_admin >>

Warning: Invalid argument supplied for foreach() in /srv/ftp/hda5/www/htdocs/phpxmail/server/serverfilters.inc on line 121...


i think, there's a problem reading the inifile, so $vars always empty

ok let's have a look @ permissions:

.../htdocs/phpxmail (this folder and his subfolders) rwxr-xr-x root root
all .php's and .inc's: rw--r--r root root

/var/MailRoot: rwxr-xr-x root root
/var/MailRoot/*.tab: rw--r--r mailadmin (my xmail superuser) mail
/var/MailRoot/filters: rwxr-xr-x mailadmin mail

where's the error unsure.gif

grz bm8
PMEmail PosterUsers WebsiteYahoo
Top
mancini
Posted: Feb 4 2005, 12:42 PM
Quote Post


Newbie
*

Group: Members
Posts: 24
Member No.: 973
Joined: 7-March 04



you did a good job in tracing it but missed the obvious
however there is a bug in 0.70 that deletes the filter file if you submit a filter with not all fileds filled

you should have checked if the files filters.in.tab , filters.out.tab , filters.post-data.tab and filters.pre-data.tab are existant because it looks like none of them were

i have added a check for incomplete filter entry and added the code to check for the exisstence of the file and warn you about that in the phpxmail 0.8 so you might want to get that
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Webmail Add-ons | Next Newest »

Reply to this topicStart new topic