234. File Comparison Report

Produced on Mon May 12 13:05:21 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.

234.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\inc members.inc.php Mon Dec 24 09:44:18 2007 UTC
2 Dolphin-v.6.1.0\inc members.inc.php Sat Apr 26 08:19:16 2008 UTC

234.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 14 706
Changed 8 126
Inserted 2 54
Removed 3 12

234.3 Comparison options

Whitespace
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

234.4 Active regular expressions

No regular expressions were active.

234.5 Comparison detail

1   <?php   1   <?php
2     2  
3   /********* ********** ********** ********** ********** ********** ********** ******   3   /********* ********** ********** ********** ********** ********** ********** ******
4   *                              D olphin Sma rt Communi ty Builder   4   *                              D olphin Sma rt Communi ty Builder
5   *                                 --------- --------   5   *                                 --------- --------
6   *     begi n                 : M on Mar 23  2006   6   *     begi n                 : M on Mar 23  2006
7   *     copy right             : ( C) 2006 Bo onEx Group   7   *     copy right             : ( C) 2006 Bo onEx Group
8   *     webs ite               : h ttp://www. boonex.com /   8   *     webs ite               : h ttp://www. boonex.com /
9   * This fil e is part  of Dolphin  - Smart C ommunity B uilder   9   * This fil e is part  of Dolphin  - Smart C ommunity B uilder
10   *   10   *
11   * Dolphin  is free so ftware. Th is work is  licensed  under a Cr eative Com mons Attri bution 3.0  License.    11   * Dolphin  is free so ftware. Th is work is  licensed  under a Cr eative Com mons Attri bution 3.0  License. 
12   * http://c reativecom mons.org/l icenses/by /3.0/   12   * http://c reativecom mons.org/l icenses/by /3.0/
13   *   13   *
14   * Dolphin  is distrib uted in th e hope tha t it will  be useful,  but WITHO UT ANY WAR RANTY;   14   * Dolphin  is distrib uted in th e hope tha t it will  be useful,  but WITHO UT ANY WAR RANTY;
15   * without  even the i mplied war ranty of   MERCHANTAB ILITY or F ITNESS FOR  A PARTICU LAR PURPOS E.   15   * without  even the i mplied war ranty of   MERCHANTAB ILITY or F ITNESS FOR  A PARTICU LAR PURPOS E.
16   * See the  Creative C ommons Att ribution 3 .0 License  for more  details.    16   * See the  Creative C ommons Att ribution 3 .0 License  for more  details. 
17   * You shou ld have re ceived a c opy of the  Creative  Commons At tribution  3.0 Licens e along wi th Dolphin   17   * You shou ld have re ceived a c opy of the  Creative  Commons At tribution  3.0 Licens e along wi th Dolphin
18   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m   18   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m
19   ********** ********** ********** ********** ********** ********** ********** *****/   19   ********** ********** ********** ********** ********** ********** ********** *****/
20     20  
21   require_on ce( "membe rship_leve ls.inc.php " );   21   require_on ce( "membe rship_leve ls.inc.php " );
22     22   require_on ce( "match .inc.php"  );
23   /**    
24    * Prints  total memb ers statis ric    
25    */    
26      
27   function c ontr_panel _members_t otal($w =  "")    
28   {    
29       global  $site;    
30       global  $prof;    
31       global  $PageComp MemberStat _db_num;    
32      
33       $free_ mode = get Param("fre e_mode") = = "on" ? 1  : 0;    
34      
35       // mem bers stati stics    
36       $total _c2 = strl en( $_POST ['total_c2 '] ) ? $_P OST['total _c2'] : ge tParam( "d efault_cou ntry" );    
37       $total _arr = db_ arr( "SELE CT COUNT(I D) FROM `P rofiles` W HERE Statu s = 'Activ e'" );    
38       $total _arr_week  = db_arr(  "SELECT CO UNT(ID) FR OM `Profil es` WHERE  Status = ' Active' AN D (TO_DAYS (NOW()) -  TO_DAYS(La stReg)) <=  7" );    
39       if ( ! $free_mode  )    
40           $t otal_arr_g old = getM embersCoun t( MEMBERS HIP_ID_STA NDARD, '',  true );    
41       $total _c_arr = d b_arr( "SE LECT COUNT (ID) FROM  `Profiles`  WHERE Sta tus = 'Act ive' AND ` Country` =  '". proce ss_db_inpu t($total_c 2) ."'" );    
42       $total _members =  $total_ar r[0];    
43       $total _c_members  = $total_ c_arr[0];    
44      
45       $c_arr  = $prof[' countries' ];    
46      
47       $ret =  '';    
48       $ret . = '<div cl ass="total RegBlock"> ';    
49           $r et .= '<di v class="c lear_both" ></div>';    
50           $r et .= '<di v style="p osition:re lative; fl oat:left;" ><img src= "' . $site ['icons']  . 'group.g if" alt=""  /></div>' ;    
51           $r et .= '<di v style="p osition:re lative; fl oat:left;  white-spac e:nowrap;  left:5px;  font-weigh t:bold; co lor:#000;" >' . _t("_ Total Regi stered") .  '</div>';    
52           $r et .= '<di v class="c lear_both" ></div>';    
53           $r et .= '<di v style="p osition:re lative;  m argin:0px  0px;"></di v>';    
54           $r et .= '<di v class="m ember_stat _block">';    
55                $ret .=  '<div><img  src="' .  $site['ico ns'] . 'us .gif" alt= "" /><span  style="ma rgin-left: 5px;">' .  _t("_Total ") . '&nbs p;-&nbsp;'  .  $total _arr[0] .  '</span></ div>';    
56                if ( !$f ree_mode )    
57                    $ret  .= '<div> <img src=" ' . $site[ 'icons'] .  'us.gif"  alt="" />< span style ="margin-l eft:5px;"> ' . _t("_G old Member s") . '&nb sp;-&nbsp; ' .  $tota l_arr_gold   . '</spa n></div>';    
58      
59                $ret .=  '<div><img  src="' .  $site['ico ns'] . 'us .gif" alt= "" /><span  style="ma rgin-left: 5px;">' .  _t("_New t his week")  . '&nbsp; -&nbsp;' .  $total_ar r_week[0]   . '</span ></div>';    
60                $ret .=  '<div><img  src="' .  $site['ico ns'] . 'us .gif" alt= "" /><span  style="ma rgin-left: 5px;">' .  $total_c_m embers . ' &nbsp;' .  _t("_membe rs") . '&n bsp;' . _t ("_from")  . '</span> </div>';    
61                $ret .=  '<div clas s="mem_sta t_country" >';    
62                    $ret  .= '<form  action="' .$_SERVER[ 'PHP_SELF' ].'" metho d="post" n ame="cForm 2">';    
63                    $ret  .= '<inpu t type="hi dden" name ="total_c2 " value="'  . $total_ c2 . '" /> ';    
64                    $ret  .= '<sele ct class=" mem_stat_c ountry_sel ect" name= "total_c2"  onChange= "javascrip t:this.for m.submit() ;">';    
65                    fore ach ( $c_a rr as $key  => $value  )    
66                    {    
67                         $ret .= '< option val ue="' . $k ey . '"';    
68                         if ( $key  == $total_ c2 )    
69                             $ret . = ' select ed="select ed"';    
70                         $ret .= '> ' . _t( '_ _'.$value  ) . '</opt ion>';    
71                    }    
72                    $ret  .= '</sel ect>';    
73                    $ret  .= '</for m>';    
74                $ret .=  '</div>';    
75           $r et .= '</d iv>';    
76       $ret . = '</div>' ;    
77      
78       return  $ret;    
79   }    
80      
81      
82   function c ontr_panel _members_o nl($w = "" )    
83   {    
84       global  $site;    
85       global  $prof;    
86      
87       // mem bers stati stics    
88       $total _c = strle n( $_POST[ 'total_c']  ) ? $_POS T['total_c '] : getPa ram( "defa ult_countr y" );    
89      
90       $total _c_members _onl = get _users_onl ine_number ('c', $tot al_c );    
91       $total _arr_chatt ing = get_ users_onli ne_number( 't');    
92       $membe rs_online  = get_user s_online_n umber();    
93      
94       $c_arr  = $prof[' countries' ];    
95      
96       $ret =  '';    
97       $ret . = '<div cl ass="membe s_statisti c_block">' ;    
98           $r et .= '<di v class="c lear_both" ></div>';    
99           $r et .= '<di v style="p osition:re lative;  f loat:left; "><img src ="' . $sit e['icons']  . 'group. gif" alt=" " /></div> ';    
100           $r et .= '<di v style="p osition:re lative; fl oat:left;  white-spac e:nowrap;  left:5px;  font-weigh t:bold; co lor:#000;" ><a href=" search_res ult.php?on line_only= show" targ et="_blank ">' . _t(" _Currently  Online")  . '</a></d iv>';    
101           $r et .= '<di v class="c lear_both" ></div>';    
102           $r et .= '<di v style="p osition:re lative; ma rgin:0px 0 px;"></div >';    
103           $r et .= '<di v class="m ember_stat _block">';    
104                $ret .=  '<div><img  src="' .  $site['ico ns'] . 'us .gif" alt= "" /><span  style="ma rgin-left: 5px;">' .  _t("_Total ") . '&nbs p;-&nbsp;'  .  $membe rs_online  . '</span> </div>';    
105                $ret .=  '<div><img  src="' .  $site['ico ns'] . 'us .gif" alt= "" /><span  style="ma rgin-left: 5px;">' .  _t("_Chatt ing") . '& nbsp;-&nbs p;' .  $to tal_arr_ch atting . ' </span></d iv>';    
106                $ret .=  '<div><img  src="' .  $site['ico ns'] . 'us .gif" alt= "" /><span  style="ma rgin-left: 5px;">' .  $total_c_m embers_onl  . '&nbsp; ' . _t("_m embers") .  '&nbsp;'  . _t("_fro m") . '</s pan></div> ';    
107                $ret .=  '<div clas s="mem_sta t_country" >';    
108                    $ret  .= '<form  action="' .$_SERVER[ 'PHP_SELF' ].'" metho d="post" n ame="cForm ">';    
109                    $ret  .= '<inpu t type="hi dden" name ="total_c"  value="'  . $total_c  . '" />';    
110                    $ret  .= '<sele ct class=" mem_stat_c ountry_sel ect" name= "total_c"  onChange=" javascript :this.form .submit(); ">';    
111                    fore ach ( $c_a rr as $key  => $value  )    
112                    {    
113                         $ret .= '< option val ue="' . $k ey . '"';    
114                         if ( $key  == $total_ c )    
115                             $ret . = ' select ed="select ed"';    
116                         $ret .= '> ' . _t( '_ _'.$value  ) . '</opt ion>';    
117                    }    
118                    $ret  .= '</sel ect>';    
119                    $ret  .= '</for m>';    
120                $ret .=  '</div>';    
121           $r et .= '</d iv>';    
122       $ret . = '</div>' ;    
123      
124       return  $ret;    
125      
126   }    
127     23  
128   /**   24   /**
129    * returns  HTML code  for one s earch row   25    * returns  HTML code  for one s earch row
130    */   26    */
131   function   PrintSearh Result(   $p_arr,   $templ_sea rch,   $iNumber=1  
)
  27   function   PrintSearh Result(   $p_arr,   $templ_sea rch,   $iNumber=1 ,   $bCouple   =   false,   $aCoupleIn fo   =   ''   )
132   {   28   {
133       global  $site;   29       global  $site;
134       global  $pa_icon_ preload;   30       global  $pa_icon_ preload;
135        global   $ p r of ;   31        global   $ aP r eValues ;
136       global  $logged;   32       global  $logged;
137       global  $enable_m atch;    
138       global  $tmpl;   33       global  $tmpl;
139       global  $dir;   34       global  $dir;
140       global  $max_thum b_width;   35       global  $max_thum b_width;
141       global  $max_thum b_height;   36       global  $max_thum b_height;
142       global  $anon_mod e;   37       global  $anon_mod e;
143       global  $enable_z odiac;   38       global  $enable_z odiac;
144       global  $enable_f riendlist;   39       global  $enable_f riendlist;
145       global  $pic_num;   40       global  $pic_num;
146       global  $oTemplCo nfig;   41       global  $oTemplCo nfig;
147       global  $NickName ;   42       global  $NickName ;
148     43  
149       $membe r['ID'] =  (int)$_COO KIE['membe rID'];   44       $membe r['ID'] =  (int)$_COO KIE['membe rID'];
150     45  
151       $free_ mode = get Param("fre e_mode") = = "on" ? 1  : 0;   46       $free_ mode = get Param("fre e_mode") = = "on" ? 1  : 0;
152       $bEnab leRay = (g etParam( ' enable_ray ' ) == 'on ');   47       $bEnab leRay = (g etParam( ' enable_ray ' ) == 'on ');
153     48  
154       $gl_th umb_width  = $max_thu mb_width;   49       $gl_th umb_width  = $max_thu mb_width;
155       $gl_th umb_height  = $max_th umb_height ;   50       $gl_th umb_height  = $max_th umb_height ;
156     51  
157       // get  user onli ne status   52       // get  user onli ne status
158       $user_ is_online  = get_user _online_st atus($p_ar r[ID]);   53       $user_ is_online  = get_user _online_st atus($p_ar r[ID]);
159     54  
160       $templ  = $templ_ search;   55       $templ  = $templ_ search;
161     56  
162       // --- ---------  template v ariables - ---------- ---   57       // --- ---------  template v ariables - ---------- ---
163     58  
164     59  
165        $thumbnail   =   get_member _thumbnail (   $p_arr['ID '],   'none'  
);
  60        $thumbnail   =   get_member _thumbnail (   $p_arr['ID '],   'none' ,   true   );
166     61  
167       // onl ine/offlin e status   62       // onl ine/offlin e status
168       $launc h_ray_im =  "";   63       $launc h_ray_im =  "";
169       //---  Ray IM int egration - --//     64       //---  Ray IM int egration - --//  
170       if ( $ user_is_on line )   65       if ( $ user_is_on line )
171       {   66       {
172           $c heck_res =  checkActi on( $membe r['ID'], A CTION_ID_U SE_RAY_IM  );   67           $c heck_res =  checkActi on( $membe r['ID'], A CTION_ID_U SE_RAY_IM  );
173           if  ($bEnable Ray && $ch eck_res[CH ECK_ACTION _RESULT] = = CHECK_AC TION_RESUL T_ALLOWED  && $member ['ID'] !=  $p_arr['ID ']  && !em pty($membe r['ID']))   68           if  ($bEnable Ray && $ch eck_res[CH ECK_ACTION _RESULT] = = CHECK_AC TION_RESUL T_ALLOWED  && $member ['ID'] !=  $p_arr['ID ']  && !em pty($membe r['ID']))
174           {               69           {            
175                $iSndId  = (int)$me mber['ID'] ;   70                $iSndId  = (int)$me mber['ID'] ;
176                $sSndPas sword = ge tPassword( $member['I D']);   71                $sSndPas sword = ge tPassword( $member['I D']);
177                $iRspId  = (int)$p_ arr['ID'];   72                $iRspId  = (int)$p_ arr['ID'];
178                $launch_ ray_im = " <a href=\" javascript :void(0);\ " onClick= \"javascri pt: openRa yWidget( ' im', 'user ', '" . $i SndId . "' , '" . $sS ndPassword  . "', '"  . $iRspId  . "' ); re turn false ;\">"._t(" _IM now",  $p_arr['Ni ckName']). "</a>";   73                $launch_ ray_im = " <a href=\" javascript :void(0);\ " onClick= \"javascri pt: openRa yWidget( ' im', 'user ', '" . $i SndId . "' , '" . $sS ndPassword  . "', '"  . $iRspId  . "' ); re turn false ;\">"._t(" _IM now",  $p_arr['Ni ckName']). "</a>";
179           }   74           }
180       }   75       }
181       //---  Ray IM int egration - --//   76       //---  Ray IM int egration - --//
182     77  
183       // Tem plate cust omizations   78       // Tem plate cust omizations
184     79  
185           //  profile N ick/Age/Se x etc.   80           //  profile N ick/Age/Se x etc.
186           $n ick = '<a  href="' .  getProfile Link( $p_a rr['ID'] )  . '">' .  $p_arr['Ni ckName'] .  '</a>';   81           $n ick = '<a  href="' .  getProfile Link( $p_a rr['ID'] )  . '">' .  $p_arr['Ni ckName'] .  '</a>';
187     82  
188           $a ge_str = ( $p_arr['Da teOfBirth' ] != "0000 -00-00" ?  (_t("_y/o" , age( $p_ arr['DateO fBirth'] ) ) .' ') :  "");   83           $a ge_str = ( $p_arr['Da teOfBirth' ] != "0000 -00-00" ?  (_t("_y/o" , age( $p_ arr['DateO fBirth'] ) ) .' ') :  "");
189           $a ge_only =  ($p_arr['D ateOfBirth '] != "000 0-00-00" ?  ( age( $p _arr['Date OfBirth']  )) : "");   84           $a ge_only =  ($p_arr['D ateOfBirth '] != "000 0-00-00" ?  ( age( $p _arr['Date OfBirth']  )) : "");
190           $y _o_sex = $ age_str .  _t("_".$p_ arr['Sex'] );   85           $y _o_sex = $ age_str .  _t("_".$p_ arr['Sex'] );
191     86  
192           $c ity =  _t( "_City")." : ".proces s_line_out put($p_arr ['City']);   87           $c ity =  _t( "_City")." : ".proces s_line_out put($p_arr ['City']);
193            $country   =   _t("_Count ry").":   "._t( "__". $ p r of [' c ountr ies '][$p_arr[ 'Country'] ]
).'&nbsp;< img   src="'.   ($site['fl ags'].strt olower($p_ arr['Count ry']))   .'.gif"   alt="flag"   />';
  88            $country   =   _t("_Count ry").":   "._t(
$ aP r eValues [' C ountr y '][$p_arr[ 'Country'] ] ['LKey'] ).'&nbsp;< img   src="'.   ($site['fl ags'].strt olower($p_ arr['Count ry']))   .'.gif"   alt="flag"   />';
194            $city_con   =   process_li ne_output( $p_arr['Ci ty']).",   "._t( "__". $ p r of [' c ountr ies '][$p_arr[ 'Country'] ] ).'&nbsp;< img   src="'.   ($site [' flags'].st rtolow e r($p_arr[' Countr y']) )   . '.gif"   alt="f lag "   />' ;   89           $s Flag = ($p _arr['Coun try'] != ' ') ? '&nbs p;<img src ="'. ($sit e['flags'] .strtolowe r($p_arr[' Country']) ) .'.gif"  alt="flag"  />' : '';
    90            $city_con   =   process_li ne_output( $p_arr['Ci ty']).",   "._t(
$ aP r eValues [' C ountr y '][$p_arr[ 'Country'] ]
[' LK e
y'])
. $sF lag
;
195           $o ccupation  = process_ line_outpu t($p_arr[' Occupation ']);   91           $o ccupation  = process_ line_outpu t($p_arr[' Occupation ']);
196           $c hildren =  ($p_arr['C hildren']  ? ($p_arr[ 'Children' ]." "._t(" _children" )) : "");   92           $c hildren =  ($p_arr['C hildren']  ? ($p_arr[ 'Children' ]." "._t(" _children" )) : "");
197           $i d = _t("_I D").": ".$ p_arr['ID' ];   93           $i d = _t("_I D").": ".$ p_arr['ID' ];
198     94  
199           //  descripti on   95           //  descripti on
200           $i _am = _t(" _I am");   96           $i _am = _t(" _I am");
201           $i _am_desc =  process_s miles( str ip_tags( p rocess_tex t_output(  $p_arr['De scriptionM e'] ), '<i mg>' ) ) .  "...";   97           $i _am_desc =  process_s miles( str ip_tags( p rocess_tex t_output(  $p_arr['De scriptionM e'] ), '<i mg>' ) ) .  "...";
202           $y ou_are = _ t("_You ar e");   98           $y ou_are = _ t("_You ar e");
203           $y ou_are_des c = proces s_smiles(p rocess_tex t_output($ p_arr['Des criptionYo u']))."...  <a href=\ "".getProf ileLink($p _arr['ID'] )."\">"._t ("_more"). "</a>";   99           $y ou_are_des c = proces s_smiles(p rocess_tex t_output($ p_arr['Des criptionYo u']))."...  <a href=\ "".getProf ileLink($p _arr['ID'] )."\">"._t ("_more"). "</a>";
204           /*   100           /*
205           ec ho '<hr>';   101           ec ho '<hr>';
206           pr int_r( $p_ arr );   102           pr int_r( $p_ arr );
207           ec ho '<hr>';   103           ec ho '<hr>';
208           */   104           */
209     105  
210           $s City = $p_ arr['City' ];   106           $s City = $p_ arr['City' ];
211           // echo $sCit y . '<hr>' ;   107           // echo $sCit y . '<hr>' ;
212     108  
213   //--- Ray  IM integra tion start  ---//   109   //--- Ray  IM integra tion start  ---//
214     110  
215       $ai_im  = '';   111       $ai_im  = '';
216       $al_im  = '';   112       $al_im  = '';
217     113  
218       $chech ActionRes  = checkAct ion($membe r['ID'], A CTION_ID_U SE_RAY_IM) ;   114       $chech ActionRes  = checkAct ion($membe r['ID'], A CTION_ID_U SE_RAY_IM) ;
219       if( $b EnableRay  && $chechA ctionRes[C HECK_ACTIO N_RESULT]  == CHECK_A CTION_RESU LT_ALLOWED   && $memb er['ID'] ! = $p_arr[' ID'] && !e mpty( $mem ber['ID']  ) )   115       if( $b EnableRay  && $chechA ctionRes[C HECK_ACTIO N_RESULT]  == CHECK_A CTION_RESU LT_ALLOWED   && $memb er['ID'] ! = $p_arr[' ID'] && !e mpty( $mem ber['ID']  ) )
220       {   116       {
221           $i SndId = (i nt) $membe r['ID'];   117           $i SndId = (i nt) $membe r['ID'];
222           $s SndPasswor d = getPas sword( $me mber['ID']  );   118           $s SndPasswor d = getPas sword( $me mber['ID']  );
223           $i RspId = (i nt) $p_arr ['ID'];   119           $i RspId = (i nt) $p_arr ['ID'];
224     120  
225           if ( $user_is _online )   121           if ( $user_is _online )
226           {   122           {
227                $file_ic on = $dir[ 'root'] ." templates/ tmpl_" . $ tmpl . "/i mages/icon s/action_i m_small.gi f";   123                $file_ic on = $dir[ 'root'] ." templates/ tmpl_" . $ tmpl . "/i mages/icon s/action_i m_small.gi f";
228                if( file _exists( $ file_icon  ) )   124                if( file _exists( $ file_icon  ) )
229                    $ai_ im  .= "<i mg alt=\""  . _t("_IM  now") . " \" class=\ "links_ima ge\" name= i06$p_arr[ ID] src=\" $site[url] templates/ tmpl_$tmpl /images/ic ons/action _im_small. gif\" />";   125                    $ai_ im  .= "<i mg alt=\""  . _t("_IM  now") . " \" class=\ "links_ima ge\" name= i06$p_arr[ ID] src=\" $site[url] templates/ tmpl_$tmpl /images/ic ons/action _im_small. gif\" />";
230                $al_im . = '<a href ="javascri pt:void(0) ;" onClick ="javascri pt: openRa yWidget( \ 'im\', \'u ser\', \''  . $iSndId  . '\', \' ' . $sSndP assword .  '\', \'' .  $iRspId .  '\' ); re turn false ;">';   126                $al_im . = '<a href ="javascri pt:void(0) ;" onClick ="javascri pt: openRa yWidget( \ 'im\', \'u ser\', \''  . $iSndId  . '\', \' ' . $sSndP assword .  '\', \'' .  $iRspId .  '\' ); re turn false ;">';
231                $al_im =  '<span cl ass="links _span">' .  $ai_im .  $al_im . u cwords( _t ( "_IM now ", $p_arr[ 'NickName' ] ) ) . '< /a></span> ';   127                $al_im =  '<span cl ass="links _span">' .  $ai_im .  $al_im . u cwords( _t ( "_IM now ", $p_arr[ 'NickName' ] ) ) . '< /a></span> ';
232           }   128           }
233       }   129       }
234     130  
235   //--- Ray  IM integra tion end - --//   131   //--- Ray  IM integra tion end - --//
236     132  
237   /* Standar d IM comme nted out   133   /* Standar d IM comme nted out
238       else i f ( $enabl e_im )   134       else i f ( $enabl e_im )
239       {   135       {
240           if  ( $user_i s_online )   136           if  ( $user_i s_online )
241           {   137           {
242                $al_im =  "<a href= \"javascri pt:void(0) ;\" OnClic k=\"javasc ript: laun chAddToIM( {$p_arr['I D']}); ret urn false; \"";   138                $al_im =  "<a href= \"javascri pt:void(0) ;\" OnClic k=\"javasc ript: laun chAddToIM( {$p_arr['I D']}); ret urn false; \"";
243           }   139           }
244           el se   140           el se
245           {   141           {
246                $al_im =  "<a href= 'javascrip t: void(0) ;' OnClick =\"javascr ipt: alert ('". _t("_ Sorry, use r is OFFLI NE") ."');  return fa lse;\"";   142                $al_im =  "<a href= 'javascrip t: void(0) ;' OnClick =\"javascr ipt: alert ('". _t("_ Sorry, use r is OFFLI NE") ."');  return fa lse;\"";
247           }   143           }
248     144  
249           if  ( $pa_ico n_preload  )   145           if  ( $pa_ico n_preload  )
250                $al_im . = "onMouse Out =\"jav ascript: i 06$p_arr[I D].src='$s ite[images ]pa_im.gif ';\"";   146                $al_im . = "onMouse Out =\"jav ascript: i 06$p_arr[I D].src='$s ite[images ]pa_im.gif ';\"";
251     147  
252           $a l_im .= "> ";   148           $a l_im .= "> ";
253     149  
254           $f ile_icon =  $dir['roo t'] ."temp lates/tmpl _".$tmpl." /images/pa _im.gif";   150           $f ile_icon =  $dir['roo t'] ."temp lates/tmpl _".$tmpl." /images/pa _im.gif";
255           if  ( file_ex ists( $fil e_icon ) )   151           if  ( file_ex ists( $fil e_icon ) )
256                $ai_im . = $al_im . "<img name =i06$p_arr [ID] src=\ "". $site[ 'images'].  "pa_im.gi f\" border =0></a>";   152                $ai_im . = $al_im . "<img name =i06$p_arr [ID] src=\ "". $site[ 'images'].  "pa_im.gi f\" border =0></a>";
257           $a l_im .= _t ("_chat no w") ."</a> ";   153           $a l_im .= _t ("_chat no w") ."</a> ";
258       }   154       }
259    Standard  IM comment ed out */   155    Standard  IM comment ed out */
260     156  
261   /* View Pr ofile comm ented out   157   /* View Pr ofile comm ented out
262           $a i_viewprof  = "<img a lt=\""._t( "_View Pro file")."\"  name=i00$ p_arr[ID]  src=\"$sit e[images]p a_profile. gif\" bord er=0>";   158           $a i_viewprof  = "<img a lt=\""._t( "_View Pro file")."\"  name=i00$ p_arr[ID]  src=\"$sit e[images]p a_profile. gif\" bord er=0>";
263           $a l_viewprof  = "<a hre f=\"$p_arr [NickName] \"";   159           $a l_viewprof  = "<a hre f=\"$p_arr [NickName] \"";
264     160  
265           if  ( $pa_ico n_preload  )   161           if  ( $pa_ico n_preload  )
266           {   162           {
267            $ al_viewpro f.="onMous eOver=\"ja vascript:i 00$p_arr[I D].src='$s ite[images ]pa_profil e2.gif';\" ";   163            $ al_viewpro f.="onMous eOver=\"ja vascript:i 00$p_arr[I D].src='$s ite[images ]pa_profil e2.gif';\" ";
268            $ al_viewpro f.="onMous eOut =\"ja vascript:i 00$p_arr[I D].src='$s ite[images ]pa_profil e.gif';\"" ;   164            $ al_viewpro f.="onMous eOut =\"ja vascript:i 00$p_arr[I D].src='$s ite[images ]pa_profil e.gif';\"" ;
269           }   165           }
270           $a l_viewprof  .= ">";   166           $a l_viewprof  .= ">";
271           $a i_viewprof  = $al_vie wprof.$ai_ viewprof." </a>";   167           $a i_viewprof  = $al_vie wprof.$ai_ viewprof." </a>";
272           $a l_viewprof  .= _t("_V iew Profil e")."</a>" ;   168           $a l_viewprof  .= _t("_V iew Profil e")."</a>" ;
273    View Prof ile commen ted out */   169    View Prof ile commen ted out */
274     170  
275   //--- Gree ting start  ---//   171   //--- Gree ting start  ---//
276     172  
277           $c hechAction Res = chec kAction($m ember['ID' ], ACTION_ ID_SEND_VK ISS);   173           $c hechAction Res = chec kAction($m ember['ID' ], ACTION_ ID_SEND_VK ISS);
278           if ( ( $chech ActionRes[ CHECK_ACTI ON_RESULT]  == CHECK_ ACTION_RES ULT_ALLOWE D )  && (  $member['I D'] != $p_ arr['ID']  ) )   174           if ( ( $chech ActionRes[ CHECK_ACTI ON_RESULT]  == CHECK_ ACTION_RES ULT_ALLOWE D )  && (  $member['I D'] != $p_ arr['ID']  ) )
279           {   175           {
280                $ai_kiss  = "<img a lt=\"" . _ t("_Greet" ) . "\" cl ass=\"link s_image\"  name=i01$p _arr[ID] s rc=\"" . $ site['url' ] . "templ ates/tmpl_ " . $tmpl  . "/images /icons/act ion_greet_ small.gif\ " />";   176                $ai_kiss  = "<img a lt=\"" . _ t("_Greet" ) . "\" cl ass=\"link s_image\"  name=i01$p _arr[ID] s rc=\"" . $ site['url' ] . "templ ates/tmpl_ " . $tmpl  . "/images /icons/act ion_greet_ small.gif\ " />";
281                $al_kiss  = '<a tar get=_blank  href="gre et.php?sen dto=' . $p _arr[ID] .  '"';   177                $al_kiss  = '<a tar get=_blank  href="gre et.php?sen dto=' . $p _arr[ID] .  '"';
282                if ( $pa _icon_prel oad )   178                if ( $pa _icon_prel oad )
283                {   179                {
284                    $al_ kiss.="onM ouseOver=\ "javascrip t: i01$p_a rr[ID].src ='$site[im ages]pa_ki ss2.gif';\ "";   180                    $al_ kiss.="onM ouseOver=\ "javascrip t: i01$p_a rr[ID].src ='$site[im ages]pa_ki ss2.gif';\ "";
285                    $al_ kiss.="onM ouseOut =\ "javascrip t: i01$p_a rr[ID].src ='$site[im ages]pa_ki ss.gif';\" ";   181                    $al_ kiss.="onM ouseOut =\ "javascrip t: i01$p_a rr[ID].src ='$site[im ages]pa_ki ss.gif';\" ";
286                }   182                }
287                $al_kiss  .= ">";   183                $al_kiss  .= ">";
288                $al_kiss  = "<span  class=\"li nks_span\" >" . $ai_k iss . $al_ kiss . _t( "_Greet"). "</a></spa n>";   184                $al_kiss  = "<span  class=\"li nks_span\" >" . $ai_k iss . $al_ kiss . _t( "_Greet"). "</a></spa n>";
289           }   185           }
290           el se   186           el se
291           {   187           {
292                $al_kiss  =  '';    188                $al_kiss  =  ''; 
293           }   189           }
294              190           
295   //--- Gree ting end - --//   191   //--- Gree ting end - --//
296     192  
297   //--- Cont act start  ---//   193   //--- Cont act start  ---//
298     194  
299           $c hechAction Res = chec kAction($m ember['ID' ], ACTION_ ID_SEND_ME SSAGE);   195           $c hechAction Res = chec kAction($m ember['ID' ], ACTION_ ID_SEND_ME SSAGE);
300           if ( ( $chech ActionRes[ CHECK_ACTI ON_RESULT]  == CHECK_ ACTION_RES ULT_ALLOWE D )  && (  $member['I D'] != $p_ arr['ID']  ) )   196           if ( ( $chech ActionRes[ CHECK_ACTI ON_RESULT]  == CHECK_ ACTION_RES ULT_ALLOWE D )  && (  $member['I D'] != $p_ arr['ID']  ) )
301           {   197           {
302                $ai_send msg  = "<i mg alt=\"" ._t("_SEND _MESSAGE") ."\" name= i02$p_arr[ ID] src=\" $site[url] templates/ tmpl_$tmpl /images/ic ons/action _send_smal l.gif\" cl ass=\"link s_image\"  />";   198                $ai_send msg  = "<i mg alt=\"" ._t("_SEND _MESSAGE") ."\" name= i02$p_arr[ ID] src=\" $site[url] templates/ tmpl_$tmpl /images/ic ons/action _send_smal l.gif\" cl ass=\"link s_image\"  />";
303                $al_send msg  = "<a  href=\"co mpose.php? ID=$p_arr[ ID]\"";   199                $al_send msg  = "<a  href=\"co mpose.php? ID=$p_arr[ ID]\"";
304                if ( $pa _icon_prel oad )   200                if ( $pa _icon_prel oad )
305                {   201                {
306                    $al_ sendmsg.=" onMouseOve r=\"javasc ript: i02$ p_arr[ID]. src='$site [images]pa _send2.gif ';\"";   202                    $al_ sendmsg.=" onMouseOve r=\"javasc ript: i02$ p_arr[ID]. src='$site [images]pa _send2.gif ';\"";
307                    $al_ sendmsg.=" onMouseOut  =\"javasc ript: i02$ p_arr[ID]. src='$site [images]pa _send.gif' ;\"";   203                    $al_ sendmsg.=" onMouseOut  =\"javasc ript: i02$ p_arr[ID]. src='$site [images]pa _send.gif' ;\"";
308                }   204                }
309                $al_send msg .= ">" ;   205                $al_send msg .= ">" ;
310                $al_send msg  = "<s pan class= \"links_sp an\">" . $ ai_sendmsg  . $al_sen dmsg . _t( "_Contact" )."</a></s pan>";   206                $al_send msg  = "<s pan class= \"links_sp an\">" . $ ai_sendmsg  . $al_sen dmsg . _t( "_Contact" )."</a></s pan>";
311           }   207           }
312           el se   208           el se
313           {   209           {
314                $al_send msg = '';   210                $al_send msg = '';
315           }   211           }
316              212           
317   //--- Cont act end -- -//        213   //--- Cont act end -- -//     
318     214  
319           if  ( $logged ['member']  )   215           if  ( $logged ['member']  )
320           {   216           {
321                $ai_hot   ="<img al t=\""._t(" _hot membe r")."\" na me=i03$p_a rr[ID] src =\"$site[i mages]pa_h ot.gif\" b order=0>";   217                $ai_hot   ="<img al t=\""._t(" _hot membe r")."\" na me=i03$p_a rr[ID] src =\"$site[i mages]pa_h ot.gif\" b order=0>";
322                $al_hot   ="<a href =\"javascr ipt:void(0 );\" onCli ck=\"javas cript:wind ow.open( ' list_pop.p hp?action= hot&ID=".$ p_arr['ID' ]."', '',  'width=280 ,height=20 0,menubar= no,status= no,resizab le=no,scro llbars=yes ,toolbar=n o, locatio n=no' );\" ";   218                $al_hot   ="<a href =\"javascr ipt:void(0 );\" onCli ck=\"javas cript:wind ow.open( ' list_pop.p hp?action= hot&ID=".$ p_arr['ID' ]."', '',  'width=280 ,height=20 0,menubar= no,status= no,resizab le=no,scro llbars=yes ,toolbar=n o, locatio n=no' );\" ";
323                if ( $pa _icon_prel oad )   219                if ( $pa _icon_prel oad )
324                {   220                {
325                 $al_hot .="onMouse Over=\"jav ascript: i 03$p_arr[I D].src='$s ite[images ]pa_hot2.g if';\"";   221                 $al_hot .="onMouse Over=\"jav ascript: i 03$p_arr[I D].src='$s ite[images ]pa_hot2.g if';\"";
326                 $al_hot .="onMouse Out =\"jav ascript: i 03$p_arr[I D].src='$s ite[images ]pa_hot.gi f';\"";   222                 $al_hot .="onMouse Out =\"jav ascript: i 03$p_arr[I D].src='$s ite[images ]pa_hot.gi f';\"";
327                }   223                }
328                $al_hot  .= ">";   224                $al_hot  .= ">";
329                $ai_hot   = $al_hot .$ai_hot." </a>";   225                $ai_hot   = $al_hot .$ai_hot." </a>";
330                $al_hot  .= _t("_ho t member") ."</a>";   226                $al_hot  .= _t("_ho t member") ."</a>";
331     227  
332                $ai_frie nd  ="<img  alt=\""._ t("_friend  member"). "\" name=i 03$p_arr[I D] src=\"$ site[image s]pa_frien d.gif\" bo rder=0>";   228                $ai_frie nd  ="<img  alt=\""._ t("_friend  member"). "\" name=i 03$p_arr[I D] src=\"$ site[image s]pa_frien d.gif\" bo rder=0>";
333                $al_frie nd  ="<a h ref=\"java script:voi d(0);\" on Click=\"ja vascript:w indow.open ( 'list_po p.php?acti on=friend& ID=".$p_ar r['ID']."' , '', 'wid th=280,hei ght=200,me nubar=no,s tatus=no,r esizable=n o,scrollba rs=yes,too lbar=no, l ocation=no ' );\"";   229                $al_frie nd  ="<a h ref=\"java script:voi d(0);\" on Click=\"ja vascript:w indow.open ( 'list_po p.php?acti on=friend& ID=".$p_ar r['ID']."' , '', 'wid th=280,hei ght=200,me nubar=no,s tatus=no,r esizable=n o,scrollba rs=yes,too lbar=no, l ocation=no ' );\"";
334                if ( $pa _icon_prel oad )   230                if ( $pa _icon_prel oad )
335                {   231                {
336                 $al_fri end.="onMo useOver=\" javascript : i03$p_ar r[ID].src= '$site[ima ges]pa_fri end2.gif'; \"";   232                 $al_fri end.="onMo useOver=\" javascript : i03$p_ar r[ID].src= '$site[ima ges]pa_fri end2.gif'; \"";
337                 $al_fri end.="onMo useOut =\" javascript : i03$p_ar r[ID].src= '$site[ima ges]pa_fri end.gif';\ "";   233                 $al_fri end.="onMo useOut =\" javascript : i03$p_ar r[ID].src= '$site[ima ges]pa_fri end.gif';\ "";
338                }   234                }
339                $al_frie nd .= ">";   235                $al_frie nd .= ">";
340                $ai_frie nd  = $al_ friend.$ai _friend."< /a>";   236                $ai_frie nd  = $al_ friend.$ai _friend."< /a>";
341                $al_frie nd .= _t(" _friend me mber")."</ a>";   237                $al_frie nd .= _t(" _friend me mber")."</ a>";
342     238  
343                $ai_bloc k  ="<img  alt=\""._t ("_block m ember")."\ " name=i04 $p_arr[ID]  src=\"$si te[images] pa_block.g if\" borde r=0>";   239                $ai_bloc k  ="<img  alt=\""._t ("_block m ember")."\ " name=i04 $p_arr[ID]  src=\"$si te[images] pa_block.g if\" borde r=0>";
344                $al_bloc k  ="<a hr ef=\"javas cript:void (0);\" onC lick=\"jav ascript:wi ndow.open(  'list_pop .php?actio n=block&ID =".$p_arr[ 'ID']."',  '', 'width =280,heigh t=200,menu bar=no,sta tus=no,res izable=no, scrollbars =yes,toolb ar=no, loc ation=no'  );\"";   240                $al_bloc k  ="<a hr ef=\"javas cript:void (0);\" onC lick=\"jav ascript:wi ndow.open(  'list_pop .php?actio n=block&ID =".$p_arr[ 'ID']."',  '', 'width =280,heigh t=200,menu bar=no,sta tus=no,res izable=no, scrollbars =yes,toolb ar=no, loc ation=no'  );\"";
345                if ( $pa _icon_prel oad )   241                if ( $pa _icon_prel oad )
346                {   242                {
347                 $al_blo ck.="onMou seOver=\"j avascript:  i04$p_arr [ID].src=' $site[imag es]pa_bloc k2.gif';\" ";   243                 $al_blo ck.="onMou seOver=\"j avascript:  i04$p_arr [ID].src=' $site[imag es]pa_bloc k2.gif';\" ";
348                 $al_blo ck.="onMou seOut =\"j avascript:  i04$p_arr [ID].src=' $site[imag es]pa_bloc k.gif';\"" ;   244                 $al_blo ck.="onMou seOut =\"j avascript:  i04$p_arr [ID].src=' $site[imag es]pa_bloc k.gif';\"" ;
349                }   245                }
350                $al_bloc k .= ">";   246                $al_bloc k .= ">";
351                $ai_bloc k  = $al_b lock.$ai_b lock."</a> ";   247                $ai_bloc k  = $al_b lock.$ai_b lock."</a> ";
352                $al_bloc k .= _t("_ block memb er")."</a> ";   248                $al_bloc k .= _t("_ block memb er")."</a> ";
353           }   249           }
354              250           
355   //--- Fave  Start --- //   251   //--- Fave  Start --- //
356     252  
357       if( $l ogged['mem ber'] && $ member['ID '] != $p_a rr['ID'] )   253       if( $l ogged['mem ber'] && $ member['ID '] != $p_a rr['ID'] )
358       {   254       {
359           $a i_fave  =  "<img alt= \"" . _t(" _Fave") .  "\" class= \"links_im age\" name =i03$p_arr [ID] src=\ "$site[url ]templates /tmpl_$tmp l/images/i cons/actio n_fave_sma ll.gif\" / >";   255           $a i_fave  =  "<img alt= \"" . _t(" _Fave") .  "\" class= \"links_im age\" name =i03$p_arr [ID] src=\ "$site[url ]templates /tmpl_$tmp l/images/i cons/actio n_fave_sma ll.gif\" / >";
360           $a l_fave  =  "<a href=\ "javascrip t:void(0); \" onclick =\"window. open( 'lis t_pop.php? action=hot &amp;ID=$p rofileID',     '', 'w idth={$oTe mplConfig  -> popUpWi ndowWidth} ,height={$ oTemplConf ig -> popU pWindowHei ght},menub ar=no,stat us=no,resi zable=no,s crollbars= yes,toolba r=no,locat ion=no' ); \">";   256           $a l_fave  =  "<a href=\ "javascrip t:void(0); \" onclick =\"window. open( 'lis t_pop.php? action=hot &amp;ID=$p rofileID',     '', 'w idth={$oTe mplConfig  -> popUpWi ndowWidth} ,height={$ oTemplConf ig -> popU pWindowHei ght},menub ar=no,stat us=no,resi zable=no,s crollbars= yes,toolba r=no,locat ion=no' ); \">";
361           $a l_fave = ' <span clas s="links_s pan">' . $ ai_fave .  $al_fave .  _t("_Fave ") . "</a> </span>";   257           $a l_fave = ' <span clas s="links_s pan">' . $ ai_fave .  $al_fave .  _t("_Fave ") . "</a> </span>";
362       }   258       }
363       else   259       else
364       {   260       {
365           $a l_fave = ' ';   261           $a l_fave = ' ';
366       }   262       }
367     263  
368   //--- Fave  End ---//   264   //--- Fave  End ---//
369          265       
370       $more  = '<a href ="' . getP rofileLink ( $p_arr[' ID'] ) . ' " target=" _blank">';   266       $more  = '<a href ="' . getP rofileLink ( $p_arr[' ID'] ) . ' " target=" _blank">';
371           $m ore .= '<i mg src="'  . $site['i cons'] . ' desc_more. gif" alt=" ' . _t('_m ore') . '"  />';   267           $m ore .= '<i mg src="'  . $site['i cons'] . ' desc_more. gif" alt=" ' . _t('_m ore') . '"  />';
372       $more  .= '</a>';   268       $more  .= '</a>';
373     269  
374       $enabl e_more_pho tos = ( 'o n' == getP aram("more _photos_on _searchrow ")) ? 1 :  0;   270       $enabl e_more_pho tos = ( 'o n' == getP aram("more _photos_on _searchrow ")) ? 1 :  0;
375       if( $e nable_more _photos )   271       if( $e nable_more _photos )
376       {   272       {
377           $m ore_photos  = '';   273           $m ore_photos  = '';
378           fo r( $i=1 ;  $i<=$pic_n um; ++$i )   274           fo r( $i=1 ;  $i<=$pic_n um; ++$i )
379           {   275           {
380                if( $p_a rr['Pic_'  . $i . '_a ddon'] > 0  )   276                if( $p_a rr['Pic_'  . $i . '_a ddon'] > 0  )
381                {   277                {
382                    $pho to_counter  ++;   278                    $pho to_counter  ++;
383                }   279                }
384           }   280           }
385           if ( ( 0 < $p hoto_count er ) && (  $logged['a dmin'] ||  $check_res [CHECK_ACT ION_RESULT ] == CHECK _ACTION_RE SULT_ALLOW ED ) )   281           if ( ( 0 < $p hoto_count er ) && (  $logged['a dmin'] ||  $check_res [CHECK_ACT ION_RESULT ] == CHECK _ACTION_RE SULT_ALLOW ED ) )
386           {   282           {
387                $more_ph otos = '<a  href="jav ascript:vo id(0);" on Click="jav ascript: g et_gallery (' . $p_ar r['ID'] .  ');" class ="search_m ore_photo" >';   283                $more_ph otos = '<a  href="jav ascript:vo id(0);" on Click="jav ascript: g et_gallery (' . $p_ar r['ID'] .  ');" class ="search_m ore_photo" >';
388                    $mor e_photos . = $photo_c ounter . ' &nbsp;' .  _t("_More  Photos");   284                    $mor e_photos . = $photo_c ounter . ' &nbsp;' .  _t("_More  Photos");
389                $more_ph otos .= '< /a>';   285                $more_ph otos .= '< /a>';
390           }   286           }
391           el se   287           el se
392           {   288           {
393                $more_ph otos = '';   289                $more_ph otos = '';
394           }   290           }
395       }   291       }
396     292  
397       // --- ---------  [end] temp late varia bles ----- ---------   293       // --- ---------  [end] temp late varia bles ----- ---------
    294       if ($a CoupleInfo ) {
    295           //  profile N ick/Age/Se x etc.
    296           $n ick2 = '<a  href="' .  getProfil eLink( $aC oupleInfo[ 'ID'] ) .  '">' . $aC oupleInfo[ 'NickName' ] . '</a>' ;
    297  
    298           $a ge_str2 =  ($aCoupleI nfo['DateO fBirth'] ! = "0000-00 -00" ? (_t ("_y/o", a ge( $aCoup leInfo['Da teOfBirth' ] )) .' ')  : "");
    299           $a ge_only2 =  ($aCouple Info['Date OfBirth']  != "0000-0 0-00" ? (  age( $aCou pleInfo['D ateOfBirth '] )) : "" );
    300           $y _o_sex2 =  $age_str2  . _t("_".$ aCoupleInf o['Sex']);
    301  
    302           $c ity2 =  _t ("_City"). ": ".proce ss_line_ou tput($aCou pleInfo['C ity']);
    303           $c ountry2 =  _t("_Count ry").": ". _t($aPreVa lues['Coun try'][$aCo upleInfo[' Country']] ['LKey']). '&nbsp;<im g src="'.  ($site['fl ags'].strt olower($aC oupleInfo[ 'Country'] )) .'.gif"  alt="flag " />';
    304           $c ity_con2 =  process_l ine_output ($aCoupleI nfo['City' ]).", "._t ($aPreValu es['Countr y'][$aCoup leInfo['Co untry']][' LKey']).'& nbsp;<img  src="'. ($ site['flag s'].strtol ower($aCou pleInfo['C ountry']))  .'.gif" a lt="flag"  />';
    305           $o ccupation2  = process _line_outp ut($aCoupl eInfo['Occ upation']) ;
    306           $c hildren2 =  ($aCouple Info['Chil dren'] ? ( $aCoupleIn fo['Childr en']." "._ t("_childr en")) : "" );
    307           $i d2 = _t("_ ID").": ". $aCoupleIn fo['ID'];
    308  
    309           //  descripti on
    310           $i _am2 = _t( "_I am");
    311           $i _am_desc2  = process_ smiles( st rip_tags(  process_te xt_output(  $aCoupleI nfo['Descr iptionMe']  ), '<img> ' ) ) . ". ..";
    312           $y ou_are2 =  _t("_You a re");
    313           $y ou_are_des c2 = proce ss_smiles( process_te xt_output( $aCoupleIn fo['Descri ptionYou'] ))."... <a  href=\"". getProfile Link($aCou pleInfo['I D'])."\">" ._t("_more ")."</a>";
    314  
    315           $s City2 = $a CoupleInfo ['City'];
    316  
    317           $t empl = str _replace (  "__add_st yle_c1__",  'float:le ft;width:3 1%;margin- right:10px ;', $templ  );
    318           $t empl = str _replace (  "__add_st yle_c2__",  'float:le ft;width:3 1%;display :block;',  $templ );
    319  
    320           $t empl = str _replace (  "__nick2_ _", $nick2 , $templ ) ;
    321           $t empl = str _replace (  "__age_se x2__", $y_ o_sex2, $t empl );
    322  
    323           $t empl = str _replace (  "__city_c on2__", $c ity_con2,  $templ );
    324           $t empl = str _replace (  "__i_am_d esc2__", $ i_am_desc2 , $templ ) ;
    325  
    326           if ( $logged[ 'member']  && ( $memb er['ID'] ! = $aCouple Info['ID']  ) && getP aram( 'ena ble_match'  ) ) {
    327                $templ =  str_repla ce ( "__ma tch2__", g etProfileM atch( $mem ber['ID'],  $aCoupleI nfo['ID']  ), $templ  );
    328           }  else {
    329                $templ =  str_repla ce ( "__ma tch2__", ' ', $templ  );
    330           }
    331  
    332       } else  {
    333           $t empl = str _replace (  "__add_st yle_c1__",  '', $temp l );
    334           $t empl = str _replace (  "__add_st yle_c2__",  'display: none;', $t empl );
    335           $t empl = str _replace (  "__match2 __", '', $ templ );
    336       }
    337  
398     338  
399       // rep lace templ ate variab les   339       // rep lace templ ate variab les
400       $templ  = str_rep lace ( "__ row_title_ _", proces s_line_out put($p_arr [Headline] ), $templ  );   340       $templ  = str_rep lace ( "__ row_title_ _", proces s_line_out put($p_arr [Headline] ), $templ  );
401       $templ  = str_rep lace ( "__ n__", $iNu mber, $tem pl );   341       $templ  = str_rep lace ( "__ n__", $iNu mber, $tem pl );
    342       if (is set($p_arr ['Couple'] ) && $p_ar r['Couple' ] > 0) {
    343           $i MaxThumbWi dth = getP aram('max_ thumb_widt h');
    344           $i NewWidth =  2 * ( $iM axThumbWid th + 10 +  2 ) ;
    345           $t empl = str _replace (  "__ext_st __", 'styl e="width:'  . $iNewWi dth . 'px; "', $templ  );
    346       } else  {
    347           $i MaxThumbWi dth = getP aram('max_ thumb_widt h');
    348           $i NewWidth =  1 * ( $iM axThumbWid th +12 ) ;
    349           $t empl = str _replace (  "__ext_st __", 'styl e="width:'  . $iNewWi dth . 'px; "', $templ  );
    350       }
    351       //$tem pl = str_r eplace ( " __ext_st__ ", '', $te mpl );
402       $templ  = str_rep lace ( "__ thumbnail_ _", $thumb nail, $tem pl );   352       $templ  = str_rep lace ( "__ thumbnail_ _", $thumb nail, $tem pl );
403       $templ  = str_rep lace ( "__ launch_ray _im__", $l aunch_ray_ im, $templ  );   353       $templ  = str_rep lace ( "__ launch_ray _im__", $l aunch_ray_ im, $templ  );
404     354  
405       // mat ch progres s bar   355       // mat ch progres s bar
406        if(   $logged['m ember']   &&   (   $member['I D']   !=   $p_arr['ID ']   )   &&   $ enable_mat ch  
)
  356        if(   $logged['m ember']   &&   (   $member['I D']   !=   $p_arr['ID ']   )   &&   getParam(   ' enable_mat ch '   )   )
407       {   357       {
408           $t empl = str _replace (  "__match_ _", getPro fileMatch(  $member[' ID'], $p_a rr['ID'] ) , $templ ) ;   358           $t empl = str _replace (  "__match_ _", getPro fileMatch(  $member[' ID'], $p_a rr['ID'] ) , $templ ) ;
409       }   359       }
410       else   360       else
411       {   361       {
412           $t empl = str _replace (  "__match_ _", '', $t empl );   362           $t empl = str _replace (  "__match_ _", '', $t empl );
413       }   363       }
414     364  
415     365  
416       $templ  = str_rep lace ( "__ nick__", $ nick, $tem pl );   366       $templ  = str_rep lace ( "__ nick__", $ nick, $tem pl );
417       $templ  = str_rep lace ( "__ nick__", $ nick, $tem pl );    
418       $templ  = str_rep lace ( "__ age_sex__" , $y_o_sex , $templ ) ;   367       $templ  = str_rep lace ( "__ age_sex__" , $y_o_sex , $templ ) ;
419       $templ  = str_rep lace ( "__ city__", $ city, $tem pl );   368       $templ  = str_rep lace ( "__ city__", $ city, $tem pl );
420       $templ  = str_rep lace ( "__ just_city_ _", $sCity , $templ ) ;   369       $templ  = str_rep lace ( "__ just_city_ _", $sCity , $templ ) ;
421       $templ  = str_rep lace ( "__ just_age__ ", $age_on ly, $templ  );   370       $templ  = str_rep lace ( "__ just_age__ ", $age_on ly, $templ  );
422     371  
423     372  
424       $templ  = str_rep lace ( "__ city_con__ ", $city_c on, $templ  );   373       $templ  = str_rep lace ( "__ city_con__ ", $city_c on, $templ  );
425       $templ  = str_rep lace ( "__ country__" , $country , $templ ) ;   374       $templ  = str_rep lace ( "__ country__" , $country , $templ ) ;
426       $templ  = str_rep lace ( "__ occupation __", $occu pation, $t empl );   375       $templ  = str_rep lace ( "__ occupation __", $occu pation, $t empl );
427       $templ  = str_rep lace ( "__ children__ ", $childr en, $templ  );   376       $templ  = str_rep lace ( "__ children__ ", $childr en, $templ  );
428       $templ  = str_rep lace ( "__ id__", $id , $templ ) ;   377       $templ  = str_rep lace ( "__ id__", $id , $templ ) ;
429     378  
430     379  
431        if   (   $enable_zo diac   )
  380        if   (   $enable_zo diac   )   {
432       {    
433           $t empl = str _replace (  "__zodiac _sign__",  getProfile Zodiac($p_ arr['DateO fBirth']),  $templ );   381           $t empl = str _replace (  "__zodiac _sign__",  getProfile Zodiac($p_ arr['DateO fBirth']),  $templ );
434       }   382        }   else   {
435       
else
   
436       {    
437           $t empl = str _replace (  "__zodiac _sign__",  "", $templ  );   383           $t empl = str _replace (  "__zodiac _sign__",  "", $templ  );
438       }   384       }
439     385  
440       /*if(  $enable_fr iendlist )    
441       {    
442           $t empl = str _replace (  "__friend _list__",  ShowFriend List($p_ar r[ID]), $t empl );    
443       }    
444       else    
445       {    
446           $t empl = str _replace (  "__friend _list__",  "", $templ  );    
447       }*/    
448      
449      
450       $templ  = str_rep lace ( "__ i_am__", $ i_am, $tem pl );   386       $templ  = str_rep lace ( "__ i_am__", $ i_am, $tem pl );
451       $templ  = str_rep lace ( "__ i_am_desc_ _", $i_am_ desc, $tem pl );   387       $templ  = str_rep lace ( "__ i_am_desc_ _", $i_am_ desc, $tem pl );
452       $templ  = str_rep lace ( "__ you_are__" , $you_are , $templ ) ;   388       $templ  = str_rep lace ( "__ you_are__" , $you_are , $templ ) ;
453       $templ  = str_rep lace ( "__ you_are_de sc__", $yo u_are_desc , $templ ) ;   389       $templ  = str_rep lace ( "__ you_are_de sc__", $yo u_are_desc , $templ ) ;
454     390  
455       $templ  = str_rep lace ( "__ ai_im__",  $ai_im, $t empl );   391       $templ  = str_rep lace ( "__ ai_im__",  $ai_im, $t empl );
456       $templ  = str_rep lace ( "__ al_im__",  $al_im, $t empl );   392       $templ  = str_rep lace ( "__ al_im__",  $al_im, $t empl );
457       $templ  = str_rep lace ( "__ ai_viewpro f__", $ai_ viewprof,  $templ );   393       $templ  = str_rep lace ( "__ ai_viewpro f__", $ai_ viewprof,  $templ );
458       $templ  = str_rep lace ( "__ al_viewpro f__", $al_ viewprof,  $templ );   394       $templ  = str_rep lace ( "__ al_viewpro f__", $al_ viewprof,  $templ );
459       $templ  = str_rep lace ( "__ ai_kiss__" , $ai_kiss , $templ ) ;   395       $templ  = str_rep lace ( "__ ai_kiss__" , $ai_kiss , $templ ) ;
460       $templ  = str_rep lace ( "__ al_kiss__" , $al_kiss , $templ ) ;   396       $templ  = str_rep lace ( "__ al_kiss__" , $al_kiss , $templ ) ;
461       $templ  = str_rep lace ( "__ ai_sendmsg __", $ai_s endmsg, $t empl );   397       $templ  = str_rep lace ( "__ ai_sendmsg __", $ai_s endmsg, $t empl );
462       $templ  = str_rep lace ( "__ al_sendmsg __", $al_s endmsg, $t empl );   398       $templ  = str_rep lace ( "__ al_sendmsg __", $al_s endmsg, $t empl );
463       $templ  = str_rep lace ( "__ ai_fave__" , $ai_fave , $templ ) ;   399       $templ  = str_rep lace ( "__ ai_fave__" , $ai_fave , $templ ) ;
464       $templ  = str_rep lace ( "__ al_fave__" , $al_fave , $templ ) ;   400       $templ  = str_rep lace ( "__ al_fave__" , $al_fave , $templ ) ;
465       $templ  = str_rep lace ( "__ ai_hot__",  $ai_hot,  $templ );   401       $templ  = str_rep lace ( "__ ai_hot__",  $ai_hot,  $templ );
466       $templ  = str_rep lace ( "__ al_hot__",  $al_hot,  $templ );   402       $templ  = str_rep lace ( "__ al_hot__",  $al_hot,  $templ );
467       $templ  = str_rep lace ( "__ ai_block__ ", $ai_blo ck, $templ  );   403       $templ  = str_rep lace ( "__ ai_block__ ", $ai_blo ck, $templ  );
468       $templ  = str_rep lace ( "__ al_block__ ", $al_blo ck, $templ  );   404       $templ  = str_rep lace ( "__ al_block__ ", $al_blo ck, $templ  );
469       $templ  = str_rep lace ( "__ from__", _ t("_from") , $templ ) ;   405       $templ  = str_rep lace ( "__ from__", _ t("_from") , $templ ) ;
470       $templ  = str_rep lace ( "__ more__", $ more, $tem pl );   406       $templ  = str_rep lace ( "__ more__", $ more, $tem pl );
471       $templ  = str_rep lace ( "__ more_photo s__", $mor e_photos,  $templ );   407       $templ  = str_rep lace ( "__ more_photo s__", $mor e_photos,  $templ );
472       $templ  = str_rep lace ( "__ images__",  $site['im ages'], $t empl );   408       $templ  = str_rep lace ( "__ images__",  $site['im ages'], $t empl );
473       if ( f unction_ex ists( 'col ors_select ' ) )   409       if ( f unction_ex ists( 'col ors_select ' ) )
474           $t empl = str _replace (  "__design BoxColor__ ", colors_ select(),  $templ );   410           $t empl = str _replace (  "__design BoxColor__ ", colors_ select(),  $templ );
475     411  
476       return  $templ;   412       return  $templ;
477     413  
478   }   414   }
479     415  
480     416  
481   ?>   417   ?>