Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Acmlmboard support?.
Acmlm's Board - I2 Archive - Acmlmboard support? - Code not working in editprofile? | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
zebrabeast
Newcomer
Level: 4

Posts: 4/5
EXP: 142
For next: 137

Since: 05-23-05

Since last post: 125 days
Last activity: 64 days
Posted on 06-29-05 04:18 PM Link | Quote
Some hacker got into my board by an SQL hole.. I was told that by putting a code in editprofile, it would stop people getting in and mucking things up. I'm just confused into how to put this code in, as each time I loaded the file it would come up with the white page and an error. Would someone please help me?

I know I have to put in:
$pemail;
$signsep;
$sscheme;
$posttool;
Sandy53215
Acmlm (10:55:31 PM): they're having fun for the first time in so long
Level: 47

Posts: 752/948
EXP: 713034
For next: 53169

Since: 03-15-04
From: Milwaukee, Wisconsin (U.S.A)

Since last post: 1 day
Last activity: 4 hours
Posted on 06-29-05 11:17 PM Link | Quote
Thats because it should be...

$pemail = intval($pemail);
$signsep = intval($signsep);
$sscheme = intval($sscheme);
$posttool = intval($posttool);

Let me know if that helps.
zebrabeast
Newcomer
Level: 4

Posts: 5/5
EXP: 142
For next: 137

Since: 05-23-05

Since last post: 125 days
Last activity: 64 days
Posted on 06-30-05 09:22 AM Link | Quote
It didn't work, I think I'm placing the code in the wrong place. I've put them at the bottom after .php?id=$loguserid", so this is the line I have:

.php?id=$loguserid",$pemail = intval($pemail);$signsep = intval($signsep);$sscheme = intval($sscheme);$posttool = intval($posttool);'view your profile',0) etc.
Sandy53215
Acmlm (10:55:31 PM): they're having fun for the first time in so long
Level: 47

Posts: 753/948
EXP: 713034
For next: 53169

Since: 03-15-04
From: Milwaukee, Wisconsin (U.S.A)

Since last post: 1 day
Last activity: 4 hours
Posted on 06-30-05 09:47 AM Link | Quote
Definitally in the wrong place...

Look for:


if($action=='saveprofile'){
$loguserid = intval($loguserid);
$useranks = intval($useranks);
$sex = intval($sex);
$postsperpage = intval($postsperpage);
$threadsperpage = intval($threadsperpage);
$sscheme = intval($sscheme);
$viewsig = intval($viewsig);
$tlayout = intval($tlayout);
$markfo = intval($markfo);


Replace it with:


if($action=='saveprofile'){
$loguserid = intval($loguserid);
$useranks = intval($useranks);
$sex = intval($sex);
$postsperpage = intval($postsperpage);
$threadsperpage = intval($threadsperpage);
$sscheme = intval($sscheme);
$viewsig = intval($viewsig);
$tlayout = intval($tlayout);
$markfo = intval($markfo);
$pemail = intval($pemail);
$signsep = intval($signsep);
$sscheme = intval($sscheme);
$posttool = intval($posttool);


And get rid of whatever you tried doing with the redirect link.
DarkSlaya
POOOOOOOOOOOORN!
Level: 88

Posts: 3761/4249
EXP: 6409254
For next: 241410

Since: 05-16-04
From: Montreal, Quebec, Canada

Since last post: 8 hours
Last activity: 5 hours
Posted on 07-03-05 04:39 AM Link | Quote
Originally posted by zebrabeast
It didn't work, I think I'm placing the code in the wrong place. I've put them at the bottom after .php?id=$loguserid", so this is the line I have:

.php?id=$loguserid",$pemail = intval($pemail);$signsep = intval($signsep);$sscheme = intval($sscheme);$posttool = intval($posttool);'view your profile',0) etc.


Never.... NEVER try to declare a variable when a function is called (unless I'm mistaken, I'm pretty sure this was the redirection function. I'm not at home, so I can't check)
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Acmlmboard support? - Code not working in editprofile? | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.025 seconds.