786. File Comparison Report

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

786.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 group_members.php Thu Sep 20 09:00:20 2007 UTC
2 Mon May 12 13:07:07 2008 UTC

786.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 0 0
Removed 1 216

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

786.4 Active regular expressions

No regular expressions were active.

786.5 Comparison detail

1   <?    
2      
3   /********* ********** ********** ********** ********** ********** ********** ******    
4   *                              D olphin Sma rt Communi ty Builder    
5   *                                 --------- --------    
6   *     begi n                 : M on Mar 23  2006    
7   *     copy right             : ( C) 2006 Bo onEx Group    
8   *     webs ite               : h ttp://www. boonex.com /    
9   * This fil e is part  of Dolphin  - Smart C ommunity B uilder    
10   *    
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/    
13   *    
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.    
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    
18   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m    
19   ********** ********** ********** ********** ********** ********** ********** *****/    
20      
21   require_on ce( 'inc/h eader.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 . 'g roups.inc. php' );    
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );    
25      
26   // ------- -------- p age variab les and lo gin    
27      
28      
29   $_page['na me_index']     = 77;    
30   $_page['cs s_name']       = 'gro ups.css';    
31      
32      
33   if( $logge d['member' ] = member _auth( 0,  false ) )    
34       $membe rID = (int )$_COOKIE[ 'memberID' ];    
35   else    
36   {    
37       $membe rID = 0;    
38       $logge d['admin']  = member_ auth( 1, f alse );    
39   }    
40      
41      
42   $groupID =  (int)$_RE QUEST['ID' ];    
43      
44   if ( !$gro upID )    
45   {    
46       Header ( "Locatio n: {$site[ 'url']}gro ups_home.p hp" );    
47       exit;    
48   }    
49      
50   $bcd = get Param('bre adCrampDiv ider');    
51      
52   $_page['he ader_text' ] = _t( "_ Group memb ers" );    
53      
54   $_page['he ader'] = _ t( "_Group  members"  );    
55   $_ni = $_p age['name_ index'];    
56      
57   if ( $arrG roup = get GroupInfo(  $groupID  ) )    
58   {    
59       $arrGr oup['Name_ html'] = h tmlspecial chars_adv(  $arrGroup ['Name'] ) ;    
60           
61       if ( ( int)$arrGr oup['hidde n_group']  and !isGro upMember(  $memberID,  $groupID  ) and !$lo gged['admi n'] )    
62           $_ page_cont[ $_ni]['pag e_main_cod e'] = _t(  "_You cann ot view gr oup member s while no t a group  member" );    
63       else    
64       {    
65           if ( $arrGrou p['status' ] == 'Acti ve' or $ar rGroup['cr eatorID']  == $member ID or $log ged['admin '] )    
66           {    
67                $_page[' header'] =  _t( "_Gro up members " );    
68                PageComp MainCode() ;    
69           }    
70           el se    
71           {    
72                $_page[' name_index '] = 0;    
73                $_page[' header'] =  _t( "_Gro up is susp ended" );    
74                $_page[' header_tex t'] = _t(  "_Group is  suspended " );    
75                $_page_c ont[0]['pa ge_main_co de'] = _t(  "_Sorry,  group is s uspended"  );    
76           }    
77       }    
78   }    
79   else    
80       $_page _cont[$_ni ]['page_ma in_code']  = _t( "_Gr oup not fo und_desc"  );    
81      
82   // ------- -------- p age compon ents    
83      
84   // ------- -------- [ END] page  components    
85      
86   PageCode() ;    
87      
88   // ------- -------- p age compon ents funct ions    
89      
90   /**    
91    * page co de functio n    
92    */    
93   function P ageCompMai nCode()    
94   {    
95       global  $memberID ;    
96       global  $groupID;    
97       global  $arrGroup ;    
98       global  $site;    
99       global  $bcd;    
100       global  $oTemplCo nfig;    
101       global  $_page_co nt;    
102       global  $_ni;    
103           
104       if( $_ REQUEST['m ode'] == ' edit' and  $arrGroup[ 'creatorID '] == $mem berID )    
105       {    
106           $e ditMode =  true;    
107           $e ditModeReq  = 'mode=e dit&amp;';    
108           $e ditModeSql  = "`membe rID`!={$ar rGroup['cr eatorID']}  AND";    
109       }    
110       else    
111       {    
112           $e ditMode =  false;    
113           $e ditModeReq  = '';    
114           $e ditModeSql  = '';    
115       }    
116           
117       $bread Crumbs = < <<EOJ    
118           <d iv class=" groups_bre adcrumbs">    
119                <a href= "{$site['u rl']}">{$s ite['title ']}</a> $b cd    
120                <a href= "{$site['u rl']}group s_home.php ">__Groups __</a> $bc d    
121                <a href= "{$site['u rl']}group .php?ID=$g roupID">{$ arrGroup[' Name_html' ]}</a> $bc d    
122                <span cl ass="activ e_link">__ Group memb ers__</spa n>    
123           </ div>    
124   EOJ;    
125           
126       $bread Crumbs = s tr_replace ( "__Group s__", _t(  "_Groups"  ), $breadC rumbs );    
127       $bread Crumbs = s tr_replace ( "__Group  members__ ", _t( "_G roup membe rs" ), $br eadCrumbs  );    
128           
129           
130       $arrMe mNum = db_ arr( "SELE CT COUNT(` memberID`)  FROM `Gro upsMembers ` WHERE $e ditModeSql  `groupID` =$groupID   AND `stat us`='Activ e'" );    
131           
132       $total Num = (int )$arrMemNu m[0];    
133       if( $t otalNum )    
134       {    
135           $r esPerPage  = $oTemplC onfig -> i GroupMembe rsResPerPa ge;    
136           $p agesNum =  ceil( $tot alNum / $r esPerPage  );    
137           $p age = (int )$_REQUEST ['page'];    
138               
139           if ( $page <  1 )    
140                $page =  1;    
141           if ( $page >  $pagesNum  )    
142                $page =  $pagesNum;    
143               
144           $s qlFrom = (  ( $page -  1 ) * $re sPerPage ) ;    
145               
146           $q uery = "    
147                SELECT    
148                    `Gro upsMembers `.`memberI D`,    
149                    `Pro files`.`Ni ckName`,    
150                    IF(  `GroupsMem bers`.`mem berID`={$a rrGroup['c reatorID'] }, 1, 0 )  AS `isCrea tor`    
151                FROM    
152                    `Gro upsMembers `, `Profil es`    
153                WHERE    
154                    $edi tModeSql    
155                    `Gro upsMembers `.`groupID `=$groupID  AND    
156                    `Gro upsMembers `.`status` ='Active'  AND    
157                    `Gro upsMembers `.`memberI D`=`Profil es`.`ID`    
158                ORDER BY    
159                    `isC reator` DE SC,    
160                    `Gro upsMembers `.`Date` D ESC    
161                LIMIT $s qlFrom, $r esPerPage    
162                ";    
163               
164           $r esMembers  = db_res(  $query );    
165               
166           $n umOnPage =  mysql_num _rows( $re sMembers ) ;    
167           $s howingFrom  = $sqlFro m + 1;    
168           $s howingTo    = $sqlFro m + $numOn Page;    
169               
170           $s howingResu lts = _t(  '_Showing  results:',  $showingF rom, $show ingTo, $to talNum );    
171               
172               
173           if ( $pagesNu m > 1 )    
174           {    
175                $pagesUr l = "{$_SE RVER['PHP_ SELF']}?{$ editModeRe q}ID={$gro upID}&amp; page={page }";    
176                $paginat ion = genP agination(  $pagesNum , $page, $ pagesUrl ) ;    
177           }    
178      
179           $_ page_cont[ $_ni]['bre ad_crumbs' ]    = $br eadCrumbs;    
180           $_ page_cont[ $_ni]['sho wing_resul ts'] = $sh owingResul ts;    
181           $_ page_cont[ $_ni]['pag ination']       = $pa gination;    
182               
183           ob _start();    
184           ?>    
185                    <div  class="cl ear_both"> </div>    
186           <? php    
187           wh ile( $arrM ember = my sql_fetch_ assoc( $re sMembers )  )    
188           {    
189                ?>    
190                    <div  class="gr oup_member ">    
191                <?    
192                echo get _member_th umbnail( $ arrMember[ 'memberID' ], 'none'  );    
193                echo "<a  href=\"". getProfile Link($arrM ember['mem berID'])." \">{$arrMe mber['Nick Name']}</a >";    
194                if( (int )$arrMembe r['isCreat or'] )    
195                    echo  '<div cla ss="mygrou p_leader_i s">'._t('_ group crea tor').'</d iv>';    
196                if( $edi tMode )    
197                    echo  '<div cla ss="group_ member_edi t"><a href ="'."{$sit e['url']}g roup_actio ns.php?ID= $groupID&a mp;a=delme m&amp;mem= {$arrMembe r['memberI D']}".'" o nclick="re turn confi rm(\''._t( '_Are you  sure want  to delete  this membe r?').'\')" >' ._t('_D elete memb er').'</a> </div>';    
198                ?>    
199                    </di v>    
200                <?php    
201           }    
202           ?>    
203                    <div  class="cl ear_both"> </div>    
204           <? php    
205           $_ page_cont[ $_ni]['pag e_main_cod e'] = ob_g et_clean() ;    
206       }    
207       else    
208       {    
209           $_ page_cont[ $_ni]['bre ad_crumbs' ]    = '';    
210           $_ page_cont[ $_ni]['pag ination']       = '';    
211           $_ page_cont[ $_ni]['sho wing_resul ts'] = '';    
212           $_ page_cont[ $_ni]['pag e_main_cod e']  = _t(  '_Sorry,  no members  are found ' );    
213       }    
214   }    
215      
216   ?>