Page 1 of 1

FILE smtp.php being changed every time and not working!!

Posted: Mon Mar 04, 2013 2:38 pm
by lombii
Script URL: http://www.fswip.qlix.com.br
Version of script: 2.4.2
Hosting company: TOTVS
URL of phpinfo.php: http://www.fswip.qlix.com.br/phpinfo.php
URL of session_test.php: http://www.fswip.qlix.com.br/session_test.php

What terms did you try when SEARCHING for a solution: fsockopen, @//fs*ck*p*n

Write your message below:

I´ve been using Hesk script for 2 months now, but since yesterday my admin setting´s page
is not opening, and the e-mail notifications stopped been sent!

When i try to answer a ticket, i get the following error:

"Parse error: syntax error, unexpected '{' in /www/f/fswip/inc/mail/smtp.php on line 784"


WHEN i open smtp.php, that line is exactly like that, with this strange symbols:

if(($this->connection=($this->timeout ? @//fs*ck*p*n($ip, $this->socks_host_port, $errno, $error, $this->timeout) : @//fs*ck*p*n($ip, $this->socks_host_port, $errno))))

INSTEAD of the correct line, that is:
if(($this->connection=($this->timeout ? @fsockopen($ip, $this->socks_host_port, $errno, $error, $this->timeout) : @fsockopen($ip, $this->socks_host_port, $errno))))


... THEN i upload my smtp.php backup, and after one answer sucefully sent by e-mail, the next try give me the same error again. THIS IS HAPPENING ONLY WITH ALL LINES THAT HAVE THE FUNCTION fsockopen IN IT!!!

Something is chanching ONLY these lines when the e-mail code is executed.


Any ideas on how to solve this, or a alternative ?


Thanks in advance.

Marcelo Lombi

Re: FILE smtp.php being changed every time and not working!!

Posted: Tue Mar 05, 2013 3:23 pm
by Klemen
This is not something HESK does.

You will need to talk to your hosting company about this - they seems to have a software running that automatically modifies files with "fsockopen" function inside?

Re: FILE smtp.php being changed every time and not working!!

Posted: Tue Mar 05, 2013 4:15 pm
by lombii
This is exactly what is going on Klemen, thank you.

They are modifying it, to prevent from spammers, only for users
with free subscriptions.

I will change my hosting company.

Do you know any good one, which is free ??

Re: FILE smtp.php being changed every time and not working!!

Posted: Tue Mar 05, 2013 8:39 pm
by Klemen
I'm afraid not, I haven't used any free ones for at least 10 years now.

If you are seriously want to do online business you will eventually need to spend a little on a reliable hosting.