803. File Comparison Report

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

803.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 profile.php Wed Oct 17 08:48:28 2007 UTC
2 Dolphin-v.6.1.0 profile.php Tue Apr 15 11:33:46 2008 UTC

803.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 14 188
Changed 8 85
Inserted 2 2
Removed 3 35

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

803.4 Active regular expressions

No regular expressions were active.

803.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( 'inc/h eader.inc. php' );   21   require_on ce( 'inc/h eader.inc. 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 . 'p rofiles.in c.php' );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'm embers.inc .php' );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'm embers.inc .php' );
25   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofile_dis p.inc.php'  );    
26   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );   25   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
27   require_on ce( BX_DIR ECTORY_PAT H_ROOT . " templates/ tmpl_{$tmp l}/scripts /BxTemplPr ofileView. php" );   26   require_on ce( BX_DIR ECTORY_PAT H_ROOT . " templates/ tmpl_{$tmp l}/scripts /BxTemplPr ofileView. php" );
28     27  
29   $_page['na me_index']     = 7;   28   $_page['na me_index']     = 7;
30   $_page['cs s_name']       = 'pro file_view. css';   29   $_page['cs s_name']       = 'pro file_view. css';
31     30  
32   if ( !( $l ogged['adm in'] = mem ber_auth(  1, false )  ) )   31   check_logg ed();
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     32  
37   $profileID  = getID(  $_REQUEST[ 'ID'] );   33   $profileID  = getID(  $_REQUEST[ 'ID'] );
38     34  
39   if(   $logged['m ember']   )
  35   if(   $logged['m ember']   )   {
40       $membe rID = (int )$_COOKIE[ 'memberID' ];   36       $membe rID = (int )$_COOKIE[ 'memberID' ];
41  
else
  37   }   else   {
42       $membe rID = 0;   38       $membe rID = 0;
    39   }
43     40  
44   if   (   !$profileI D   )
  41   if   (   !$profileI D   )   {
45   {    
46       $_page ['header']  = "{$site ['title']}  ". _t("_M ember Prof ile");   42       $_page ['header']  = "{$site ['title']}  ". _t("_M ember Prof ile");
47       $_page ['header_t ext'] = _t ("_View pr ofile");   43       $_page ['header_t ext'] = _t ("_View pr ofile");
48       $_page ['name_ind ex'] = 0;   44       $_page ['name_ind ex'] = 0;
49       $_page _cont[0][' page_main_ code'] = M sgBox( _t( "_Profile  NA") );   45       $_page _cont[0][' page_main_ code'] = M sgBox( _t( "_Profile  NA") );
50       PageCo de();   46       PageCo de();
51       exit;   47       exit;
52   }   48   }
53     49  
54   // Check i f member c an view pr ofile   50   // Check i f member c an view pr ofile
55   $contact_a llowed = c ontact_all owed($memb erID, $pro fileID);   51   $contact_a llowed = c ontact_all owed($memb erID, $pro fileID);
56   $check_res   =   checkActio n(   $memberID,   ACTION_ID_ VIEW_PROFI LES,   true  
);
  52   $check_res   =   checkActio n(   $memberID,   ACTION_ID_ VIEW_PROFI LES,   true ,   $profileID   );
57     53  
58   if ( $chec k_res[CHEC K_ACTION_R ESULT] !=  CHECK_ACTI ON_RESULT_ ALLOWED   54   if ( $chec k_res[CHEC K_ACTION_R ESULT] !=  CHECK_ACTI ON_RESULT_ ALLOWED
59       && !$l ogged['adm in'] && !$ logged['mo derator']  && $member ID != $pro fileID &&  !$contact_ allowed )   55       && !$l ogged['adm in'] && !$ logged['mo derator']  && $member ID != $pro fileID &&  !$contact_ allowed )
60   {   56   {
61       $_page ['header']  = "{$site ['title']}  "._t("_Me mber Profi le");   57       $_page ['header']  = "{$site ['title']}  "._t("_Me mber Profi le");
62       $_page ['header_t ext'] = "{ $site['tit le']} "._t ("_Member  Profile");   58       $_page ['header_t ext'] = "{ $site['tit le']} "._t ("_Member  Profile");
63       $_page ['name_ind ex'] = 0;   59       $_page ['name_ind ex'] = 0;
64       $_page _cont[0][' page_main_ code'] = ' <center>'.  $check_re s[CHECK_AC TION_MESSA GE] .'</ce nter><br / >';   60       $_page _cont[0][' page_main_ code'] = ' <center>'.  $check_re s[CHECK_AC TION_MESSA GE] .'</ce nter><br / >';
65       PageCo de();   61       PageCo de();
66       exit;   62       exit;
67   }   63   }
68     64  
69     65  
70   $oProfile  = new BxTe mplProfile View( $pro fileID );   66   $oProfile  = new BxTe mplProfile View( $pro fileID );
71     67  
72   $_page['ex tra_js']   =   68   $_page['ex tra_js']   =
73       $oTemp lConfig ->  sTinyMceE ditorMiniJ S .   69       $oTemp lConfig ->  sTinyMceE ditorMiniJ S .
74       $oProf ile->oVoti ngView->ge tExtraJs()  .   70       $oProf ile->oVoti ngView->ge tExtraJs()  .
    71       $oProf ile->oCmts View->getE xtraJs() .
75       '<scri pt type="t ext/javasc ript">urlI conLoading  = "'.getT emplateIco n('loading .gif').'"; </script>' ;   72       '<scri pt type="t ext/javasc ript">urlI conLoading  = "'.getT emplateIco n('loading .gif').'"; </script>' ;
76     73  
77   $_page['ex tra_css']   =   $oProfile   ->   genProfile CSS(   $profileID   )
;
  74   $_page['ex tra_css']   =   $oProfile   ->   genProfile CSS(   $profileID   )   .   $oProfile- >oCmtsView ->getExtra Css() ;
78   $p_arr                = $oProfil e -> _aPro file;   75   $p_arr                = $oProfil e -> _aPro file;
79     76  
80   if ( !($p_ arr['ID']  && ($logge d['admin']  || $logge d['moderat or'] || $o Profile ->  owner ||  $p_arr['St atus'] = ' Active') )  )   77   if ( !($p_ arr['ID']  && ($logge d['admin']  || $logge d['moderat or'] || $o Profile ->  owner ||  $p_arr['St atus'] = ' Active') )  )
81   {   78   {
82       $_page ['header']  = "{$site ['title']}  ". _t("_M ember Prof ile");   79       $_page ['header']  = "{$site ['title']}  ". _t("_M ember Prof ile");
83       $_page ['header_t ext'] = "{ $site['tit le']} ". _ t("_Member  Profile") ;   80       $_page ['header_t ext'] = "{ $site['tit le']} ". _ t("_Member  Profile") ;
84       $_page ['name_ind ex'] = 0;   81       $_page ['name_ind ex'] = 0;
85       $_page _cont[0][' page_main_ code'] = ' <div class ="no_resul t"><div>'  . _t("_Pro file NA")  .'.</div>< /div>';   82       $_page _cont[0][' page_main_ code'] = ' <div class ="no_resul t"><div>'  . _t("_Pro file NA")  .'.</div>< /div>';
86       PageCo de();   83       PageCo de();
87       exit;   84       exit;
88   }   85   }
89     86  
90   //Ajax loa ders    
91      
92   if( $_GET[ 'show_only '] )    
93   {    
94       switch ( $_GET['s how_only']  )    
95       {    
96           ca se 'shareM usic':    
97                $sCaptio n = db_val ue( "SELEC T `Caption ` FROM `Pr ofileCompo se` WHERE  `Func` = ' ShareMusic '" );    
98                echo Pag eCompShare MusicConte nt( $sCapt ion, $prof ileID );    
99           br eak;    
100           ca se 'shareP hotos':    
101                $sCaptio n = db_val ue( "SELEC T `Caption ` FROM `Pr ofileCompo se` WHERE  `Func` = ' SharePhoto s'" );    
102                echo Pag eCompShare PhotosCont ent($sCapt ion, $prof ileID);    
103           br eak;    
104           ca se 'shareV ideos':    
105                $sCaptio n = db_val ue( "SELEC T `Caption ` FROM `Pr ofileCompo se` WHERE  `Func` = ' ShareVideo s'" );    
106                echo Pag eCompShare VideosCont ent($sCapt ion, $prof ileID);    
107           br eak;    
108       }    
109           
110       exit;    
111   }    
112      
113      
114      
115      
116   $_page['he ader']       = proces s_line_out put( $p_ar r['NickNam e'] ) . ":  ". htmlsp ecialchars _adv( $p_a rr['Headli ne'] );   87   $_page['he ader']       = proces s_line_out put( $p_ar r['NickNam e'] ) . ":  ". htmlsp ecialchars _adv( $p_a rr['Headli ne'] );
117   //$_page[' header_tex t'] = proc ess_line_o utput( $p_ arr['Headl ine'] );   88   //$_page[' header_tex t'] = proc ess_line_o utput( $p_ arr['Headl ine'] );
118     89  
119   //post com ment    
120   if( $_POST ['comments ubmit'] )    
121       $ret . = addComme nt($profil eID);    
122      
123   //delete c omment    
124   if( $_GET[ 'action']  == 'commen tdelete' )    
125       $ret . = deleteCo mment( (in t)$_GET['c ommentID']  );    
126      
127   // track p rofile vie ws   90   // track p rofile vie ws
128   if ( $trac k_profile_ view && $m emberID &&  !$oProfil e -> owner  )   91   if ( $trac k_profile_ view && $m emberID &&  !$oProfil e -> owner  )
129   {   92   {
130       db_res ( "DELETE  FROM `Prof ilesTrack`  WHERE `Me mber` = {$ memberID}  AND `Profi le` = $pro fileID", 0 );   93       db_res ( "DELETE  FROM `Prof ilesTrack`  WHERE `Me mber` = {$ memberID}  AND `Profi le` = $pro fileID", 0 );
131       db_res ( "INSERT  INTO `Prof ilesTrack`  SET `Arri ved` = NOW (), `Membe r` = {$mem berID}, `P rofile` =  $profileID ", 0);   94       db_res ( "INSERT  INTO `Prof ilesTrack`  SET `Arri ved` = NOW (), `Membe r` = {$mem berID}, `P rofile` =  $profileID ", 0);
132   }   95   }
133     96  
134   $_ni = $_p age['name_ index'];   97   $_ni = $_p age['name_ index'];
135     98  
136  
$_page_con t[$_ni]['p age_main_c ode
']   =   $oProfile   ->   genColumns (
);
  99   // $_page_con t[$_ni]['p age_main_c ode _headers ']   =   $oProfile   ->   genColumns ( true );
137     100   $oPPV = ne w BxDolPro filePageVi ew($oProfi le, $site,  $dir);
138   PageCode() ;   101   $_page_con t[$_ni]['p age_main_c ode'] = $o PPV -> get Code();
139     102   //$_page_c ont[$_ni][ 'page_main _code'] =  $oProfile  -> genColu mns();
140     103  
141     104  
142   function a ddComment(  $profileI D )   105   PageCode() ;
143   {    
144       global  $logged;    
145       global  $oProfile ;    
146           
147       if( $l ogged['mem ber'] )    
148           $r ecord_send er = (int) $_COOKIE[' memberID'] ;    
149       else    
150           re turn;    
151           
152       $perio d = 1; //  time perio d before u ser can ad d another  record (in  minutes)    
153       $recor d_maxlengt h = 1600;  // max len gth of rec ord    
154           
155       // Tes t if IP is  defined    
156       $ip =  getVisitor IP();    
157       if( $i p == '0.0. 0.0' )    
158           re turn _t_er r("_sorry,  i can not  define yo u ip adres s. IT'S TI ME TO COME  OUT !");    
159           
160       // get  record te xt    
161       $recor d_text = a ddslashes(  clear_xss ( trim( pr ocess_pass _data( $_P OST['comme nttext'])) ));    
162       if( st rlen($reco rd_text) <  2 )    
163           re turn _t_er r("_enter_ message_te xt");    
164           
165       // Tes t if last  message is  old enoug h    
166       $last_ count = db _value( "S ELECT COUN T(*) FROM  `ProfilesC omments` W HERE `IP`  = '{$ip}'  AND (UNIX_ TIMESTAMP( NOW()) - U NIX_TIMEST AMP(`Date` ) < {$peri od}*60)" ) ;    
167       if( $l ast_count  != 0 )    
168           re turn _t_er r("_You ha ve to wait  for PERIO D minutes  before you  can write  another m essage!",  $period);    
169      
170       $reply TO = (int) $_POST['re plyTO'];    
171           
172       // Per form inser tion    
173       $query  = "    
174           IN SERT INTO  `ProfilesC omments` S ET    
175                `Date` =  NOW(),    
176                `IP` = ' $ip',    
177                `Sender`  = $record _sender,    
178                `Recipie nt` = {$oP rofile ->  _iProfileI D},    
179                `Text` =  '$record_ text',    
180                `New` =  '1',    
181                `ReplyTO ` = $reply TO    
182           ";    
183       db_res ( $query ) ;    
184   }    
185      
186   function d eleteComme nt( $comme ntID )    
187   {    
188       global  $logged;    
189       global  $oProfile ;    
190      
191       $comme ntID = (in t)$comment ID;    
192      
193       if( $o Profile ->  owner ||  $logged['a dmin'] )    
194       {    
195           $d el = db_re s( "SELECT  `ID` FROM  `Profiles Comments`  WHERE `Rep lyTO` = '$ commentID'  ");    
196           wh ile ( $del _arr = mys ql_fetch_a rray($del) )    
197                deleteCo mment( $de l_arr['ID' ] );    
198               
199           db _res("DELE TE FROM `P rofilesCom ments` WHE RE `ID` =  '$commentI D'");    
200       }    
201   }    
202     106  
203   ?>   107   ?>