68. File Comparison Report

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

68.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\admin post_mod_gallery.php Thu Sep 20 08:58:42 2007 UTC
2 Dolphin-v.6.1.0\admin post_mod_gallery.php Sat Apr 19 12:05:02 2008 UTC

68.2 Comparison summary

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

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

68.4 Active regular expressions

No regular expressions were active.

68.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( '../in c/header.i nc.php' );   21   require_on ce( '../in c/header.i nc.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 . 'a dmin_desig n.inc.php'  );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin_desig n.inc.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   $logged['a dmin']   =   member_aut h(   1  
);
  26   $logged['a dmin']   =   member_aut h(   1 ,   true,   true   );
27     27  
28   $navigatio nStep = 12 ; // count  of object s to show  per page   28   $navigatio nStep = 12 ; // count  of object s to show  per page
29     29  
30   $_page['he ader'] = " Gallery Po stModerati on";   30   $_page['he ader'] = " Gallery Po stModerati on";
31   $_page['he ader_text' ] = "Unapp roved gall ery object s";   31   $_page['he ader_text' ] = "Unapp roved gall ery object s";
32   $_page['cs s_name'] =  'post_mod _gallery.c ss';   32   $_page['cs s_name'] =  'post_mod _gallery.c ss';
33     33  
34   if ( isset ($_POST['c onfirm'])  )   34   if ( isset ($_POST['c onfirm'])  )
35   {   35   {
36       $objec tIDs = '';   36       $objec tIDs = '';
37       foreac h ($_POST  as $key =>  $value)   37       foreac h ($_POST  as $key =>  $value)
38       {   38       {
39           if  ( strpos( $key, 'che ck') !== f alse && $v alue == 'o n' )   39           if  ( strpos( $key, 'che ck') !== f alse && $v alue == 'o n' )
40           {   40           {
41                $objectI D = (int)  substr( $k ey, 5 );   41                $objectI D = (int)  substr( $k ey, 5 );
42                $objectI Ds .= strl en($object IDs) ? ",{ $objectID} " : $objec tID;   42                $objectI Ds .= strl en($object IDs) ? ",{ $objectID} " : $objec tID;
43           }   43           }
44       }   44       }
45       if ( s trlen($obj ectIDs) )   45       if ( s trlen($obj ectIDs) )
46       {   46       {
47           $q uery = "UP DATE `Gall eryObjects ` SET `App roved` = 1  WHERE `ID ` IN ({$ob jectIDs})" ;   47           $q uery = "UP DATE `Gall eryObjects ` SET `App roved` = 1  WHERE `ID ` IN ({$ob jectIDs})" ;
48           // echo $quer y;   48           // echo $quer y;
49           db _res( $que ry );   49           db _res( $que ry );
50       }   50       }
51   }   51   }
52   elseif ( i sset($_POS T['delete' ]) )   52   elseif ( i sset($_POS T['delete' ]) )
53   {   53   {
54       foreac h ($_POST  as $key =>  $value)   54       foreac h ($_POST  as $key =>  $value)
55       {   55       {
56           if  ( strpos( $key, 'che ck') !== f alse && $v alue == 'o n' )   56           if  ( strpos( $key, 'che ck') !== f alse && $v alue == 'o n' )
57           {   57           {
58                $objectI D = (int)  substr( $k ey, 5 );   58                $objectI D = (int)  substr( $k ey, 5 );
59                $objectA rr = db_ar r( "SELECT  `IDAlbum` , `Filenam e`, `Thumb Filename`,  `OrderInA lbum` FROM  `GalleryO bjects` WH ERE `ID` =  {$objectI D}" );   59                $objectA rr = db_ar r( "SELECT  `IDAlbum` , `Filenam e`, `Thumb Filename`,  `OrderInA lbum` FROM  `GalleryO bjects` WH ERE `ID` =  {$objectI D}" );
60                db_res(  "DELETE FR OM `Galler yObjects`  WHERE `ID`  = {$objec tID}" );   60                db_res(  "DELETE FR OM `Galler yObjects`  WHERE `ID`  = {$objec tID}" );
61                db_res(  "UPDATE `G alleryObje cts`   61                db_res(  "UPDATE `G alleryObje cts`
62                             SET `O rderInAlbu m` = `Orde rInAlbum`  - 1   62                             SET `O rderInAlbu m` = `Orde rInAlbum`  - 1
63                             WHERE  `IDAlbum`  = {$object Arr['IDAlb um']}   63                             WHERE  `IDAlbum`  = {$object Arr['IDAlb um']}
64                                 AN D `OrderIn Album` > { $objectArr ['OrderInA lbum']}" ) ;   64                                 AN D `OrderIn Album` > { $objectArr ['OrderInA lbum']}" ) ;
65                @unlink(  "{$dir['g allery']}{ $objectArr ['Filename ']}" );   65                @unlink(  "{$dir['g allery']}{ $objectArr ['Filename ']}" );
66                if ( str len($objec tArr['Thum bFilename' ]) && file _exists("{ $dir['gall ery']}{$ob jectArr['T humbFilena me']}") )   66                if ( str len($objec tArr['Thum bFilename' ]) && file _exists("{ $dir['gall ery']}{$ob jectArr['T humbFilena me']}") )
67                    @unl ink( "{$di r['gallery ']}{$objec tArr['Thum bFilename' ]}" );   67                    @unl ink( "{$di r['gallery ']}{$objec tArr['Thum bFilename' ]}" );
68           }   68           }
69       }   69       }
70   }   70   }
71     71  
72   $page = is set($_REQU EST['page' ]) ? ((int )$_REQUEST ['page'] >  0 ? (int) $_REQUEST[ 'page'] :  1) : 1;   72   $page = is set($_REQU EST['page' ]) ? ((int )$_REQUEST ['page'] >  0 ? (int) $_REQUEST[ 'page'] :  1) : 1;
73   $p_per_pag e = isset( $_REQUEST[ 'p_per_pag e']) ? ((i nt)$_REQUE ST['p_per_ page'] > 0  ? (int)$_ REQUEST['p _per_page' ] : 10) :  10;   73   $p_per_pag e = isset( $_REQUEST[ 'p_per_pag e']) ? ((i nt)$_REQUE ST['p_per_ page'] > 0  ? (int)$_ REQUEST['p _per_page' ] : 10) :  10;
74     74  
75   $totalQuer y = "SELEC T COUNT(*)  FROM `Gal leryObject s` WHERE ` GalleryObj ects`.`App roved` = 0 ";   75   $totalQuer y = "SELEC T COUNT(*)  FROM `Gal leryObject s` WHERE ` GalleryObj ects`.`App roved` = 0 ";
76   $totalArr  = db_arr(  $totalQuer y );   76   $totalArr  = db_arr(  $totalQuer y );
77   $totalObje cts = $tot alArr[0];   77   $totalObje cts = $tot alArr[0];
78     78  
79   $p_num = $ totalObjec ts;   79   $p_num = $ totalObjec ts;
80   $pages_num  = ceil( $ p_num / $p _per_page  );   80   $pages_num  = ceil( $ p_num / $p _per_page  );
81   $real_firs t_p = (int )($page -  1) * $p_pe r_page;   81   $real_firs t_p = (int )($page -  1) * $p_pe r_page;
82   $page_firs t_p = $rea l_first_p  + 1;   82   $page_firs t_p = $rea l_first_p  + 1;
83     83  
84   $approveQu ery = "   84   $approveQu ery = "
85           SE LECT   85           SE LECT
86                    `Gal leryObject s`.`ID`,   86                    `Gal leryObject s`.`ID`,
87                    `Gal leryObject s`.`Filena me`,   87                    `Gal leryObject s`.`Filena me`,
88                    `Gal leryObject s`.`ThumbF ilename`,   88                    `Gal leryObject s`.`ThumbF ilename`,
89                    `Gal leryObject s`.`Object Type`,   89                    `Gal leryObject s`.`Object Type`,
90                    `Gal leryObject s`.`Commen t`,   90                    `Gal leryObject s`.`Commen t`,
91                    LEFT (`GalleryO bjects`.`C omment`, 2 0) AS `Com mentCut`,   91                    LEFT (`GalleryO bjects`.`C omment`, 2 0) AS `Com mentCut`,
92                    DATE _FORMAT(`G alleryObje cts`.`Modi fied`,  '$ date_forma t' ) AS 'M odified',   92                    DATE _FORMAT(`G alleryObje cts`.`Modi fied`,  '$ date_forma t' ) AS 'M odified',
93                    `Gal leryAlbums `.`IDMembe r`   93                    `Gal leryAlbums `.`IDMembe r`
94           FR OM   94           FR OM
95                    `Gal leryObject s`   95                    `Gal leryObject s`
96           LE FT JOIN `G alleryAlbu ms` ON `Ga lleryObjec ts`.`IDAlb um` = `Gal leryAlbums `.`ID`   96           LE FT JOIN `G alleryAlbu ms` ON `Ga lleryObjec ts`.`IDAlb um` = `Gal leryAlbums `.`ID`
97           WH ERE `Galle ryObjects` .`Approved ` = 0   97           WH ERE `Galle ryObjects` .`Approved ` = 0
98           LI MIT {$real _first_p},  {$p_per_p age};";   98           LI MIT {$real _first_p},  {$p_per_p age};";
99   $approveRe s = db_res ( $approve Query );   99   $approveRe s = db_res ( $approve Query );
100     100  
101   TopCodeAdm in();   101   TopCodeAdm in();
102     102  
103   ContentBlo ckHead("Un approved g allery obj ects");   103   ContentBlo ckHead("Un approved g allery obj ects");
104     104  
105   ?>   105   ?>
106   <script ty pe="text/j avascript"  language= "JavaScrip t">   106   <script ty pe="text/j avascript"  language= "JavaScrip t">
107   <!--   107   <!--
108       functi on viewObj ect(owner,  objectID)   108       functi on viewObj ect(owner,  objectID)
109       {   109       {
110           va r winParam s = 'toolb ar=no,resi zable=yes, scrollbars =yes,width =400,heigh t=300';   110           va r winParam s = 'toolb ar=no,resi zable=yes, scrollbars =yes,width =400,heigh t=300';
111           va r objectWi n = window .open('<?=  "{$site[' url']}gall ery.php?ow ner=' + ow ner + '&ac tion=view_ object&obj ect_id=" ? >' + objec tID, 'gall eryObject' , winParam s);   111           va r objectWi n = window .open('<?=  "{$site[' url']}gall ery.php?ow ner=' + ow ner + '&ac tion=view_ object&obj ect_id=" ? >' + objec tID, 'gall eryObject' , winParam s);
112       }   112       }
113     113  
114       functi on navigat ionSubmit( fromParam)   114       functi on navigat ionSubmit( fromParam)
115       {   115       {
116           lo cation.hre f = '<?= $ _SERVER['P HP_SELF']  ?>?from='  + fromPara m;   116           lo cation.hre f = '<?= $ _SERVER['P HP_SELF']  ?>?from='  + fromPara m;
117       }   117       }
118   -->   118   -->
119   </script>   119   </script>
120   <?   120   <?
121     121  
122   if ( mysql _num_rows( $approveRe s) == 0 )   122   if ( mysql _num_rows( $approveRe s) == 0 )
123   {   123   {
124       echo ' <center>No  objects t o approve< /center>';   124       echo ' <center>No  objects t o approve< /center>';
125   }   125   }
126   else   126   else
127   {   127   {
128       echo ' <center>'.  ResNaviga tionRet( ' ObjectsUpp er', 0 ) . '</center> ';   128       echo ' <center>'.  ResNaviga tionRet( ' ObjectsUpp er', 0 ) . '</center> ';
129     129  
130   ?>   130   ?>
131       <div c lass="gall eryObjects Container" >   131       <div c lass="gall eryObjects Container" >
132       <form  name="appr oveGallery Form" acti on="<? $ge tVars = ge t_vars();  $getVars =  substr($g etVars, 0,  strlen($g etVars) -  1); echo " {$_SERVER[ 'PHP_SELF' ]}{$getVar s}" ?>" me thod="post ">   132       <form  name="appr oveGallery Form" acti on="<? $ge tVars = ge t_vars();  $getVars =  substr($g etVars, 0,  strlen($g etVars) -  1); echo " {$_SERVER[ 'PHP_SELF' ]}{$getVar s}" ?>" me thod="post ">
133   <?   133   <?
134     134  
135       while  ( $objectA rr = mysql _fetch_ass oc($approv eRes) )   135       while  ( $objectA rr = mysql _fetch_ass oc($approv eRes) )
136       {   136       {
137           $o bjectIcon  = ( $objec tArr['Obje ctType'] = = 'photo'  && strlen( $objectArr ['ThumbFil ename']) & & file_exi sts("{$dir ['gallery' ]}{$object Arr['Thumb Filename'] }") ) ? "{ $site['gal lery']}{$o bjectArr[' ThumbFilen ame']}" :  "{$site['u rl_admin'] }images/{$ objectArr[ 'ObjectTyp e']}.jpg";   137           $o bjectIcon  = ( $objec tArr['Obje ctType'] = = 'photo'  && strlen( $objectArr ['ThumbFil ename']) & & file_exi sts("{$dir ['gallery' ]}{$object Arr['Thumb Filename'] }") ) ? "{ $site['gal lery']}{$o bjectArr[' ThumbFilen ame']}" :  "{$site['u rl_admin'] }images/{$ objectArr[ 'ObjectTyp e']}.jpg";
138           $o bjectTitle  = process _line_outp ut($object Arr['Comme ntCut']);   138           $o bjectTitle  = process _line_outp ut($object Arr['Comme ntCut']);
139           if  ( strlen( $objectArr ['Comment' ]) > strle n($objectA rr['Commen tCut']) )   139           if  ( strlen( $objectArr ['Comment' ]) > strle n($objectA rr['Commen tCut']) )
140                $objectT itle .= '. ..';   140                $objectT itle .= '. ..';
141           $o bjectTitle  = "<a hre f=\"javasc ript:void( null);\" o nclick=\"j avascript:  viewObjec t({$object Arr['IDMem ber']}, {$ objectArr[ 'ID']}); r eturn fals e;\">{$obj ectTitle}< /a>";   141           $o bjectTitle  = "<a hre f=\"javasc ript:void( null);\" o nclick=\"j avascript:  viewObjec t({$object Arr['IDMem ber']}, {$ objectArr[ 'ID']}); r eturn fals e;\">{$obj ectTitle}< /a>";
142   ?>   142   ?>
143       <div c lass="gall eryObjectB lock">   143       <div c lass="gall eryObjectB lock">
144           <d iv class=" galleryObj ectInfo">< ?= $object Title ?></ div>   144           <d iv class=" galleryObj ectInfo">< ?= $object Title ?></ div>
145           <d iv class=" galleryObj ectIcon" t itle="<?=  process_li ne_output( $objectArr ['Comment' ]) ?>" sty le="backgr ound: url( '<?= $obje ctIcon ?>' ) no-repea t center;"  onclick=" javascript : viewObje ct(<?= "{$ objectArr[ 'IDMember' ]}, {$obje ctArr['ID' ]}" ?>);"> </div>   145           <d iv class=" galleryObj ectIcon" t itle="<?=  process_li ne_output( $objectArr ['Comment' ]) ?>" sty le="backgr ound: url( '<?= $obje ctIcon ?>' ) no-repea t center;"  onclick=" javascript : viewObje ct(<?= "{$ objectArr[ 'IDMember' ]}, {$obje ctArr['ID' ]}" ?>);"> </div>
146           <d iv class=" galleryObj ectInfo">< ?= $object Arr['Modif ied'] ?></ div>   146           <d iv class=" galleryObj ectInfo">< ?= $object Arr['Modif ied'] ?></ div>
147           <d iv class=" galleryObj ectInfo">   147           <d iv class=" galleryObj ectInfo">
148                <input t ype="check box" name= "check<?=  $objectArr ['ID'] ?>"  id="check <?= $objec tArr['ID']  ?>" class ="no" />   148                <input t ype="check box" name= "check<?=  $objectArr ['ID'] ?>"  id="check <?= $objec tArr['ID']  ?>" class ="no" />
149           </ div>   149           </ div>
150       </div>   150       </div>
151   <?   151   <?
152       }   152       }
153     153  
154       echo ' <div class ="clearBot h"></div>' ;   154       echo ' <div class ="clearBot h"></div>' ;
155     155  
156   ?>   156   ?>
157   <div class ="galleryC ontrols">   157   <div class ="galleryC ontrols">
158       <div s tyle="posi tion: rela tive; floa t: left;">   158       <div s tyle="posi tion: rela tive; floa t: left;">
159           <a  href="jav ascript:vo id(0);" on click="set Checkboxes ('approveG alleryForm ', true);  return fal se;">Check  all</a>   159           <a  href="jav ascript:vo id(0);" on click="set Checkboxes ('approveG alleryForm ', true);  return fal se;">Check  all</a>
160           &n bsp;/&nbsp ;   160           &n bsp;/&nbsp ;
161           <a  href="jav ascript:vo id(0);" on click="set Checkboxes ('approveG alleryForm ', false);  return fa lse;">Unch eck all</a >   161           <a  href="jav ascript:vo id(0);" on click="set Checkboxes ('approveG alleryForm ', false);  return fa lse;">Unch eck all</a >
162       </div>   162       </div>
163       <div s tyle="posi tion: rela tive; floa t: right">   163       <div s tyle="posi tion: rela tive; floa t: right">
164           Se lected obj ects:&nbsp ;<input ty pe="submit " name="co nfirm" val ue="Confir m" />&nbsp ;|&nbsp;<i nput type= "submit" n ame="delet e" value=" Delete" />   164           Se lected obj ects:&nbsp ;<input ty pe="submit " name="co nfirm" val ue="Confir m" />&nbsp ;|&nbsp;<i nput type= "submit" n ame="delet e" value=" Delete" />
165       </div>   165       </div>
166       <div c lass="clea rBoth"></d iv>   166       <div c lass="clea rBoth"></d iv>
167   </div>   167   </div>
168   </form>   168   </form>
169   <?   169   <?
170     170  
171       echo ' <center>'.  ResNaviga tionRet( ' ObjectsLow er', 0 ) . '</center> ';   171       echo ' <center>'.  ResNaviga tionRet( ' ObjectsLow er', 0 ) . '</center> ';
172   }   172   }
173     173  
174   ?>   174   ?>
175   </form>   175   </form>
176   </div>   176   </div>
177   <?   177   <?
178     178  
179   ContentBlo ckFoot();   179   ContentBlo ckFoot();
180     180  
181   BottomCode ();   181   BottomCode ();
182   ?>   182   ?>