16. File Comparison Report

Produced on Wed Jun 18 08:01:27 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.

16.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.1.1\admin post_mod_profiles.php Sat Apr 26 08:19:16 2008 UTC
2 Dolphin-v.6.1.2\admin post_mod_profiles.php Thu Jun 12 09:57:43 2008 UTC

16.2 Comparison summary

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

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

16.4 Active regular expressions

No regular expressions were active.

16.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 . '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 . 'a dmin_desig n.inc.php'  );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin_desig n.inc.php'  );
25   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );   25   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
26   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p arams.inc. php' );   26   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p arams.inc. php' );
27     27  
28   $logged['a dmin'] = m ember_auth ( 1, true,  true );   28   $logged['a dmin'] = m ember_auth ( 1, true,  true );
29   $ADMIN = $ logged[adm in];   29   $ADMIN = $ logged[adm in];
30     30  
31   // ======= ========== ========== ========== ========== ========== ==========   31   // ======= ========== ========== ========== ========== ========== ==========
32   // ======= ========== ========== ========== ========== ========== ==========   32   // ======= ========== ========== ========== ========== ========== ==========
33     33  
34   if ( $_POS T['confirm '] )   34   if ( $_POS T['confirm '] )
35   {   35   {
36       $query  = '';   36       $query  = '';
37       foreac h ( $_POST  as $key = > $value )   37       foreac h ( $_POST  as $key = > $value )
38       {   38       {
39     39  
40       if ( ' mem' == $v alue )   40       if ( ' mem' == $v alue )
41           $q uery .= "  IDMember =  '$key' OR  ";   41           $q uery .= "  IDMember =  '$key' OR  ";
42       }   42       }
43     43  
44       $query  = "UPDATE  ProfilesS ettings SE T `Status`  = 'Active ' WHERE "  . $query .  " '1'='0'  ";   44       $query  = "UPDATE  ProfilesS ettings SE T `Status`  = 'Active ' WHERE "  . $query .  " '1'='0'  ";
45     45  
46       db_res ( $query ) ;   46       db_res ( $query ) ;
47     47  
48   }   48   }
49   elseif ( $ _POST['del ete'] )   49   elseif ( $ _POST['del ete'] )
50   {   50   {
51     51  
52       $query  = '';   52       $query  = '';
53       foreac h ( $_POST  as $key = > $value )   53       foreac h ( $_POST  as $key = > $value )
54       {   54       {
55     55  
56       if ( ' mem' == $v alue )   56       if ( ' mem' == $v alue )
57           $q uery .= "  IDMember =  '$key' OR  ";   57           $q uery .= "  IDMember =  '$key' OR  ";
58       }   58       }
59     59  
60       $query 1 = "SELEC T `Backgro undFilenam e` FROM Pr ofilesSett ings WHERE  " . $quer y . " '1'= '0' ";   60       $query 1 = "SELEC T `Backgro undFilenam e` FROM Pr ofilesSett ings WHERE  " . $quer y . " '1'= '0' ";
61        $ ar r  
=   db_res(   $query1   );
  61        $
r es   =   db_res(   $query1   );
62       while(  $arr = my sql_fetch_ array( $re s ) )   62       while(  $arr = my sql_fetch_ array( $re s ) )
63       {   63       {
64           if ( file_exi sts($dir[' profileBac kground']  . $arr['Ba ckgroundFi lename'])  )   64           if ( file_exi sts($dir[' profileBac kground']  . $arr['Ba ckgroundFi lename'])  )
65                unlink($ dir['profi leBackgrou nd'] . $ar r['Backgro undFilenam e']);   65                unlink($ dir['profi leBackgrou nd'] . $ar r['Backgro undFilenam e']);
66       }   66       }
67     67  
68       $query 2 = "UPDAT E Profiles Settings S ET `Backgr oundFilena me` = '' W HERE " . $ query . "  '1'='0' ";   68       $query 2 = "UPDAT E Profiles Settings S ET `Backgr oundFilena me` = '' W HERE " . $ query . "  '1'='0' ";
69     69  
70       db_res ( $query2  );   70       db_res ( $query2  );
71     71  
72   }   72   }
73     73  
74   // ======= ========== ========== ========== ========== ========== ==========   74   // ======= ========== ========== ========== ========== ========== ==========
75   // - GET v ariables - ---------- ---   75   // - GET v ariables - ---------- ---
76   // ======= ========== ========== ========== ========== ========== ==========   76   // ======= ========== ========== ========== ========== ========== ==========
77     77  
78   $page        = (int)$ _GET[page] ;   78   $page        = (int)$ _GET[page] ;
79   $p_per_pag e = (int)$ _GET[p_per _page];   79   $p_per_pag e = (int)$ _GET[p_per _page];
80     80  
81   //$real_fi rst_p = (i nt)($page  - 1) * $p_ per_page;   81   //$real_fi rst_p = (i nt)($page  - 1) * $p_ per_page;
82   //$page_fi rst_p = $r eal_first_ p + 1;   82   //$page_fi rst_p = $r eal_first_ p + 1;
83     83  
84   $max_photo _height    = $max_pho to_height  + 2;   84   $max_photo _height    = $max_pho to_height  + 2;
85   $max_photo _width     = $max_pho to_width +  2;   85   $max_photo _width     = $max_pho to_width +  2;
86     86  
87   if ( !$pag e )   87   if ( !$pag e )
88       $page  = 1;   88       $page  = 1;
89     89  
90   if ( !$p_p er_page )   90   if ( !$p_p er_page )
91       $p_per _page = 10 ;   91       $p_per _page = 10 ;
92     92  
93   // ------- ---------- ---------- ---   93   // ------- ---------- ---------- ---
94     94  
95   if ( isset ($_GET['iU ser']) )   95   if ( isset ($_GET['iU ser']) )
96   {   96   {
97       $iUser  = (int)$_ GET['iUser '];   97       $iUser  = (int)$_ GET['iUser '];
98       $sqlUs er = " AND  `IDMember ` = '$iUse r'";   98       $sqlUs er = " AND  `IDMember ` = '$iUse r'";
99   }   99   }
100     100  
101   if (isset( $_GET['sta tus']) &&  $_GET['sta tus'] == ' active')   101   if (isset( $_GET['sta tus']) &&  $_GET['sta tus'] == ' active')
102   {   102   {
103       $sqlMa in = "`Sta tus` = 'Ac tive'";   103       $sqlMa in = "`Sta tus` = 'Ac tive'";
104       $sConf    = '';   104       $sConf    = '';
105   }   105   }
106   else   106   else
107   {   107   {
108       $sqlMa in = "( `S tatus` !=  'Active' O R `Status`  IS NULL ) ";   108       $sqlMa in = "( `S tatus` !=  'Active' O R `Status`  IS NULL ) ";
109       $sConf    = '<td  width="1"> |</td>   109       $sConf    = '<td  width="1"> |</td>
110       <td wi dth="120"> <input cla ss=text ty pe=submit  name="conf irm" value ="Confirm" ></td>';   110       <td wi dth="120"> <input cla ss=text ty pe=submit  name="conf irm" value ="Confirm" ></td>';
111   }   111   }
112     112  
113   // ------- ---------- ---------- ---   113   // ------- ---------- ---------- ---
114     114  
115     115  
116   $sql = "SE LECT COUNT (*) FROM P rofilesSet tings WHER E `Backgro undFilenam e` != '' & & `Backgro undFilenam e` IS NOT  NULL   116   $sql = "SE LECT COUNT (*) FROM P rofilesSet tings WHER E `Backgro undFilenam e` != '' & & `Backgro undFilenam e` IS NOT  NULL
117           &&  $sqlMain  $sqlUser";   117           &&  $sqlMain  $sqlUser";
118   $p_num = d b_arr( $sq l );   118   $p_num = d b_arr( $sq l );
119   $p_num = $ p_num[0];   119   $p_num = $ p_num[0];
120   $pages_num  = ceil( $ p_num / $p _per_page  );   120   $pages_num  = ceil( $ p_num / $p _per_page  );
121     121  
122   $real_firs t_p = (int )($page -  1) * $p_pe r_page;   122   $real_firs t_p = (int )($page -  1) * $p_pe r_page;
123   $page_firs t_p = $rea l_first_p  + 1;   123   $page_firs t_p = $rea l_first_p  + 1;
124     124  
125   $result =  db_res( "S ELECT `IDM ember`, `B ackgroundF ilename` F ROM Profil esSettings  WHERE `Ba ckgroundFi lename` !=  '' && `Ba ckgroundFi lename` IS  NOT NULL   125   $result =  db_res( "S ELECT `IDM ember`, `B ackgroundF ilename` F ROM Profil esSettings  WHERE `Ba ckgroundFi lename` !=  '' && `Ba ckgroundFi lename` IS  NOT NULL
126           &&  $sqlMain  $sqlUser L IMIT $real _first_p,  $p_per_pag e" );   126           &&  $sqlMain  $sqlUser L IMIT $real _first_p,  $p_per_pag e" );
127     127  
128   $_page['he ader'] = " Profiles P ostModerat ion";   128   $_page['he ader'] = " Profiles P ostModerat ion";
129   $_page['he ader_text' ] = "Profi les that n eed to be  checked by  admin";   129   $_page['he ader_text' ] = "Profi les that n eed to be  checked by  admin";
130     130  
131   $_page['js '] = 1;   131   $_page['js '] = 1;
132     132  
133   TopCodeAdm in();   133   TopCodeAdm in();
134     134  
135   ContentBlo ckHead("Up loaded (an d not yet  approved)  background  images:") ;   135   ContentBlo ckHead("Up loaded (an d not yet  approved)  background  images:") ;
136     136  
137   ?>   137   ?>
138     138  
139   <center>   139   <center>
140   <?= ResNav igationRet ( 'Profile sUpper', 0  ); ?>   140   <?= ResNav igationRet ( 'Profile sUpper', 0  ); ?>
141   </center>   141   </center>
142     142  
143   <form name ="prf_form " method=" post" acti on="<? ech o $_SERVER ["REQUEST_ URI"]; ?>" >   143   <form name ="prf_form " method=" post" acti on="<? ech o $_SERVER ["REQUEST_ URI"]; ?>" >
144   <?   144   <?
145   //"   145   //"
146     146  
147       $ret =  '<div sty le="border : solid 0p x #000000; ">';   147       $ret =  '<div sty le="border : solid 0p x #000000; ">';
148     148  
149     149  
150       if( 0  < mysql_nu m_rows($re sult) )   150       if( 0  < mysql_nu m_rows($re sult) )
151       {   151       {
152           wh ile ( $arr  = mysql_f etch_array ( $result  ) )   152           wh ile ( $arr  = mysql_f etch_array ( $result  ) )
153           {   153           {
154     154  
155           $r et .= '<di v style="f loat:left; margin-rig ht:5px;mar gin-top:5p x;border:  solid 1px  #9b9a9a;ba ckground-c olor: #ede cec;">   155           $r et .= '<di v style="f loat:left; margin-rig ht:5px;mar gin-top:5p x;border:  solid 1px  #9b9a9a;ba ckground-c olor: #ede cec;">
156                    <div  style="po sition:rel ative; wid th:' . $ma x_photo_wi dth . 'px;  height:'  . $max_pho to_height  . 'px;">   156                    <div  style="po sition:rel ative; wid th:' . $ma x_photo_wi dth . 'px;  height:'  . $max_pho to_height  . 'px;">
157                    <div  style="po sition:abs olute; top :5px; left :5px;">   157                    <div  style="po sition:abs olute; top :5px; left :5px;">
158                    <inp ut type="c heckbox" i d="' . $ar r['IDMembe r'] . '" v alue="mem"  name="' .  $arr['IDM ember'] .  '">   158                    <inp ut type="c heckbox" i d="' . $ar r['IDMembe r'] . '" v alue="mem"  name="' .  $arr['IDM ember'] .  '">
159                    </di v>   159                    </di v>
160                    <lab el for="'  . $arr['ID Member'] .  '"><img s rc="' . $s ite['profi leBackgrou nd'] . $ar r['Backgro undFilenam e'] . '" t itle="'. $ arr['IDMem ber'] . '"  alt="back ground ima ge" width= "340" heig ht="340">< /label>   160                    <lab el for="'  . $arr['ID Member'] .  '"><img s rc="' . $s ite['profi leBackgrou nd'] . $ar r['Backgro undFilenam e'] . '" t itle="'. $ arr['IDMem ber'] . '"  alt="back ground ima ge" width= "340" heig ht="340">< /label>
161                    </di v>   161                    </di v>
162                <div sty le="positi on:relativ e; text-al ign:center ; backgrou nd-color:# FFFFFF; li ne-height: 20px; vert ical-align :middle;"> <a href="'  . $site[' url'] . 'p rofile.php ?ID=' . $a rr['IDMemb er'] . '"  target="_b lank">View  Profile</ a> |<a hre f="' . $si te['url']  . 'pedit.p hp?ID=' .  $arr['IDMe mber'] . ' " target=" _blank">Ed it Profile <a></div>   162                <div sty le="positi on:relativ e; text-al ign:center ; backgrou nd-color:# FFFFFF; li ne-height: 20px; vert ical-align :middle;"> <a href="'  . $site[' url'] . 'p rofile.php ?ID=' . $a rr['IDMemb er'] . '"  target="_b lank">View  Profile</ a> |<a hre f="' . $si te['url']  . 'pedit.p hp?ID=' .  $arr['IDMe mber'] . ' " target=" _blank">Ed it Profile <a></div>
163                </div>';   163                </div>';
164     164  
165           }   165           }
166       }   166       }
167       else   167       else
168       {   168       {
169           $r et .= '<di v style="t ext-align: center; li ne-height: 25px; vert ical-align :middle; b ackground- color:#c2d aeb; font- weight:bol d;">There  is nothing  to approv e </div>';   169           $r et .= '<di v style="t ext-align: center; li ne-height: 25px; vert ical-align :middle; b ackground- color:#c2d aeb; font- weight:bol d;">There  is nothing  to approv e </div>';
170       }   170       }
171       $ret . = '</div>' ;   171       $ret . = '</div>' ;
172     172  
173       echo $ ret;   173       echo $ ret;
174     174  
175       if ( $ p_num )   175       if ( $ p_num )
176       {   176       {
177   ?>   177   ?>
178   <div style ="clear:le ft;border:  solid 0px  #000000;" >   178   <div style ="clear:le ft;border:  solid 0px  #000000;" >
179   <table cla ss=text bo rder=0 wid th=590 ali gn=center>   179   <table cla ss=text bo rder=0 wid th=590 ali gn=center>
180   <tr>   180   <tr>
181       <td wi dth="65">& nbsp;<a hr ef="javasc ript: void (0);" oncl ick="setCh eckboxes(  'prf_form' , true );  return fal se;">Check  all</a>/< /td>   181       <td wi dth="65">& nbsp;<a hr ef="javasc ript: void (0);" oncl ick="setCh eckboxes(  'prf_form' , true );  return fal se;">Check  all</a>/< /td>
182       <td al ign="left"  width="70 "> <a href ="javascri pt: void(0 );" onclic k="setChec kboxes( 'p rf_form',  false ); r eturn fals e;">Unchec k all</a>& nbsp;</td>   182       <td al ign="left"  width="70 "> <a href ="javascri pt: void(0 );" onclic k="setChec kboxes( 'p rf_form',  false ); r eturn fals e;">Unchec k all</a>& nbsp;</td>
183       <td wi dth="100"> Selected i mages:</td >   183       <td wi dth="100"> Selected i mages:</td >
184       <td wi dth="55">< input clas s=text typ e=submit n ame="delet e" value=" Delete"></ td>   184       <td wi dth="55">< input clas s=text typ e=submit n ame="delet e" value=" Delete"></ td>
185       <? ech o "$sConf" ; ?>   185       <? ech o "$sConf" ; ?>
186       <td>&n bsp;</td>   186       <td>&n bsp;</td>
187   </tr>   187   </tr>
188   </table>   188   </table>
189   </div>   189   </div>
190   <?   190   <?
191       }   191       }
192   ?>   192   ?>
193     193  
194   </form>   194   </form>
195     195  
196   <center>   196   <center>
197   <?= ResNav igationRet ( 'Profile sLower', 0  ); ?>   197   <?= ResNav igationRet ( 'Profile sLower', 0  ); ?>
198   </center>   198   </center>
199     199  
200   <?   200   <?
201   ContentBlo ckFoot();   201   ContentBlo ckFoot();
202     202  
203   BottomCode ();   203   BottomCode ();
204   ?>   204   ?>