PDA

View Full Version : Username in post hack.


nintendo
06-09-2003, 06:10 PM
Is it possible to change this so that more than one word can show up as the username of the person viewing it, for example both (username) and [username] ??

$findwords=array(0 => '[username]');
$replacewords=array(0 => "$bbuserinfo[username]");
$i=1;
while ($var=$DB_site->fetch_array($vars) and $i++) {
if ($var['findword']!='') {
$findwords[$i]=$var['findword'];
$replacewords[$i]=$var['replaceword'];
}
}

Xenon
06-09-2003, 07:16 PM
$findwords=array(0 => '[username]', 1 =>'(username)');
$replacewords=array(0 => "$bbuserinfo[username]", 1 => "$bbuserinfo[username]");
$i=1;
while ($var=$DB_site->fetch_array($vars) and $i++) {
if ($var['findword']!='') {
$findwords[$i]=$var['findword'];
$replacewords[$i]=$var['replaceword'];
}
}