41. File Comparison Report

Produced on Wed Jun 18 08:01:46 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.

41.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.1.1\inc\classes BxDolSharedMediaView.php Tue Apr 15 11:33:44 2008 UTC
2 Dolphin-v.6.1.2\inc\classes BxDolSharedMediaView.php Tue Jun 3 11:07:42 2008 UTC

41.2 Comparison summary

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

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

41.4 Active regular expressions

No regular expressions were active.

41.5 Comparison detail

1   <?   1   <?
2   require_on ce(BX_DIRE CTORY_PATH _INC . 'he ader.inc.p hp' );   2   require_on ce(BX_DIRE CTORY_PATH _INC . 'he ader.inc.p hp' );
3   require_on ce(BX_DIRE CTORY_PATH _INC . 'db .inc.php') ;   3   require_on ce(BX_DIRE CTORY_PATH _INC . 'db .inc.php') ;
4   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . "BxDolSh aredMedia. php" );   4   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . "BxDolSh aredMedia. php" );
5   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . "BxDolPa geView.php " );   5   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . "BxDolPa geView.php " );
6   require_on ce( BX_DIR ECTORY_PAT H_ROOT . " templates/ tmpl_{$tmp l}/scripts /BxTemplCm tsView.php " );   6   require_on ce( BX_DIR ECTORY_PAT H_ROOT . " templates/ tmpl_{$tmp l}/scripts /BxTemplCm tsView.php " );
7     7  
8     8  
9   class BxDo lSharedMed iaView ext ends BxDol PageView   {   9   class BxDo lSharedMed iaView ext ends BxDol PageView   {
10          10       
11       // fil e ID   11       // fil e ID
12       var $i File;   12       var $i File;
13       // fil e type   13       // fil e type
14       var $s Type;   14       var $s Type;
15       // fil e info arr ay   15       // fil e info arr ay
16       var $a Info;   16       var $a Info;
17       // obj ect sharin g manipula tion   17       // obj ect sharin g manipula tion
18       var $o Shared;   18       var $o Shared;
19          19       
20       var $o CmtsView;   20       var $o CmtsView;
21          21       
22       /*   22       /*
23           co nstructor   23           co nstructor
24       */   24       */
25          25       
26       functi on BxDolSh aredMediaV iew($iFile , $sMediaT ype, &$aSi te, &$aDir , &$aMembe r) {   26       functi on BxDolSh aredMediaV iew($iFile , $sMediaT ype, &$aSi te, &$aDir , &$aMembe r) {
27           $t his->iFile  = (int)$i File;   27           $t his->iFile  = (int)$i File;
28           $t his->sType  = process _db_input( $sMediaTyp e);   28           $t his->sType  = process _db_input( $sMediaTyp e);
29              29           
30            $this->oSh ared   =   new   BxDolShare dMedia($sM ediaType,   & $aSite,   & $aDir,   & $aMember);   30            $this->oSh ared   =   new   BxDolShare dMedia($sM ediaType,  
$aSite,  
$aDir,  
$aMember);
31           $t his->aInfo    = $this ->oShared- >getFileIn fo($this-> iFile);   31           $t his->aInfo    = $this ->oShared- >getFileIn fo($this-> iFile);
32           sw itch ($sMe diaType) {   32           sw itch ($sMe diaType) {
33                case 'ph oto':    33                case 'ph oto': 
34                    $sCo mms = 'sha redPhoto';   34                    $sCo mms = 'sha redPhoto';
35                    brea k;   35                    brea k;
36                case 'mu sic':   36                case 'mu sic':
37                    $sCo mms = 'sha redMusic';   37                    $sCo mms = 'sha redMusic';
38                    brea k;   38                    brea k;
39                case 'vi deo':   39                case 'vi deo':
40                    $sCo mms = 'sha redVideo';   40                    $sCo mms = 'sha redVideo';
41                    brea k;   41                    brea k;
42           }   42           }
43           $t his->oCmts View = new  BxTemplCm tsView ($s Comms, (in t)$this->i File);   43           $t his->oCmts View = new  BxTemplCm tsView ($s Comms, (in t)$this->i File);
44          44       
45           pa rent::BxDo lPageView( $sMediaTyp e);   45           pa rent::BxDo lPageView( $sMediaTyp e);
46       }   46       }
47          47       
48       functi on getBloc kCode_Acti onList() {   48       functi on getBloc kCode_Acti onList() {
49           if  (is_array ($this->aI nfo))   49           if  (is_array ($this->aI nfo))
50                return $ this->oSha red->showA ctionList( $this->aIn fo);   50                return $ this->oSha red->showA ctionList( $this->aIn fo);
51       }   51       }
52          52       
53       functi on getBloc kCode_File Info() {   53       functi on getBloc kCode_File Info() {
54           if  (is_array ($this->aI nfo))   54           if  (is_array ($this->aI nfo))
55                return $ this->oSha red->showF ileInfo($t his->aInfo );   55                return $ this->oSha red->showF ileInfo($t his->aInfo );
56       }   56       }
57          57       
58       functi on getBloc kCode_Last Files() {   58       functi on getBloc kCode_Last Files() {
59           if  (is_array ($this->aI nfo))   59           if  (is_array ($this->aI nfo))
60                return $ this->oSha red->showL atestFiles ($this->aI nfo);   60                return $ this->oSha red->showL atestFiles ($this->aI nfo);
61       }   61       }
62          62       
63       functi on getBloc kCode_Rate () {   63       functi on getBloc kCode_Rate () {
64           re turn $this ->oShared- >showRateS ection($th is->iFile) ;   64           re turn $this ->oShared- >showRateS ection($th is->iFile) ;
65       }   65       }
66          66       
67       functi on getBloc kCode_View File() {   67       functi on getBloc kCode_View File() {
68           re turn $this ->oShared- >showFile( $this->iFi le);   68           re turn $this ->oShared- >showFile( $this->iFi le);
69       }   69       }
70          70       
71       functi on getBloc kCode_View Comments()  {         71       functi on getBloc kCode_View Comments()  {      
72           if  (!$this-> oCmtsView- >isEnabled ()) return  '';   72           if  (!$this-> oCmtsView- >isEnabled ()) return  '';
73           re turn $this ->oCmtsVie w->getComm entsFirst  ();   73           re turn $this ->oCmtsVie w->getComm entsFirst  ();
74       }   74       }
75   }   75   }
76   ?>   76   ?>