785. File Comparison Report

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

785.1 Files compared

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

785.2 Comparison summary

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

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

785.4 Active regular expressions

No regular expressions were active.

785.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']     = 75;    
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   $groupID =  (int)$_RE QUEST['ID' ];    
42      
43   if ( !$gro upID )    
44   {    
45       Header ( "Locatio n: {$site[ 'url']}gro ups_home.p hp" );    
46       exit;    
47   }    
48      
49   $bcd = get Param('bre adCrampDiv ider');    
50      
51   $_page['he ader_text' ] = _t( "_ Group gall ery" );    
52      
53   $_page['he ader'] = _ t( "_Group  gallery"  );    
54   $_ni = $_p age['name_ index'];    
55      
56   if ( $arrG roup = get GroupInfo(  $groupID  ) )    
57   {    
58       $arrGr oup['Name_ html'] = h tmlspecial chars_adv(  $arrGroup ['Name'] ) ;    
59           
60       if ( ( int)$arrGr oup['hidde n_group']  and !isGro upMember(  $memberID,  $groupID  ) and !$lo gged['admi n'] )    
61           $_ page_cont[ $_ni]['pag e_main_cod e'] = _t(  "_You cann ot view ga llery whil e not a gr oup member " );    
62       else    
63       {    
64           if ( $arrGrou p['status' ] == 'Acti ve' or $ar rGroup['cr eatorID']  == $member ID or $log ged['admin '] )    
65           {    
66                $_page[' header'] =  _t( "_Gro up gallery " );    
67                $_page_c ont[$_ni][ 'page_main _code'] =  PageCompMa inCode();    
68           }    
69           el se    
70           {    
71                $_page[' name_index '] = 0;    
72                $_page[' header'] =  _t( "_Gro up is susp ended" );    
73                $_page[' header_tex t'] = _t(  "_Group is  suspended " );    
74                $_page_c ont[0]['pa ge_main_co de'] = _t(  "_Sorry,  group is s uspended"  );    
75           }    
76       }    
77   }    
78   else    
79       $_page _cont[$_ni ]['page_ma in_code']  = _t( "_Gr oup not fo und_desc"  );    
80      
81   // ------- -------- p age compon ents    
82      
83   // ------- -------- [ END] page  components    
84      
85   PageCode() ;    
86      
87   // ------- -------- p age compon ents funct ions    
88      
89   /**    
90    * page co de functio n    
91    */    
92   function P ageCompMai nCode()    
93   {    
94       global  $memberID ;    
95       global  $groupID;    
96       global  $arrGroup ;    
97       global  $site;    
98       global  $bcd;    
99           
100       $bread Crumbs = < <<EOJ    
101           <d iv class=" groups_bre adcrumbs">    
102                <a href= "{$site['u rl']}">{$s ite['title ']}</a> $b cd    
103                <a href= "{$site['u rl']}group s_home.php ">__Groups __</a> $bc d    
104                <a href= "{$site['u rl']}group .php?ID=$g roupID">{$ arrGroup[' Name_html' ]}</a> $bc d    
105                <span cl ass="activ e_link">__ Group gall ery__</spa n>    
106           </ div>    
107   EOJ;    
108           
109       $bread Crumbs = s tr_replace ( "__Group s__", _t(  "_Groups"  ), $breadC rumbs );    
110       $bread Crumbs = s tr_replace ( "__Group  gallery__ ", _t( "_G roup galle ry" ), $br eadCrumbs  );    
111           
112       ob_sta rt();    
113       echo $ breadCrumb s;    
114           
115       $query  = "    
116           SE LECT    
117                `GroupsG allery`.*,    
118                `NickNam e`    
119           FR OM `Groups Gallery`    
120           LE FT JOIN `P rofiles`    
121           ON  ( `by`=`P rofiles`.` ID` )    
122           WH ERE `group ID`=$group ID    
123           OR DER BY `Gr oupsGaller y`.`ID`    
124           ";    
125           
126       $resPi cs = db_re s( $query  );    
127           
128       ?>    
129           <d iv class=" group_gall ery_wrappe r">    
130                <div cla ss="clear_ both"></di v>    
131       <?php    
132       while(  $arrPic =  mysql_fet ch_assoc(  $resPics )  )    
133       {    
134           ?>    
135                <div cla ss="group_ gallery_pi c" style=" ">    
136                    <a h ref="<?="{ $site['gro ups_galler y']}{$arrP ic['groupI D']}_{$arr Pic['ID']} _{$arrPic[ 'seed']}.{ $arrPic['e xt']}"?>"    
137                      ti tle="<?=_t ('_Uploade d by').' ' .htmlspeci alchars_ad v($arrPic[ 'NickName' ])?>"    
138                      on click="win dow.open(t his.href,  '_blank',  'width=<?= $arrPic['w idth']+20  ?>,height= <?=$arrPic ['height'] +20 ?>');r eturn fals e;">    
139                         <img src=" <?="{$site ['groups_g allery']}{ $arrPic['g roupID']}_ {$arrPic[' ID']}_{$ar rPic['seed ']}_.{$arr Pic['ext'] }"?>"    
140                           width="< ?=$arrPic[ 'width_']? >" height= "<?=$arrPi c['height_ ']?>"/>    
141                    </a>    
142           <? php    
143           if ( $arrGrou p['thumb']  != $arrPi c['ID'] an d $arrGrou p['creator ID'] == $m emberID )    
144           {    
145                ?>    
146                    <br  />    
147                    <a h ref="<?="{ $site['url ']}group_a ctions.php ?ID=$group ID&amp;a=d ef&img={$a rrPic['ID' ]}"?>" cla ss="group_ set_thumb" ><?=_t('_S et as thum bnail')?>< /a>    
148                <?php    
149           }    
150               
151           if ( $arrGrou p['creator ID'] == $m emberID or  $arrPic[' by'] == $m emberID )    
152           {    
153                ?>    
154                    <br  />    
155                    <a h ref="<?="{ $site['url ']}group_a ctions.php ?ID=$group ID&amp;a=d elimg&img= {$arrPic[' ID']}"?>"  class="gro up_set_thu mb" onclic k="return  confirm('< ?=_t('_Are  you sure  want to de lete this  image?')?> ');"><?=_t ('_Delete  image')?>< /a>    
156                <?php    
157           }    
158           ?>    
159                </div>    
160           <? php    
161       }    
162       ?>    
163                <div cla ss="clear_ both"></di v>    
164           </ div>    
165       <?php    
166       if( (  (int)$arrG roup['memb ers_post_i mages'] an d isGroupM ember( $me mberID, $g roupID ) )  or $arrGr oup['creat orID'] ==  $memberID  )    
167       {    
168           ?>    
169           <a  href="<?= "{$site['u rl']}group _actions.p hp?a=uploa d&ID=$grou pID"?>" cl ass="actio ns"><?=_t( '_Upload i mage')?></ a>    
170           <? php    
171       }    
172           
173       return  ob_get_cl ean();    
174   }    
175      
176   ?>