68. File Comparison Report

Produced on Wed Jun 18 08:02:06 2008 UTC. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

68.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.1.1\templates\base\scripts BxBaseProfileView.php Wed Apr 23 09:41:28 2008 UTC
2 Dolphin-v.6.1.2\templates\base\scripts BxBaseProfileView.php Tue Jun 10 05:45:25 2008 UTC

68.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 5 1472
Changed 0 0
Inserted 4 6
Removed 0 0

68.3 Comparison options

Whitespace All differences in whitespace within lines are ignored
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

68.4 Active regular expressions

No regular expressions were active.

68.5 Comparison detail

1   <?   1   <?
2     2  
3   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . "BxDolPa geView.php " );   3   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . "BxDolPa geView.php " );
4     4  
5   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolPr ofileView. php' );   5   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolPr ofileView. php' );
6   require_on ce( BX_DIR ECTORY_PAT H_ROOT . ' profilePho tos.php' ) ;   6   require_on ce( BX_DIR ECTORY_PAT H_ROOT . ' profilePho tos.php' ) ;
7     7  
8   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolCl assifieds. php' );   8   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolCl assifieds. php' );
9   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolEv ents.php'  );   9   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolEv ents.php'  );
10   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolBl ogs.php' ) ;   10   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolBl ogs.php' ) ;
11   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolGr oups.php'  );   11   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolGr oups.php'  );
12   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolSh aredMedia. php' );   12   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolSh aredMedia. php' );
13     13  
14   class BxDo lProfilePa geView ext ends BxDol PageView {   14   class BxDo lProfilePa geView ext ends BxDol PageView {
15       var $o ProfileV;   15       var $o ProfileV;
16          16       
17       var $a ConfSite;   17       var $a ConfSite;
18       var $a ConfDir;   18       var $a ConfDir;
19     19  
20       functi on BxDolPr ofilePageV iew(&$oPr,  &$aSite,  &$aDir) {   20       functi on BxDolPr ofilePageV iew(&$oPr,  &$aSite,  &$aDir) {
21           $t his->oProf ileV = &$o Pr;   21           $t his->oProf ileV = &$o Pr;
22           $t his->aConf Site = $aS ite;   22           $t his->aConf Site = $aS ite;
23           $t his->aConf Dir  = $aD ir;   23           $t his->aConf Dir  = $aD ir;
24           pa rent::BxDo lPageView( 'profile') ;   24           pa rent::BxDo lPageView( 'profile') ;
25       }   25       }
26     26  
27       functi on getBloc kCode_Acti onsMenu()  {   27       functi on getBloc kCode_Acti onsMenu()  {
28           re turn $this ->oProfile V->showBlo ckActionsM enu('', tr ue);   28           re turn $this ->oProfile V->showBlo ckActionsM enu('', tr ue);
29       }   29       }
30       functi on getBloc kCode_Clas sifieds()  {   30       functi on getBloc kCode_Clas sifieds()  {
31           re turn $this ->oProfile V->showBlo ckClassifi eds('', tr ue);   31           re turn $this ->oProfile V->showBlo ckClassifi eds('', tr ue);
32       }   32       }
33       functi on getBloc kCode_Even ts() {   33       functi on getBloc kCode_Even ts() {
34           re turn $this ->oProfile V->showBlo ckEvents(' ', true);   34           re turn $this ->oProfile V->showBlo ckEvents(' ', true);
35       }   35       }
36       functi on getBloc kCode_Grou ps() {   36       functi on getBloc kCode_Grou ps() {
37           re turn $this ->oProfile V->showBlo ckGroups(' ', true);   37           re turn $this ->oProfile V->showBlo ckGroups(' ', true);
38       }   38       }
39       functi on getBloc kCode_Prof ilePolls()  {   39       functi on getBloc kCode_Prof ilePolls()  {
40           re turn $this ->oProfile V->showBlo ckProfileP olls('', t rue);   40           re turn $this ->oProfile V->showBlo ckProfileP olls('', t rue);
41       }   41       }
42       functi on getBloc kCode_Shar eMusic() {   42       functi on getBloc kCode_Shar eMusic() {
43           $a Mem = arra y('ID'=>$t his->_iPro fileID);   43           $a Mem = arra y('ID'=>$t his->_iPro fileID);
44           $o New = new  BxDolShare dMedia('mu sic', $thi s->aConfSi te, $this- >aConfDir,  $aMem);   44           $o New = new  BxDolShare dMedia('mu sic', $thi s->aConfSi te, $this- >aConfDir,  $aMem);
45           $a Res = $oNe w->getBloc kCode_Shar edMedia($t his->oProf ileV->_iPr ofileID);   45           $a Res = $oNe w->getBloc kCode_Shar edMedia($t his->oProf ileV->_iPr ofileID);
46     46  
47           re turn $aRes ;   47           re turn $aRes ;
48       }   48       }
49       functi on getBloc kCode_Shar ePhotos()  {   49       functi on getBloc kCode_Shar ePhotos()  {
50           $a Mem = arra y('ID'=>$t his->_iPro fileID);   50           $a Mem = arra y('ID'=>$t his->_iPro fileID);
51           $o New = new  BxDolShare dMedia('ph oto', $thi s->aConfSi te, $this- >aConfDir,  $aMem);   51           $o New = new  BxDolShare dMedia('ph oto', $thi s->aConfSi te, $this- >aConfDir,  $aMem);
52           $a Res = $oNe w->getBloc kCode_Shar edMedia($t his->oProf ileV->_iPr ofileID);   52           $a Res = $oNe w->getBloc kCode_Shar edMedia($t his->oProf ileV->_iPr ofileID);
53              53           
54           re turn $aRes ;   54           re turn $aRes ;
55       }   55       }
56       functi on getBloc kCode_Shar eVideos()  {   56       functi on getBloc kCode_Shar eVideos()  {
57           $a Mem = arra y('ID'=>$t his->_iPro fileID);   57           $a Mem = arra y('ID'=>$t his->_iPro fileID);
58           $o New = new  BxDolShare dMedia('vi deo', $thi s->aConfSi te, $this- >aConfDir,  $aMem);   58           $o New = new  BxDolShare dMedia('vi deo', $thi s->aConfSi te, $this- >aConfDir,  $aMem);
59           $a Res = $oNe w->getBloc kCode_Shar edMedia($t his->oProf ileV->_iPr ofileID);   59           $a Res = $oNe w->getBloc kCode_Shar edMedia($t his->oProf ileV->_iPr ofileID);
60              60           
61           re turn $aRes ;   61           re turn $aRes ;
62       }   62       }
63       functi on getBloc kCode_PFBl ock( $iBlo ckID, $sCo ntent ) {   63       functi on getBloc kCode_PFBl ock( $iBlo ckID, $sCo ntent ) {
64           re turn $this ->oProfile V->showBlo ckPFBlock( '', $sCont ent, true) ;   64           re turn $this ->oProfile V->showBlo ckPFBlock( '', $sCont ent, true) ;
65       }   65       }
66       functi on getBloc kCode_Rate Profile()  {   66       functi on getBloc kCode_Rate Profile()  {
67           re turn $this ->oProfile V->showBlo ckRateProf ile('', tr ue);   67           re turn $this ->oProfile V->showBlo ckRateProf ile('', tr ue);
68       }   68       }
69       functi on getBloc kCode_Blog () {   69       functi on getBloc kCode_Blog () {
70           re turn $this ->oProfile V->showBlo ckProfileB log('', tr ue);   70           re turn $this ->oProfile V->showBlo ckProfileB log('', tr ue);
71       }   71       }
72       functi on getBloc kCode_Frie nds() {   72       functi on getBloc kCode_Frie nds() {
73           re turn $this ->oProfile V->showBlo ckFriends( '', true);   73           re turn $this ->oProfile V->showBlo ckFriends( '', true);
74       }   74       }
75       functi on getBloc kCode_Mutu alFriends( ) {   75       functi on getBloc kCode_Mutu alFriends( ) {
76           re turn $this ->oProfile V->showBlo ckMutualFr iends('',  true);   76           re turn $this ->oProfile V->showBlo ckMutualFr iends('',  true);
77       }   77       }
78       functi on getBloc kCode_Mp3( ) {   78       functi on getBloc kCode_Mp3( ) {
79           re turn $this ->oProfile V->showBlo ckMp3('',  true);   79           re turn $this ->oProfile V->showBlo ckMp3('',  true);
80       }   80       }
81     81  
82       functi on getBloc kCode_Tope st($iColum n) {   82       functi on getBloc kCode_Tope st($iColum n) {
83           re turn '<div  class="pa ge_block_c ontainer"> ' . $this- >oProfileV ->showBloc kPhoto($iC olumn, tru e) . '</di v>';   83           re turn '<div  class="pa ge_block_c ontainer"> ' . $this- >oProfileV ->showBloc kPhoto($iC olumn, tru e) . '</di v>';
84       }   84       }
85     85  
86       functi on getBloc kCode_Comm ents() {   86       functi on getBloc kCode_Comm ents() {
87           re turn $this ->oProfile V->showBlo ckComments ('', true) ;   87           re turn $this ->oProfile V->showBlo ckComments ('', true) ;
88       }   88       }
89     89  
90       functi on getBloc kCode_Cmts  () {   90       functi on getBloc kCode_Cmts  () {
91           re turn $this ->oProfile V->showBlo ckCmts();            91           re turn $this ->oProfile V->showBlo ckCmts();         
92       }   92       }
93   }   93   }
94     94  
95   class BxBa seProfileV iew extend s BxDolPro fileView   95   class BxBa seProfileV iew extend s BxDolPro fileView
96   {   96   {
97       functi on BxBaseP rofileView ( $ID )   97       functi on BxBaseP rofileView ( $ID )
98       {   98       {
99           $t his -> aMu tualFriend s = array( );   99           $t his -> aMu tualFriend s = array( );
100           Bx DolProfile View::BxDo lProfileVi ew( $ID );   100           Bx DolProfile View::BxDo lProfileVi ew( $ID );
101           $t his -> Fin dMutualFri ends();   101           $t his -> Fin dMutualFri ends();
102       }   102       }
103          103       
104       functi on defineT imeInterva l ($iTime)   104       functi on defineT imeInterva l ($iTime)
105       {   105       {
106           $i Time = tim e() - $iTi me;   106           $i Time = tim e() - $iTi me;
107           if  ( $iTime  < 60 )   107           if  ( $iTime  < 60 )
108                $sCode =  "$iTime " ._t("_seco nds ago");   108                $sCode =  "$iTime " ._t("_seco nds ago");
109           el se   109           el se
110           {   110           {
111                $iTime =  round( $i Time / 60  ); // minu tes   111                $iTime =  round( $i Time / 60  ); // minu tes
112                if ( $iT ime < 60 )   112                if ( $iT ime < 60 )
113                    $sCo de = "$iTi me "._t("_ minutes ag o");   113                    $sCo de = "$iTi me "._t("_ minutes ag o");
114                else   114                else
115                {   115                {
116                    $iTi me = round ( $iTime /  60 ); //h ours   116                    $iTi me = round ( $iTime /  60 ); //h ours
117                    if (  $iTime <  24 )   117                    if (  $iTime <  24 )
118                         $sCode = " $iTime "._ t("_hours  ago");   118                         $sCode = " $iTime "._ t("_hours  ago");
119                    else   119                    else
120                    {   120                    {
121                         $iTime = r ound( $iTi me / 24 );  //days   121                         $iTime = r ound( $iTi me / 24 );  //days
122                         $sCode = " $iTime "._ t("_days a go");   122                         $sCode = " $iTime "._ t("_days a go");
123                    }   123                    }
124                }   124                }
125           }   125           }
126           re turn $sCod e;   126           re turn $sCod e;
127       }   127       }
128     128  
129       functi on genProf ileCSS( $I D )   129       functi on genProf ileCSS( $I D )
130       {   130       {
131           gl obal $site ;   131           gl obal $site ;
132     132  
133           $r et = '';   133           $r et = '';
134     134  
135           $q uery = "SE LECT * FRO M `Profile sSettings`  WHERE `ID Member` =  '$ID'";   135           $q uery = "SE LECT * FRO M `Profile sSettings`  WHERE `ID Member` =  '$ID'";
136           $a rr = db_ar r( $query  );   136           $a rr = db_ar r( $query  );
137           if  ( $arr['I DMember']  )   137           if  ( $arr['I DMember']  )
138           $r et =  "<st yle type=\ "text/css\ ">   138           $r et =  "<st yle type=\ "text/css\ ">
139                    body   139                    body
140                    {   140                    {
141                         background -image: ur l( {$site[ 'profileBa ckground'] }{$arr['Ba ckgroundFi lename']}) ;   141                         background -image: ur l( {$site[ 'profileBa ckground'] }{$arr['Ba ckgroundFi lename']}) ;
142                         background -color: {$ arr['Backg roundColor ']};   142                         background -color: {$ arr['Backg roundColor ']};
143                         background -repeat:re peat;   143                         background -repeat:re peat;
144                    }   144                    }
145                    div# right_colu mn_content   145                    div# right_colu mn_content
146                    {   146                    {
147                         color: {$a rr['FontCo lor']};   147                         color: {$a rr['FontCo lor']};
148                         font-size:  {$arr['Fo ntSize']}p x;   148                         font-size:  {$arr['Fo ntSize']}p x;
149                         font-famil y: {$arr[' FontFamily ']};   149                         font-famil y: {$arr[' FontFamily ']};
150                    }   150                    }
151                    div# divUnderCu stomizatio n   151                    div# divUnderCu stomizatio n
152                    {   152                    {
153                         color: {$a rr['FontCo lor']};   153                         color: {$a rr['FontCo lor']};
154                         font-size:  {$arr['Fo ntSize']}p x;   154                         font-size:  {$arr['Fo ntSize']}p x;
155                         font-famil y: {$arr[' FontFamily ']};   155                         font-famil y: {$arr[' FontFamily ']};
156                    }   156                    }
157                    </st yle>";   157                    </st yle>";
158     158  
159           re turn $ret;   159           re turn $ret;
160       }   160       }
161          161       
162       functi on genColu mns($sOldS tyle = fal se) {   162       functi on genColu mns($sOldS tyle = fal se) {
163           ob _start();   163           ob _start();
164     164  
165           ?>   165           ?>
166           <d iv id="thi n_column">   166           <d iv id="thi n_column">
167                <? $this  -> showCo lumnBlocks ( 1, $sOld Style ); ? >   167                <? $this  -> showCo lumnBlocks ( 1, $sOld Style ); ? >
168           </ div>   168           </ div>
169     169  
170           <d iv id="thi ck_column" >   170           <d iv id="thi ck_column" >
171                <? $this  -> showCo lumnBlocks ( 2, $sOld Style ); ? >   171                <? $this  -> showCo lumnBlocks ( 2, $sOld Style ); ? >
172           </ div>   172           </ div>
173           <?   173           <?
174     174  
175           re turn ob_ge t_clean();   175           re turn ob_ge t_clean();
176       }   176       }
177          177       
178       functi on showCol umnBlocks(  $column,  $sOldStyle  = false )  {   178       functi on showCol umnBlocks(  $column,  $sOldStyle  = false )  {
179           gl obal $logg ed;   179           gl obal $logg ed;
180           if ( $logged[ 'member']  )   180           if ( $logged[ 'member']  )
181                $sVisibl e = 'memb' ;   181                $sVisibl e = 'memb' ;
182           el se   182           el se
183                $sVisibl e = 'non';   183                $sVisibl e = 'non';
184     184  
185           $t his -> sho wBlockPhot o( $column  );   185           $t his -> sho wBlockPhot o( $column  );
186           // return;   186           // return;
187           $s AddSQL = ( $sOldStyle  == true)  ? " AND `F unc`='PFBl ock' " : ' ';   187           $s AddSQL = ( $sOldStyle  == true)  ? " AND `F unc`='PFBl ock' " : ' ';
188           $r Blocks = d b_res( "SE LECT * FRO M `PageCom pose` WHER E `Page` =  'profile'  AND `Colu mn`=$colum n AND FIND _IN_SET( ' $sVisible' , `Visible ` ) {$sAdd SQL} ORDER  BY `Order `" );   188           $r Blocks = d b_res( "SE LECT * FRO M `PageCom pose` WHER E `Page` =  'profile'  AND `Colu mn`=$colum n AND FIND _IN_SET( ' $sVisible' , `Visible ` ) {$sAdd SQL} ORDER  BY `Order `" );
189           wh ile( $aBlo ck = mysql _fetch_ass oc( $rBloc ks ) ) {   189           wh ile( $aBlo ck = mysql _fetch_ass oc( $rBloc ks ) ) {
190                if ($aBl ock['Func' ] == 'Shar eMusic' ||  $aBlock[' Func'] ==  'ShareVide os' || $aB lock['Func '] == 'Sha rePhotos')   190                if ($aBl ock['Func' ] == 'Shar eMusic' ||  $aBlock[' Func'] ==  'ShareVide os' || $aB lock['Func '] == 'Sha rePhotos')
191                    cont inue;   191                    cont inue;
192                $func =  'showBlock ' . $aBloc k['Func'];   192                $func =  'showBlock ' . $aBloc k['Func'];
193                $this ->  $func( $a Block['Cap tion'], $a Block['Con tent'] );   193                $this ->  $func( $a Block['Cap tion'], $a Block['Con tent'] );
194           }   194           }
195       }   195       }
196     196  
197       functi on showBlo ckPhoto( $ iCol, $bNo DB = false  )   197       functi on showBlo ckPhoto( $ iCol, $bNo DB = false  )
198       {   198       {
    199           $i PID = 0;
199           if ( $iCol ==  1 ) {   200           if ( $iCol ==  1 ) {
200                $iPID =  $this -> _ iProfileID ;   201                $iPID =  $this -> _ iProfileID ;
201                $sNickNa me = $this  -> _aProf ile['NickN ame'];   202                $sNickNa me = $this  -> _aProf ile['NickN ame'];
202           }  elseif( $i Col == 2 )  {   203           }  elseif( $i Col == 2 )  {
203                if( !$th is -> _aPr ofile['Cou ple'] )   204                if( !$th is -> _aPr ofile['Cou ple'] )
204                    retu rn;   205                    retu rn;
205     206  
206                $iPID =  $this -> _ iProfileID ;   207                $iPID =  $this -> _ iProfileID ;
207                //$iPID  = (int)$th is -> _aPr ofile['Cou ple'];   208                //$iPID  = (int)$th is -> _aPr ofile['Cou ple'];
208                $sNickNa me = $this  -> _aProf ile['NickN ame'] . '( 2)';   209                $sNickNa me = $this  -> _aProf ile['NickN ame'] . '( 2)';
209           }   210           }
210     211  
    212           if  ($iPID >  0) {
211           $o Photos = n ew Profile Photos( $i PID );   213                $oPhotos  = new Pro filePhotos ( $iPID );
212           $o Photos ->  getActiveM ediaArray( );   214                $oPhotos  -> getAct iveMediaAr ray();
213     215  
214           if ( $this ->  _aProfile ['Couple']  && $iCol  != 1 ) {   216                if( $thi s -> _aPro file['Coup le'] && $i Col != 1 )  {
215                $aCouple Info = get ProfileInf o($this->_ aProfile[' Couple']);   217                    $aCo upleInfo =  getProfil eInfo($thi s->_aProfi le['Couple ']);
216                if ($aCo upleInfo[' Picture']= =0) {   218                    if ( $aCoupleIn fo['Pictur e']==0) {
217                    $oPh otos = new  ProfilePh otos( $thi s->_aProfi le['Couple '] );   219                         $oPhotos =  new Profi lePhotos(  $this->_aP rofile['Co uple'] );
218                    $oPh otos -> ge tActiveMed iaArray();   220                         $oPhotos - > getActiv eMediaArra y();
219                }   221                    }
220                $ret = $ oPhotos ->  getMediaB lock($aCou pleInfo['P rimPhoto'] , true);   222                    $ret  = $oPhoto s -> getMe diaBlock($ aCoupleInf o['PrimPho to'], true );
221           }  else {   223                } else {
222                $ret = $ oPhotos ->  getMediaB lock(0);   224                    $ret  = $oPhoto s -> getMe diaBlock(0 );
223           }   225                }
224     226  
225           if  ($bNoDB)  {   227                if ($bNo DB) {
226                return D esignBoxCo ntent( _t(  '_PROFILE  Photos',  $sNickName  ), $ret,  1 );   228                    retu rn DesignB oxContent(  _t( '_PRO FILE Photo s', $sNick Name ), $r et, 1 );
227           }  else {   229                } else {
228                echo Des ignBoxCont ent( _t( ' _PROFILE P hotos', $s NickName ) , $ret, 1  );   230                    echo  DesignBox Content( _ t( '_PROFI LE Photos' , $sNickNa me ), $ret , 1 );
229           }   231                }
230       }   232           }
    233       }
231     234  
232     235  
233       functi on showBlo ckRSS( $sC aption, $s Content, $ bNoDB = fa lse )   236       functi on showBlo ckRSS( $sC aption, $s Content, $ bNoDB = fa lse )
234       {   237       {
235           gl obal $p_ar r, $site;   238           gl obal $p_ar r, $site;
236     239  
237           li st( $sUrl,  $iNum ) =  explode(  '#', $sCon tent );   240           li st( $sUrl,  $iNum ) =  explode(  '#', $sCon tent );
238           $i Num = (int )$iNum;   241           $i Num = (int )$iNum;
239              242           
240           $s Url = str_ replace(ar ray('{Site Url}', '{N ickName}') ,array($si te['url'],  $p_arr['N ickName']) , $sUrl);   243           $s Url = str_ replace(ar ray('{Site Url}', '{N ickName}') ,array($si te['url'],  $p_arr['N ickName']) , $sUrl);
241     244  
242           $r et = genRS SHtmlOut(  $sUrl, $iN um );   245           $r et = genRS SHtmlOut(  $sUrl, $iN um );
243              246           
244           if  ($bNoDB)  {   247           if  ($bNoDB)  {
245                return $ ret;   248                return $ ret;
246           }  else {   249           }  else {
247                echo Des ignBoxCont ent( _t($s Caption),  $ret, 1 );   250                echo Des ignBoxCont ent( _t($s Caption),  $ret, 1 );
248           }   251           }
249       }   252       }
250          253       
251       functi on showBlo ckEcho( $s Caption, $ sContent )   254       functi on showBlo ckEcho( $s Caption, $ sContent )
252       {   255       {
253           ec ho DesignB oxContent(  _t($sCapt ion), $sCo ntent, 1 ) ;   256           ec ho DesignB oxContent(  _t($sCapt ion), $sCo ntent, 1 ) ;
254       }   257       }
255          258       
256       functi on showBlo ckPFBlock(  $sCaption , $sConten t, $bNoDB  = false )  {   259       functi on showBlo ckPFBlock(  $sCaption , $sConten t, $bNoDB  = false )  {
257           $i BlockID =  (int)$sCon tent;   260           $i BlockID =  (int)$sCon tent;
258           if ( !isset(  $this -> a PFBlocks[$ iBlockID]  ) or empty ( $this ->  aPFBlocks [$iBlockID ]['Items']  ) )   261           if ( !isset(  $this -> a PFBlocks[$ iBlockID]  ) or empty ( $this ->  aPFBlocks [$iBlockID ]['Items']  ) )
259                return ' ';   262                return ' ';
260           $a Items = $t his -> aPF Blocks[$iB lockID]['I tems'];   263           $a Items = $t his -> aPF Blocks[$iB lockID]['I tems'];
261     264  
262           $s Ret = '<ta ble class= "profile_i nfo_block"  cellspaci ng="0" cel lpadding=" 1">';   265           $s Ret = '<ta ble class= "profile_i nfo_block"  cellspaci ng="0" cel lpadding=" 1">';
263              266           
264           fo reach( $aI tems as $a Item ) {   267           fo reach( $aI tems as $a Item ) {
265                $sValue1  = $this - > oPF -> g etViewable Value( $aI tem, $this  -> _aProf ile[ $aIte m['Name']  ] );   268                $sValue1  = $this - > oPF -> g etViewable Value( $aI tem, $this  -> _aProf ile[ $aIte m['Name']  ] );
266                if( !$sV alue1 ) // if empty,  do not dra w   269                if( !$sV alue1 ) // if empty,  do not dra w
267                    cont inue;   270                    cont inue;
268                   271                
269                $sRet .=  '<tr>';   272                $sRet .=  '<tr>';
270                $sRet .=          ' <td class= "profile_i nfo_label" >' . htmls pecialchar s( _t( $aI tem['Capti on'] ) ) .  ':</td>';   273                $sRet .=          ' <td class= "profile_i nfo_label" >' . htmls pecialchar s( _t( $aI tem['Capti on'] ) ) .  ':</td>';
271                   274                
272                if( $thi s -> bCoup le ) {   275                if( $thi s -> bCoup le ) {
273                    if(  in_array(  $aItem['Na me'], $thi s -> aCoup leMutualIt ems ) ) {   276                    if(  in_array(  $aItem['Na me'], $thi s -> aCoup leMutualIt ems ) ) {
274                         $sRet .= ' <td class= "profile_i nfo_value"  colspan=" 2">' . $sV alue1 . '< /td>';   277                         $sRet .= ' <td class= "profile_i nfo_value"  colspan=" 2">' . $sV alue1 . '< /td>';
275                    } el se {   278                    } el se {
276                         $sValue2 =  $this ->  oPF -> get ViewableVa lue( $aIte m, $this - > _aCouple [ $aItem[' Name'] ] ) ;   279                         $sValue2 =  $this ->  oPF -> get ViewableVa lue( $aIte m, $this - > _aCouple [ $aItem[' Name'] ] ) ;
277                           280                        
278                         $sRet .= ' <td class= "profile_i nfo_value1 ">' . $sVa lue1 . '</ td>';   281                         $sRet .= ' <td class= "profile_i nfo_value1 ">' . $sVa lue1 . '</ td>';
279                         $sRet .= ' <td class= "profile_i nfo_value2 ">' . $sVa lue2 . '</ td>';   282                         $sRet .= ' <td class= "profile_i nfo_value2 ">' . $sVa lue2 . '</ td>';
280                    }   283                    }
281                } else {   284                } else {
282                    $sRe t .=     ' <td class= "profile_i nfo_value"  >' . $sVa lue1 . '</ td>';   285                    $sRe t .=     ' <td class= "profile_i nfo_value"  >' . $sVa lue1 . '</ td>';
283                }   286                }
284                   287                
285                $sRet .=  '</tr>';   288                $sRet .=  '</tr>';
286           }   289           }
287              290           
288           $s Ret .= '</ table>';   291           $s Ret .= '</ table>';
289              292           
290           if  ($bNoDB)  {   293           if  ($bNoDB)  {
291                return $ sRet;   294                return $ sRet;
292           }  else {   295           }  else {
293                echo Des ignBoxCont ent( _t($s Caption),  $sRet, 1 ) ;   296                echo Des ignBoxCont ent( _t($s Caption),  $sRet, 1 ) ;
294           }   297           }
295       }   298       }
296          299       
297       functi on showBlo ckProfileP olls( $sCa ption, $bN oDB = fals e ) {   300       functi on showBlo ckProfileP olls( $sCa ption, $bN oDB = fals e ) {
298           $s qlPolls =  "SELECT `i d_poll` FR OM `Profil esPolls` W HERE `id_p rofile` =  {$this ->  _iProfileI D} AND `po ll_status`  = 'active ' AND `pol l_approval `";   301           $s qlPolls =  "SELECT `i d_poll` FR OM `Profil esPolls` W HERE `id_p rofile` =  {$this ->  _iProfileI D} AND `po ll_status`  = 'active ' AND `pol l_approval `";
299           $r Polls = db _res( $sql Polls );   302           $r Polls = db _res( $sql Polls );
300     303  
301           if ( !mysql_n um_rows( $ rPolls ) )   304           if ( !mysql_n um_rows( $ rPolls ) )
302                return ;   305                return ;
303     306  
304           $r et = '<div  id="profi le_poll_wr ap">';   307           $r et = '<div  id="profi le_poll_wr ap">';
305           wh ile( $aPol l = mysql_ fetch_asso c( $rPolls  ) ) {   308           wh ile( $aPol l = mysql_ fetch_asso c( $rPolls  ) ) {
306                $ret .=  '<div clas s="blog_wr apper_n" s tyle="widt h:80%;bord er:1px das hed #CCCCC C;">' . Sh owPoll( $a Poll['id_p oll'] );   309                $ret .=  '<div clas s="blog_wr apper_n" s tyle="widt h:80%;bord er:1px das hed #CCCCC C;">' . Sh owPoll( $a Poll['id_p oll'] );
307                $ret .=  '</div><di v class="c lear_both" ></div>';   310                $ret .=  '</div><di v class="c lear_both" ></div>';
308           }   311           }
309           $r et .= '</d iv>';   312           $r et .= '</d iv>';
310     313  
311           $s how_hide =  $this ->  genShowHid eItem( 'pr ofile_poll _wrap' );   314           $s how_hide =  $this ->  genShowHid eItem( 'pr ofile_poll _wrap' );
312     315  
313           if  ($bNoDB)  {   316           if  ($bNoDB)  {
314                return $ ret;   317                return $ ret;
315           }  else {   318           }  else {
316                echo Des ignBoxCont ent( _t( $ sCaption ) , $ret, 1,  $show_hid e );   319                echo Des ignBoxCont ent( _t( $ sCaption ) , $ret, 1,  $show_hid e );
317           }   320           }
318       }   321       }
319          322       
320       functi on genShow HideItem(  $wrapperID , $default  = '' )   323       functi on genShow HideItem(  $wrapperID , $default  = '' )
321       {   324       {
322           if ( !$defaul t )   325           if ( !$defaul t )
323                $default  = _t( '_H ide' );   326                $default  = _t( '_H ide' );
324              327           
325           re turn '   328           re turn '
326           <d iv class=" caption_it em">   329           <d iv class=" caption_it em">
327                <a href= "javascrip t:void(0); "   330                <a href= "javascrip t:void(0); "
328                  onclic k="el = do cument.get ElementByI d(\'' . $w rapperID .  '\'); if(  el.style. display ==  \'none\'  ) {el.styl e.display  = \'block\ '; this.in nerHTML =  \'' . _t(  '_Hide' )  . '\';} el se {el.sty le.display  = \'none\ '; this.in nerHTML =  \'' . _t(  '_Show' )  . '\';}"   331                  onclic k="el = do cument.get ElementByI d(\'' . $w rapperID .  '\'); if(  el.style. display ==  \'none\'  ) {el.styl e.display  = \'block\ '; this.in nerHTML =  \'' . _t(  '_Hide' )  . '\';} el se {el.sty le.display  = \'none\ '; this.in nerHTML =  \'' . _t(  '_Show' )  . '\';}"
329                  >' . $ default .  '</a>   332                  >' . $ default .  '</a>
330           </ div>';   333           </ div>';
331       }   334       }
332          335       
333       functi on showBlo ckActionsM enu( $sCap tion, $bNo DB = false  )   336       functi on showBlo ckActionsM enu( $sCap tion, $bNo DB = false  )
334       {   337       {
335           gl obal $logg ed;   338           gl obal $logg ed;
336           gl obal $p_ar r;   339           gl obal $p_ar r;
337              340           
338           $o TemplMenu  = new BxTe mplMenu( $ this -> oT emplConfig  );   341           $o TemplMenu  = new BxTe mplMenu( $ this -> oT emplConfig  );
339              342           
340           if ( !$logged ['member']  or !$p_ar r )   343           if ( !$logged ['member']  or !$p_ar r )
341                return ' ';   344                return ' ';
342              345           
343           $m emberID  =  (int)$_CO OKIE['memb erID'];   346           $m emberID  =  (int)$_CO OKIE['memb erID'];
344           $p rofileID =  (int)$p_a rr['ID'];   347           $p rofileID =  (int)$p_a rr['ID'];
345              348           
346           if ( $memberI D == $prof ileID )   349           if ( $memberI D == $prof ileID )
347                return ' ';   350                return ' ';
348              351           
349           /*  * * * Ray  IM Integr ation * *  * */   352           /*  * * * Ray  IM Integr ation * *  * */
350              353           
351           $c heck_res_i m = checkA ction( $me mberID, AC TION_ID_US E_RAY_IM ) ;   354           $c heck_res_i m = checkA ction( $me mberID, AC TION_ID_US E_RAY_IM ) ;
352     355  
353           if ( ( getPar am( 'enabl e_ray' ) = = 'on' ) a nd   356           if ( ( getPar am( 'enabl e_ray' ) = = 'on' ) a nd
354               get_user_ online_sta tus( $prof ileID ) an d   357               get_user_ online_sta tus( $prof ileID ) an d
355               ( $check_ res_im[CHE CK_ACTION_ RESULT] ==  CHECK_ACT ION_RESULT _ALLOWED )  )   358               ( $check_ res_im[CHE CK_ACTION_ RESULT] ==  CHECK_ACT ION_RESULT _ALLOWED )  )
356           {   359           {
357                $sSndPas sword = ge tPassword(  $memberID  );   360                $sSndPas sword = ge tPassword(  $memberID  );
358                   361                
359                $IMNow =  $oTemplMe nu -> getA ctionsMenu Item( 'act ion_im.gif ', _t( '_C hatNow', $ p_arr['Nic kName'] ),  "javascri pt:void(0) ;", '', '' , "openRay Widget( 'i m', 'user' , '$member ID', '$sSn dPassword' , '$profil eID' );" ) ;   362                $IMNow =  $oTemplMe nu -> getA ctionsMenu Item( 'act ion_im.gif ', _t( '_C hatNow', $ p_arr['Nic kName'] ),  "javascri pt:void(0) ;", '', '' , "openRay Widget( 'i m', 'user' , '$member ID', '$sSn dPassword' , '$profil eID' );" ) ;
360           }   363           }
361           el se   364           el se
362                $IMNow =  '';   365                $IMNow =  '';
363              366           
364           /*  * * * Ray  IM Integr ation [END ]* * * */   367           /*  * * * Ray  IM Integr ation [END ]* * * */
365              368           
366           $r et = '<div  class="me nuBlock">' ;   369           $r et = '<div  class="me nuBlock">' ;
367                $ret .=  '<div clas s="menu_it em_block"> ';   370                $ret .=  '<div clas s="menu_it em_block"> ';
368                $ret .=  '<div clas s="menu_it em_block_l eft">';   371                $ret .=  '<div clas s="menu_it em_block_l eft">';
369                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_sen d.gif', _t ('_SendLet ter'),      "compose. php?ID=$pr ofileID" ) ;   372                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_sen d.gif', _t ('_SendLet ter'),      "compose. php?ID=$pr ofileID" ) ;
370                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_fav e.gif', _t ('_Fave'),      "java script:voi d(0);", '' , '', "win dow.open(  'list_pop. php?action =hot&amp;I D=$profile ID',    '' , 'width={ $this -> o TemplConfi g -> popUp WindowWidt h},height= {$this ->  oTemplConf ig -> popU pWindowHei ght},menub ar=no,stat us=no,resi zable=no,s crollbars= yes,toolba r=no,locat ion=no' ); " );   373                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_fav e.gif', _t ('_Fave'),      "java script:voi d(0);", '' , '', "win dow.open(  'list_pop. php?action =hot&amp;I D=$profile ID',    '' , 'width={ $this -> o TemplConfi g -> popUp WindowWidt h},height= {$this ->  oTemplConf ig -> popU pWindowHei ght},menub ar=no,stat us=no,resi zable=no,s crollbars= yes,toolba r=no,locat ion=no' ); " );
371                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_fri ends.gif',  _t('_Befr iend'),"ja vascript:v oid(0);",  '', '', "w indow.open ( 'list_po p.php?acti on=friend& amp;ID=$pr ofileID',  '', 'width ={$this ->  oTemplCon fig -> pop UpWindowWi dth},heigh t={$this - > oTemplCo nfig -> po pUpWindowH eight},men ubar=no,st atus=no,re sizable=no ,scrollbar s=yes,tool bar=no,loc ation=no'  );" );   374                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_fri ends.gif',  _t('_Befr iend'),"ja vascript:v oid(0);",  '', '', "w indow.open ( 'list_po p.php?acti on=friend& amp;ID=$pr ofileID',  '', 'width ={$this ->  oTemplCon fig -> pop UpWindowWi dth},heigh t={$this - > oTemplCo nfig -> po pUpWindowH eight},men ubar=no,st atus=no,re sizable=no ,scrollbar s=yes,tool bar=no,loc ation=no'  );" );
372                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_gre et.gif', _ t('_Greet' ),     "ja vascript:v oid(0);",  '', '', "w indow.open ( 'greet.p hp?sendto= $profileID ',                    '', 'width ={$this ->  oTemplCon fig -> pop UpWindowWi dth},heigh t={$this - > oTemplCo nfig -> po pUpWindowH eight},men ubar=no,st atus=no,re sizable=no ,scrollbar s=yes,tool bar=no,loc ation=no'  );" );   375                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_gre et.gif', _ t('_Greet' ),     "ja vascript:v oid(0);",  '', '', "w indow.open ( 'greet.p hp?sendto= $profileID ',                    '', 'width ={$this ->  oTemplCon fig -> pop UpWindowWi dth},heigh t={$this - > oTemplCo nfig -> po pUpWindowH eight},men ubar=no,st atus=no,re sizable=no ,scrollbar s=yes,tool bar=no,loc ation=no'  );" );
373                    $ret  .= $IMNow ;   376                    $ret  .= $IMNow ;
374                    if (  !$this ->  oTemplCon fig -> bAn onymousMod e )   377                    if (  !$this ->  oTemplCon fig -> bAn onymousMod e )
375                         $ret .= $o TemplMenu  -> getActi onsMenuIte m( 'action _email.gif ', _t('_Ge t E-mail') ,   "javas cript:void (0);", '',  '', "wind ow.open( ' freemail.p hp?ID=$pro fileID', ' ', 'width= {$this ->  oTemplConf ig -> popU pWindowWid th},height ={$this ->  oTemplCon fig -> pop UpWindowHe ight},menu bar=no,sta tus=no,res izable=no, scrollbars =yes,toolb ar=no,loca tion=no' ) ;" );   378                         $ret .= $o TemplMenu  -> getActi onsMenuIte m( 'action _email.gif ', _t('_Ge t E-mail') ,   "javas cript:void (0);", '',  '', "wind ow.open( ' freemail.p hp?ID=$pro fileID', ' ', 'width= {$this ->  oTemplConf ig -> popU pWindowWid th},height ={$this ->  oTemplCon fig -> pop UpWindowHe ight},menu bar=no,sta tus=no,res izable=no, scrollbars =yes,toolb ar=no,loca tion=no' ) ;" );
376                    $ret  .= '</div >';   379                    $ret  .= '</div >';
377                    $ret  .= '<div  class="men u_item_blo ck_right"> ';   380                    $ret  .= '<div  class="men u_item_blo ck_right"> ';
378                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_pho tos.gif',  $this->get LinkStat(' prPhoto',  _t('_Profi lePhotos') , $profile ID), "phot os_gallery .php?ID=$p rofileID") ;   381                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_pho tos.gif',  $this->get LinkStat(' prPhoto',  _t('_Profi lePhotos') , $profile ID), "phot os_gallery .php?ID=$p rofileID") ;
379                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_vid eos.gif',  $this->get LinkStat(' prVideo',  _t('_Profi leVideos') , $profile ID), "java script:voi d(0);", '' , '', "ope nRayWidget ( 'video',  'player',  '$profile ID' );" );   382                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_vid eos.gif',  $this->get LinkStat(' prVideo',  _t('_Profi leVideos') , $profile ID), "java script:voi d(0);", '' , '', "ope nRayWidget ( 'video',  'player',  '$profile ID' );" );
380                    //                $ret .=  $oTemplMen u -> getAc tionsMenuI tem( 'acti on_videos. gif', _t(' _ProfileVi deos'),    "javascrip t:void(0); ", '', '',  "openRayW idget( 'vi deo', 'pla yer', '$pr ofileID' ) ;" );   383                    //                $ret .=  $oTemplMen u -> getAc tionsMenuI tem( 'acti on_videos. gif', _t(' _ProfileVi deos'),    "javascrip t:void(0); ", '', '',  "openRayW idget( 'vi deo', 'pla yer', '$pr ofileID' ) ;" );
381                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_mus ic.gif', $ this->getL inkStat('p rMusic', _ t('_Profil eMusic'),  $profileID ), "javasc ript:void( 0);", '',  '', "openR ayWidget(  'mp3', 'pl ayer', '$p rofileID',  '" . getP assword( $ memberID )  . "', '$m emberID'); ");   384                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_mus ic.gif', $ this->getL inkStat('p rMusic', _ t('_Profil eMusic'),  $profileID ), "javasc ript:void( 0);", '',  '', "openR ayWidget(  'mp3', 'pl ayer', '$p rofileID',  '" . getP assword( $ memberID )  . "', '$m emberID'); ");
382                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_sha re.gif', _ t('_Share' ),   "java script:voi d(0);", '' , '', "ret urn launch TellFriend Profile($p rofileID); " );   385                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_sha re.gif', _ t('_Share' ),   "java script:voi d(0);", '' , '', "ret urn launch TellFriend Profile($p rofileID); " );
383                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_rep ort.gif',  _t('_Repor t'),   "ja vascript:v oid(0);",  '', '', "w indow.open ( 'list_po p.php?acti on=spam&am p;ID=$prof ileID',    '', 'width ={$this ->  oTemplCon fig -> pop UpWindowWi dth},heigh t={$this - > oTemplCo nfig -> po pUpWindowH eight},men ubar=no,st atus=no,re sizable=no ,scrollbar s=yes,tool bar=no,loc ation=no'  );" );   386                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_rep ort.gif',  _t('_Repor t'),   "ja vascript:v oid(0);",  '', '', "w indow.open ( 'list_po p.php?acti on=spam&am p;ID=$prof ileID',    '', 'width ={$this ->  oTemplCon fig -> pop UpWindowWi dth},heigh t={$this - > oTemplCo nfig -> po pUpWindowH eight},men ubar=no,st atus=no,re sizable=no ,scrollbar s=yes,tool bar=no,loc ation=no'  );" );
384                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_blo ck.gif', _ t('_Block' ),    "jav ascript:vo id(0);", ' ', '', "wi ndow.open(  'list_pop .php?actio n=block&am p;ID=$prof ileID',  ' ', 'width= {$this ->  oTemplConf ig -> popU pWindowWid th},height ={$this ->  oTemplCon fig -> pop UpWindowHe ight},menu bar=no,sta tus=no,res izable=no, scrollbars =yes,toolb ar=no,loca tion=no' ) ;" );   387                    $ret  .= $oTemp lMenu -> g etActionsM enuItem( ' action_blo ck.gif', _ t('_Block' ),    "jav ascript:vo id(0);", ' ', '', "wi ndow.open(  'list_pop .php?actio n=block&am p;ID=$prof ileID',  ' ', 'width= {$this ->  oTemplConf ig -> popU pWindowWid th},height ={$this ->  oTemplCon fig -> pop UpWindowHe ight},menu bar=no,sta tus=no,res izable=no, scrollbars =yes,toolb ar=no,loca tion=no' ) ;" );
385                $ret .=  '</div>';   388                $ret .=  '</div>';
386                $ret .=  '<div clas s="clear_b oth"></div >';   389                $ret .=  '<div clas s="clear_b oth"></div >';
387                $ret .=  '</div>';   390                $ret .=  '</div>';
388           $r et .= '</d iv>';   391           $r et .= '</d iv>';
389     392  
390           if  ($bNoDB)  {   393           if  ($bNoDB)  {
391                return $ ret;   394                return $ ret;
392           }  else {   395           }  else {
393                echo Des ignBoxCont ent( _t( $ sCaption ) , $ret, 1  );   396                echo Des ignBoxCont ent( _t( $ sCaption ) , $ret, 1  );
394           }   397           }
395       }   398       }
396          399       
397       functi on showBlo ckRateProf ile( $sCap tion, $bNo DB = false  )   400       functi on showBlo ckRateProf ile( $sCap tion, $bNo DB = false  )
398       {   401       {
399           gl obal $site ;   402           gl obal $site ;
400           gl obal $vote s;   403           gl obal $vote s;
401              404           
402           //  Check if  profile vo tes enable d   405           //  Check if  profile vo tes enable d
403           if  (!$votes  || !$this- >oVotingVi ew->isEnab led()) ret urn;   406           if  (!$votes  || !$this- >oVotingVi ew->isEnab led()) ret urn;
404     407  
405           $r et = $this ->oVotingV iew->getBi gVoting();   408           $r et = $this ->oVotingV iew->getBi gVoting();
406     409  
407           if  ($bNoDB)  {   410           if  ($bNoDB)  {
408                return $ ret;   411                return $ ret;
409           }  else {   412           }  else {
410                echo Des ignBoxCont ent( _t( $ sCaption ) , $ret, 1  );   413                echo Des ignBoxCont ent( _t( $ sCaption ) , $ret, 1  );
411           }   414           }
412       }   415       }
413     416  
414       functi on showBlo ckCmts( )   417       functi on showBlo ckCmts( )
415       {   418       {
416           if  (!$this-> oCmtsView- >isEnabled ()) return  '';   419           if  (!$this-> oCmtsView- >isEnabled ()) return  '';
417     420  
418           re turn $this ->oCmtsVie w->getComm entsFirst  ();   421           re turn $this ->oCmtsVie w->getComm entsFirst  ();
419       }   422       }
420     423  
421       functi on showBlo ckFriends(  $sCaption , $bNoDB =  false )   424       functi on showBlo ckFriends(  $sCaption , $bNoDB =  false )
422       {   425       {
423           gl obal $site ;   426           gl obal $site ;
424              427           
425           $s FriendList  = ShowFri endList( $ this -> _i ProfileID,  $this ->  aMutualFri ends );   428           $s FriendList  = ShowFri endList( $ this -> _i ProfileID,  $this ->  aMutualFri ends );
426           $i FriendNums  = getFrie ndNumber(  $this -> _ iProfileID  );   429           $i FriendNums  = getFrie ndNumber(  $this -> _ iProfileID  );
427              430           
428           if ( $sFriend List )   431           if ( $sFriend List )
429           {   432           {
430                ob_start ();   433                ob_start ();
431                   434                
432                ?>   435                ?>
433                    <div  class="cl ear_both"> </div>   436                    <div  class="cl ear_both"> </div>
434                    <?=  $sFriendLi st ?>   437                    <?=  $sFriendLi st ?>
435                    <div  class="cl ear_both"> </div>   438                    <div  class="cl ear_both"> </div>
436                <?   439                <?
437                   440                
438                $ret = o b_get_clea n();   441                $ret = o b_get_clea n();
439                   442                
440                $sFriend Info = '<d iv class=" caption_it em"><a hre f="'.$site ['url'].'v iewFriends .php?iUser ='.$this - > _iProfil eID.'">'.$ iFriendNum s.' '._t(" _Friends") .'</a></di v>';   443                $sFriend Info = '<d iv class=" caption_it em"><a hre f="'.$site ['url'].'v iewFriends .php?iUser ='.$this - > _iProfil eID.'">'.$ iFriendNum s.' '._t(" _Friends") .'</a></di v>';
441                   444                
442                if ($bNo DB) {   445                if ($bNo DB) {
443                    $aDb TopMenu =  array(   446                    $aDb TopMenu =  array(
444                         _t("_Frien ds") => ar ray(    447                         _t("_Frien ds") => ar ray( 
445                             'href'  => "{$sit e['url']}v iewFriends .php?iUser ={$this ->  _iProfile ID}"   448                             'href'  => "{$sit e['url']}v iewFriends .php?iUser ={$this ->  _iProfile ID}"
446                         )   449                         )
447                    );   450                    );
448                       451                    
449                    retu rn array(  $ret, $aDb TopMenu );   452                    retu rn array(  $ret, $aDb TopMenu );
450                } else {   453                } else {
451                    echo  DesignBox Content( _ t( $sCapti on ), $ret , 1, $sFri endInfo );   454                    echo  DesignBox Content( _ t( $sCapti on ), $ret , 1, $sFri endInfo );
452                }   455                }
453           }   456           }
454       }   457       }
455     458  
456       functi on showBlo ckProfileB log( $sCap tion, $bNo DB = false  ) {   459       functi on showBlo ckProfileB log( $sCap tion, $bNo DB = false  ) {
457     460  
458           gl obal $site ;   461           gl obal $site ;
459     462  
460           $I D = $this  -> _iProfi leID;   463           $I D = $this  -> _iProfi leID;
461     464  
462           if  ($ID > 0)  {   465           if  ($ID > 0)  {
463                $sQuery  = "   466                $sQuery  = "
464                SELECT D ISTINCT   467                SELECT D ISTINCT
465                    COUN T(`BlogPos ts`.`PostI D`)   468                    COUN T(`BlogPos ts`.`PostI D`)
466                FROM `Bl ogCategori es`   469                FROM `Bl ogCategori es`
467                INNER JO IN `BlogPo sts` ON   470                INNER JO IN `BlogPo sts` ON
468                     `Bl ogCategori es`.`Categ oryID` = ` BlogPosts` .`Category ID`   471                     `Bl ogCategori es`.`Categ oryID` = ` BlogPosts` .`Category ID`
469                WHERE   472                WHERE
470                    `Blo gCategorie s`.`OwnerI D`  = {$ID } AND   473                    `Blo gCategorie s`.`OwnerI D`  = {$ID } AND
471                    `Blo gPosts`.`P ostReadPer mission` =  'public'  AND   474                    `Blo gPosts`.`P ostReadPer mission` =  'public'  AND
472                    `Blo gPosts`.`P ostStatus`          =  'approval '   475                    `Blo gPosts`.`P ostStatus`          =  'approval '
473                ";   476                ";
474                $iBlogs  = db_value ( $sQuery  );   477                $iBlogs  = db_value ( $sQuery  );
475     478  
476                if( $iBl ogs > 0 )  {   479                if( $iBl ogs > 0 )  {
477                    $oBl ogs = new  BxDolBlogs ();   480                    $oBl ogs = new  BxDolBlogs ();
478                    $sBl ocks = $oB logs->GenA nyBlockCon tent('last ', $ID);   481                    $sBl ocks = $oB logs->GenA nyBlockCon tent('last ', $ID);
479                    $ret  = <<<EOF   482                    $ret  = <<<EOF
480   <div id="c ontainer_b logs">   483   <div id="c ontainer_b logs">
481       {$sBlo cks}   484       {$sBlo cks}
482   </div>   485   </div>
483   EOF;   486   EOF;
484     487  
485                    $sho w_hide = $ this->genS howHideIte m( 'contai ner_blogs'  );   488                    $sho w_hide = $ this->genS howHideIte m( 'contai ner_blogs'  );
486                    if ( $bNoDB) {   489                    if ( $bNoDB) {
487                         return $re t;   490                         return $re t;
488                    } el se {   491                    } el se {
489                         echo Desig nBoxConten t( _t( $sC aption ),  $ret, 1, $ show_hide  );   492                         echo Desig nBoxConten t( _t( $sC aption ),  $ret, 1, $ show_hide  );
490                    }   493                    }
491                } else   494                } else
492                    retu rn;   495                    retu rn;
493           }  else {   496           }  else {
494                if ($bNo DB) {   497                if ($bNo DB) {
495                    retu rn MsgBox(  _t('_im_t extNoCurrU ser') );   498                    retu rn MsgBox(  _t('_im_t extNoCurrU ser') );
496                } else {   499                } else {
497                    echo  MsgBox( _ t('_im_tex tNoCurrUse r') );   500                    echo  MsgBox( _ t('_im_tex tNoCurrUse r') );
498                }   501                }
499           }   502           }
500       }   503       }
501          504       
502       functi on showBlo ckClassifi eds( $sCap tion, $bNo DB = false  ) {   505       functi on showBlo ckClassifi eds( $sCap tion, $bNo DB = false  ) {
503           gl obal $site ;   506           gl obal $site ;
504     507  
505           $I D = $this  -> _iProfi leID;   508           $I D = $this  -> _iProfi leID;
506     509  
507           if  ($ID > 0)  {   510           if  ($ID > 0)  {
508                $sQuery  = "   511                $sQuery  = "
509                    SELE CT DISTINC T   512                    SELE CT DISTINC T
510                    COUN T(*)   513                    COUN T(*)
511                    FROM  `Classifi edsAdverti sements`   514                    FROM  `Classifi edsAdverti sements`
512                    WHER E   515                    WHER E
513                    `Cla ssifiedsAd vertisemen ts`.`IDPro file`  = ' {$ID}' AND  `Classifi edsAdverti sements`.` Status` =  'active'   516                    `Cla ssifiedsAd vertisemen ts`.`IDPro file`  = ' {$ID}' AND  `Classifi edsAdverti sements`.` Status` =  'active'
514                    GROU P BY `Clas sifiedsAdv ertisement s`.`ID`   517                    GROU P BY `Clas sifiedsAdv ertisement s`.`ID`
515                ";   518                ";
516                $iBlogs  = db_value ( $sQuery  );   519                $iBlogs  = db_value ( $sQuery  );
517     520  
518                if( $iBl ogs > 0 )  {   521                if( $iBl ogs > 0 )  {
519                    $oCl assifieds  = new BxDo lClassifie ds();   522                    $oCl assifieds  = new BxDo lClassifie ds();
520                    $sBl ocks = $oC lassifieds ->GenAnyBl ockContent ('last', $ ID);   523                    $sBl ocks = $oC lassifieds ->GenAnyBl ockContent ('last', $ ID);
521                    $ret  = <<<EOF   524                    $ret  = <<<EOF
522   <div id="c ontainer_c lassifieds ">   525   <div id="c ontainer_c lassifieds ">
523       {$sBlo cks}   526       {$sBlo cks}
524   </div>   527   </div>
525   EOF;   528   EOF;
526     529  
527                    $sho w_hide = $ this->genS howHideIte m( 'contai ner_classi fieds' );   530                    $sho w_hide = $ this->genS howHideIte m( 'contai ner_classi fieds' );
528                    if ( $bNoDB) {   531                    if ( $bNoDB) {
529                         return $re t;   532                         return $re t;
530                    } el se {   533                    } el se {
531                         echo Desig nBoxConten t( _t( $sC aption ),  $ret, 1, $ show_hide  );   534                         echo Desig nBoxConten t( _t( $sC aption ),  $ret, 1, $ show_hide  );
532                    }   535                    }
533                } else   536                } else
534                    retu rn;   537                    retu rn;
535           }  else {   538           }  else {
536                if ($bNo DB) {   539                if ($bNo DB) {
537                    retu rn MsgBox(  _t('_im_t extNoCurrU ser') );   540                    retu rn MsgBox(  _t('_im_t extNoCurrU ser') );
538                } else {   541                } else {
539                    echo  MsgBox( _ t('_im_tex tNoCurrUse r') );   542                    echo  MsgBox( _ t('_im_tex tNoCurrUse r') );
540                }   543                }
541           }   544           }
542       }   545       }
543     546  
544       functi on showBlo ckEvents(  $sCaption,  $bNoDB =  false ) {   547       functi on showBlo ckEvents(  $sCaption,  $bNoDB =  false ) {
545           gl obal $site ;   548           gl obal $site ;
546     549  
547           $I D = $this  -> _iProfi leID;   550           $I D = $this  -> _iProfi leID;
548     551  
549           if  ($ID > 0)  {   552           if  ($ID > 0)  {
550                $sQuery  = "   553                $sQuery  = "
551                    SELE CT COUNT(` SDatingEve nts`.`ID`)  AS 'Cnt'   554                    SELE CT COUNT(` SDatingEve nts`.`ID`)  AS 'Cnt'
552                    FROM  `SDatingE vents`    555                    FROM  `SDatingE vents` 
553                    LEFT  JOIN `SDa tingPartic ipants` ON  `SDatingP articipant s`.`IDEven t` = `SDat ingEvents` .`ID`    556                    LEFT  JOIN `SDa tingPartic ipants` ON  `SDatingP articipant s`.`IDEven t` = `SDat ingEvents` .`ID` 
554                    WHER E (`SDatin gEvents`.` Responsibl eID` = '{$ ID}' OR `S DatingPart icipants`. `IDMember`  = '{$ID}' )   557                    WHER E (`SDatin gEvents`.` Responsibl eID` = '{$ ID}' OR `S DatingPart icipants`. `IDMember`  = '{$ID}' )
555                    AND  `SDatingEv ents`.`Sta tus` = 'Ac tive'   558                    AND  `SDatingEv ents`.`Sta tus` = 'Ac tive'
556                ";   559                ";
557                $iBlogs  = db_value ( $sQuery  );   560                $iBlogs  = db_value ( $sQuery  );
558     561  
559                if( $iBl ogs > 0 )  {   562                if( $iBl ogs > 0 )  {
560                    $oEv ents = new  BxDolEven ts();   563                    $oEv ents = new  BxDolEven ts();
561                    $sBl ocks = $oE vents->Gen AnyBlockCo ntent('las t', $ID);   564                    $sBl ocks = $oE vents->Gen AnyBlockCo ntent('las t', $ID);
562                    $ret  = <<<EOF   565                    $ret  = <<<EOF
563   <div id="c ontainer_e vents">   566   <div id="c ontainer_e vents">
564       {$sBlo cks}   567       {$sBlo cks}
565   </div>   568   </div>
566   EOF;   569   EOF;
567     570  
568                    $sho w_hide = $ this->genS howHideIte m( 'contai ner_events ' );   571                    $sho w_hide = $ this->genS howHideIte m( 'contai ner_events ' );
569                    if ( $bNoDB) {   572                    if ( $bNoDB) {
570                         return $re t;   573                         return $re t;
571                    } el se {   574                    } el se {
572                         echo Desig nBoxConten t( _t( $sC aption ),  $ret, 1, $ show_hide  );   575                         echo Desig nBoxConten t( _t( $sC aption ),  $ret, 1, $ show_hide  );
573                    }   576                    }
574                } else   577                } else
575                    retu rn;   578                    retu rn;
576           }  else {   579           }  else {
577                if ($bNo DB) {   580                if ($bNo DB) {
578                    retu rn MsgBox(  _t('_im_t extNoCurrU ser') );   581                    retu rn MsgBox(  _t('_im_t extNoCurrU ser') );
579                } else {   582                } else {
580                    echo  MsgBox( _ t('_im_tex tNoCurrUse r') );   583                    echo  MsgBox( _ t('_im_tex tNoCurrUse r') );
581                }   584                }
582           }   585           }
583       }   586       }
584     587  
585       functi on showBlo ckGroups(  $sCaption,  $bNoDB =  false ) {   588       functi on showBlo ckGroups(  $sCaption,  $bNoDB =  false ) {
586           gl obal $site ;   589           gl obal $site ;
587              590           
588           $I D = $this  -> _iProfi leID;   591           $I D = $this  -> _iProfi leID;
589     592  
590           if  ($ID > 0)  {   593           if  ($ID > 0)  {
591                $sQuery  = "   594                $sQuery  = "
592                    SELE CT COUNT(` Groups`.`I D`) AS 'Cn t'   595                    SELE CT COUNT(` Groups`.`I D`) AS 'Cn t'
593                    FROM  `GroupsMe mbers`, `G roups`   596                    FROM  `GroupsMe mbers`, `G roups`
594                    WHER   597                    WHER
595                    `Gro ups`.`stat us` = 'Act ive' AND   598                    `Gro ups`.`stat us` = 'Act ive' AND
596                    `Gro upsMembers `.`memberI D` = {$ID}  AND   599                    `Gro upsMembers `.`memberI D` = {$ID}  AND
597                    `Gro upsMembers `.`groupID `  = `Grou ps`.`ID` A ND   600                    `Gro upsMembers `.`groupID `  = `Grou ps`.`ID` A ND
598                    `Gro upsMembers `.`status`    = 'Acti ve'   601                    `Gro upsMembers `.`status`    = 'Acti ve'
599                ";   602                ";
600                $iBlogs  = db_value ( $sQuery  );   603                $iBlogs  = db_value ( $sQuery  );
601     604  
602                if( $iBl ogs > 0 )  {   605                if( $iBl ogs > 0 )  {
603                    $oGr oups = new  BxDolGrou ps();   606                    $oGr oups = new  BxDolGrou ps();
604                    $sBl ocks = $oG roups->Gen AnyBlockCo ntent('las t', $ID);   607                    $sBl ocks = $oG roups->Gen AnyBlockCo ntent('las t', $ID);
605                    $ret  = <<<EOF   608                    $ret  = <<<EOF
606   <div id="c ontainer_g roups">   609   <div id="c ontainer_g roups">
607       {$sBlo cks}   610       {$sBlo cks}
608   </div>   611   </div>
609   EOF;   612   EOF;
610     613  
611                    $sho w_hide = $ this->genS howHideIte m( 'contai ner_groups ' );   614                    $sho w_hide = $ this->genS howHideIte m( 'contai ner_groups ' );
612                    if ( $bNoDB) {   615                    if ( $bNoDB) {
613                         return $re t;   616                         return $re t;
614                    } el se {   617                    } el se {
615                         echo Desig nBoxConten t( _t( $sC aption ),  $ret, 1, $ show_hide  );   618                         echo Desig nBoxConten t( _t( $sC aption ),  $ret, 1, $ show_hide  );
616                    }   619                    }
617                } else   620                } else
618                    retu rn;   621                    retu rn;
619           }  else {   622           }  else {
620                if ($bNo DB) {   623                if ($bNo DB) {
621                    retu rn MsgBox(  _t('_im_t extNoCurrU ser') );   624                    retu rn MsgBox(  _t('_im_t extNoCurrU ser') );
622                } else {   625                } else {
623                    echo  MsgBox( _ t('_im_tex tNoCurrUse r') );   626                    echo  MsgBox( _ t('_im_tex tNoCurrUse r') );
624                }   627                }
625           }   628           }
626       }   629       }
627     630  
628              631           
629       functi on showBlo ckMp3( $sC aption, $b NoDB = fal se )   632       functi on showBlo ckMp3( $sC aption, $b NoDB = fal se )
630       {   633       {
631           gl obal $logg ed;   634           gl obal $logg ed;
632              635           
633           $i MemberId =  (int)$_CO OKIE['memb erID'];   636           $i MemberId =  (int)$_CO OKIE['memb erID'];
634           $r et = getAp plicationC ontent('mp 3', 'playe r', array( 'id' => $t his -> _iP rofileID,  'password'  => getPas sword($iMe mberId), ' vId' => $i MemberId),  true);   637           $r et = getAp plicationC ontent('mp 3', 'playe r', array( 'id' => $t his -> _iP rofileID,  'password'  => getPas sword($iMe mberId), ' vId' => $i MemberId),  true);
635           if  ($bNoDB)  {   638           if  ($bNoDB)  {
636                return $ ret;   639                return $ ret;
637           }  else {   640           }  else {
638                echo Des ignBoxCont ent( _t( $ sCaption ) , '<div al ign="cente r">' . $re t . '</div >', 1, $sh ow_hide );   641                echo Des ignBoxCont ent( _t( $ sCaption ) , '<div al ign="cente r">' . $re t . '</div >', 1, $sh ow_hide );
639           }   642           }
640       }   643       }
641     644  
642       functi on showBlo ckMutualFr iends( $sC aption, $b NoDB = fal se ) {   645       functi on showBlo ckMutualFr iends( $sC aption, $b NoDB = fal se ) {
643           gl obal $site ;   646           gl obal $site ;
    647  
    648           if  ($this ->  _iProfile ID == (int )$_COOKIE[ 'memberID' ]) return;
    649  
644           $i FriendNums  = getFrie ndNumber(  $this -> _ iProfileID  );   650           $i FriendNums  = getFrie ndNumber(  $this -> _ iProfileID  );
645     651  
646           $r et = '';   652           $r et = '';
647           $i Counter =  0;   653           $i Counter =  0;
648           $i TotalCount er = 0;   654           $i TotalCount er = 0;
649           fo reach ($th is -> aMut ualFriends  as $key = > $value)  {   655           fo reach ($th is -> aMut ualFriends  as $key = > $value)  {
650                $iCounte r ++;   656                $iCounte r ++;
651                $sKey =  '1';   657                $sKey =  '1';
652                //if( $i Counter ==  3 ) $sKey  = '2';   658                //if( $i Counter ==  3 ) $sKey  = '2';
653     659  
654                $ret .=  '<div clas s="friends _thumb_'.$ sKey.'">'  . get_memb er_thumbna il($key, ' none', tru e) . '<div  class="cl ear_both"> </div><div  class="br owse_nick" ><a href=" ' . getPro fileLink($ key) . '"> ' . $value  . '</a></ div><div c lass="clea r_both"></ div></div> ';   660                $ret .=  '<div clas s="friends _thumb_'.$ sKey.'">'  . get_memb er_thumbna il($key, ' none', tru e) . '<div  class="cl ear_both"> </div><div  class="br owse_nick" ><a href=" ' . getPro fileLink($ key) . '"> ' . $value  . '</a></ div><div c lass="clea r_both"></ div></div> ';
655                if( $iCo unter == 3 )  $iCount er = 0;    661                if( $iCo unter == 3 )  $iCount er = 0; 
656                $iTotalC ounter ++;   662                $iTotalC ounter ++;
657                if( $iTo talCounter  >= 12 ) b reak;   663                if( $iTo talCounter  >= 12 ) b reak;
658           }   664           }
659           if  ($ret) {   665           if  ($ret) {
660                $ret .=  '<div clas s="clear_b oth"></div >';   666                $ret .=  '<div clas s="clear_b oth"></div >';
661                $sFriend Info = '<d iv class=" caption_it em"><a hre f="'.$site ['url'].'v iewFriends .php?iUser ='.$this - > _iProfil eID.'">'.$ iFriendNum s.' '._t(" _Friends") .'</a></di v>';   667                $sFriend Info = '<d iv class=" caption_it em"><a hre f="'.$site ['url'].'v iewFriends .php?iUser ='.$this - > _iProfil eID.'">'.$ iFriendNum s.' '._t(" _Friends") .'</a></di v>';
662                if ($bNo DB) {   668                if ($bNo DB) {
663                    retu rn $ret;   669                    retu rn $ret;
664                } else {   670                } else {
665                    echo  DesignBox Content( _ t( $sCapti on ), $ret , 1, $sFri endInfo);   671                    echo  DesignBox Content( _ t( $sCapti on ), $ret , 1, $sFri endInfo);
666                }   672                }
667           }   673           }
668       }   674       }
669     675  
670       functi on FindMut ualFriends  () {   676       functi on FindMut ualFriends  () {
671           gl obal $logg ed;    677           gl obal $logg ed; 
672             678          
673           if ( $logged[ 'member']  )   679           if ( $logged[ 'member']  )
674                  $membe rID = (int )$_COOKIE[ 'memberID' ];   680                  $membe rID = (int )$_COOKIE[ 'memberID' ];
675           el se   681           el se
676           $m emberID =  0;     682           $m emberID =  0;  
677             683          
678             684          
679                  $sQuer y = "   685                  $sQuer y = "
680                    SELE CT   686                    SELE CT
681                         IF( `Frien dList`.`ID ` = {$memb erID}, `Fr iendList`. `Profile`  , `FriendL ist`.`ID`  ) AS `frie ndID`,   687                         IF( `Frien dList`.`ID ` = {$memb erID}, `Fr iendList`. `Profile`  , `FriendL ist`.`ID`  ) AS `frie ndID`,
682                         `Profiles` .`NickName `   688                         `Profiles` .`NickName `
683                    FROM  `FriendLi st`   689                    FROM  `FriendLi st`
684                    INNE R JOIN `Fr iendList`  AS `Friend ListMy` ON   690                    INNE R JOIN `Fr iendList`  AS `Friend ListMy` ON
685                    (   691                    (
686                    `Fri endListMy` .`ID`       = IF( `Fr iendList`. `ID` = {$m emberID},  `FriendLis t`.`Profil e` , `Frie ndList`.`I D` ) OR   692                    `Fri endListMy` .`ID`       = IF( `Fr iendList`. `ID` = {$m emberID},  `FriendLis t`.`Profil e` , `Frie ndList`.`I D` ) OR
687                    `Fri endListMy` .`Profile`  = IF( `Fr iendList`. `ID` = {$m emberID},  `FriendLis t`.`Profil e` , `Frie ndList`.`I D` )   693                    `Fri endListMy` .`Profile`  = IF( `Fr iendList`. `ID` = {$m emberID},  `FriendLis t`.`Profil e` , `Frie ndList`.`I D` )
688                    ) AN D   694                    ) AN D
689                    `Fri endListMy` .`Check` =  1   695                    `Fri endListMy` .`Check` =  1
690                    INNE R JOIN `Pr ofiles` ON   696                    INNE R JOIN `Pr ofiles` ON
691                         `Profiles` .`ID` = IF ( `FriendL ist`.`ID`  = {$member ID}, `Frie ndList`.`P rofile` ,  `FriendLis t`.`ID` )   697                         `Profiles` .`ID` = IF ( `FriendL ist`.`ID`  = {$member ID}, `Frie ndList`.`P rofile` ,  `FriendLis t`.`ID` )
692                    WHER E   698                    WHER E
693                    (   699                    (
694                    (   700                    (
695                    `Fri endList`.` ID` = {$me mberID} OR   701                    `Fri endList`.` ID` = {$me mberID} OR
696                    `Fri endList`.` Profile` =  {$memberI D}   702                    `Fri endList`.` Profile` =  {$memberI D}
697                    ) AN D   703                    ) AN D
698                    `Fri endList`.` Check` = 1   704                    `Fri endList`.` Check` = 1
699                    ) AN D   705                    ) AN D
700                    (   706                    (
701                    (   707                    (
702                    `Fri endListMy` .`ID` = {$ this -> _i ProfileID}  OR   708                    `Fri endListMy` .`ID` = {$ this -> _i ProfileID}  OR
703                    `Fri endListMy` .`Profile`  = {$this  -> _iProfi leID}   709                    `Fri endListMy` .`Profile`  = {$this  -> _iProfi leID}
704                    ) AN D   710                    ) AN D
705                    `Fri endListMy` .`Check` =  1   711                    `Fri endListMy` .`Check` =  1
706                    ) AN D   712                    ) AN D
707                    IF(  `FriendLis t`.`ID` =  {$memberID }, `Friend List`.`Pro file` , `F riendList` .`ID` ) !=  {$this ->  _iProfile ID}   713                    IF(  `FriendLis t`.`ID` =  {$memberID }, `Friend List`.`Pro file` , `F riendList` .`ID` ) !=  {$this ->  _iProfile ID}
708                    ";   714                    ";
709                           715                        
710                      $r Result = d b_res( $sQ uery );   716                      $r Result = d b_res( $sQ uery );
711                      wh ile( $aRow  = mysql_f etch_assoc ( $rResult  ) )   717                      wh ile( $aRow  = mysql_f etch_assoc ( $rResult  ) )
712                         $this -> a MutualFrie nds[ $aRow ['friendID '] ] = $aR ow['NickNa me'];   718                         $this -> a MutualFrie nds[ $aRow ['friendID '] ] = $aR ow['NickNa me'];
713                        719                     
714                }   720                }
715        funct ion getLin kStat($sTy pe, $sCapt ion, $iMem ber) {   721        funct ion getLin kStat($sTy pe, $sCapt ion, $iMem ber) {
716           $s Type = htm lspecialch ars_adv($s Type);   722           $s Type = htm lspecialch ars_adv($s Type);
717           $s Caption =  _t(htmlspe cialchars_ adv($sCapt ion));   723           $s Caption =  _t(htmlspe cialchars_ adv($sCapt ion));
718           $i Member = ( int)$iMemb er;   724           $i Member = ( int)$iMemb er;
719           sw itch ($sTy pe) {   725           sw itch ($sTy pe) {
720                case 'pr Photo':   726                case 'pr Photo':
721                    $sql QueryStat  = "SELECT  COUNT(*) F ROM `media ` WHERE `m ed_type`=' photo' AND  `med_stat us`='activ e' AND `me d_prof_id` ='$iMember '";   727                    $sql QueryStat  = "SELECT  COUNT(*) F ROM `media ` WHERE `m ed_type`=' photo' AND  `med_stat us`='activ e' AND `me d_prof_id` ='$iMember '";
722                    brea k;   728                    brea k;
723                case 'pr Music':   729                case 'pr Music':
724                    $sql QueryStat  = "SELECT  COUNT(*) F ROM `RayMp 3Files` WH ERE `Appro ved`='true ' AND `Own er`='$iMem ber'";   730                    $sql QueryStat  = "SELECT  COUNT(*) F ROM `RayMp 3Files` WH ERE `Appro ved`='true ' AND `Own er`='$iMem ber'";
725                    brea k;   731                    brea k;
726                case 'pr Video':   732                case 'pr Video':
727                    $sql QueryStat  = "SELECT  `Approved`  FROM `Ray VideoStats ` WHERE `U ser`='$iMe mber'";   733                    $sql QueryStat  = "SELECT  `Approved`  FROM `Ray VideoStats ` WHERE `U ser`='$iMe mber'";
728                    brea k;   734                    brea k;
729           }   735           }
730           $i Count = (i nt)db_valu e($sqlQuer yStat);   736           $i Count = (i nt)db_valu e($sqlQuer yStat);
731           $s FinalCapt  = $iCount  ? $sCaptio n . ' ('.$ iCount.')'  : $sCapti on;   737           $s FinalCapt  = $iCount  ? $sCaptio n . ' ('.$ iCount.')'  : $sCapti on;
732              738           
733           re turn $sFin alCapt;   739           re turn $sFin alCapt;
734        }   740        }
735   }   741   }
736   ?>   742   ?>