7. File Comparison Report

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

7.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.1.2\admin post_mod_audio.php Sat Apr 26 08:19:16 2008 UTC
2 Dolphin-v.6.1.3\admin post_mod_audio.php Wed Jul 16 09:51:21 2008 UTC

7.2 Comparison summary

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

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

7.4 Active regular expressions

No regular expressions were active.

7.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   require_on ce( BX_DIR ECTORY_PAT H_INC . 's haring.inc .php' );   25   require_on ce( BX_DIR ECTORY_PAT H_INC . 's haring.inc .php' );
26     26  
27   $logged['a dmin'] = m ember_auth ( 1, true,  true );   27   $logged['a dmin'] = m ember_auth ( 1, true,  true );
28   $ADMIN = $ logged[adm in];   28   $ADMIN = $ logged[adm in];
29     29  
30   $_page['cs s_name']       = 'pos t_moderati on.css';   30   $_page['cs s_name']       = 'pos t_moderati on.css';
31     31  
32   $_page['he ader'] = " Profile Mu sic Postmo deration";   32   $_page['he ader'] = " Profile Mu sic Postmo deration";
33   $_page['he ader_text' ] = "";   33   $_page['he ader_text' ] = "";
34     34  
35   if (isset( $_GET['iUs er']))   35   if (isset( $_GET['iUs er']))
36   {   36   {
37       $iUser  = (int)$_ GET['iUser '];   37       $iUser  = (int)$_ GET['iUser '];
38   }   38   }
39     39  
40   if (isset( $_POST['ch eck']) &&  is_array($ _POST['che ck']))   40   if (isset( $_POST['ch eck']) &&  is_array($ _POST['che ck']))
41   {   41   {
42       foreac h($_POST[' check'] as  $iKey =>  $iVal)   42       foreac h($_POST[' check'] as  $iKey =>  $iVal)
43       {   43       {
44           sw itch (true )   44           sw itch (true )
45           {   45           {
46                case iss et($_POST[ 'Delete']) :   46                case iss et($_POST[ 'Delete']) :
47                    dele teAudio((i nt)$iVal);   47                    dele teAudio((i nt)$iVal);
48                    brea k;   48                    brea k;
49                case iss et($_POST[ 'Approve'] ):   49                case iss et($_POST[ 'Approve'] ):
50                    appr oveAudio(( int)$iVal) ;   50                    appr oveAudio(( int)$iVal) ;
51                    brea k;   51                    brea k;
52           }   52           }
53       }   53       }
54   }   54   }
55     55  
56   $sqlQuery  = "SELECT    56   $sqlQuery  = "SELECT 
57                    `Ray Mp3Files`. `ID` as `m edID`,   57                    `Ray Mp3Files`. `ID` as `m edID`,
58                    `Ray Mp3Files`. `Title` as  `medTitle `,   58                    `Ray Mp3Files`. `Title` as  `medTitle `,
59                    `Ray Mp3Files`. `Descripti on` as `me dDesc`,   59                    `Ray Mp3Files`. `Descripti on` as `me dDesc`,
60                    `Ray Mp3Files`. `Owner` as  `medProfI d`,   60                    `Ray Mp3Files`. `Owner` as  `medProfI d`,
61                    `Ray Mp3Files`. `Date` as  `medDate`,   61                    `Ray Mp3Files`. `Date` as  `medDate`,
62                    `Ray Mp3Files`. `Approved` ,   62                    `Ray Mp3Files`. `Approved` ,
63                    `Pro files`.`Ni ckName`   63                    `Pro files`.`Ni ckName`
64                    FROM  `RayMp3Fi les`   64                    FROM  `RayMp3Fi les`
65                    LEFT  JOIN `Pro files` ON  `Profiles` .`ID`=`Ray Mp3Files`. `Owner`   65                    LEFT  JOIN `Pro files` ON  `Profiles` .`ID`=`Ray Mp3Files`. `Owner`
66                    ";   66                    ";
67   $sqlWhere  = $iUser = = 0 ? "WHE RE `Owner` <>'0'" : " WHERE `Own er`='$iUse r'";   67   $sqlWhere  = $iUser = = 0 ? "WHE RE `Owner` <>'0'" : " WHERE `Own er`='$iUse r'";
68          68       
69   $iTotalNum  = db_valu e( "SELECT  COUNT( *  ) FROM `Ra yMp3Files`  LEFT JOIN  `Profiles ` ON `Prof iles`.`ID` =`RayMp3Fi les`.`Owne r` $sqlWhe re" );   69   $iTotalNum  = db_valu e( "SELECT  COUNT( *  ) FROM `Ra yMp3Files`  LEFT JOIN  `Profiles ` ON `Prof iles`.`ID` =`RayMp3Fi les`.`Owne r` $sqlWhe re" );
70   $iPerPage  = 10;   70   $iPerPage  = 10;
71   $iTotalPag es = ceil(  $iTotalNu m / $iPerP age );   71   $iTotalPag es = ceil(  $iTotalNu m / $iPerP age );
72   $iCurPage  = (int)$_G ET['page'] ;   72   $iCurPage  = (int)$_G ET['page'] ;
73          73       
74   if( $iCurP age > $iTo talPages )   74   if( $iCurP age > $iTo talPages )
75       $iCurP age = $iTo talPages;   75       $iCurP age = $iTo talPages;
76          76       
77   if( $iCurP age < 1 )   77   if( $iCurP age < 1 )
78       $iCurP age = 1;   78       $iCurP age = 1;
79          79       
80   $sLimitFro m = ( $iCu rPage - 1  ) * $iPerP age;   80   $sLimitFro m = ( $iCu rPage - 1  ) * $iPerP age;
81   $sqlLimit  = "LIMIT $ sLimitFrom , $iPerPag e";   81   $sqlLimit  = "LIMIT $ sLimitFrom , $iPerPag e";
82          82       
83   $res = db_ res( $sqlQ uery.$sqlW here.$sqlL imit );   83   $res = db_ res( $sqlQ uery.$sqlW here.$sqlL imit );
84   $aFiles =  fill_assoc _array( $r es );   84   $aFiles =  fill_assoc _array( $r es );
85     85  
86   TopCodeAdm in();   86   TopCodeAdm in();
87   ContentBlo ckHead("") ;   87   ContentBlo ckHead("") ;
88       echo g etPostModM ediaPage($ iUser);   88       echo g etPostModM ediaPage($ iUser);
89   ContentBlo ckFoot();   89   ContentBlo ckFoot();
90   BottomCode ();   90   BottomCode ();
91     91  
92     92  
93   function g etPostModM ediaPage(  $iUser = 0  )   93   function g etPostModM ediaPage(  $iUser = 0  )
94   {   94   {
95        global   $ dir,   $ site,   $max_thumb _width,   $max_thumb _height,   $max_photo _width,   $max_photo _height;   95        global   $
site,   $max_thumb _width,   $max_thumb _height,   $max_photo _width,   $max_photo _height;
96       global  $aFiles;   96       global  $aFiles;
97       global  $iTotalPa ges, $iCur Page;   97       global  $iTotalPa ges, $iCur Page;
98          98       
99       $ret =  '';   99       $ret =  '';
100     100  
101       $ret . = "<script >   101       $ret . = "<script >
102       functi on checkAl l( _pref,  do_check )   102       functi on checkAl l( _pref,  do_check )
103       {   103       {
104           aE lems = doc ument.getE lementsByT agName( 'i nput' );   104           aE lems = doc ument.getE lementsByT agName( 'i nput' );
105              105           
106           fo r( i = 0;  i < aElems .length; i  ++ )   106           fo r( i = 0;  i < aElems .length; i  ++ )
107           {   107           {
108                elt = aE lems[i];   108                elt = aE lems[i];
109                if( elt. name.subst r( 0, _pre f.length )  == _pref  )   109                if( elt. name.subst r( 0, _pre f.length )  == _pref  )
110                    elt. checked =  do_check;   110                    elt. checked =  do_check;
111           }   111           }
112       }   112       }
113       </scri pt>"   113       </scri pt>"
114       ;   114       ;
115       $ret . = '<div><f orm method ="post" ac tion="'.$_ HTTP['REFE RER'].'">' ;   115       $ret . = '<div><f orm method ="post" ac tion="'.$_ HTTP['REFE RER'].'">' ;
116     116  
117       $iCoun ter = 1;   117       $iCoun ter = 1;
118       foreac h( $aFiles  as $aMedi a )   118       foreac h( $aFiles  as $aMedi a )
119       {   119       {
120           $s Pic = '<im g src="'.$ site['admi n'] . 'ima ges/music. png">';   120           $s Pic = '<im g src="'.$ site['admi n'] . 'ima ges/music. png">';
121           $s MediaLink  = "<a href =\"javascr ipt:openRa yWidget('m p3','playe r','".$aMe dia['medID ']."','1', '1','true' )\">".$aMe dia['medTi tle']."</a >";   121           $s MediaLink  = "<a href =\"javascr ipt:openRa yWidget('m p3','playe r','".$aMe dia['medID ']."','1', '1','true' )\">".$aMe dia['medTi tle']."</a >";
122           $s Prof = '<a  href="'.$ site['url' ].'pedit.p hp?ID='.$a Media['med ProfId'].' ">'.$aMedi a['NickNam e'].'</a>' ;   122           $s Prof = '<a  href="'.$ site['url' ].'pedit.p hp?ID='.$a Media['med ProfId'].' ">'.$aMedi a['NickNam e'].'</a>' ;
123              123           
124           $s Style = $a Media['App roved'] ==  'true' ?  ' style="b order: 2px  solid #00 CC00;"' :  ' style="b order: 2px  solid #CC 0000;"' ;   124           $s Style = $a Media['App roved'] ==  'true' ?  ' style="b order: 2px  solid #00 CC00;"' :  ' style="b order: 2px  solid #CC 0000;"' ;
125           $r et .= '<di v class="m ainBlock"' .$sStyle.' >';   125           $r et .= '<di v class="m ainBlock"' .$sStyle.' >';
126                $ret .=  '<div clas s="checkBo x">   126                $ret .=  '<div clas s="checkBo x">
127                             <input  type="che ckbox" nam e="check[] " id="ch'. $aMedia['m edID'].'"  value="'.$ aMedia['me dID'].'">   127                             <input  type="che ckbox" nam e="check[] " id="ch'. $aMedia['m edID'].'"  value="'.$ aMedia['me dID'].'">
128                         </div>';   128                         </div>';
129                $ret .=  '<div clas s="picture ">';   129                $ret .=  '<div clas s="picture ">';
130                    $ret  .= $sPic;   130                    $ret  .= $sPic;
131                $ret .=  '</div>';   131                $ret .=  '</div>';
132                $ret .=  '<div clas s="fileInf o">';   132                $ret .=  '<div clas s="fileInf o">';
133                    $ret  .= '<div> ';   133                    $ret  .= '<div> ';
134                         $ret .= $s MediaLink;   134                         $ret .= $s MediaLink;
135                    $ret  .= '</div >';   135                    $ret  .= '</div >';
136                    $ret  .= '<div> by '.$sPro f.'</div>' ;   136                    $ret  .= '<div> by '.$sPro f.'</div>' ;
137                    $ret  .= '<div> Added: '.d efineTimeI nterval($a Media['med Date']).'< /div>';   137                    $ret  .= '<div> Added: '.d efineTimeI nterval($a Media['med Date']).'< /div>';
138                $ret .=  '</div>';   138                $ret .=  '</div>';
139           $r et .= '</d iv>';   139           $r et .= '</d iv>';
140           if ( ( $iCoun ter % 2 )  == 0 )   140           if ( ( $iCoun ter % 2 )  == 0 )
141                $ret .=  '<div clas s="clear_b oth"></div >';   141                $ret .=  '<div clas s="clear_b oth"></div >';
142           $i Counter++;   142           $i Counter++;
143       }   143       }
144       if( !e mpty( $aFi les ) )   144       if( !e mpty( $aFi les ) )
145       {   145       {
146           $s Check  = c ount($aFil es) > 1 ?  '<input ty pe="checkb ox" name=\ "ch_all" o nclick="ch eckAll( \' ch\', this .checked ) " />Check  all' : '';   146           $s Check  = c ount($aFil es) > 1 ?  '<input ty pe="checkb ox" name=\ "ch_all" o nclick="ch eckAll( \' ch\', this .checked ) " />Check  all' : '';
147           $r et .= '<di v style="c lear:both;  font-weig ht:bold; t ext-align: center;">' .$sCheck.' <input typ e="submit"  name="App rove" valu e="Change  status">   147           $r et .= '<di v style="c lear:both;  font-weig ht:bold; t ext-align: center;">' .$sCheck.' <input typ e="submit"  name="App rove" valu e="Change  status">
148           <i nput type= "submit" n ame="Delet e" value=" Delete"></ div>';   148           <i nput type= "submit" n ame="Delet e" value=" Delete"></ div>';
149       } else  {   149       } else  {
150           $r et .= MsgB ox( 'Sorry , nothing  found' );   150           $r et .= MsgB ox( 'Sorry , nothing  found' );
151       }   151       }
152          152       
153       if( $i TotalPages  > 1)   153       if( $i TotalPages  > 1)
154       {   154       {
155           $s Request =  $_SERVER[' PHP_SELF']  . '?page= {page}';   155           $s Request =  $_SERVER[' PHP_SELF']  . '?page= {page}';
156           $p agination  = '<div st yle="text- align:cent er; margin : 10px 0px  10px 0px; ">' . genP agination(  $iTotalPa ges, $iCur Page, $sRe quest ) .  '</div>';   156           $p agination  = '<div st yle="text- align:cent er; margin : 10px 0px  10px 0px; ">' . genP agination(  $iTotalPa ges, $iCur Page, $sRe quest ) .  '</div>';
157       }   157       }
158       else   158       else
159           $p agination  = '';   159           $p agination  = '';
160              160           
161       return  $ret.$pag ination.'< /form></di v>';   161       return  $ret.$pag ination.'< /form></di v>';
162   }   162   }
163     163  
164     164  
165   function d eleteAudio ( $iMedia  )   165   function d eleteAudio ( $iMedia  )
166   {   166   {
167       global  $dir;   167        $sFileName   =   BX_DIRECTO RY_PATH_RO OT   .   'ray/modul es/mp3/fil es/'.$iMed ia   .   '.mp3';
168      
169        $sFileName   =   $dir['root ']   .   'ray/modul es/mp3/fil es/'.$iMed ia   .   '.mp3';    
170     168  
171       $sqlQu ery = "   169       $sqlQu ery = "
172       DELETE  FROM `Ray Mp3Files`  WHERE `ID`  = '$iMedi a';   170       DELETE  FROM `Ray Mp3Files`  WHERE `ID`  = '$iMedi a';
173       ";   171       ";
174     172  
175       $res =  db_res( $ sqlQuery ) ;   173       $res =  db_res( $ sqlQuery ) ;
176     174  
177       @unlin k( $sFileN ame );   175       @unlin k( $sFileN ame );
178     176  
179       return  $res;   177       return  $res;
180   }   178   }
181     179  
182   function a pproveAudi o( $iMedia  )   180   function a pproveAudi o( $iMedia  )
183   {   181   {
184       $sqlQu ery = "UPD ATE `RayMp 3Files` SE T `Approve d` = IF(`A pproved`=' true','fal se','true' ) WHERE `I D`='$iMedi a'";   182       $sqlQu ery = "UPD ATE `RayMp 3Files` SE T `Approve d` = IF(`A pproved`=' true','fal se','true' ) WHERE `I D`='$iMedi a'";
185       $res =  db_res($s qlQuery);   183       $res =  db_res($s qlQuery);
186          184       
187       return  $res;   185       return  $res;
188   }   186   }
189     187  
190   ?>   188   ?>