55. File Comparison Report

Produced on Thu Jul 17 07:17: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.

55.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.1.2 mediaActions.php Sun May 11 13:17:04 2008 UTC
2 Dolphin-v.6.1.3 mediaActions.php Wed Jul 16 09:51:23 2008 UTC

55.2 Comparison summary

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

55.3 Comparison options

Whitespace All differences in whitespace within lines are ignored
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

55.4 Active regular expressions

No regular expressions were active.

55.5 Comparison detail

1   <?php   1   <?php
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/he ader.inc.p hp');   21   require_on ce('inc/he ader.inc.p hp');
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.inc.p hp' );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin.inc.p hp' );
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'i mages.inc. php' );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'i mages.inc. php' );
25   require_on ce( BX_DIR ECTORY_PAT H_INC . 's haring.inc .php' );   25   require_on ce( BX_DIR ECTORY_PAT H_INC . 's haring.inc .php' );
26   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolSh aredMedia. php' );   26   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolSh aredMedia. php' );
27     27  
28   $_page['na me_index']     = 44;   28   $_page['na me_index']     = 44;
29   $_page['cs s_name']       = 'exp lanation.c ss';   29   $_page['cs s_name']       = 'exp lanation.c ss';
30     30  
31   $_page['ex tra_js'] =  '';   31   $_page['ex tra_js'] =  '';
32     32  
33   check_logg ed();   33   check_logg ed();
34     34  
35   if (isset( $_REQUEST[ 'type']))  {   35   if (isset( $_REQUEST[ 'type']))  {
36       $sType  = htmlspe cialchars_ adv($_REQU EST['type' ]);   36       $sType  = htmlspe cialchars_ adv($_REQU EST['type' ]);
37       if( $s Type != 'p hoto' and  $sType !=  'music' an d $sType ! = 'video'  )   37       if( $s Type != 'p hoto' and  $sType !=  'music' an d $sType ! = 'video'  )
38           ex it;   38           ex it;
39   }   39   }
40     40  
41   $_page['he ader'] = _ t( "_".ucf irst($sTyp e)." Actio ns" );   41   $_page['he ader'] = _ t( "_".ucf irst($sTyp e)." Actio ns" );
42   $_page['he ader_text' ] = _t("_" .ucfirst($ sType)."Ac tions");   42   $_page['he ader_text' ] = _t("_" .ucfirst($ sType)."Ac tions");
43     43  
44   $_ni = $_p age['name_ index'];   44   $_ni = $_p age['name_ index'];
45     45  
46   $member['I D'] = (int )$_COOKIE[ 'memberID' ];   46   $member['I D'] = (int )$_COOKIE[ 'memberID' ];
47     47  
48   $oMedia =  new BxDolS haredMedia ($sType, $ site, $dir , $member) ;   48   $oMedia =  new BxDolS haredMedia ($sType, $ site, $dir , $member) ;
49     49  
50   // ------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- - //   50   // ------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- - //
51     51  
52   if (isset( $_POST['fi leID']) &&  isset($_P OST['send' ]) && isse t($_POST[' email']))  {   52   if (isset( $_POST['fi leID']) &&  isset($_P OST['send' ]) && isse t($_POST[' email']))  {
53       $iFile     = (int )$_POST['f ileID'];   53       $iFile     = (int )$_POST['f ileID'];
54        $sEmail     =  
$_POST['em ail']
;
  54        $sEmail     =   process_pa ss_data( $_POST['em ail'] ) ;
55       $sMess age = html specialcha rs_adv($_P OST['messa geText']);   55       $sMess age = html specialcha rs_adv($_P OST['messa geText']);
56       $sUrl      = proc ess_pass_d ata($_POST ['fileUrl' ]);   56       $sUrl      = proc ess_pass_d ata($_POST ['fileUrl' ]);
57       $sCode  .=  $oMed ia->sendFi leInfo($iF ile, $sEma il, $sMess age, $sUrl );   57       $sCode  .=  $oMed ia->sendFi leInfo($iF ile, $sEma il, $sMess age, $sUrl );
58   }   58   }
59     59  
60   if (isset( $_POST['me diaAction' ]) && $_PO ST['mediaA ction'] ==  'edit') {   60   if (isset( $_POST['me diaAction' ]) && $_PO ST['mediaA ction'] ==  'edit') {
61       $iFile    = (int) $_POST['fi leID'];   61       $iFile    = (int) $_POST['fi leID'];
62       $oMedi a->saveCha nges($iFil e);   62       $oMedi a->saveCha nges($iFil e);
63       echo ' <script la nguage="ja vascript"> window.par ent.opener .location  = window.p arent.open er.locatio n; window. parent.clo se();</scr ipt>';   63       echo ' <script la nguage="ja vascript"> window.par ent.opener .location  = window.p arent.open er.locatio n; window. parent.clo se();</scr ipt>';
64   }   64   }
65     65  
66   if (isset( $_GET['act ion']) &&  isset($_GE T['fileID' ])) {   66   if (isset( $_GET['act ion']) &&  isset($_GE T['fileID' ])) {
67       $sAct  = htmlspec ialchars_a dv($_GET[' action']);   67       $sAct  = htmlspec ialchars_a dv($_GET[' action']);
68       $aActi on['fileID '] = (int) $_GET['fil eID'];   68       $aActi on['fileID '] = (int) $_GET['fil eID'];
69       switch  ($sAct) {   69       switch  ($sAct) {
70           ca se 'favori te': $sCod e = $oMedi a->addToFa vorites($a Action['fi leID']); b reak;   70           ca se 'favori te': $sCod e = $oMedi a->addToFa vorites($a Action['fi leID']); b reak;
71           ca se 'edit':      $sCod e = $oMedi a->display MediaEditF orm($aActi on['fileID ']); break ;   71           ca se 'edit':      $sCod e = $oMedi a->display MediaEditF orm($aActi on['fileID ']); break ;
72           ca se 'report ':   72           ca se 'report ':
73           ca se 'share' :    $aAct ion['actio n'] = $sAc t; $aActio n['fileUrl '] = urlen code($_GET ['fileUrl' ]); $sCode  = $oMedia ->showSubm itForm($aA ction); br eak;   73           ca se 'share' :    $aAct ion['actio n'] = $sAc t; $aActio n['fileUrl '] = urlen code($_GET ['fileUrl' ]); $sCode  = $oMedia ->showSubm itForm($aA ction); br eak;
74       }   74       }
75   }   75   }
76     76  
77   $_page_con t[$_ni]['p age_main_c ode'] = De signBoxCon tent( _t(  '_Notifica tion' ), $ sCode, 1);   77   $_page_con t[$_ni]['p age_main_c ode'] = De signBoxCon tent( _t(  '_Notifica tion' ), $ sCode, 1);
78     78  
79   PageCode() ;   79   PageCode() ;
80     80  
81   ?>   81   ?>