65. File Comparison Report

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

65.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.1.2 videos.php Thu Mar 27 04:18:32 2008 UTC
2 Dolphin-v.6.1.3 videos.php Wed Jul 16 09:51:23 2008 UTC

65.2 Comparison summary

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

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

65.4 Active regular expressions

No regular expressions were active.

65.5 Comparison detail

1   <?   1   <?
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/h eader.inc. php' );   21   require_on ce( 'inc/h eader.inc. php' );
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 . 'p rofiles.in c.php' );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
25     25  
26   // ------- -------- p age variab les and lo gin   26   // ------- -------- p age variab les and lo gin
27     27  
28   $_page['na me_index']     = 84;   28   $_page['na me_index']     = 84;
29   $_page['cs s_name']       = 'vid eos.css';   29   $_page['cs s_name']       = 'vid eos.css';
30     30  
31   if ( !( $l ogged['adm in'] = mem ber_auth(  1, false )  ) )   31   if ( !( $l ogged['adm in'] = mem ber_auth(  1, false )  ) )
32       if ( ! ( $logged[ 'member']  = member_a uth( 0, fa lse ) ) )   32       if ( ! ( $logged[ 'member']  = member_a uth( 0, fa lse ) ) )
33           if  ( !( $log ged['aff']  = member_ auth( 2, f alse )) )   33           if  ( !( $log ged['aff']  = member_ auth( 2, f alse )) )
34                $logged[ 'moderator '] = membe r_auth( 3,  false );   34                $logged[ 'moderator '] = membe r_auth( 3,  false );
35     35  
36   $_page['he ader'] = _ t( "_Video s" );   36   $_page['he ader'] = _ t( "_Video s" );
37   $_page['he ader_text' ] = _t( "_ Videos" );   37   $_page['he ader_text' ] = _t( "_ Videos" );
38     38  
39   $_ni = $_p age['name_ index'];   39   $_ni = $_p age['name_ index'];
40     40  
41   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompVide os();   41   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompVide os();
42     42  
43   PageCode() ;   43   PageCode() ;
44     44  
45     45  
46   function P ageCompVid eos()   46   function P ageCompVid eos()
47   {   47   {
48       global  $site;   48       global  $site;
49       global  $dir;    
50       global  $tmpl;   49       global  $tmpl;
51     50  
52       // num ber of vid eos   51       // num ber of vid eos
53       $max_n um    = 12 ;   52       $max_n um    = 12 ;
54       $mode        = 'r and';   53       $mode        = 'r and';
55              54           
56       $sqlSe lect = "   55       $sqlSe lect = "
57           SE LECT   56           SE LECT
58                `media`. `med_id`,   57                `media`. `med_id`,
59                `med_pro f_id`,   58                `med_pro f_id`,
60                `med_fil e`,   59                `med_fil e`,
61                `med_tit le`";   60                `med_tit le`";
62          61       
63       $sqlFr om = "   62       $sqlFr om = "
64           FR OM `media` ";   63           FR OM `media` ";
65          64       
66       $sqlWh ere = "   65       $sqlWh ere = "
67           WH ERE   66           WH ERE
68                `med_typ e` = 'vide o'";   67                `med_typ e` = 'vide o'";
69     68  
70          69       
71       if ( $ _GET['mode '] == 'ran d' or   70       if ( $ _GET['mode '] == 'ran d' or
72            $ _GET['mode '] == 'las t' or   71            $ _GET['mode '] == 'las t' or
73            $ _GET['mode '] == 'top ' )   72            $ _GET['mode '] == 'top ' )
74                $mode =  $_GET['mod e'];   73                $mode =  $_GET['mod e'];
75          74       
76       $menu  = '';   75       $menu  = '';
77       switch  ( $mode )   76       switch  ( $mode )
78       {   77       {
79           ca se 'last':  $sqlOrder  = " ORDER  BY `med_d ate` DESC" ; break;   78           ca se 'last':  $sqlOrder  = " ORDER  BY `med_d ate` DESC" ; break;
80           ca se 'rand':  $sqlOrder  = " ORDER  BY RAND() ";           break;   79           ca se 'rand':  $sqlOrder  = " ORDER  BY RAND() ";           break;
81           ca se 'top':   80           ca se 'top':
82                    $sql Select .=  ",   81                    $sql Select .=  ",
83       (`med_ rating_sum `/`med_rat ing_count` ) AS `avg_ mark`";   82       (`med_ rating_sum `/`med_rat ing_count` ) AS `avg_ mark`";
84                    $sql From .= "   83                    $sql From .= "
85       INNER  JOIN `medi a_rating`  USING (`me d_id`) ";   84       INNER  JOIN `medi a_rating`  USING (`me d_id`) ";
86                    $sql Order = "   85                    $sql Order = "
87       ORDER  BY `avg_ma rk` DESC";   86       ORDER  BY `avg_ma rk` DESC";
88           br eak;   87           br eak;
89       }   88       }
90          89       
91       $aNum  = db_arr(  "SELECT CO UNT(`media `.`med_id` ) $sqlFrom  $sqlWhere " );   90       $aNum  = db_arr(  "SELECT CO UNT(`media `.`med_id` ) $sqlFrom  $sqlWhere " );
92       $num =  (int)$aNu m[0];   91       $num =  (int)$aNu m[0];
93       if( $n um )   92       if( $n um )
94       {   93       {
95           $p ages = cei l( $num /  $max_num ) ;   94           $p ages = cei l( $num /  $max_num ) ;
96           $p age = (int )$_GET['pa ge'];   95           $p age = (int )$_GET['pa ge'];
97              96           
98           if ( $page <  1 or $mode  == 'rand'  )   97           if ( $page <  1 or $mode  == 'rand'  )
99                $page =  1;   98                $page =  1;
100           if ( $page >  $pages )   99           if ( $page >  $pages )
101                $page =  $pages;   100                $page =  $pages;
102              101           
103           $s qlLimitFro m = ( $pag e - 1 ) *  $max_num;   102           $s qlLimitFro m = ( $pag e - 1 ) *  $max_num;
104           $s qlLimit =  "   103           $s qlLimit =  "
105           LI MIT $sqlLi mitFrom, $ max_num";   104           LI MIT $sqlLi mitFrom, $ max_num";
106              105           
107           // $max_thumb _width  =  (int)getPa ram( 'max_ thumb_widt h' );   106           // $max_thumb _width  =  (int)getPa ram( 'max_ thumb_widt h' );
108           // $max_thumb _height =  (int)getPa ram( 'max_ thumb_heig ht' );   107           // $max_thumb _height =  (int)getPa ram( 'max_ thumb_heig ht' );
109              108           
110           $r et = '<div  class="cl ear_both"> </div>';   109           $r et = '<div  class="cl ear_both"> </div>';
111            $tmplBlock   =   file_get_c ontents(  
" {$dir['roo t']} templates/ tmpl_{$tmp l}/media_p age_block. html"   );
  110            $tmplBlock   =   file_get_c ontents(   BX_DIRECTO RY_PATH_RO OT   .   "
templates/ tmpl_{$tmp l}/media_p age_block. html"   );
112              111           
113           $r esult = db _res( $sql Select.$sq lFrom.$sql Where.$sql Order.$sql Limit );   112           $r esult = db _res( $sql Select.$sq lFrom.$sql Where.$sql Order.$sql Limit );
114           wh ile ( $ph_ arr = mysq l_fetch_as soc( $resu lt ) )   113           wh ile ( $ph_ arr = mysq l_fetch_as soc( $resu lt ) )
115           {   114           {
116                $block =  $tmplBloc k;   115                $block =  $tmplBloc k;
117                   116                
118                $memNick Name = get NickName(  $ph_arr['m ed_prof_id '] );   117                $memNick Name = get NickName(  $ph_arr['m ed_prof_id '] );
119                   118                
120                $aReplac e['media_t itle'] = p rocess_lin e_output(  $ph_arr['m ed_title']  );   119                $aReplac e['media_t itle'] = p rocess_lin e_output(  $ph_arr['m ed_title']  );
121                $aReplac e['media_i con']  = " <a href=\" {$site['ur l']}media/ video/{$ph _arr['med_ prof_id']} /{$ph_arr[ 'med_file' ]}\" title =\""._t('_ download') ."\"><img  src=\"".ge tTemplateI con( 'vide o.jpg' )." \" alt=\"v ideo\" />< /a>";   120                $aReplac e['media_i con']  = " <a href=\" {$site['ur l']}media/ video/{$ph _arr['med_ prof_id']} /{$ph_arr[ 'med_file' ]}\" title =\""._t('_ download') ."\"><img  src=\"".ge tTemplateI con( 'vide o.jpg' )." \" alt=\"v ideo\" />< /a>";
122                $aReplac e['nicknam e']    = " <a href=\" ".getProfi leLink($ph _arr['med_ prof_id']) ."\">$memN ickName</a >";   121                $aReplac e['nicknam e']    = " <a href=\" ".getProfi leLink($ph _arr['med_ prof_id']) ."\">$memN ickName</a >";
123                $aReplac e['downloa d']    = ' ';   122                $aReplac e['downloa d']    = ' ';
124                $aReplac e['delete' ]      = ' ';   123                $aReplac e['delete' ]      = ' ';
125                   124                
126                foreach(  $aReplace  as $key = > $val )   125                foreach(  $aReplace  as $key = > $val )
127                    $blo ck = str_r eplace( "_ _{$key}__" , $val, $b lock );   126                    $blo ck = str_r eplace( "_ _{$key}__" , $val, $b lock );
128                   127                
129                $ret .=  $block;   128                $ret .=  $block;
130                   129                
131                   130                
132           }   131           }
133              132           
134           $r et .= '<di v class="c lear_both" ></div>';   133           $r et .= '<di v class="c lear_both" ></div>';
135              134           
136           if ( $pages >  1 )   135           if ( $pages >  1 )
137           {   136           {
138                $paginat ion =    137                $paginat ion = 
139                    '<di v class="v ideo_pages ">'.   138                    '<di v class="v ideo_pages ">'.
140                         genPaginat ion( $page s, $page,  $_SERVER[' PHP_SELF'] ."?mode=$m ode&amp;pa ge={page}"  ).   139                         genPaginat ion( $page s, $page,  $_SERVER[' PHP_SELF'] ."?mode=$m ode&amp;pa ge={page}"  ).
141                    '</d iv>';   140                    '</d iv>';
142                   141                
143                $ret = $ pagination  . $ret .  $paginatio n;   142                $ret = $ pagination  . $ret .  $paginatio n;
144           }   143           }
145       }   144       }
146       else   145       else
147       {   146       {
148           $r et .= '<di v class="n o_result"> ';   147           $r et .= '<di v class="n o_result"> ';
149                $ret .=  '<div>';   148                $ret .=  '<div>';
150                    $ret  .= _t("_N o results  found");   149                    $ret  .= _t("_N o results  found");
151                $ret .=  '</div>';   150                $ret .=  '</div>';
152           $r et .= '</d iv>';   151           $r et .= '</d iv>';
153       }   152       }
154          153       
155       return  $ret;   154       return  $ret;
156   }   155   }