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

784.1 Files compared

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

784.2 Comparison summary

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

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

784.4 Active regular expressions

No regular expressions were active.

784.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']     = 73;    
30   $_page['cs s_name']       = 'gro ups.css';    
31      
32      
33   $logged['m ember'] =  member_aut h( 0, true  );    
34   $memberID  = (int)$_C OOKIE['mem berID'];    
35      
36      
37      
38   $groupID =  (int)$_RE QUEST['ID' ];    
39      
40   if ( !$gro upID )    
41   {    
42       Header ( "Locatio n: {$site[ 'url']}gro ups_home.p hp" );    
43       exit;    
44   }    
45      
46   $_page['he ader'] = _ t( "_Edit  Group" );    
47   $_page['he ader_text' ] = _t( "_ Edit Group " );    
48   $_page['ex tra_js'] =  $oTemplCo nfig -> sT inyMceEdit orCompactJ S;    
49      
50   $_ni = $_p age['name_ index'];    
51      
52   if ( $arrG roup = get GroupInfo(  $groupID  ) )    
53   {    
54       if ( $ arrGroup[' creatorID' ] == $memb erID ) //o nly creato r can edit  group    
55           $_ page_cont[ $_ni]['pag e_main_cod e'] = Page CompMainCo de();    
56       else    
57           $_ page_cont[ $_ni]['pag e_main_cod e'] = _t(  "_You're n ot creator " );    
58   }    
59   else    
60       $_page _cont[$_ni ]['page_ma in_code']  = _t( "_Gr oup not fo und_desc"  );    
61      
62      
63   // ------- -------- p age compon ents    
64      
65   // ------- -------- [ END] page  components    
66      
67   PageCode() ;    
68      
69   // ------- -------- p age compon ents funct ions    
70      
71   /**    
72    * page co de functio n    
73    */    
74   function P ageCompMai nCode()    
75   {    
76       global  $memberID ;    
77       global  $groupID;    
78       global  $arrGroup ;    
79       global  $site;    
80           
81       $arrGr oupFields  = getDefau ltGroupEdi tArr();    
82       fillGr oupArrByDB Values( $a rrGroupFie lds, $arrG roup );    
83       $arrEr r = array( );    
84           
85       if( is set( $_POS T['do_subm it'] ) )    
86       {    
87           $a rrOldGroup Fields = $ arrGroupFi elds;    
88           fi llGroupArr ByPostValu es( $arrGr oupFields  );    
89           $a rrUpdGroup Fields = c ompareUpda tedGroupFi elds( $arr OldGroupFi elds, $arr GroupField s );    
90               
91           if ( !empty(  $arrUpdGro upFields )  )    
92           {    
93                $arrErr  = checkGro upErrors(  $arrUpdGro upFields ) ;    
94                    
95                if( empt y( $arrErr  ) )    
96                {    
97                    save Group( $ar rUpdGroupF ields, $gr oupID );    
98                    Head er( "Locat ion: {$sit e['url']}g roup.php?I D=$groupID " );    
99                    exit ;    
100                }    
101           }    
102           el se    
103           {    
104                Header(  "Location:  {$site['u rl']}group .php?ID=$g roupID" );    
105                exit;    
106           }    
107       }    
108           
109       $res =  genGroupE ditForm( $ arrGroupFi elds, $arr Err, false , $groupID  );    
110           
111       return  $res;    
112   }    
113      
114   ?>