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

32.1 Files compared

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

32.2 Comparison summary

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

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

32.4 Active regular expressions

No regular expressions were active.

32.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 Pho to";    
37   $_page['he ader_text' ] = "Brows e Photo";    
38      
39   $_ni = $_p age['name_ index'];    
40      
41   $sType = ' Photo';    
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                    dele teMedia((i nt)$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 `sh arePhotoFi les` AS `a ` $sqlWher e" );    
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 `.`medID`,    
100           `a `.`medProf Id`,    
101           `a `.`medTitl e`,    
102           UN IX_TIMESTA MP(`a`.`me dDate`) as  `medDate` ,    
103           `a `.`medExt` ,    
104           `a `.`medView s`,    
105           `a `.`Approve d`,    
106           `b `.`NickNam e`    
107       FROM ` share".$sT ype."Files ` as `a`    
108       LEFT J OIN `Profi les` `b` O N    
109           `b `.`ID` = ` a`.`medPro fId`    
110       $sqlWh ere    
111       $sqlOr der    
112       $sqlLi mit    
113       ";    
114      
115   $rData = d b_res($sQu ery);    
116      
117   TopCodeAdm in();    
118   ContentBlo ckHead("Li st of Phot o files");    
119      
120   echo brows eCode();    
121      
122   ContentBlo ckFoot();    
123   BottomCode ();    
124      
125   function b rowseCode( )    
126   {    
127       global  $site;    
128       global  $rData;    
129       global  $iTotalPa ges;    
130       global  $iCurPage ;    
131           
132       $sCode  = '<div i d = "brows eMain">';    
133      
134       $sCode  .= '<form  method="p ost" actio n="'.$_SER VER['PHP_S ELF'].'">' ;    
135           
136       if (my sql_num_ro ws($rData) )    
137       {    
138           wh ile ($aDat a = mysql_ fetch_arra y($rData))    
139           {    
140                $sStyle  = $aData[' Approved']  == 'true'  ? ' style ="border:  2px solid  #00CC00;"'  : ' style ="border:  2px solid  #CC0000;"'  ;        
141                $sImage  = $site['s haringImag es'].$aDat a['medID'] .'_t.'.$aD ata['medEx t'];    
142                $sProf =  '<a href= "'.$site[' url'].'pro file_edit. php?ID='.$ aData['med ProfId'].' ">'.$aData ['NickName '].'</a>';    
143                $sCode . = '<div cl ass="brows eUnit" '.$ sStyle.'>' ;    
144                    $sCo de .= '<di v class="b rowseCheck box"><inpu t type="ch eckbox" na me="Check[ ]" value=" '.$aData[' medID'].'" ></div>';    
145                    $sCo de .= '<di v class="l astFilesIm age" style ="backgrou nd-image:  url(\''.$s Image.'\') ;">&nbsp;< /div>';    
146                    $sCo de .= '<di v><a href= "'.$site[' url'].'vie wPhoto.php ?fileID='. $aData['me dID'].'">< b>'.$aData ['medTitle '].'</b></ a></div>';    
147                    $sCo de .= '<di v>'._t("_A dded").':  <b>'.defin eTimeInter val($aData ['medDate' ]).'</b> b y '.$sProf .'</div>';    
148                    $sCo de .= '<di v>'._t("_V iews").':  <b>'.$aDat a['medView s'].'</b>< /div>';    
149                $sCode . = '</div>'    
150           }    
151       }    
152       else    
153       {    
154           $s Code .= '< div>There  is no file s</div>';    
155       }    
156       $sCode  .= '</div >';    
157       $sCode  .= '<div  class="cle ar_both">< /div>';    
158       $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>';    
159           
160       // gen erate pagi nation    
161       if( $i TotalPages  > 1)    
162       {    
163           $s Request =  $_SERVER[' PHP_SELF']  . '?page= {page}';    
164           $a Fields = a rray( 'use rID', 'tag ' );    
165               
166           fo reach( $aF ields as $ field )    
167                if( isse t( $_GET[$ field] ) )    
168                    $sRe quest .= " &{$field}= " . htmlen tities( pr ocess_pass _data( $_G ET[$field]  ) );    
169               
170           $p agination  = '<div st yle="text- align:cent er;">' . g enPaginati on( $iTota lPages, $i CurPage, $ sRequest )  . '</div> ';    
171       }    
172       else    
173           $p agination  = '';    
174           
175       return  $sCode .  $paginatio n.'</form> ';    
176   }    
177      
178   ?>