Home arrow Forum
[SOLVED] bug in others profiles
  Welcome, Guest. Please login or register.
December 02, 2008, 07:49:32 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: [SOLVED] bug in others profiles « previous next »
Pages: [1] Go Down Print
Author Topic: [SOLVED] bug in others profiles  (Read 2414 times)
Gandalf
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 80



View Profile WWW
[SOLVED] bug in others profiles
« on: May 24, 2005, 02:05:40 AM »

Hello,
i recently discovered a bug when viewing others profiles as an administrator,
when you click on "Track User" or "Track Ip" and if you didn't disable SMF admin verification, SMF will ask  you for your password, when you type it, the address will have two option, to Itemid with many ?

so i just make it in new window like the profile one, for this i edited
/administrator/components/com_smf/functions.smf.php

Code:
<search for>
/*unwrapped - admin*/

$pos = strpos($nonsefurl,"action=admin");

if ($pos >= 0 && !($pos === false)) {

$newurl[] = $boardurl."/index.php?".substr($nonsefurl, $pos). "\" target=\"new";

continue;

}
</search for>

<add after>
//by Gandalf
/*unwrapped - trackIP*/

$pos = strpos($nonsefurl,"sa=trackIP");

if ($pos >= 0 && !($pos === false)) {
$pos = strpos($nonsefurl,"action=profile");

$newurl[] = $boardurl."/index.php?".substr($nonsefurl, $pos). "\" target=\"new";

continue;

}


/*unwrapped - trackUser*/

$pos = strpos($nonsefurl,"sa=trackUser");

if ($pos >= 0 && !($pos === false)) {
$pos = strpos($nonsefurl,"action=profile");

$newurl[] = $boardurl."/index.php?".substr($nonsefurl, $pos). "\" target=\"new";

continue;

}

//End by Gandalf

tell me if it works

@cowboy consider to release it as a patch, thx
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: [SOLVED] bug in others profiles
« Reply #1 on: May 31, 2005, 07:53:34 PM »

thanks Gandalf!

I will look into this fix.
Logged
Gandalf
Jr. Member
**

Karma: +0/-0
Offline Offline

Posts: 80



View Profile WWW
Re: [SOLVED] bug in others profiles
« Reply #2 on: May 31, 2005, 07:58:42 PM »

thx
Logged
Pages: [1] Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: [SOLVED] bug in others profiles « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE