758. File Comparison Report

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

758.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 browse.php Fri Feb 1 07:32:50 2008 UTC
2 Dolphin-v.6.1.0 browse.php Sat Apr 26 08:19:18 2008 UTC

758.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 22 570
Changed 20 114
Inserted 0 0
Removed 1 1

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

758.4 Active regular expressions

No regular expressions were active.

758.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     31   check_logg ed();
32   if ( !( $l ogged['adm in'] = mem ber_auth(  1, false )  ) )    
33       if ( ! ( $logged[ 'member']  = member_a uth( 0, fa lse ) ) )    
34           if  ( !( $log ged['aff']  = member_ auth( 2, f alse )) )    
35                $logged[ 'moderator '] = membe r_auth( 3,  false );    
36      
37      
38     32  
39   // ======= ========== ========== ========== ========== = parse va riables == ========== ====   33   // ======= ========== ========== ========== ========== = parse va riables == ========== ====
40   // ======= ========== ========== ========== ========== ========== ========== ========== ====   34   // ======= ========== ========== ========== ========== ========== ========== ========== ====
41     35  
42      
43       foreac h( $_GET a s $key =>  $value )   36       foreac h( $_GET a s $key =>  $value )
44       {   37       {
45           if  ( 'sex' = = substr($ key,0,3) )   38           if  ( 'sex' = = substr($ key,0,3) )
46                $sex_sel  .= $value  . ',';   39                $sex_sel  .= $value  . ',';
47           el se if ( 'c ountry' ==  $key )   40           el se if ( 'c ountry' ==  $key )
48                $country _sel = $va lue;   41                $country _sel = $va lue;
49           el se if ( 'a ge' == sub str($key,0 ,3) )   42           el se if ( 'a ge' == sub str($key,0 ,3) )
50           {   43           {
51                if ( 'st art' == su bstr($key, 4) )   44                if ( 'st art' == su bstr($key, 4) )
52                    $age _start_sel  = (int)$v alue;   45                    $age _start_sel  = (int)$v alue;
53     46  
54                if ( 'en d' == subs tr($key,4)  )   47                if ( 'en d' == subs tr($key,4)  )
55                    $age _end_sel =  (int)$val ue;   48                    $age _end_sel =  (int)$val ue;
56           }   49           }
57           el se if ( 'o nline_only ' == $key  )   50           el se if ( 'o nline_only ' == $key  )
58                $onl_onl y = 'on';   51                $onl_onl y = 'on';
59           el se if ( 'p hoto_only'  == $key )   52           el se if ( 'p hoto_only'  == $key )
60                $pic_onl y = 'on';   53                $pic_onl y = 'on';
61       }   54       }
62     55  
63     56  
64   // ======= ========== ========== ========== ========== ========== ========== ========== ====   57   // ======= ========== ========== ========== ========== ========== ========== ========== ====
65   // ======= ========== ========== ========== ========== ========== ========== ========== ====   58   // ======= ========== ========== ========== ========== ========== ========== ========== ====
66     59  
67   $_ni = $_p age['name_ index'];   60   $_ni = $_p age['name_ index'];
68   $_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() ;
69     62  
70     63  
71   PageCode() ;   64   PageCode() ;
72     65  
73     66  
74   function P ageCompPag eMainCode( )   67   function P ageCompPag eMainCode( )
75   {   68   {
76       global  $sex_sel;   69       global  $sex_sel;
77       global  $country_ sel;   70       global  $country_ sel;
78       global  $age_star t_sel;   71       global  $age_star t_sel;
79       global  $age_end_ sel;   72       global  $age_end_ sel;
80       global  $onl_only ;   73       global  $onl_only ;
81       global  $pic_only ;   74       global  $pic_only ;
82     75  
83       global  $site;   76       global  $site;
84     77  
85       global  $p_num;   78       global  $p_num;
86       global  $page;   79       global  $page;
87       global  $pages_nu m;   80       global  $pages_nu m;
88       global  $p_per_pa ge;   81       global  $p_per_pa ge;
89       global  $page_fir st_p;   82       global  $page_fir st_p;
90       global  $pages_nu m;   83       global  $pages_nu m;
91     84  
92       global  $search_s tart_age;   85       global  $search_s tart_age;
93       global  $search_e nd_age;   86       global  $search_e nd_age;
94       global  $max_thum b_width;   87       global  $max_thum b_width;
95       global  $max_thum b_height;   88       global  $max_thum b_height;
96     89       
97       $query  = "SELECT  * FROM Pr ofilesDesc  WHERE `na me` IN ( ' Sex', 'Cou ntry')";   90  
    
98       $res =  db_res($q uery);   91        $sex_ option s  
=   makeCheckb ox(   'sex',   'Sex',   (   $sex_sel   ?   $sex_sel   :   'male,fema le'   )   ) ;
99       while  ( $arr = m ysql_fetch _array( $r es ) )   92        $country_o ptions   =   makeList(   'country',   ''   ,  
' Coun tr y '
,   (   $country_s el   ?   $country_s el   :   'all'   ) ,   'onchange= "javascrip t:   flagImage   =   document.g etElementB yId(\'flag ImageId\') ;   if   (this.valu e   ==   \'all\')   {flagImage .src   =   \''.   $site['ima ges']   .'spacer.g if\';}   else   {flagImage .src   =   \''.   $site['fla gs']   .'\'   +   this.value .toLowerCa se()   +   \'.gif\';} "'   );
100       {    
101           sw itch ( $ar r['name']  )    
102            {    
103                case 'Se x'  :    
104                     $sex_
s el   =  
$sex_sel   ?   $sex_sel   :   'male,fema le'
;
   
105                    $sex _options =  makeCheck box( 'sex' , $arr['ex tra'], $se x_sel );    
106                    brea k;    
107                case 'Co untry' :    
108                    $cou ntry_sel =  $country_ sel ? $cou ntry_sel :  'all'; // getParam(' default_co untry');    
109                     $country_o ptions   =   makeList(   'country',   ''   ,   $arr[ ' ex tr a ' ] ,  
$country_s el
,   'onchange= "javascrip t:   flagImage   =   document.g etElementB yId(\'flag ImageId\') ;   if   (this.valu e   ==   \'all\')   {flagImage .src   =   \''.   $site['ima ges']   .'spacer.g if\';}   else   {flagImage .src   =   \''.   $site['fla gs']   .'\'   +   this.value .toLowerCa se()   +   \'.gif\';} "'   );
   
110                    brea k;    
111                default:    
112                    brea k;    
113           }    
114       }    
115     93       
116       $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;
117       $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;
118     96  
119       $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);
120       $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 );
121     99  
122       $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>' ;
123       $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>';
124     102  
125        $country_d ef_flag   =  
($country_ sel  
==   'all'   ?   $site['ima ges'].'spa cer.gif'   :   $site['fla gs']   .   strtolower ($country_ sel).'.gif ' ) ;
  103        $country_d ef_flag   =   strlen ($country_ sel )   ==   0   ||   $country_s el   ==   'all'   ?   $site['ima ges'].'spa cer.gif'   :   $site['fla gs']   .   strtolower ($country_ sel).'.gif '
;
126     104  
127       $ret =  '   105       $ret =  '
128           <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 ">
129                <div cla ss="browse _form_wrap per">   107                <div cla ss="browse _form_wrap per">
130                   108                
131                    <div  class="br owse_form_ row">   109                    <div  class="br owse_form_ row">
132                         <div class ="clear_bo th"></div>   110                         <div class ="clear_bo th"></div>
133                             <div c lass="labe l">' . _t( '_Sex') .  ':</div>   111                             <div c lass="labe l">' . _t( '_Sex') .  ':</div>
134                             <div c lass="valu e">' . $se x_options  .'</div>   112                             <div c lass="valu e">' . $se x_options  .'</div>
135                         <div class ="clear_bo th"></div>   113                         <div class ="clear_bo th"></div>
136                    </di v>   114                    </di v>
137                       115                    
138                    <div  class="br owse_form_ row">   116                    <div  class="br owse_form_ row">
139                         <div class ="clear_bo th"></div>   117                         <div class ="clear_bo th"></div>
140                             <div c lass="labe l">' . _t( '_DateOfBi rth') . ': </div>   118                             <div c lass="labe l">' . _t( '_DateOfBi rth') . ': </div>
141                             <div c lass="valu e">' .   119                             <div c lass="valu e">' .
142                                 _t ("from") .  '&nbsp;'  . $age_opt ion_start  . '&nbsp;'  . _t("to" ) . '&nbsp ;' . $age_ option_end  .   120                                 _t ("from") .  '&nbsp;'  . $age_opt ion_start  . '&nbsp;'  . _t("to" ) . '&nbsp ;' . $age_ option_end  .
143                             '</div >   121                             '</div >
144                         <div class ="clear_bo th"></div>   122                         <div class ="clear_bo th"></div>
145                    </di v>   123                    </di v>
146     124  
147                    <div  class="br owse_form_ row">   125                    <div  class="br owse_form_ row">
148                         <div class ="clear_bo th"></div>   126                         <div class ="clear_bo th"></div>
149                             <div c lass="labe l">' . _t( '_Country' ) . ':</di v>'.   127                             <div c lass="labe l">' . _t( '_Country' ) . ':</di v>'.
150                             '<div  class="val ue">' .   128                             '<div  class="val ue">' .
151                                 $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" />
152                             </div>   130                             </div>
153                         <div class ="clear_bo th"></div>   131                         <div class ="clear_bo th"></div>
154                    </di v>   132                    </di v>
155     133  
156                    <div  class="on ly">   134                    <div  class="on ly">
157                         ' . $photo _only_chec k . '   135                         ' . $photo _only_chec k . '
158                         ' . $onlin e_only_che ck . '   136                         ' . $onlin e_only_che ck . '
159                    </di v>   137                    </di v>
160     138  
161                    <div  class="su bmit">   139                    <div  class="su bmit">
162                         <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') . '" />
163                    </di v>   141                    </di v>
164     142  
165                </div>   143                </div>
166           </ form>   144           </ form>
167           ';   145           ';
168     146  
169     147  
170   //======== ========== ========== ========== ========== ========== ========== ========== ========== ========== ==   148   //======== ========== ========== ========== ========== ========== ========== ========== ========== ========== ==
171   //-------- ---------- ----- sear ch results  --------- ---------- ---------- ---------- ----------   149   //-------- ---------- ----- sear ch results  --------- ---------- ---------- ---------- ----------
172   //======== ========== ========== ========== ========== ========== ========== ========== ========== ========== ==   150   //======== ========== ========== ========== ========== ========== ========== ========== ========== ========== ==
173     151  
174     152  
175       $page  = (int)$_G ET[page];   153       $page  = (int)$_G ET[page];
176       $p_per _page = (i nt)$_GET[p _per_page] ;   154       $p_per _page = (i nt)$_GET[p _per_page] ;
177     155  
178       $aVar  = array(30 ,60,90);   156       $aVar  = array(30 ,60,90);
179       if ( ! $page )   157       if ( ! $page )
180       $page  = 1;   158       $page  = 1;
181     159  
182       if ( ! $p_per_pag e )   160       if ( ! $p_per_pag e )
183           $p _per_page  = 30;   161           $p _per_page  = 30;
184     162  
185       $real_ first_p =  (int)($pag e - 1) * $ p_per_page ;   163       $real_ first_p =  (int)($pag e - 1) * $ p_per_page ;
186       $page_ first_p =  $real_firs t_p + 1;   164       $page_ first_p =  $real_firs t_p + 1;
187     165  
188     166  
189       $temp_ arr = expl ode(',', $ sex_sel);   167       $temp_ arr = expl ode(',', $ sex_sel);
190       foreac h ( $temp_ arr as $va lue )   168       foreac h ( $temp_ arr as $va lue )
191           if  ( $value  )   169           if  ( $value  )
192           $s ex_add .=  " `Sex` =  '$value' O R ";   170           $s ex_add .=  " `Sex` =  '$value' O R ";
193     171  
194     172  
195       if ( $ country_se l && 'all'  != $count ry_sel )   173       if ( $ country_se l && 'all'  != $count ry_sel )
196           $c ountry_add  = " `Coun try` = '{$ country_se l}' AND ";   174           $c ountry_add  = " `Coun try` = '{$ country_se l}' AND ";
197     175  
198     176  
199     177  
200       if ( $ age_start_ sel )   178       if ( $ age_start_ sel )
201           
$age_add   .=   "   (   (YEAR(NOW( ))   -   {$age_star t_sel})   >=   YEAR(`Date ofBirth`)   )   AND   ";
  179            // $age_add   .=   "   (   (YEAR(NOW( ))   -   {$age_star t_sel})   >=   YEAR(`Date ofBirth`)   )   AND   ";
    180           $a ge_add .=  " DATEDIFF ( NOW(), ` Profiles`. `DateOfBir th` ) >= " . ($age_st art_sel *  365.25) ."  AND ";
202     181  
203     182  
204     183  
205       if ( $ age_end_se l )   184       if ( $ age_end_se l )
206           
$age_add   .=   "   (   (YEAR(NOW( ))   -   {$age_end_ sel})   <=   YEAR(`Date ofBirth`)   )   AND   ";
  185            // $age_add   .=   "   (   (YEAR(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 ";
207     187  
208       if ( $ pic_only )   188       if ( $ pic_only )
209            $pic_add   =   "   AND   `P
i c t ure `   =   ' 1 '   ";
  189            $pic_add   =   "   AND   `P r i mPho t o `   <>   ' 0 '   ";
210       if ( $ onl_only )   190       if ( $ onl_only )
211            $onl_add   =   "   AND   (
LastNav Time   >   SUBDATE(NO W(),   INTERVAL   "   .   getParam(   "member_on line_time"   )   .   "   MINUTE))   ";
  191            $onl_add   =   "   AND   ( Date LastNav  
>   SUBDATE(NO W(),   INTERVAL   "   .   getParam(   "member_on line_time"   )   .   "   MINUTE))   ";
212     192  
213     193  
214       $sex_a dd = $sex_ add ? '('  . $sex_add  . ' 1=0 )  AND ' : ' ';   194       $sex_a dd = $sex_ add ? '('  . $sex_add  . ' 1=0 )  AND ' : ' ';
215       $age_a dd = $age_ add ? '('  . $age_add  . ' 1=1 ) ' : '';   195       $age_a dd = $age_ add ? '('  . $age_add  . ' 1=1 ) ' : '';
216     196  
217        $sql_add   =   $sex_add   .   $country_a dd   .   $age_add   .   $pic_add   .   $onl_add
;
  197        $sql_add   =   $sex_add   .   $country_a dd   .   $age_add   .   $pic_add   .   $onl_add   .   "   AND   (`Profiles `.`Couple` ='0'   OR   `Profiles` .`Couple`> `Profiles` .`ID`)" ;
218     198  
219        $p_num   =   db_arr(   "SELECT   COUNT(*)   FROM  
Profiles  
WHERE  
$sql_add  
AND   `
Status`   =   'Active'"   );
  199        $p_num   =   db_arr(   "SELECT   COUNT(*)   FROM   ` Profiles `   WHERE   { $sql_add }   AND   ` Profiles`. ` Status`   =   'Active'"   );
220       $p_num  = $p_num[ 0];   200       $p_num  = $p_num[ 0];
221       $pages _num = cei l( $p_num  / $p_per_p age );   201       $pages _num = cei l( $p_num  / $p_per_p age );
222     202  
223        $profiles_ list_query   =   "SELECT   `ID`,   `NickName` ,   `Sex`,   `DateOfBir th`  
FROM  
Profiles  
WHERE  
$sql_add  
AND   `
s
tatus`='Ac tive'   ORDER   BY   `
Picture`   DESC   LIMIT  
$real_firs t_p
,  
$p_per_pag e ; ";
  203        $profiles_ list_query   =   "SELECT   `ID`,   `NickName` ,   `Sex`,   `DateOfBir th` ,   `Couple`   FROM   ` Profiles `   WHERE   { $sql_add }   AND   ` Profile s `.`S tatus`='Ac tive'   ORDER   BY   ` Couple`   ASC,   ` Picture`   DESC   LIMIT   { $real_firs t_p } ,   { $p_per_pag e } ";
224     204  
225       $funct ion = '   205       $funct ion = '
226                $ret = \ '?\';   206                $ret = \ '?\';
227                foreach  ( $_GET as  $key => $ value )   207                foreach  ( $_GET as  $key => $ value )
228                if ( $va lue )   208                if ( $va lue )
229                    $ret  .= $key .  \'=\' . $ value . \' &amp;\';   209                    $ret  .= $key .  \'=\' . $ value . \' &amp;\';
230     210  
231                return $ ret;   211                return $ ret;
232           ';   212           ';
233     213  
234     214  
235     215  
236     216  
237       $ret . = '<div id ="containe r_result"  style="bor der: 0px s olid #0000 00">';   217       $ret . = '<div id ="containe r_result"  style="bor der: 0px s olid #0000 00">';
238     218  
239       $ret . = '<div st yle="margi n-bottom:1 0px;"><cen ter>' . Re sNavigatio nRet( 'Pro filesUpper ', 0, $fun ction, $aV ar ) . '</ center></d iv>';   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>';
240     220  
241       if ( $ p_num > 0)   221       if ( $ p_num > 0)
242       {   222       {
243     223  
244       $res =  db_res( $ profiles_l ist_query  );   224       $res =  db_res( $ profiles_l ist_query  );
245       $iI =  1;   225       $iI =  1;
246       while  ( $arr = m ysql_fetch _array( $r es ) )   226       while  ( $arr = m ysql_fetch _array( $r es ) )
247       {   227       {
248           
$user_is_o nline   =   get_user_o nline_stat us($arr['I D']);
  228            // $user_is_o nline   =   get_user_o nline_stat us($arr['I D']);
249           if ( $iI == 6  )   229  
250                $cont =  '<div clas s="browse_ thumb_thin ">';   230           $i NewWidth =  0;
251           
else
  231           if  (isset($a rr['Couple ']) && $ar r['Couple' ] > 0) {
252                 $cont   =   '<div   class="bro wse_thumb"
>';
  232                $iMaxThu mbWidth =  getParam(' max_thumb_ width');
253            $cont   .=   get ProfileOnl ineStatus(   $user_is_o nline   )   .   get _member_th umbnail($a rr['ID'],   'none'  
)   .   '<div   class="bro wse_nick"> <a   href="'   .   getProfile Link($arr[ 'ID'])   .   '">'   .   $arr['Nick Name']   .   '</a></div ></div>';
  233                $iNewWid th = 2 * (  $iMaxThum bWidth + 1 0 + 2 ) ;
    234                //$templ  = str_rep lace ( "__ ext_st__",  'style="w idth:' . $ iNewWidth  . 'px;"',  $templ );
    235            }   else   {
    236                $iMaxThu mbWidth =  getParam(' max_thumb_ width');
    237                $iNewWid th = 1 * (  $iMaxThum bWidth +12  ) ;
    238                //$templ  = str_rep lace ( "__ ext_st__",  'style="w idth:' . $ iNewWidth  . 'px;"',  $templ );
    239           }
    240           $s WidthStyle  = ($iNewW idth>0) ?  'style="wi dth:'.$iNe wWidth.'px ;"' : '';
    241  
    242            $cont   =   '<div   class="bro wse_thumb"   '.$sWidthS tyle.' >';
    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>';
    244            $cont   .=   get
_member_th umbnail($a rr['ID'],   'none' ,   true   )   .   '<div   class="bro wse_nick"> <a   href="'   .   getProfile Link($arr[ 'ID'])   .   '">'   .   $arr['Nick Name']   .   '</a></div ></div>';
254           $r et .= $con t;   245           $r et .= $con t;
255           $i I++;   246           $i I++;
256           if ( $iI > 6  )   247           if ( $iI > 6  )
257                $iI = 1;   248                $iI = 1;
258       }   249       }
259     250  
260       }   251       }
261       else   252       else
262       {   253       {
263           $r et .= '<di v class="n o_result"> ';   254           $r et .= '<di v class="n o_result"> ';
264                $ret .=  '<div>' .  _t('_No re sults foun d') . '</d iv>';   255                $ret .=  '<div>' .  _t('_No re sults foun d') . '</d iv>';
265           $r et .= '</d iv>';   256           $r et .= '</d iv>';
266       }   257       }
267     258  
268     259  
269       $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 >';   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 >';
270     261  
271     262  
272       $ret . = '</div>' ;   263       $ret . = '</div>' ;
273     264  
274     265  
275       return  $ret;   266       return  $ret;
276     267  
277   }   268   }
278     269  
279   function   makeCheckb ox(   $name,   $ variants,   $ s
el ecte d,   $ offset_ s tart   =   '',   $offset_am ount   =   '',   $d el imi te r   =   ''   )
  270   function   makeCheckb ox(   $name,   $
s Fi el
d,   $
s S el ec te d   )   {
280   {    
281      
282       $varia nts = str_ replace('\ '', '', $v ariants);    
283       $arr =  split(',' , $variant s);    
284     271  
285        $ temp_ arr   =  
e xp l o d
e
( ',',   $s
el ecte d);
  272        $
arr   =   getFi e
l
d Valu e s (  
$s Fi el
d   );
    273       $aSele cted = exp lode(',',  $sSelected );
286     274  
287       $ret =  '';   275       $ret =  '';
288       $i = 0 ;   276        foreach   (   $arr   as   $value   =>   $lang_v   )   {
289        foreach   (   $arr   as   $value  
)
  277                 $sel   =   (   in_array($ value,   $aSelected )   )   ?   'checked=" checked"'   :   '' ;
290       {    
291       if ( ! $offset_st art || ( $ offset_sta rt && $off set_start  <= $i) )    
292       if ( ! $offset_am ount || (  $offset_am ount && ($ offset_sta rt + $offs et_amount)  > $i ) )    
293       {    
294           if  ( $select ed && in_a rray($valu e, $temp_a rr) )    
295            $sel   =  
'checked=" checked"'
;
   
296           el se    
297           $s el = '';    
298     278  
299            $ret   .=   "<span> <input   type=\"che ckbox\"   name=\"{$n ame}_{$val ue}\"   id=\"{$nam e}_{$value }\"   value=\"{$ value}\"   $sel   /> </span><sp an><label   for=\"{$na me}_{$valu e}\">"   .   _t('_'   .   $value)   .   '</label>< /span>'   .   $delimiter ;   279                $ret .=  "
300       }   280                    <spa n>
301       $i++;   281                        
<input   type=\"che ckbox\"   name=\"{$n ame}_{$val ue}\"   id=\"{$nam e}_{$value }\"   value=\"{$ value}\"   $sel   />
    282                    </sp an>
    283                    <spa n>
    284                         <label for =\"{$name} _{$value}\ ">" . _t($ lang_v) .  '</label>
    285                    </sp an>';
302       }   286       }
303     287  
304       return  $ret;   288       return  $ret;
305   }   289   }
306     290  
307     291  
308     292  
309   function   makeList(   $name,   $digit_ran ge,   $ func ,   $selected= '',   $js=''   )   293   function   makeList(   $name,   $digit_ran ge,   $ sField ,   $selected= '',   $js=''   )
310   {   294   {
311       $ret =  '';   295       $ret =  '';
312       $ret . = "<select  id=\"$nam e\" name=\ "$name\" $ js>";   296       $ret . = "<select  id=\"$nam e\" name=\ "$name\" $ js>";
313     297  
314       if ( $ digit_rang e )   298       if ( $ digit_rang e )
315       {   299       {
316           li st($a, $b)  = preg_sp lit( "/[\. ,\-]/", $d igit_range );   300           li st($a, $b)  = preg_sp lit( "/[\. ,\-]/", $d igit_range );
317     301  
318           fo r ( $i = $ a; $i <= $ b; $i++ )   302           fo r ( $i = $ a; $i <= $ b; $i++ )
319           {   303           {
320                if ( $se lected &&  $selected  == $i )   304                if ( $se lected &&  $selected  == $i )
321                    $sel  = "select ed=\"selec ted\"";   305                    $sel  = "select ed=\"selec ted\"";
322                else   306                else
323                    $sel  = '';   307                    $sel  = '';
324                $ret .=  "<option v alue=\"$i\ " $sel>$i< /option>";   308                $ret .=  "<option v alue=\"$i\ " $sel>$i< /option>";
325           }   309           }
326       }   310       }
327        elseif   (   $ func   )   311        elseif   (   $ sField   )
328       {   312       {
329           $f unc = crea te_functio n("", $fun c);   313           $a rr = getFi eldValues(  $sField ) ;
330           $a rr = $func ();   314            $arr   =   array_merg e(   array( ' all '   =>   '__ All ' ),   $arr);
331            $arr   =   array_merg e(   array( " all " => " All " ),   $arr);    
332     315  
333           fo reach ( $a rr as $key  => $value  )   316           fo reach ( $a rr as $key  => $value  )
334           {   317           {
335                 if   (   $selected   &&   (   $selected   ==   $value   ||   $selected   ==   $key   )   )   318                 if   (   $selected  
==   $key   )
336                    $sel  = "select ed=\"selec ted\"";   319                    $sel  = "select ed=\"selec ted\"";
337                else   320                else
338                    $sel  = '';   321                    $sel  = '';
339     322  
340                 $ret   .=   "<option   value=\"$k ey\"   $sel>".   _t( '__'. $value)   ."</option >";   323                 $ret   .=   "<option   value=\"$k ey\"   $sel>".   _t(
$value)   ."</option >";
341           }   324           }
342       }   325       }
343       else   326       else
344           re turn false ;   327           re turn false ;
345     328  
346       $ret . = '</selec t>';   329       $ret . = '</selec t>';
347     330  
348       return  $ret;   331       return  $ret;
349   }   332   }
350     333  
351   ?>   334   ?>