
ALTER TABLE pw_members ADD petnames VARCHAR(30) NOT NULL AFTER username ;

ajax.php
profile.php
read.php
require/postreply.php
require/postfunc.php
thread.php
global.php
require/userglobal.php



require/postnew.php



$lastposter = $anonymous ? $db_anonymousname : $windid;

@

        if(!$anonymous){
                    $lastposter = $windname ? $windname : $windid ;
        }else{
		    $lastposter = $anonymous ? $db_anonymousname : $windid;
        }









require/userglobal.php



function addonlinefile($offset,$uid)
{

->


	global $windid,$groupid,$lastvisit,$timestamp,$onlineip,$db_onlinetime,$fid,$tid,$wind_in,$tdtime,$db_olsize,$db_today;

@

	global $windid,$windname,$groupid,$lastvisit,$timestamp,$onlineip,$db_onlinetime,$fid,$tid,$wind_in,$tdtime,$db_olsize,$db_today;




	if (strlen($fid)>4)$fidwt='';else $fidwt=$fid;

|

        $windid = $windname ? $windname : $windid ;








global.php

	$windid	  = $winddb['username'];
@
        $windname = $winddb['petname'];


$detail = $db->get_one("SELECT m.uid,m.username,



@


$detail = $db->get_one("SELECT m.uid,m.username,m.petname,



thread.php


	if($thread['anonymous'] && !$ajaxcheck && !$SYSTEM['viewhide'] && $thread['authorid']!=$winduid){
		$thread['author']=$db_anonymousname;
		$thread['authorid']=0;
	}

@
	if(!$thread['anonymous']){
            $pet = $db->get_one("SELECT petname FROM pw_members WHERE uid='$thread[authorid]'");
            $thread['author'] =  $pet[petname] ? $pet[petname] : $thread['author'] ;
	}






require/postfunc.php


global $db,$R_url,$db_htmdir,$foruminfo,$tid,$windid,$timestamp,$atc_title,$t_date,$replytitle;

@

global $db,$R_url,$db_htmdir,$foruminfo,$tid,$windname,$windid,$timestamp,$atc_title,$t_date,$replytitle;


Lq


$author   = $windid;

`ѱ

//$author   = $windid;

$author   =  $windname ? $windname : $windid;





			//$author  = $rt['author'];
`ѱ@

                        $author   =  $windname ? $windname : $rt['author'];














require/postreply.php

	$S_sql = ',m.groupid,tm.ifsign,tm.content';

@
	$S_sql = ',m.petname,m.groupid,tm.ifsign,tm.content';



$atcarray = $db->get_one("SELECT p.author,p.subject,p.ifsign,p.postdate,p.content,p.ifshield,p.anonymous,m.groupid

@
			$atcarray = $db->get_one("SELECT p.author,p.subject,p.ifsign,p.postdate,p.content,p.ifshield,p.anonymous,m.groupid,m.petname


		$old_author=$atcarray['anonymous'] ? $db_anonymousname : $atcarray['author'];
@

                if(!$atcarray['anonymous']){
                    $old_author=$atcarray['petname'] ? $atcarray['petname'] : $atcarray['author'];//ʺ
                }else{
		    $old_author=$atcarray['anonymous'] ? $db_anonymousname : $atcarray['author'];
                }



$atc_author = $anonymous ? $db_anonymousname : $windid;


@

                if(!$anonymous){
                    $atc_author = $windname ? $windname : $windid ;
                }else{
		    $atc_author = $anonymous ? $db_anonymousname : $windid;
                }











read.php


$S_sql=',tm.*,m.uid,m.username,m.gender

@


$S_sql=',tm.*,m.uid,m.username,m.petname,m.gender




$query = $db->query("SELECT t.*,m.uid,m.username,m.gender

@

$query = $db->query("SELECT t.*,m.uid,m.username,m.petname,m.gender





$tpc_author			= $read['author'];
@
$read[author]= $read[petname] ? $read[petname] : $read[author];//petname












profile.php


	require_once(PrintEot('showuserdb'));footer();

@


        //ʺ
        if(in_array($groupid,array('3','4','5')) && $userdb[petname]){
               $userdb[username] ="$userdb[username](ʺ:$userdb[petname])";
        }else{
               $userdb[username]= $userdb[petname] ? $userdb[petname] : $userdb[username];
        }









ajax.php


$S_sql = ',tm.ifsign,tm.content,m.groupid';


@


$S_sql = ',tm.ifsign,tm.content,m.groupid,m.petname';





$atcarray = $db->get_one("SELECT p.author,p.subject,p.postdate,p.content,p.ifshield,p.anonymous,m.groupid

@

$atcarray = $db->get_one("SELECT p.author,p.subject,p.postdate,p.content,p.ifshield,p.anonymous,m.groupid,m.petname




	$old_author = $atcarray['anonymous'] ? $db_anonymousname : $atcarray['author'];

@


	if(!$atcarray['anonymous']){
     		$old_author = $atcarray[petname] ? $atcarray[petname] : $atcarray['author'];//ʺ
	}else{
     		$old_author = $atcarray['anonymous'] ? $db_anonymousname : $atcarray['author'];
	}


