205. File Comparison Report

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

205.1 Files compared

# Location File Last Modified
1 Mon May 12 13:05:11 2008 UTC
2 Dolphin-v.6.1.0\inc\classes BxDolSharedMediaView.php Tue Apr 15 11:33:44 2008 UTC

205.2 Comparison summary

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

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

205.4 Active regular expressions

No regular expressions were active.

205.5 Comparison detail

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