821. File Comparison Report

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

821.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 videoActions.php Thu Oct 25 11:57:02 2007 UTC
2 Dolphin-v.6.1.0 videoActions.php Mon Apr 14 11:47:24 2008 UTC

821.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 8 108
Changed 5 33
Inserted 1 1
Removed 1 98

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

821.4 Active regular expressions

No regular expressions were active.

821.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     27  
27   $_page['na me_index']     = 44;   28   $_page['na me_index']     = 44;
28   $_page['cs s_name']       = 'exp lanation.c ss';   29   $_page['cs s_name']       = 'exp lanation.c ss';
29     30  
30   $_page['ex tra_js'] =  '';   31   $_page['ex tra_js'] =  '';
31     32  
32   if ( !( $l ogged['adm in'] = mem ber_auth(  1, false )  ) )   33   check_logg ed();
33   {    
34       if ( ! ( $logged[ 'member']  = member_a uth( 0, fa lse ) ) )    
35       {    
36           if  ( !( $log ged['aff']  = member_ auth( 2, f alse ) ) )    
37           {    
38                $logged[ 'moderator '] = membe r_auth( 3,  false );    
39           }    
40       }    
41   }    
42     34  
43   $_page['he ader'] = _ t( "_Video  Actions"  );   35   $_page['he ader'] = _ t( "_Video  Actions"  );
44   $_page['he ader_text' ] = _t("_V ideo Actio ns");   36   $_page['he ader_text' ] = _t("_V ideo Actio ns");
45     37  
46   $_ni = $_p age['name_ index'];   38   $_ni = $_p age['name_ index'];
47     39  
48   $member['I D'] = (int )$_COOKIE[ 'memberID' ];   40   $member['I D'] = (int )$_COOKIE[ 'memberID' ];
49     41  
50   if   (isset($_P OST['fileI D'])   &&   isset($_PO ST['send'] )   &&   isset($_PO ST['email' ]))
  42   $oMedia =  new BxDolS haredMedia ('video',  $site, $di r, $member );
51   {   43  
    44   if   (isset($_P OST['fileI D'])   &&   isset($_PO ST['send'] )   &&   isset($_PO ST['email' ]))   {
52       $iFile     = (int )$_POST['f ileID'];   45       $iFile     = (int )$_POST['f ileID'];
53       $sEmai l   = $_PO ST['email' ];   46       $sEmai l   = $_PO ST['email' ];
54       $sMess age = html specialcha rs_adv($_P OST['messa geText']);   47       $sMess age = html specialcha rs_adv($_P OST['messa geText']);
55     48  
56        $sCode   .=  
sendFileIn fo($iFile,   $sEmail,   $sMessage
);
  49       $sUrl      = proc ess_pass_d ata($_POST ['fileUrl' ]);
    50        $sCode     .=   $oMedia-> sendFileIn fo($iFile,   $sEmail,   $sMessage ,   $sUrl );
57   }   51   }
58     52  
59   if   (isset($_G ET['action '])   &&   isset($_GE T['fileID' ]))
  53   if   (isset($_G ET['action '])   &&   isset($_GE T['fileID' ]))   {
60   {    
61       $sAct  = htmlspec ialchars_a dv($_GET[' action']);   54       $sAct  = htmlspec ialchars_a dv($_GET[' action']);
62        $
i F ile  
=   (int)$_GET ['fileID'] ;
  55        $ aAct i on['f ile ID']   =   (int)$_GET ['fileID'] ;
63        switch   ($sAct)
  56        switch   ($sAct)   {
64       {   57            case   ' f a vo r it e':   $sCode  
=   $oMe di
a ->addTo F av or ites ($ aAct i on['f ile ID ' ] );   break;
65           ca se 'favori te': $sCod e .= addTo Favorites( $iFile); b reak;   58           ca se 'share' :    $aAct ion['actio n'] = $sAc t; $aActio n['fileUrl '] = urlen code($_GET ['fileUrl' ]); $sCode  = $oMedia ->showSubm itForm($aA ction); br eak;
66            case   ' sh a
r
e':      $sCode   . =  
di spl a ySubmit F
or m ($
i F ile ,'share '
);   break;
  59            case   'report':     $ aAction['a ction']   =   $sAct;   $ sCode  
=   $oMe di
a ->show SubmitForm ($ aAct i
o n );   break;
67            case   'report':     $
sCode   . =  
di spl a y SubmitForm ($
i File,'rep o rt' );   break;
   
68       }   60       }
69   }   61   }
70     62  
71   $_page_con t[$_ni]['p age_main_c ode'] = De signBoxCon tent( _t(  '_Notifica tion' ), $ sCode, 1);   63   $_page_con t[$_ni]['p age_main_c ode'] = De signBoxCon tent( _t(  '_Notifica tion' ), $ sCode, 1);
72     64  
73   PageCode() ;   65   PageCode() ;
74     66  
75   function a ddToFavori tes($iFile )    
76   {    
77       global  $member;    
78           
79       if ($i File)    
80       {    
81           $s Query = "S ELECT * FR OM `shareV ideoFavori tes` WHERE  `medID`=' $iFile' AN D `userID` ='{$member ['ID']}'";    
82           $r Check = db _res($sQue ry);    
83           if  (mysql_nu m_rows($rC heck) > 0)    
84           {    
85                $sCode =  '<div cla ss="mediaI nfo">'._t( '_File alr eady is fa vorite').' </div>';    
86           }    
87           el se    
88           {    
89                $sQuery  = "INSERT  INTO `shar eVideoFavo rites` (`m edID`,`use rID`,`favD ate`) VALU ES('$iFile ','{$membe r['ID']}', NOW())";    
90                db_res($ sQuery);    
91                $sCode =  '<div cla ss="mediaI nfo">'._t( "_File was  added to  favorite") .'</div>';    
92           }    
93       }    
94           
95       return  $sCode;    
96   }    
97      
98   function d isplaySubm itForm($iF ile, $sAct  ='')    
99   {    
100       global  $member;    
101       global  $site;    
102           
103       if ($i File && st rlen($sAct ) > 0)    
104       {    
105           sw itch ($sAc t)    
106           {    
107                case 'sh are' :     
108                    $sAd dr  = '<di v>'._t("_E nter email (s)").':</ div><div>< input type ="text" si ze="40" na me="email" ></div>';    
109                    $sSi tes = '<di v style="m argin-top: 10px; marg in-bottom: 10px;">'.g etSitesArr ay($iFile, 'Video').' </div>';    
110                    brea k;    
111                case 're port':     
112                    $sAd dr  = '<in put type=" hidden" na me="email"  value="'. $site['ema il_notify' ].'">';    
113                    $sSi tes = '';    
114                    brea k;    
115           }    
116               
117           $s Code  = '< div class= "mediaInfo ">';    
118           $s Code .= '< form name= "submitAct ion" metho d="post" a ction="'.$ _SERVER['P HP_SELF']. '">';    
119           $s Code .= '< input type ="hidden"  name="file ID" value= "'.$iFile. '">';    
120               
121           $s Code .= $s Addr.$sSit es;    
122           $s Code .= '< div>'._t(" _Message t ext").'</d iv>';    
123           $s Code .= '< div><texta rea cols=" 30" rows=" 10" name=" messageTex t"></texta rea></div> ';    
124           $s Code .= '< div><input  type="sub mit" size= "15" name= "send" val ue="Send"> ';    
125           $s Code .= '< input type ="reset" s ize="15" n ame="send"  value="Re set"></div >';    
126                        
127           $s Code .= '< /form>';    
128               
129           $s Code .= '< /div>';    
130       }    
131           
132       return  $sCode;    
133   }    
134      
135      
136   function s endFileInf o($iFile,  $sEmail, $ sMessage)    
137   {    
138       global  $site;    
139       global  $member;    
140           
141       /*$sQu ery = "SEL ECT `NickN ame`     
142                   FROM  `Profiles`      
143                   WHERE  `ID`='{$m ember['ID' ]}'";    
144           
145       $aUser  = db_arr( $sQuery);* /    
146           
147       $aUser  = getProf ileInfo( $ member['ID '] );    
148           
149       $sMail Header         = "Fro m: {$site[ 'title']}  <{$site['e mail_notif y']}>";    
150       $sMail Parameters     = "-f{ $site['ema il_notify' ]}";    
151           
152       $sMail Header = " MIME-Versi on: 1.0\r\ n" . "Cont ent-type:  text/html;  charset=U TF-8\r\n"  . $sMailHe ader;    
153       $sMail Subject =  $aUser['Ni ckName'].'  shared a  Video with  you';    
154           
155        $sMai lBody    =  "Hello,\n    
156                    {$aU ser['NickN ame']} sha red a vide o with you : <a href= \"{$site[' url']}view Video.php? fileID=$iF ile\">See  it</a>\n    
157                    $sMe ssage\n    
158                    Rega rds";    
159           
160       $aEmai ls = explo de(",",$sE mail);    
161       foreac h ($aEmail s as $iKey  => $sMail )    
162       {    
163           $s Mail = tri m($sMail);    
164           $i SendingRes ult = mail ( $sMail,  $sMailSubj ect, nl2br ($sMailBod y), $sMail Header, $s MailParame ters );    
165       }    
166       if ($i SendingRes ult)    
167       {    
168           $s Code = '<d iv class=" mediaInfo" >'._t("_Fi le info wa s sent").' </div>';    
169       }    
170       return  $sCode;    
171   }    
172      
173   ?>   67   ?>