43. File Comparison Report

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

43.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\admin groups.php Wed Oct 17 08:48:24 2007 UTC
2 Dolphin-v.6.1.0\admin groups.php Sat Apr 19 12:05:02 2008 UTC

43.2 Comparison summary

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

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

43.4 Active regular expressions

No regular expressions were active.

43.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   require_on ce( '../in c/header.i nc.php' );   21   require_on ce( '../in c/header.i nc.php' );
22   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );   22   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );
23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin_desig n.inc.php'  );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin_desig n.inc.php'  );
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
25   require_on ce(   BX_DIRECTO RY_PATH_ IN C  
.   ' g roups. inc. php'   );
  25   require_on ce(   BX_DIRECTO RY_PATH_
C LASSES   .   ' BxDolG roups.
php'   );
26     26  
27   $logged['a dmin'] = m ember_auth ( 1 );   27   $logged['a dmin'] = m ember_auth ( 1 );
28     28  
29   $_page['he ader'] = ' Groups';   29   $_page['he ader'] = ' Groups';
30   $_page['cs s_name'] =  'groups.c ss';   30   $_page['cs s_name'] =  'groups.c ss';
31   $actionMsg  = '';   31   $actionMsg  = '';
32     32  
33   switch( $_ REQUEST['a ction'] )   33   switch( $_ REQUEST['a ction'] )
34   {   34   {
35       case ' add_cat':   35       case ' add_cat':
36           $c ategName =  trim( $_P OST['Categ _Name'] );   36           $c ategName =  trim( $_P OST['Categ _Name'] );
37              37           
38           if ( $categNa me )   38           if ( $categNa me )
39           {   39           {
40                db_res(  "INSERT IN TO `Groups Categ` SET  `Name`='" .process_d b_input($c ategName). "'" );   40                db_res(  "INSERT IN TO `Groups Categ` SET  `Name`='" .process_d b_input($c ategName). "'" );
41                $newID =  mysql_ins ert_id();   41                $newID =  mysql_ins ert_id();
42                if( $new ID )   42                if( $new ID )
43                    $act ionMsg .=  'Added suc cesfully';   43                    $act ionMsg .=  'Added suc cesfully';
44                else   44                else
45                    $act ionMsg .=  'Some erro r occured  while addi ng';   45                    $act ionMsg .=  'Some erro r occured  while addi ng';
46           }   46           }
47           el se   47           el se
48                $actionM sg .= 'Ple ase enter  category n ame';   48                $actionM sg .= 'Ple ase enter  category n ame';
49       break;   49       break;
50       case ' del_cat':   50       case ' del_cat':
51           $c atID = (in t)$_GET['c at'];   51           $c atID = (in t)$_GET['c at'];
52           if ( $catID )   52           if ( $catID )
53           {   53           {
54                db_res(  "DELETE FR OM `Groups Categ` WHE RE `ID`=$c atID" );   54                db_res(  "DELETE FR OM `Groups Categ` WHE RE `ID`=$c atID" );
55                if( mysq l_affected _rows() )   55                if( mysq l_affected _rows() )
56                    $act ionMsg .=  'Deleted s uccesfully ';   56                    $act ionMsg .=  'Deleted s uccesfully ';
57                else   57                else
58                    $act ionMsg .=  'Couldn\'t  delete';   58                    $act ionMsg .=  'Couldn\'t  delete';
59           }   59           }
60       break;   60       break;
61       case ' edit_cat':   61       case ' edit_cat':
62           $c atID = (in t)$_REQUES T['cat'];   62           $c atID = (in t)$_REQUES T['cat'];
63           $n ame = trim ( $_REQUES T['name']  );   63           $n ame = trim ( $_REQUES T['name']  );
64              64           
65           if ( $catID a nd $name )   65           if ( $catID a nd $name )
66           {   66           {
67                db_res(  "UPDATE `G roupsCateg ` SET `Nam e`='".proc ess_db_inp ut($name). "' WHERE ` ID`=$catID " );   67                db_res(  "UPDATE `G roupsCateg ` SET `Nam e`='".proc ess_db_inp ut($name). "' WHERE ` ID`=$catID " );
68                if( mysq l_affected _rows() )   68                if( mysq l_affected _rows() )
69                    $act ionMsg .=  'Renamed s uccesfully ';   69                    $act ionMsg .=  'Renamed s uccesfully ';
70                else   70                else
71                    $act ionMsg .=  'Error whi le renamin g';   71                    $act ionMsg .=  'Error whi le renamin g';
72           }   72           }
73       break;   73       break;
74       case ' suspend_gr oup':   74       case ' suspend_gr oup':
75           $g roupID = ( int)$_REQU EST['group '];   75           $g roupID = ( int)$_REQU EST['group '];
76              76           
77           if ( $groupID  )   77           if ( $groupID  )
78           {   78           {
79                db_res(  "UPDATE `G roups` SET  `status`= 'Suspended ' WHERE `I D`=$groupI D" );   79                db_res(  "UPDATE `G roups` SET  `status`= 'Suspended ' WHERE `I D`=$groupI D" );
80           }   80           }
81       break;   81       break;
82       case ' activate_g roup':   82       case ' activate_g roup':
83           $g roupID = ( int)$_REQU EST['group '];   83           $g roupID = ( int)$_REQU EST['group '];
84              84           
85           if ( $groupID  )   85           if ( $groupID  )
86           {   86           {
87                db_res(  "UPDATE `G roups` SET  `status`= 'Active' W HERE `ID`= $groupID"  );   87                db_res(  "UPDATE `G roups` SET  `status`= 'Active' W HERE `ID`= $groupID"  );
88           }   88           }
89       break;   89       break;
90   }   90   }
91     91  
92   TopCodeAdm in();   92   TopCodeAdm in();
93   ContentBlo ckHead("Gr oups Categ ories");   93   ContentBlo ckHead("Gr oups Categ ories");
94   ?>   94   ?>
95                <div sty le="color: green;marg in:5px aut o;">   95                <div sty le="color: green;marg in:5px aut o;">
96                    <?=$ actionMsg? >   96                    <?=$ actionMsg? >
97                </div>   97                </div>
98                   98                
99                <table s tyle="widt h:350px;ma rgin:5px a uto;border -collapse: collapse;" >   99                <table s tyle="widt h:350px;ma rgin:5px a uto;border -collapse: collapse;" >
100   <?php   100   <?php
101   $arrCategs   =  
getGroupsC ategList() ;
  101   $oGroups =  new BxDol Groups();
    102   $arrCategs   =   $oGroups-> getGroupsC ategList() ;
102     103  
103   $tr = 'odd ';   104   $tr = 'odd ';
104              105           
105   foreach( $ arrCategs  as $arrCat eg )   106   foreach( $ arrCategs  as $arrCat eg )
106   {   107   {
107       ?>   108       ?>
108                    <tr  style="bac kground:#< ?=( $tr ==  'odd' ? ' DDD' : 'FF F' )?>;">   109                    <tr  style="bac kground:#< ?=( $tr ==  'odd' ? ' DDD' : 'FF F' )?>;">
109                         <td style= "border:1p x solid gr ay;padding :3px;">   110                         <td style= "border:1p x solid gr ay;padding :3px;">
110                             <a hre f="<?="{$_ SERVER['PH P_SELF']}? view_cat={ $arrCateg[ 'ID']}#vie w_cat"?>"> <b><?=html specialcha rs_adv($ar rCateg['Na me'])?></b ></a>   111                             <a hre f="<?="{$_ SERVER['PH P_SELF']}? view_cat={ $arrCateg[ 'ID']}#vie w_cat"?>"> <b><?=html specialcha rs_adv($ar rCateg['Na me'])?></b ></a>
111                             (<?=$a rrCateg['g roupsCount ']?> group s)   112                             (<?=$a rrCateg['g roupsCount ']?> group s)
112                         </td>   113                         </td>
113                         <td style= "border:1p x solid gr ay;padding :3px;width :16px;">   114                         <td style= "border:1p x solid gr ay;padding :3px;width :16px;">
114                             <a hre f="javascr ipt:void(0 );" onclic k="if( nam e = prompt ('Enter ne w name', ' <?=addslas hes(htmlsp ecialchars ($arrCateg ['Name'])) ?>') ) { d ocument.lo cation='<? =$_SERVER[ 'PHP_SELF' ]?>?action =edit_cat& amp;cat=<? =$arrCateg ['ID']?>&a mp;name='+ encodeURIC omponent(n ame);} ret urn false; " title="e dit"><img  src="image s/edit.gif " alt="edi t" /></a>   115                             <a hre f="javascr ipt:void(0 );" onclic k="if( nam e = prompt ('Enter ne w name', ' <?=addslas hes(htmlsp ecialchars ($arrCateg ['Name'])) ?>') ) { d ocument.lo cation='<? =$_SERVER[ 'PHP_SELF' ]?>?action =edit_cat& amp;cat=<? =$arrCateg ['ID']?>&a mp;name='+ encodeURIC omponent(n ame);} ret urn false; " title="e dit"><img  src="image s/edit.gif " alt="edi t" /></a>
115                         </td>   116                         </td>
116                         <td style= "border:1p x solid gr ay;padding :3px;width :14px;">   117                         <td style= "border:1p x solid gr ay;padding :3px;width :14px;">
117                             <a hre f="<?=$_SE RVER['PHP_ SELF']?>?a ction=del_ cat&amp;ca t=<?=$arrC ateg['ID'] ?>" title= "delete" o nclick="re turn confi rm('Are yo u sure wan t to delet e this ima ge?');"><i mg src="im ages/delet e.gif" alt ="delete"  /></a>   118                             <a hre f="<?=$_SE RVER['PHP_ SELF']?>?a ction=del_ cat&amp;ca t=<?=$arrC ateg['ID'] ?>" title= "delete" o nclick="re turn confi rm('Are yo u sure wan t to delet e this ima ge?');"><i mg src="im ages/delet e.gif" alt ="delete"  /></a>
118                         </td>   119                         </td>
119                    </tr >   120                    </tr >
120       <?php   121       <?php
121       $tr =  ( $tr == ' odd' ? 'ev en' : 'odd ' );   122       $tr =  ( $tr == ' odd' ? 'ev en' : 'odd ' );
122   }   123   }
123   ?>   124   ?>
124                </table>   125                </table>
125                <div sty le="width: 300px;marg in:5px aut o;padding: 3px;border :1px solid  silver;te xt-align:c enter;back ground-col or:#EEE;">   126                <div sty le="width: 300px;marg in:5px aut o;padding: 3px;border :1px solid  silver;te xt-align:c enter;back ground-col or:#EEE;">
126                    <b>A dd new cat egory:</b>   127                    <b>A dd new cat egory:</b>
127                    <for m action=" <?=$_SERVE R['PHP_SEL F']?>" met hod="POST" >   128                    <for m action=" <?=$_SERVE R['PHP_SEL F']?>" met hod="POST" >
128                         <input typ e="hidden"  name="act ion" value ="add_cat"  />   129                         <input typ e="hidden"  name="act ion" value ="add_cat"  />
129                         <input typ e="text" n ame="Categ _Name" sty le="width: 200px;" />   130                         <input typ e="text" n ame="Categ _Name" sty le="width: 200px;" />
130                         <input typ e="submit"  value="Ad d" />   131                         <input typ e="submit"  value="Ad d" />
131                    </fo rm>   132                    </fo rm>
132                </div>   133                </div>
133   <?php   134   <?php
134   ContentBlo ckFoot();   135   ContentBlo ckFoot();
135     136  
136     137  
137   // if sele cted categ ory - view  it's grou ps.   138   // if sele cted categ ory - view  it's grou ps.
138   if( $_REQU EST['view_ cat'] )   139   if( $_REQU EST['view_ cat'] )
139   {   140   {
140       $cat =  (int)$_RE QUEST['vie w_cat'];   141       $cat =  (int)$_RE QUEST['vie w_cat'];
141          142       
142       $aCate g = db_arr ( "SELECT  * FROM `Gr oupsCateg`  WHERE `ID `=$cat" );   143       $aCate g = db_arr ( "SELECT  * FROM `Gr oupsCateg`  WHERE `ID `=$cat" );
143       if( $a Categ['ID' ] )   144       if( $a Categ['ID' ] )
144       {   145       {
145           ?> <a name="v iew_cat">< /a><?   146           ?> <a name="v iew_cat">< /a><?
146           Co ntentBlock Head( "Gro ups of cat egory &quo t;" . html specialcha rs_adv($aC ateg['Name ']) . "&qu ot;" );   147           Co ntentBlock Head( "Gro ups of cat egory &quo t;" . html specialcha rs_adv($aC ateg['Name ']) . "&qu ot;" );
147           ?> <div style ="text-ali gn:right;" ><a href=" #">Top</a> </div><?   148           ?> <div style ="text-ali gn:right;" ><a href=" #">Top</a> </div><?
148              149           
149              150           
150           $a GroupsNum  = db_arr(  "SELECT CO UNT(*) FRO M `Groups`  WHERE `ca tegID`=$ca t" );   151           $a GroupsNum  = db_arr(  "SELECT CO UNT(*) FRO M `Groups`  WHERE `ca tegID`=$ca t" );
151           $i GroupsNum  = (int)$aG roupsNum[0 ];   152           $i GroupsNum  = (int)$aG roupsNum[0 ];
152           if ( $iGroups Num ) // $ iGroupsNum  > 0   153           if ( $iGroups Num ) // $ iGroupsNum  > 0
153           {   154           {
154                $resPerP age = 10;   155                $resPerP age = 10;
155                $pagesNu m = ceil(  $iGroupsNu m / $resPe rPage );   156                $pagesNu m = ceil(  $iGroupsNu m / $resPe rPage );
156                $page =  (int)$_REQ UEST['page '];   157                $page =  (int)$_REQ UEST['page '];
157                   158                
158                if( $pag e < 1 )   159                if( $pag e < 1 )
159                    $pag e = 1;   160                    $pag e = 1;
160                if( $pag e > $pages Num )   161                if( $pag e > $pages Num )
161                    $pag e = $pages Num;   162                    $pag e = $pages Num;
162                   163                
163                $sqlFrom  = ( ( $pa ge - 1 ) *  $resPerPa ge );   164                $sqlFrom  = ( ( $pa ge - 1 ) *  $resPerPa ge );
164                   165                
165                $sQuery  = "   166                $sQuery  = "
166                    SELE CT   167                    SELE CT
167                         `Groups`.* ,   168                         `Groups`.* ,
168                         COUNT( `Gr oupsMember s`.`member ID` ) AS ` membersCou nt`,   169                         COUNT( `Gr oupsMember s`.`member ID` ) AS ` membersCou nt`,
169                         `GroupsGal lery`.`see d`,   170                         `GroupsGal lery`.`see d`,
170                         `GroupsGal lery`.`ext ` AS `thum bExt`   171                         `GroupsGal lery`.`ext ` AS `thum bExt`
171                    FROM  `Groups`   172                    FROM  `Groups`
172                    LEFT  JOIN `Gro upsMembers `   173                    LEFT  JOIN `Gro upsMembers `
173                         ON (`Group sMembers`. `groupID`  = `Groups` .`ID` AND  `GroupsMem bers`.`sta tus`='Acti ve')   174                         ON (`Group sMembers`. `groupID`  = `Groups` .`ID` AND  `GroupsMem bers`.`sta tus`='Acti ve')
174                    LEFT  JOIN `Gro upsGallery `   175                    LEFT  JOIN `Gro upsGallery `
175                         ON (`Group s`.`thumb`  = `Groups Gallery`.` ID`)   176                         ON (`Group s`.`thumb`  = `Groups Gallery`.` ID`)
176                    WHER E `categID `=$cat   177                    WHER E `categID `=$cat
177                    GROU P BY `Grou ps`.`ID` D ESC   178                    GROU P BY `Grou ps`.`ID` D ESC
178                    LIMI T $sqlFrom , $resPerP age   179                    LIMI T $sqlFrom , $resPerP age
179                    ";   180                    ";
180                   181                
181                $resGrou ps = db_re s( $sQuery  );   182                $resGrou ps = db_re s( $sQuery  );
182                   183                
183                $numOnPa ge = mysql _num_rows(  $resGroup s );   184                $numOnPa ge = mysql _num_rows(  $resGroup s );
184                $showing From = $sq lFrom + 1;   185                $showing From = $sq lFrom + 1;
185                $showing To   = $sq lFrom + $n umOnPage;   186                $showing To   = $sq lFrom + $n umOnPage;
186                   187                
187                $showing Results =  "Showing r esults: <b >$showingF rom</b> -  <b>$showin gTo</b> of  <b>$iGrou psNum</b>" ;   188                $showing Results =  "Showing r esults: <b >$showingF rom</b> -  <b>$showin gTo</b> of  <b>$iGrou psNum</b>" ;
188                   189                
189                if( $pag esNum > 1  )   190                if( $pag esNum > 1  )
190                {   191                {
191                    $pag esUrl = "{ $_SERVER[' PHP_SELF'] }?view_cat =$cat&amp; page={page }#view_cat ";   192                    $pag esUrl = "{ $_SERVER[' PHP_SELF'] }?view_cat =$cat&amp; page={page }#view_cat ";
192                    $pag ination =  genPaginat ion( $page sNum, $pag e, $pagesU rl );   193                    $pag ination =  genPaginat ion( $page sNum, $pag e, $pagesU rl );
193                }   194                }
194                else   195                else
195                    $pag ination =  '';   196                    $pag ination =  '';
196                   197                
197                 $sRowTmpl   =   file_get_c ontents("{ $dir['root ']}
admin
/group_sea rchrow.htm l");
  198                 $sRowTmpl   =   file_get_c ontents("{ $dir['root ']} {$ admin _dir} /group_sea rchrow.htm l");
198                $date_fo rmat_php =  getParam( 'php_date_ format');   199                $date_fo rmat_php =  getParam( 'php_date_ format');
199                   200                
200                ?><div s tyle="text -align:cen ter;"><?=$ pagination ?></div><?   201                ?><div s tyle="text -align:cen ter;"><?=$ pagination ?></div><?
201                ?><div s tyle="text -align:cen ter;"><?=$ showingRes ults?></di v><?   202                ?><div s tyle="text -align:cen ter;"><?=$ showingRes ults?></di v><?
202                   203                
203                ?>   204                ?>
204                    <div  style="bo rder:1px s olid #CCC; margin:5px ;position: relative;p adding:3px ;">   205                    <div  style="bo rder:1px s olid #CCC; margin:5px ;position: relative;p adding:3px ;">
205                <?php   206                <?php
206                while( $ arrGroup =  mysql_fet ch_assoc(  $resGroups  ) )   207                while( $ arrGroup =  mysql_fet ch_assoc(  $resGroups  ) )
207                {   208                {
208                    $aRo wTmpl = ar ray();   209                    $aRo wTmpl = ar ray();
209                       210                    
210                     if   (   $arrGroup[ 'thumb']   and   file_exist s( BX_DIRECTO RY_PATH_ G ROUPS_ G ALLERY   .   "{$arrGrou p['ID']}_{ $arrGroup[ 'thumb']}_ {$arrGroup ['seed']}_ .{$arrGrou p['thumbEx t']}"   )   )   211                     if   (   $arrGroup[ 'thumb']   and   file_exist s( $o G roups->s G rpGalPath   .   "{$arrGrou p['ID']}_{ $arrGroup[ 'thumb']}_ {$arrGroup ['seed']}_ .{$arrGrou p['thumbEx t']}"   )   )
211                         $groupImag eUrl = "{$ site['grou ps_gallery ']}{$arrGr oup['ID']} _{$arrGrou p['thumb'] }_{$arrGro up['seed'] }_.{$arrGr oup['thumb Ext']}";   212                         $groupImag eUrl = "{$ site['grou ps_gallery ']}{$arrGr oup['ID']} _{$arrGrou p['thumb'] }_{$arrGro up['seed'] }_.{$arrGr oup['thumb Ext']}";
212                    else   213                    else
213                         $groupImag eUrl = "{$ site['grou ps_gallery ']}no_pic. gif";   214                         $groupImag eUrl = "{$ site['grou ps_gallery ']}no_pic. gif";
214                       215                    
215                       216                    
216                    if(  (int)$arrG roup['hidd en_group']  )   217                    if(  (int)$arrG roup['hidd en_group']  )
217                         $typeHelp  = 7;   218                         $typeHelp  = 7;
218                    else   219                    else
219                         if( (int)$ arrGroup[' open_join' ] )   220                         if( (int)$ arrGroup[' open_join' ] )
220                             $typeH elp = 5;   221                             $typeH elp = 5;
221                         else   222                         else
222                             $typeH elp = 6;   223                             $typeH elp = 6;
223                       224                    
224                    $typ eHelpLink  = "{$site[ 'url']}gro ups_help.p hp?i=$type Help";   225                    $typ eHelpLink  = "{$site[ 'url']}gro ups_help.p hp?i=$type Help";
225                       226                    
226                    if(  $arrGroup[ 'status']  == 'Active ' )   227                    if(  $arrGroup[ 'status']  == 'Active ' )
227                    {   228                    {
228                         $statusAct  = 'suspen d_group';   229                         $statusAct  = 'suspen d_group';
229                         $statusAct Title = 'S uspend';   230                         $statusAct Title = 'S uspend';
230                    }   231                    }
231                    else   232                    else
232                    {   233                    {
233                         $statusAct  = 'activa te_group';   234                         $statusAct  = 'activa te_group';
234                         $statusAct Title = 'A ctivate';   235                         $statusAct Title = 'A ctivate';
235                    }   236                    }
236                       237                    
237                    $aRo wTmpl['gro up_type_he lp'] = '<a  href="'.$ typeHelpLi nk.'" targ et="_blank " onclick= "window.op en(this.hr ef,\'helpw in\',\'wid th=350,hei ght=200\') ;return fa lse;" >Hel p</a>';   238                    $aRo wTmpl['gro up_type_he lp'] = '<a  href="'.$ typeHelpLi nk.'" targ et="_blank " onclick= "window.op en(this.hr ef,\'helpw in\',\'wid th=350,hei ght=200\') ;return fa lse;" >Hel p</a>';
238                       239                    
239                    $aRo wTmpl['thu mbnail']      = "<div  class=\"g roup_thumb \"><a href =\"{$site[ 'url']}gro up.php?ID= {$arrGroup ['ID']}\"> <img src=\ "{$groupIm ageUrl}\"  /></a></di v>";   240                    $aRo wTmpl['thu mbnail']      = "<div  class=\"g roup_thumb \"><a href =\"{$site[ 'url']}gro up.php?ID= {$arrGroup ['ID']}\"> <img src=\ "{$groupIm ageUrl}\"  /></a></di v>";
240                    $aRo wTmpl['gro up_name']     = "<a h ref=\"{$si te['url']} group.php? ID={$arrGr oup['ID']} \">".htmls pecialchar s_adv( $ar rGroup['Na me'] )."</ a>";   241                    $aRo wTmpl['gro up_name']     = "<a h ref=\"{$si te['url']} group.php? ID={$arrGr oup['ID']} \">".htmls pecialchar s_adv( $ar rGroup['Na me'] )."</ a>";
241                    $aRo wTmpl['gro up_about']    = htmls pecialchar s_adv( $ar rGroup['Ab out'] );   242                    $aRo wTmpl['gro up_about']    = htmls pecialchar s_adv( $ar rGroup['Ab out'] );
242                    $aRo wTmpl['mem bers_count '] = $arrG roup['memb ersCount'] ;   243                    $aRo wTmpl['mem bers_count '] = $arrG roup['memb ersCount'] ;
243                    $aRo wTmpl['cre ated']        = date(  $date_for mat_php, s trtotime(  $arrGroup[ 'created']  ) );   244                    $aRo wTmpl['cre ated']        = date(  $date_for mat_php, s trtotime(  $arrGroup[ 'created']  ) );
244                    $aRo wTmpl['gro up_type']     = ( ( ( int)$arrGr oup['open_ join'] and  !(int)$ar rGroup['hi dden_group '] ) ? 'Pu blic group ' : 'Priva te group'  );   245                    $aRo wTmpl['gro up_type']     = ( ( ( int)$arrGr oup['open_ join'] and  !(int)$ar rGroup['hi dden_group '] ) ? 'Pu blic group ' : 'Priva te group'  );
245                     $aRowTmpl[ 'country']         =  
$ p r of [' c ountr ies '][   $arrGroup[ 'Country']   ]
;
  246                     $aRowTmpl[ 'country']         =   _t(   $ aP r eValues [' C ountr y '][   $arrGroup[ 'Country']   ] ['LKey']   ) ;
246                    $aRo wTmpl['cit y']           = htmls pecialchar s_adv( $ar rGroup['Ci ty'] );   247                    $aRo wTmpl['cit y']           = htmls pecialchar s_adv( $ar rGroup['Ci ty'] );
247                    $aRo wTmpl['sta tus']         = $arrG roup['stat us'];   248                    $aRo wTmpl['sta tus']         = $arrG roup['stat us'];
248                    $aRo wTmpl['sta tus_color' ]  = ( $ar rGroup['st atus'] ==  'Active' ?  'green' :  'red' );   249                    $aRo wTmpl['sta tus_color' ]  = ( $ar rGroup['st atus'] ==  'Active' ?  'green' :  'red' );
249                       250                    
250                    $aRo wTmpl['sta tus_action '] = "<a h ref=\"{$_S ERVER['PHP _SELF']}?a ction=$sta tusAct&amp ;group={$a rrGroup['I D']}&amp;v iew_cat=$c at&amp;pag e=$page#vi ew_cat\" o nclick=\"r eturn conf irm('Are y ou sure wa nt to $sta tusActTitl e this gro up?');\">$ statusActT itle</a>";   251                    $aRo wTmpl['sta tus_action '] = "<a h ref=\"{$_S ERVER['PHP _SELF']}?a ction=$sta tusAct&amp ;group={$a rrGroup['I D']}&amp;v iew_cat=$c at&amp;pag e=$page#vi ew_cat\" o nclick=\"r eturn conf irm('Are y ou sure wa nt to $sta tusActTitl e this gro up?');\">$ statusActT itle</a>";
251                       252                    
252                       253                    
253                    $sRo w = $sRowT mpl;   254                    $sRo w = $sRowT mpl;
254                    fore ach( $aRow Tmpl as $w hat => $to  )   255                    fore ach( $aRow Tmpl as $w hat => $to  )
255                         $sRow = st r_replace(  "__{$what }__", $to,  $sRow );   256                         $sRow = st r_replace(  "__{$what }__", $to,  $sRow );
256                       257                    
257                    echo  $sRow;   258                    echo  $sRow;
258                }   259                }
259                ?>   260                ?>
260                    </di v>   261                    </di v>
261                <?   262                <?
262                   263                
263                ?><div s tyle="text -align:cen ter;"><?=$ showingRes ults?></di v><?   264                ?><div s tyle="text -align:cen ter;"><?=$ showingRes ults?></di v><?
264                ?><div s tyle="text -align:cen ter;"><?=$ pagination ?></div><?   265                ?><div s tyle="text -align:cen ter;"><?=$ pagination ?></div><?
265           }   266           }
266           el se   267           el se
267           {   268           {
268                ?>   269                ?>
269                    <div  style="te xt-align:c enter;font -weight:bo ld;padding :20px;">   270                    <div  style="te xt-align:c enter;font -weight:bo ld;padding :20px;">
270                         Sorry, no  groups fou nd in this  category   271                         Sorry, no  groups fou nd in this  category
271                    </di v>   272                    </di v>
272                <?   273                <?
273           }   274           }
274              275           
275           ?> <div style ="text-ali gn:right;" ><a href=" #">Top</a> </div><?   276           ?> <div style ="text-ali gn:right;" ><a href=" #">Top</a> </div><?
276           Co ntentBlock Foot();   277           Co ntentBlock Foot();
277       }   278       }
278   }   279   }
279   BottomCode ();   280   BottomCode ();
280     281  
281   ?>   282   ?>