33. File Comparison Report

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

33.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\admin browseVideo.php Mon Dec 24 09:44:18 2007 UTC
2 Mon May 12 13:04:30 2008 UTC

33.2 Comparison summary

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

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

33.4 Active regular expressions

No regular expressions were active.

33.5 Comparison detail

1   <?php    
2      
3   /********* ********** ********** ********** ********** ********** ********** ******    
4   *                              D olphin Sma rt Communi ty Builder    
5   *                                 --------- --------    
6   *     begi n                 : M on Mar 23  2006    
7   *     copy right             : ( C) 2006 Bo onEx Group    
8   *     webs ite               : h ttp://www. boonex.com /    
9   * This fil e is part  of Dolphin  - Smart C ommunity B uilder    
10   *    
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/    
13   *    
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.    
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    
18   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m    
19   ********** ********** ********** ********** ********** ********** ********** *****/    
20      
21   require_on ce( '../in c/header.i nc.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' );    
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofile_dis p.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_INC . 'a dmin_desig n.inc.php'  );    
27   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );    
28      
29   $_page['ex tra_js'] =  '';    
30      
31   $logged[ad min] = mem ber_auth(  1 );    
32   $ADMIN = $ logged[adm in];    
33      
34   $_page['cs s_name']       = 'bro wse.css';    
35      
36   $_page['he ader'] = " Browse Vid eo";    
37   $_page['he ader_text' ] = "Brows e Video";    
38      
39   $_ni = $_p age['name_ index'];    
40      
41   $sType = ' Video';    
42      
43   if (isset( $_POST['Ch eck'])  &&  is_array( $_POST['Ch eck']))    
44   {    
45       foreac h($_POST[' Check'] as  $iKey =>  $iVal)    
46       {    
47           sw itch (true )    
48           {    
49                case iss et($_POST[ 'Delete']) :    
50           de leteMedia( (int)$iVal , $sType);    
51                    brea k;    
52                case iss et($_POST[ 'Approve'] ):    
53                    appr oveMedia(( int)$iVal,  $sType);    
54                    brea k;      
55           }        
56       }    
57   }    
58      
59   $aWhere =  array();    
60      
61   $aWhere[]  = '1';    
62      
63   if (isset( $_GET['use rID']))    
64   {    
65       $iUser  = (int)$_ GET['userI D'];    
66       $aWher e[] = "`a` .`medProfI d`=$iUser" ;       
67   }    
68      
69   if (isset( $_GET['tag ']))    
70   {    
71       $sTag  = htmlspec ialchars_a dv($_GET[' tag']);    
72       $aWher e[] = "`a` .`medTags`  like '%$s Tag%'";    
73   }    
74      
75   $sqlWhere  = "WHERE "  . implode ( ', ', $a Where );    
76      
77   $iTotalNum  = db_valu e( "SELECT  COUNT( *  ) FROM `Ra yMovieFile s` AS `a`  $sqlWhere"  );    
78   if( !$iTot alNum )    
79       $sCode  .= '<div> There is n o files</d iv>';    
80      
81   $iPerPage  = 10;    
82   $iTotalPag es = ceil(  $iTotalNu m / $iPerP age );    
83      
84   $iCurPage  = (int)$_G ET['page'] ;    
85      
86   if( $iCurP age > $iTo talPages )    
87       $iCurP age = $iTo talPages;    
88      
89   if( $iCurP age < 1 )    
90       $iCurP age = 1;    
91           
92   $sLimitFro m = ( $iCu rPage - 1  ) * $iPerP age;    
93      
94   $sqlOrder  = " ORDER  BY `medDat e` DESC ";    
95   $sqlLimit  = "LIMIT $ sLimitFrom , $iPerPag e";    
96      
97   $sQuery =  "    
98       SELECT    
99           `a `.`ID` as  `medID`,    
100           `a `.`Owner`  as `medPro fId`,    
101           `a `.`Title`  as `medTit le`,    
102           `a `.`Date` a s `medDate `,    
103           `a `.`Views`  as `medVie ws`,    
104           `a `.`Approve d`,    
105           `b `.`NickNam e`    
106       FROM ` RayMovieFi les` as `a `    
107       LEFT J OIN `Profi les` as `b ` ON    
108           `b `.`ID` = ` a`.`Owner`    
109       $sqlWh ere    
110       $sqlOr der    
111       $sqlLi mit    
112       ";    
113      
114   $rData = d b_res($sQu ery);    
115      
116   TopCodeAdm in();    
117   ContentBlo ckHead("Li st of Vide o files");    
118      
119   echo brows eCode();    
120      
121   ContentBlo ckFoot();    
122   BottomCode ();    
123      
124   function b rowseCode( )    
125   {    
126       global  $site;    
127       global  $rData;    
128       global  $iTotalPa ges;    
129       global  $iCurPage ;    
130           
131       $sCode  = '<div i d = "brows eMain">';    
132           
133       $sCode  .= '<form  method="p ost" actio n="'.$_SER VER['PHP_S ELF'].'">' ;    
134           
135       if (my sql_num_ro ws($rData) )    
136       {    
137           wh ile ($aDat a = mysql_ fetch_arra y($rData))    
138           {    
139                $sStyle  = $aData[' Approved']  == 'true'  ? ' style ="border:  2px solid  #00CC00;"'  : ' style ="border:  2px solid  #CC0000;"'  ;    
140                             $sProf  = '<a hre f="'.$site ['url'].'p rofile_edi t.php?ID=' .$aData['m edProfId'] .'">'.$aDa ta['NickNa me'].'</a> ';    
141                $sCode . = '<div cl ass="brows eUnit"'.$s Style.'>';    
142                    $sCo de .= '<di v class="b rowseCheck box"><inpu t type="ch eckbox" na me="Check[ ]" value=" '.$aData[' medID'].'" ></div>';    
143                    $sCo de .= '<di v class="l astFilesPi c"><img sr c="'.$site ['url'].'r ay/modules /movie/fil es/'.$aDat a['medID'] .'_small.j pg"></div> ';    
144                         $sCode .=  '<div clas s="browseI nfo"><div> <a href="' .$site['ur l'].'viewV ideo.php?f ileID='.$a Data['medI D'].'"><b> '.$aData[' medTitle'] .'</b></a> </div>';    
145                         $sCode .=  '<div>'._t ("_Added") .': <b>'.d efineTimeI nterval($a Data['medD ate']).'</ b> by '.$s Prof.'</di v>';    
146                         $sCode .=  '<div>'._t ("_Views") .': <b>'.$ aData['med Views'].'< /b></div>< /div>';    
147                $sCode . = '</div>'    
148           }    
149       }    
150       else    
151       {    
152           $s Code .= '< div>There  are no fil es to appr ove</div>' ;    
153       }    
154       $sCode  .= '</div >';    
155       $sCode  .= '<div  class="cle ar_both">< /div>';    
156       $sCode  .= '<div  class="bot tomPart">< input type ="submit"  name="Dele te" value= "Delete">< input type ="submit"  name="Appr ove" value ="Change s tatus"></d iv>';    
157           
158       // gen erate pagi nation    
159       if( $i TotalPages  > 1)    
160       {    
161           $s Request =  $_SERVER[' PHP_SELF']  . '?page= {page}';    
162           $a Fields = a rray( 'use rID', 'tag ' );    
163               
164           fo reach( $aF ields as $ field )    
165                if( isse t( $_GET[$ field] ) )    
166                    $sRe quest .= " &{$field}= " . htmlen tities( pr ocess_pass _data( $_G ET[$field]  ) );    
167               
168           $p agination  = '<div st yle="text- align:cent er;">' . g enPaginati on( $iTota lPages, $i CurPage, $ sRequest )  . '</div> ';    
169       }    
170       else    
171           $p agination  = '';    
172           
173       return  $sCode .  $paginatio n.'</form> ';    
174   }    
175      
176   ?>