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

798.1 Files compared

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

798.2 Comparison summary

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

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

798.4 Active regular expressions

No regular expressions were active.

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