On a diffrent approach (using the hot mysql database ) i have found a simple solution to fix it all. (we overrule some shiznit )
Q: How did i do it?
A: Simple wiseguy, yust with my fingers and a keyboard
Q: Can i modify the source?
A: It was 2 minutes work, so why shouldnt you
Q: Can i be your girlfriend?
A: No im sorry, i dont do E-dating, maybe next time
Enough bullsh!t, here is the source, with some explanation and guide lines
find: pfcuserconfig and scroll down to
$this->nickid = session_id();
// user parameters are cached in sessions
$this->_getParam("nick");
(somewhere around line 20-30)
paste this code under that line
- Code: Select all
$user = "";//username
$pass = "";//password
$host = "";//ussaly localhost
$db = "";//database
mysql_connect($host,$user,$pass)or die ("error"); // the connection
mysql_select_db($db); // select your db
$select = mysql_query("SELECT the_user_name FROM a_table WHERE some_session_ip = '".$_SERVER['REMOTE_ADDR']."'"); // select the user
$name = mysql_fetch_assoc($select);
$nick = $name['player']; // now the username is located in $nick
1 line below your copied/pasted code you see this line
if (!isset($this->nick)) $this->_setParam("nick",""); // setup a blank nick if it is not yet in session
change that into:
- Code: Select all
if (!isset($this->nick)) $this->_setParam("nick",$nick); // setup a blank nick if it is not yet in session
Now you might want to run some extra checks, so do it, no dont wait, why are you still reading?
aaarghhhhhh...
Have a nice day