49. File Comparison Report

Produced on Thu Jul 17 07:17:30 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.

49.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.1.2 browse.php Sun May 11 13:17:04 2008 UTC
2 Dolphin-v.6.1.3 browse.php Wed Jul 16 09:51:23 2008 UTC

49.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 5 662
Changed 3 8
Inserted 1 1
Removed 0 0

49.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

49.4 Active regular expressions

No regular expressions were active.

49.5 Comparison detail

1   <?   1   <?
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     21  
22   require_on ce( 'inc/h eader.inc. php' );   22   require_on ce( 'inc/h eader.inc. php' );
23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );
25     25  
26   $_page['na me_index']  = 60;   26   $_page['na me_index']  = 60;
27   $_page['he ader'] = _ t("_Browse  Profiles" , $site['t itle']);   27   $_page['he ader'] = _ t("_Browse  Profiles" , $site['t itle']);
28   $_page['he ader_text' ] = _t("_B rowse Prof iles");   28   $_page['he ader_text' ] = _t("_B rowse Prof iles");
29   $_page['cs s_name'] =  'browse.c ss';   29   $_page['cs s_name'] =  'browse.c ss';
30     30  
31   check_logg ed();   31   check_logg ed();
32     32  
33   // ======= ========== ========== ========== ========== = parse va riables == ========== ====   33   // ======= ========== ========== ========== ========== = parse va riables == ========== ====
34   // ======= ========== ========== ========== ========== ========== ========== ========== ====   34   // ======= ========== ========== ========== ========== ========== ========== ========== ====
35     35  
36       foreac h( $_GET a s $key =>  $value )   36       foreac h( $_GET a s $key =>  $value )
37       {   37       {
38           if  ( 'sex' = = substr($ key,0,3) )   38           if  ( 'sex' = = substr($ key,0,3) )
39                $sex_sel  .= $value  . ',';   39                $sex_sel  .= $value  . ',';
40           el se if ( 'c ountry' ==  $key )   40           el se if ( 'c ountry' ==  $key )
41                $country _sel = $va lue;   41                $country _sel = $va lue;
42           el se if ( 'a ge' == sub str($key,0 ,3) )   42           el se if ( 'a ge' == sub str($key,0 ,3) )
43           {   43           {
44                if ( 'st art' == su bstr($key, 4) )   44                if ( 'st art' == su bstr($key, 4) )
45                    $age _start_sel  = (int)$v alue;   45                    $age _start_sel  = (int)$v alue;
46     46  
47                if ( 'en d' == subs tr($key,4)  )   47                if ( 'en d' == subs tr($key,4)  )
48                    $age _end_sel =  (int)$val ue;   48                    $age _end_sel =  (int)$val ue;
49           }   49           }
50           el se if ( 'o nline_only ' == $key  )   50           el se if ( 'o nline_only ' == $key  )
51                $onl_onl y = 'on';   51                $onl_onl y = 'on';
52           el se if ( 'p hoto_only'  == $key )   52           el se if ( 'p hoto_only'  == $key )
53                $pic_onl y = 'on';   53                $pic_onl y = 'on';
54       }   54       }
55     55  
56     56  
57   // ======= ========== ========== ========== ========== ========== ========== ========== ====   57   // ======= ========== ========== ========== ========== ========== ========== ========== ====
58   // ======= ========== ========== ========== ========== ========== ========== ========== ====   58   // ======= ========== ========== ========== ========== ========== ========== ========== ====
59     59  
60   $_ni = $_p age['name_ index'];   60   $_ni = $_p age['name_ index'];
61   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;   61   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;
62     62  
63     63  
64   PageCode() ;   64   PageCode() ;
65     65  
66     66  
67   function P ageCompPag eMainCode( )   67   function P ageCompPag eMainCode( )
68   {   68   {
69       global  $sex_sel;   69       global  $sex_sel;
70       global  $country_ sel;   70       global  $country_ sel;
71       global  $age_star t_sel;   71       global  $age_star t_sel;
72       global  $age_end_ sel;   72       global  $age_end_ sel;
73       global  $onl_only ;   73       global  $onl_only ;
74       global  $pic_only ;   74       global  $pic_only ;
75     75  
76       global  $site;   76       global  $site;
77     77  
78       global  $p_num;   78       global  $p_num;
79       global  $page;   79       global  $page;
80       global  $pages_nu m;   80       global  $pages_nu m;
81       global  $p_per_pa ge;   81       global  $p_per_pa ge;
82       global  $page_fir st_p;   82       global  $page_fir st_p;
83       global  $pages_nu m;   83       global  $pages_nu m;
84     84  
85       global  $search_s tart_age;   85       global  $search_s tart_age;
86       global  $search_e nd_age;   86       global  $search_e nd_age;
87       global  $max_thum b_width;   87       global  $max_thum b_width;
88       global  $max_thum b_height;   88       global  $max_thum b_height;
89          89       
90          90       
91       $sex_o ptions = m akeCheckbo x( 'sex',  'Sex', ( $ sex_sel ?  $sex_sel :  'male,fem ale' ) );   91       $sex_o ptions = m akeCheckbo x( 'sex',  'Sex', ( $ sex_sel ?  $sex_sel :  'male,fem ale' ) );
92       $count ry_options  = makeLis t( 'countr y', '' , ' Country',  ( $country _sel ? $co untry_sel  : 'all' ),  'onchange ="javascri pt: flagIm age = docu ment.getEl ementById( \'flagImag eId\'); if  (this.val ue == \'al l\') {flag Image.src  = \''. $si te['images '] .'space r.gif\';}  else {flag Image.src  = \''. $si te['flags' ] .'\' + t his.value. toLowerCas e() + \'.g if\';}"' ) ;   92       $count ry_options  = makeLis t( 'countr y', '' , ' Country',  ( $country _sel ? $co untry_sel  : 'all' ),  'onchange ="javascri pt: flagIm age = docu ment.getEl ementById( \'flagImag eId\'); if  (this.val ue == \'al l\') {flag Image.src  = \''. $si te['images '] .'space r.gif\';}  else {flag Image.src  = \''. $si te['flags' ] .'\' + t his.value. toLowerCas e() + \'.g if\';}"' ) ;
93          93       
94       $age_s tart_sel =  $age_star t_sel ? $a ge_start_s el : $sear ch_start_a ge;   94       $age_s tart_sel =  $age_star t_sel ? $a ge_start_s el : $sear ch_start_a ge;
95       $age_e nd_sel = $ age_end_se l ? $age_e nd_sel : $ search_end _age;   95       $age_e nd_sel = $ age_end_se l ? $age_e nd_sel : $ search_end _age;
96     96  
97       $age_o ption_star t = makeLi st( 'age_s tart', "{$ search_sta rt_age}-{$ search_end _age}", '' , $age_sta rt_sel);   97       $age_o ption_star t = makeLi st( 'age_s tart', "{$ search_sta rt_age}-{$ search_end _age}", '' , $age_sta rt_sel);
98       $age_o ption_end  = makeList ( 'age_end ', "{$sear ch_start_a ge}-{$sear ch_end_age }", '', $a ge_end_sel );   98       $age_o ption_end  = makeList ( 'age_end ', "{$sear ch_start_a ge}-{$sear ch_end_age }", '', $a ge_end_sel );
99     99  
100       $photo _only_chec k = '<inpu t type="ch eckbox" na me="photo_ only" id=" photo_only _id" ' . (  $pic_only  ? 'checke d="checked "' : '' )  . ' /><lab el for="ph oto_only_i d"><b>' .  _t('_With  photos onl y') . '</b ></label>' ;   100       $photo _only_chec k = '<inpu t type="ch eckbox" na me="photo_ only" id=" photo_only _id" ' . (  $pic_only  ? 'checke d="checked "' : '' )  . ' /><lab el for="ph oto_only_i d"><b>' .  _t('_With  photos onl y') . '</b ></label>' ;
101       $onlin e_only_che ck = '<inp ut type="c heckbox" n ame="onlin e_only" id ="online_o nly_id" '  . ( $onl_o nly ? 'che cked="chec ked"' : ''  ) . ' />< label for= "online_on ly_id"><b> ' . _t('_o nline only ') . '</b> </label>';   101       $onlin e_only_che ck = '<inp ut type="c heckbox" n ame="onlin e_only" id ="online_o nly_id" '  . ( $onl_o nly ? 'che cked="chec ked"' : ''  ) . ' />< label for= "online_on ly_id"><b> ' . _t('_o nline only ') . '</b> </label>';
102     102  
103       $count ry_def_fla g = strlen ($country_ sel) == 0  || $countr y_sel == ' all' ? $si te['images '].'spacer .gif' : $s ite['flags '] . strto lower($cou ntry_sel). '.gif';   103       $count ry_def_fla g = strlen ($country_ sel) == 0  || $countr y_sel == ' all' ? $si te['images '].'spacer .gif' : $s ite['flags '] . strto lower($cou ntry_sel). '.gif';
104     104  
105       $ret =  '   105       $ret =  '
106           <f orm id="br owse_form"  action="'  . $_SERVE R['PHP_SEL F'] . '" m ethod="get ">   106           <f orm id="br owse_form"  action="'  . $_SERVE R['PHP_SEL F'] . '" m ethod="get ">
107                <div cla ss="browse _form_wrap per">   107                <div cla ss="browse _form_wrap per">
108                   108                
109                    <div  class="br owse_form_ row">   109                    <div  class="br owse_form_ row">
110                         <div class ="clear_bo th"></div>   110                         <div class ="clear_bo th"></div>
111                             <div c lass="labe l">' . _t( '_Sex') .  ':</div>   111                             <div c lass="labe l">' . _t( '_Sex') .  ':</div>
112                             <div c lass="valu e">' . $se x_options  .'</div>   112                             <div c lass="valu e">' . $se x_options  .'</div>
113                         <div class ="clear_bo th"></div>   113                         <div class ="clear_bo th"></div>
114                    </di v>   114                    </di v>
115                       115                    
116                    <div  class="br owse_form_ row">   116                    <div  class="br owse_form_ row">
117                         <div class ="clear_bo th"></div>   117                         <div class ="clear_bo th"></div>
118                             <div c lass="labe l">' . _t( '_DateOfBi rth') . ': </div>   118                             <div c lass="labe l">' . _t( '_DateOfBi rth') . ': </div>
119                             <div c lass="valu e">' .   119                             <div c lass="valu e">' .
120                                 _t ("_from")  . '&nbsp;'  . $age_op tion_start  .    '&nb sp;' . _t( "_to") . ' &nbsp;' .  $age_optio n_end .   120                                 _t ("_from")  . '&nbsp;'  . $age_op tion_start  .    '&nb sp;' . _t( "_to") . ' &nbsp;' .  $age_optio n_end .
121                             '</div >   121                             '</div >
122                         <div class ="clear_bo th"></div>   122                         <div class ="clear_bo th"></div>
123                    </di v>   123                    </di v>
124     124  
125                    <div  class="br owse_form_ row">   125                    <div  class="br owse_form_ row">
126                         <div class ="clear_bo th"></div>   126                         <div class ="clear_bo th"></div>
127                             <div c lass="labe l">' . _t( '_Country' ) . ':</di v>'.   127                             <div c lass="labe l">' . _t( '_Country' ) . ':</di v>'.
128                             '<div  class="val ue">' .   128                             '<div  class="val ue">' .
129                                 $c ountry_opt ions .'&nb sp;<img id ="flagImag eId" src=" '. $countr y_def_flag  .'" alt=" flag" />   129                                 $c ountry_opt ions .'&nb sp;<img id ="flagImag eId" src=" '. $countr y_def_flag  .'" alt=" flag" />
130                             </div>   130                             </div>
131                         <div class ="clear_bo th"></div>   131                         <div class ="clear_bo th"></div>
132                    </di v>   132                    </di v>
133     133  
134                    <div  class="on ly">   134                    <div  class="on ly">
135                         ' . $photo _only_chec k . '   135                         ' . $photo _only_chec k . '
136                         ' . $onlin e_only_che ck . '   136                         ' . $onlin e_only_che ck . '
137                    </di v>   137                    </di v>
138     138  
139                    <div  class="su bmit">   139                    <div  class="su bmit">
140                         <input id= "search" n ame="searc h" type="s ubmit" val ue="'. _t( '_Show') . '" />   140                         <input id= "search" n ame="searc h" type="s ubmit" val ue="'. _t( '_Show') . '" />
141                    </di v>   141                    </di v>
142     142  
143                </div>   143                </div>
144           </ form>   144           </ form>
145           ';   145           ';
146     146  
147     147  
148   //======== ========== ========== ========== ========== ========== ========== ========== ========== ========== ==   148   //======== ========== ========== ========== ========== ========== ========== ========== ========== ========== ==
149   //-------- ---------- ----- sear ch results  --------- ---------- ---------- ---------- ----------   149   //-------- ---------- ----- sear ch results  --------- ---------- ---------- ---------- ----------
150   //======== ========== ========== ========== ========== ========== ========== ========== ========== ========== ==   150   //======== ========== ========== ========== ========== ========== ========== ========== ========== ========== ==
151     151  
152     152  
153       $page  = (int)$_G ET[page];   153       $page  = (int)$_G ET[page];
154       $p_per _page = (i nt)$_GET[p _per_page] ;   154       $p_per _page = (i nt)$_GET[p _per_page] ;
155     155  
156       $aVar  = array(30 ,60,90);   156       $aVar  = array(30 ,60,90);
157       if ( ! $page )   157       if ( ! $page )
158       $page  = 1;   158       $page  = 1;
159     159  
160       if ( ! $p_per_pag e )   160       if ( ! $p_per_pag e )
161           $p _per_page  = 30;   161           $p _per_page  = 30;
162     162  
163       $real_ first_p =  (int)($pag e - 1) * $ p_per_page ;   163       $real_ first_p =  (int)($pag e - 1) * $ p_per_page ;
164       $page_ first_p =  $real_firs t_p + 1;   164       $page_ first_p =  $real_firs t_p + 1;
165     165  
166     166  
167       $temp_ arr = expl ode(',', $ sex_sel);   167       $temp_ arr = expl ode(',', $ sex_sel);
168       foreac h ( $temp_ arr as $va lue )   168       foreac h ( $temp_ arr as $va lue )
169            if   (   $value   )
  169            if   (   $value   )   {
    170                $value =  process_d b_input( $ value );
170           $s ex_add .=  " `Sex` =  '$value' O R ";   171                $sex_add  .= " `Sex ` = '$valu e' OR ";
    172           }
171     173  
172     174  
173        if   (   $country_s el   &&   'all'   !=   $country_s el   )
  175        if   (   $country_s el   &&   'all'   !=   $country_s el   )   {
    176           $c ountry_sel  = process _db_input(  $country_ sel );
174           $c ountry_add  = " `Coun try` = '{$ country_se l}' AND ";   177           $c ountry_add  = " `Coun try` = '{$ country_se l}' AND ";
175  
  178        }
176     179  
177     180  
178       if ( $ age_start_ sel )   181       if ( $ age_start_ sel )
179           // $age_add . = " ( (YEA R(NOW()) -  {$age_sta rt_sel}) > = YEAR(`Da teofBirth` ) ) AND ";   182           // $age_add . = " ( (YEA R(NOW()) -  {$age_sta rt_sel}) > = YEAR(`Da teofBirth` ) ) AND ";
180           $a ge_add .=  " DATEDIFF ( NOW(), ` Profiles`. `DateOfBir th` ) >= " . ($age_st art_sel *  365.25) ."  AND ";   183           $a ge_add .=  " DATEDIFF ( NOW(), ` Profiles`. `DateOfBir th` ) >= " . ($age_st art_sel *  365.25) ."  AND ";
181     184  
182     185  
183     186  
184       if ( $ age_end_se l )   187       if ( $ age_end_se l )
185           // $age_add . = " ( (YEA R(NOW()) -  {$age_end _sel}) <=  YEAR(`Date ofBirth`)  ) AND ";   188           // $age_add . = " ( (YEA R(NOW()) -  {$age_end _sel}) <=  YEAR(`Date ofBirth`)  ) AND ";
186           $a ge_add .=  " DATEDIFF ( NOW(), ` Profiles`. `DateOfBir th` ) <= "  . ($age_e nd_sel * 3 65.25) . "  AND ";   189           $a ge_add .=  " DATEDIFF ( NOW(), ` Profiles`. `DateOfBir th` ) <= "  . ($age_e nd_sel * 3 65.25) . "  AND ";
187     190  
188       if ( $ pic_only )   191       if ( $ pic_only )
189           $p ic_add = "  AND `Prim Photo` <>  '0' ";   192           $p ic_add = "  AND `Prim Photo` <>  '0' ";
190       if ( $ onl_only )   193       if ( $ onl_only )
191           $o nl_add = "  AND (Date LastNav >  SUBDATE(NO W(), INTER VAL " . ge tParam( "m ember_onli ne_time" )  . " MINUT E)) ";   194           $o nl_add = "  AND (Date LastNav >  SUBDATE(NO W(), INTER VAL " . ge tParam( "m ember_onli ne_time" )  . " MINUT E)) ";
192     195  
193     196  
194       $sex_a dd = $sex_ add ? '('  . $sex_add  . ' 1=0 )  AND ' : ' ';   197       $sex_a dd = $sex_ add ? '('  . $sex_add  . ' 1=0 )  AND ' : ' ';
195       $age_a dd = $age_ add ? '('  . $age_add  . ' 1=1 ) ' : '';   198       $age_a dd = $age_ add ? '('  . $age_add  . ' 1=1 ) ' : '';
196     199  
197       $sql_a dd = $sex_ add . $cou ntry_add .  $age_add  . $pic_add  . $onl_ad d . " AND  (`Profiles `.`Couple` ='0' OR `P rofiles`.` Couple`>`P rofiles`.` ID`)";   200       $sql_a dd = $sex_ add . $cou ntry_add .  $age_add  . $pic_add  . $onl_ad d . " AND  (`Profiles `.`Couple` ='0' OR `P rofiles`.` Couple`>`P rofiles`.` ID`)";
198     201  
199       $p_num  = db_arr(  "SELECT C OUNT(*) FR OM `Profil es` WHERE  {$sql_add}  AND `Prof iles`.`Sta tus` = 'Ac tive'" );   202       $p_num  = db_arr(  "SELECT C OUNT(*) FR OM `Profil es` WHERE  {$sql_add}  AND `Prof iles`.`Sta tus` = 'Ac tive'" );
200       $p_num  = $p_num[ 0];   203       $p_num  = $p_num[ 0];
201       $pages _num = cei l( $p_num  / $p_per_p age );   204       $pages _num = cei l( $p_num  / $p_per_p age );
202     205  
203       $profi les_list_q uery = "SE LECT `ID`,  `NickName `, `Sex`,  `DateOfBir th`, `Coup le` FROM ` Profiles`  WHERE {$sq l_add} AND  `Profiles `.`Status` ='Active'  ORDER BY ` Couple` AS C, `Pictur e` DESC LI MIT {$real _first_p},  {$p_per_p age}";   206       $profi les_list_q uery = "SE LECT `ID`,  `NickName `, `Sex`,  `DateOfBir th`, `Coup le` FROM ` Profiles`  WHERE {$sq l_add} AND  `Profiles `.`Status` ='Active'  ORDER BY ` Couple` AS C, `Pictur e` DESC LI MIT {$real _first_p},  {$p_per_p age}";
204     207  
205       $funct ion = '   208       $funct ion = '
206                $ret = \ '?\';   209                $ret = \ '?\';
207                foreach  ( $_GET as  $key => $ value )   210                foreach  ( $_GET as  $key => $ value )
208                if ( $va lue )   211                if ( $va lue )
209                    $ret  .= $key .  \'=\' . $ value . \' &amp;\';   212                    $ret  .= $key .  \'=\' . $ value . \' &amp;\';
210     213  
211                return $ ret;   214                return $ ret;
212           ';   215           ';
213     216  
214     217  
215     218  
216     219  
217       $ret . = '<div id ="containe r_result"  style="bor der: 0px s olid #0000 00">';   220       $ret . = '<div id ="containe r_result"  style="bor der: 0px s olid #0000 00">';
218     221  
219       $ret . = '<div st yle="margi n-bottom:1 0px;"><cen ter>' . Re sNavigatio nRet( 'Pro filesUpper ', 0, $fun ction, $aV ar ) . '</ center></d iv>';   222       $ret . = '<div st yle="margi n-bottom:1 0px;"><cen ter>' . Re sNavigatio nRet( 'Pro filesUpper ', 0, $fun ction, $aV ar ) . '</ center></d iv>';
220     223  
221       if ( $ p_num > 0)   224       if ( $ p_num > 0)
222       {   225       {
223     226  
224       $res =  db_res( $ profiles_l ist_query  );   227       $res =  db_res( $ profiles_l ist_query  );
225       $iI =  1;   228       $iI =  1;
226       while  ( $arr = m ysql_fetch _array( $r es ) )   229       while  ( $arr = m ysql_fetch _array( $r es ) )
227       {   230       {
228           // $user_is_o nline = ge t_user_onl ine_status ($arr['ID' ]);   231           // $user_is_o nline = ge t_user_onl ine_status ($arr['ID' ]);
229     232  
230           $i NewWidth =  0;   233           $i NewWidth =  0;
231           if  (isset($a rr['Couple ']) && $ar r['Couple' ] > 0) {   234           if  (isset($a rr['Couple ']) && $ar r['Couple' ] > 0) {
232                $iMaxThu mbWidth =  getParam(' max_thumb_ width');   235                $iMaxThu mbWidth =  getParam(' max_thumb_ width');
233                $iNewWid th = 2 * (  $iMaxThum bWidth + 1 0 + 2 ) ;   236                $iNewWid th = 2 * (  $iMaxThum bWidth + 1 0 + 2 ) ;
234                //$templ  = str_rep lace ( "__ ext_st__",  'style="w idth:' . $ iNewWidth  . 'px;"',  $templ );   237                //$templ  = str_rep lace ( "__ ext_st__",  'style="w idth:' . $ iNewWidth  . 'px;"',  $templ );
235           }  else {   238           }  else {
236                $iMaxThu mbWidth =  getParam(' max_thumb_ width');   239                $iMaxThu mbWidth =  getParam(' max_thumb_ width');
237                $iNewWid th = 1 * (  $iMaxThum bWidth +12  ) ;   240                $iNewWid th = 1 * (  $iMaxThum bWidth +12  ) ;
238                //$templ  = str_rep lace ( "__ ext_st__",  'style="w idth:' . $ iNewWidth  . 'px;"',  $templ );   241                //$templ  = str_rep lace ( "__ ext_st__",  'style="w idth:' . $ iNewWidth  . 'px;"',  $templ );
239           }   242           }
240           $s WidthStyle  = ($iNewW idth>0) ?  'style="wi dth:'.$iNe wWidth.'px ;"' : '';   243           $s WidthStyle  = ($iNewW idth>0) ?  'style="wi dth:'.$iNe wWidth.'px ;"' : '';
241     244  
242           $c ont = '<di v class="b rowse_thum b" '.$sWid thStyle.'> ';   245           $c ont = '<di v class="b rowse_thum b" '.$sWid thStyle.'> ';
243           // $cont .= g etProfileO nlineStatu s( $user_i s_online )  . get_mem ber_thumbn ail($arr[' ID'], 'non e' ) . '<d iv class=" browse_nic k"><a href ="' . getP rofileLink ($arr['ID' ]) . '">'  . $arr['Ni ckName'] .  '</a></di v></div>';   246           // $cont .= g etProfileO nlineStatu s( $user_i s_online )  . get_mem ber_thumbn ail($arr[' ID'], 'non e' ) . '<d iv class=" browse_nic k"><a href ="' . getP rofileLink ($arr['ID' ]) . '">'  . $arr['Ni ckName'] .  '</a></di v></div>';
244           $c ont .= get _member_th umbnail($a rr['ID'],  'none', tr ue ) . '<d iv class=" browse_nic k"><a href ="' . getP rofileLink ($arr['ID' ]) . '">'  . $arr['Ni ckName'] .  '</a></di v></div>';   247           $c ont .= get _member_th umbnail($a rr['ID'],  'none', tr ue ) . '<d iv class=" browse_nic k"><a href ="' . getP rofileLink ($arr['ID' ]) . '">'  . $arr['Ni ckName'] .  '</a></di v></div>';
245           $r et .= $con t;   248           $r et .= $con t;
246           $i I++;   249           $i I++;
247           if ( $iI > 6  )   250           if ( $iI > 6  )
248                $iI = 1;   251                $iI = 1;
249       }   252       }
250     253  
251       }   254       }
252       else   255       else
253       {   256       {
254           $r et .= '<di v class="n o_result"> ';   257           $r et .= '<di v class="n o_result"> ';
255                $ret .=  '<div>' .  _t('_No re sults foun d') . '</d iv>';   258                $ret .=  '<div>' .  _t('_No re sults foun d') . '</d iv>';
256           $r et .= '</d iv>';   259           $r et .= '</d iv>';
257       }   260       }
258     261  
259     262  
260       $ret . = '<div st yle="clear :both;marg in-top:10p x;"><cente r>' . ResN avigationR et( 'Profi lesLower',  0, $funct ion, $aVar  ) . '</ce nter></div >';   263       $ret . = '<div st yle="clear :both;marg in-top:10p x;"><cente r>' . ResN avigationR et( 'Profi lesLower',  0, $funct ion, $aVar  ) . '</ce nter></div >';
261     264  
262     265  
263       $ret . = '</div>' ;   266       $ret . = '</div>' ;
264     267  
265     268  
266       return  $ret;   269       return  $ret;
267     270  
268   }   271   }
269     272  
270   function m akeCheckbo x( $name,  $sField, $ sSelected  ) {   273   function m akeCheckbo x( $name,  $sField, $ sSelected  ) {
271     274  
272       $arr =  getFieldV alues( $sF ield );   275       $arr =  getFieldV alues( $sF ield );
273       $aSele cted = exp lode(',',  $sSelected );   276       $aSele cted = exp lode(',',  $sSelected );
274     277  
275       $ret =  '';   278       $ret =  '';
276       foreac h ( $arr a s $value = > $lang_v  ) {   279       foreac h ( $arr a s $value = > $lang_v  ) {
277                $sel = (  in_array( $value, $a Selected)  ) ? 'check ed="checke d"' : '';   280                $sel = (  in_array( $value, $a Selected)  ) ? 'check ed="checke d"' : '';
278     281  
279                $ret .=  "   282                $ret .=  "
280                    <spa n>   283                    <spa n>
281                         <input typ e=\"checkb ox\" name= \"{$name}_ {$value}\"  id=\"{$na me}_{$valu e}\" value =\"{$value }\" $sel / >   284                         <input typ e=\"checkb ox\" name= \"{$name}_ {$value}\"  id=\"{$na me}_{$valu e}\" value =\"{$value }\" $sel / >
282                    </sp an>   285                    </sp an>
283                    <spa n>   286                    <spa n>
284                         <label for =\"{$name} _{$value}\ ">" . _t($ lang_v) .  '</label>   287                         <label for =\"{$name} _{$value}\ ">" . _t($ lang_v) .  '</label>
285                    </sp an>';   288                    </sp an>';
286       }   289       }
287     290  
288       return  $ret;   291       return  $ret;
289   }   292   }
290     293  
291     294  
292     295  
293   function m akeList( $ name, $dig it_range,  $sField, $ selected=' ', $js=''  )   296   function m akeList( $ name, $dig it_range,  $sField, $ selected=' ', $js=''  )
294   {   297   {
295       $ret =  '';   298       $ret =  '';
296       $ret . = "<select  id=\"$nam e\" name=\ "$name\" $ js>";   299       $ret . = "<select  id=\"$nam e\" name=\ "$name\" $ js>";
297     300  
298       if ( $ digit_rang e )   301       if ( $ digit_rang e )
299       {   302       {
300           li st($a, $b)  = preg_sp lit( "/[\. ,\-]/", $d igit_range );   303           li st($a, $b)  = preg_sp lit( "/[\. ,\-]/", $d igit_range );
301     304  
302           fo r ( $i = $ a; $i <= $ b; $i++ )   305           fo r ( $i = $ a; $i <= $ b; $i++ )
303           {   306           {
304                if ( $se lected &&  $selected  == $i )   307                if ( $se lected &&  $selected  == $i )
305                    $sel  = "select ed=\"selec ted\"";   308                    $sel  = "select ed=\"selec ted\"";
306                else   309                else
307                    $sel  = '';   310                    $sel  = '';
308                $ret .=  "<option v alue=\"$i\ " $sel>$i< /option>";   311                $ret .=  "<option v alue=\"$i\ " $sel>$i< /option>";
309           }   312           }
310       }   313       }
311       elseif  ( $sField  )   314       elseif  ( $sField  )
312       {   315       {
313           $a rr = getFi eldValues(  $sField ) ;   316           $a rr = getFi eldValues(  $sField ) ;
314           $a rr = array _merge( ar ray('all'  => '__All' ), $arr);   317           $a rr = array _merge( ar ray('all'  => '__All' ), $arr);
315     318  
316           fo reach ( $a rr as $key  => $value  )   319           fo reach ( $a rr as $key  => $value  )
317           {   320           {
318                if ( $se lected ==  $key )   321                if ( $se lected ==  $key )
319                    $sel  = "select ed=\"selec ted\"";   322                    $sel  = "select ed=\"selec ted\"";
320                else   323                else
321                    $sel  = '';   324                    $sel  = '';
322     325  
323                $ret .=  "<option v alue=\"$ke y\" $sel>" . _t($valu e) ."</opt ion>";   326                $ret .=  "<option v alue=\"$ke y\" $sel>" . _t($valu e) ."</opt ion>";
324           }   327           }
325       }   328       }
326       else   329       else
327           re turn false ;   330           re turn false ;
328     331  
329       $ret . = '</selec t>';   332       $ret . = '</selec t>';
330     333  
331       return  $ret;   334       return  $ret;
332   }   335   }
333     336  
334   ?>   337   ?>