55. File Comparison Report

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

55.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\admin modules.php Wed Oct 17 08:48:24 2007 UTC
2 Dolphin-v.6.1.0\admin modules.php Sat Apr 19 12:05:02 2008 UTC

55.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 842
Changed 2 4
Inserted 0 0
Removed 0 0

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

55.4 Active regular expressions

No regular expressions were active.

55.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 . 'm odules.inc .php' );   25   require_on ce( BX_DIR ECTORY_PAT H_INC . 'm odules.inc .php' );
26   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );   26   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
27     27  
28   $ADMIN   =   member_aut h(   1  
);
  28   $ADMIN   =   member_aut h(   1 ,   true,   true   ); ;
29   $logged['a dmin'] = $ ADMIN;   29   $logged['a dmin'] = $ ADMIN;
30     30  
31   $_page['he ader'] = " Modules";   31   $_page['he ader'] = " Modules";
32   $_page['he ader_text' ] = "Modul es";   32   $_page['he ader_text' ] = "Modul es";
33     33  
34   TopCodeAdm in();   34   TopCodeAdm in();
35     35  
36   /* Interfa ce functio ns */   36   /* Interfa ce functio ns */
37     37  
38   function P rintModule sListBlock ()   38   function P rintModule sListBlock ()
39   {   39   {
40       $res =  db_res("S ELECT * FR OM `Module s` ORDER B Y `Type` A SC");   40       $res =  db_res("S ELECT * FR OM `Module s` ORDER B Y `Type` A SC");
41     41  
42       if (!  $res)   42       if (!  $res)
43           re turn;   43           re turn;
44   ?>   44   ?>
45       <table  cellspaci ng="1" cel lpadding=" 2" class=" small" wid th="100%">   45       <table  cellspaci ng="1" cel lpadding=" 2" class=" small" wid th="100%">
46   <?   46   <?
47     47  
48       if (!m ysql_num_r ows($res))   48       if (!m ysql_num_r ows($res))
49       {   49       {
50   ?>   50   ?>
51                <tr clas s="panel"> <td align= "center">  No modules  available  </td></tr >   51                <tr clas s="panel"> <td align= "center">  No modules  available  </td></tr >
52   <?   52   <?
53       }   53       }
54     54  
55       while  ($arr = my sql_fetch_ array($res ))   55       while  ($arr = my sql_fetch_ array($res ))
56       {   56       {
57   ?>   57   ?>
58                <form me thod="post " name="Mo dule<?=$ar r['ID']?>" >   58                <form me thod="post " name="Mo dule<?=$ar r['ID']?>" >
59                    <inp ut type="h idden" nam e="conf_id " value="< ?=$arr['ID ']?>">   59                    <inp ut type="h idden" nam e="conf_id " value="< ?=$arr['ID ']?>">
60                </form>   60                </form>
61                <tr clas s="panel">   61                <tr clas s="panel">
62                    <td  align="cen ter" width ="25%">   62                    <td  align="cen ter" width ="25%">
63                         <a href="j avascript:  void(0);"  onClick=" javascript : document .forms['Mo dule<?=$ar r['ID']?>' ].submit() ; return f alse;">Con figure</a>  | <a href ="modules. php?delete _id=<?=$ar r['ID']?>" > Delete < /a>   63                         <a href="j avascript:  void(0);"  onClick=" javascript : document .forms['Mo dule<?=$ar r['ID']?>' ].submit() ; return f alse;">Con figure</a>  | <a href ="modules. php?delete _id=<?=$ar r['ID']?>" > Delete < /a>
64                    </td >   64                    </td >
65                    <td  aling="lef t">&nbsp;< ?=$arr['Na me']?></td >   65                    <td  aling="lef t">&nbsp;< ?=$arr['Na me']?></td >
66                </tr>   66                </tr>
67   <?   67   <?
68       }   68       }
69   ?>   69   ?>
70       </tabl e>   70       </tabl e>
71   <?   71   <?
72   }   72   }
73     73  
74   function P rintCommon ModulesAct ionsBlock( )   74   function P rintCommon ModulesAct ionsBlock( )
75   {   75   {
76   ?>   76   ?>
77   <br />   77   <br />
78   <br />   78   <br />
79     79  
80   <table cel lspacing=" 2" cellpad ding="4" w idth="500"  align="ce nter" clas s="text">   80   <table cel lspacing=" 2" cellpad ding="4" w idth="500"  align="ce nter" clas s="text">
81       <tr cl ass="panel ">   81       <tr cl ass="panel ">
82           <t d align="l eft" width ="396" cla ss="small1 ">Refresh  all module s after se ttings wer e changed: </td>   82           <t d align="l eft" width ="396" cla ss="small1 ">Refresh  all module s after se ttings wer e changed: </td>
83           <t d align="c enter" wid th="100">   83           <t d align="c enter" wid th="100">
84                <form me thod="post " enctype= "multipart /form-data " action=" <? echo $_ SERVER['PH P_SELF'];  ?>" style= "margin: 0 px;">   84                <form me thod="post " enctype= "multipart /form-data " action=" <? echo $_ SERVER['PH P_SELF'];  ?>" style= "margin: 0 px;">
85                    <inp ut type="h idden" nam e="MODULES _REFRESH"  value="YES " />   85                    <inp ut type="h idden" nam e="MODULES _REFRESH"  value="YES " />
86                    <inp ut class=" text" type ="submit"  value="Ref resh" styl e="width:  80px;" />   86                    <inp ut class=" text" type ="submit"  value="Ref resh" styl e="width:  80px;" />
87                </form>   87                </form>
88           </ td>   88           </ td>
89       </tr>   89       </tr>
90       <tr cl ass="panel ">   90       <tr cl ass="panel ">
91           <t d align="l eft" width ="396" cla ss="small1 ">Compare  databases  (for phpBB  module on ly):</td>   91           <t d align="l eft" width ="396" cla ss="small1 ">Compare  databases  (for phpBB  module on ly):</td>
92           <t d align="c enter" wid th="100">   92           <t d align="c enter" wid th="100">
93                <form me thod="post " action=" <?=$_SERVE R['PHP_SEL F']?>" sty le="margin : 0px;">   93                <form me thod="post " action=" <?=$_SERVE R['PHP_SEL F']?>" sty le="margin : 0px;">
94                    <inp ut type="h idden" nam e="MODULES _COMPARE_D ATABASES"  value="YES " />   94                    <inp ut type="h idden" nam e="MODULES _COMPARE_D ATABASES"  value="YES " />
95                    <inp ut class=" text" type ="submit"  value="Com pare" styl e="width:  80px;" />   95                    <inp ut class=" text" type ="submit"  value="Com pare" styl e="width:  80px;" />
96                </form>   96                </form>
97           </ td>   97           </ td>
98       </tr>   98       </tr>
99       <tr cl ass="panel ">   99       <tr cl ass="panel ">
100           <t d colspan= "2" align= "left">   100           <t d colspan= "2" align= "left">
101                <form me thod="post " enctype= "multipart /form-data " action=" <? echo $_ SERVER['PH P_SELF'];  ?>" style= "margin: 0 px;">   101                <form me thod="post " enctype= "multipart /form-data " action=" <? echo $_ SERVER['PH P_SELF'];  ?>" style= "margin: 0 px;">
102                    <inp ut type="h idden" nam e="MODULE_ UPLOAD" va lue="YES"  />   102                    <inp ut type="h idden" nam e="MODULE_ UPLOAD" va lue="YES"  />
103                    <inp ut type="h idden" nam e="MAX_FIL E_SIZE" va lue="10485 76" />   103                    <inp ut type="h idden" nam e="MAX_FIL E_SIZE" va lue="10485 76" />
104                    <tab le cellpad ding="0" c ellspacing ="0" borde r="0" widt h="100%" c lass="text " bgcolor= "#FFFFFF">   104                    <tab le cellpad ding="0" c ellspacing ="0" borde r="0" widt h="100%" c lass="text " bgcolor= "#FFFFFF">
105                         <tr class= "panel">   105                         <tr class= "panel">
106                             <td al ign="left"  class="sm all1">Uplo ad new mod ule:</td>   106                             <td al ign="left"  class="sm all1">Uplo ad new mod ule:</td>
107                             <td al ign="right " style="p adding-lef t: 4px; pa dding-righ t: 10px;"> <input cla ss="no" ty pe="file"  name="file _module" / ></td>   107                             <td al ign="right " style="p adding-lef t: 4px; pa dding-righ t: 10px;"> <input cla ss="no" ty pe="file"  name="file _module" / ></td>
108                             <td al ign="cente r" width=" 100"><inpu t class=te xt type="s ubmit" val ue="Upload " style="w idth: 80px ;" /></td>   108                             <td al ign="cente r" width=" 100"><inpu t class=te xt type="s ubmit" val ue="Upload " style="w idth: 80px ;" /></td>
109                         </tr>   109                         </tr>
110                    </ta ble>   110                    </ta ble>
111                </form>   111                </form>
112           </ td>   112           </ td>
113       </tr>   113       </tr>
114   </table>   114   </table>
115   <br />   115   <br />
116   <?   116   <?
117   }   117   }
118     118  
119   function P rintModule ConfigBloc k()   119   function P rintModule ConfigBloc k()
120   {   120   {
121       $conf_ arr = db_a rr("SELECT  `Conf`, ` Name` FROM  Modules W HERE ID =  '{$_POST[' conf_id']} ' LIMIT 1; ");   121       $conf_ arr = db_a rr("SELECT  `Conf`, ` Name` FROM  Modules W HERE ID =  '{$_POST[' conf_id']} ' LIMIT 1; ");
122   ?>   122   ?>
123   <form meth od=post ac tion="<?=$ _SERVER['P HP_SELF']? >">   123   <form meth od=post ac tion="<?=$ _SERVER['P HP_SELF']? >">
124     124  
125       <table  cellspaci ng=1 cellp adding=1 c lass="text " width=10 0%>   125       <table  cellspaci ng=1 cellp adding=1 c lass="text " width=10 0%>
126           <t r>   126           <t r>
127                <td cols pan=2 clas s="text">& nbsp; Conf igure modu le: <b> <? =$conf_arr ['Name']?> </b> </td>   127                <td cols pan=2 clas s="text">& nbsp; Conf igure modu le: <b> <? =$conf_arr ['Name']?> </b> </td>
128           </ tr>   128           </ tr>
129     129  
130           <t r class="p anel">   130           <t r class="p anel">
131                <td><tex tarea name =text rows =30 cols=6 0><?=htmls pecialchar s($conf_ar r['Conf']) ?></textar ea> </td>   131                <td><tex tarea name =text rows =30 cols=6 0><?=htmls pecialchar s($conf_ar r['Conf']) ?></textar ea> </td>
132                <td vali gn="top" c lass="smal l">   132                <td vali gn="top" c lass="smal l">
133                    <div  class=err  style="pa dding: 5px ;" >   133                    <div  class=err  style="pa dding: 5px ;" >
134                         Edit text  carefully   134                         Edit text  carefully
135                         <br /><br  />   135                         <br /><br  />
136                         lines that  begin wit h "#" are  comments   136                         lines that  begin wit h "#" are  comments
137                    </di v>   137                    </di v>
138                </td>   138                </td>
139           </ tr>   139           </ tr>
140     140  
141           <t r class=pa nel>   141           <t r class=pa nel>
142                <td alig n=center c olspan=2>   142                <td alig n=center c olspan=2>
143                    <inp ut type=hi dden name= CONF_ID va lue="<?=(( int)$_POST ['conf_id' ])?>">   143                    <inp ut type=hi dden name= CONF_ID va lue="<?=(( int)$_POST ['conf_id' ])?>">
144                    <inp ut class=t ext type=s ubmit valu e='Update' >   144                    <inp ut class=t ext type=s ubmit valu e='Update' >
145                </td>   145                </td>
146           </ tr>   146           </ tr>
147     147  
148       </tabl e>   148       </tabl e>
149   </form>   149   </form>
150   <?   150   <?
151   }   151   }
152     152  
153   /* Modules  managemen t function s */   153   /* Modules  managemen t function s */
154     154  
155   function M oduleDelet e()   155   function M oduleDelet e()
156   {   156   {
157       global  $demo_mod e;   157       global  $demo_mod e;
158     158  
159       if ( $ demo_mode  ) return 0 ;   159       if ( $ demo_mode  ) return 0 ;
160     160  
161       $_GET[ 'delete_id '] = (int) $_GET['del ete_id'];   161       $_GET[ 'delete_id '] = (int) $_GET['del ete_id'];
162     162  
163       $res =  db_res( " DELETE FRO M Modules  WHERE ID={ $_GET['del ete_id']}"  );   163       $res =  db_res( " DELETE FRO M Modules  WHERE ID={ $_GET['del ete_id']}"  );
164     164  
165       return  $res;   165       return  $res;
166   }   166   }
167     167  
168   function M oduleUploa d()   168   function M oduleUploa d()
169   {   169   {
170       global  $result;   170       global  $result;
171       global  $dir;   171       global  $dir;
172     172  
173       $tmp_f ile = "{$d ir['tmp']} module.tmp ";   173       $tmp_f ile = "{$d ir['tmp']} module.tmp ";
174     174  
175       if ( m ove_upload ed_file( $ _FILES['fi le_module' ]['tmp_nam e'], $tmp_ file ) )   175       if ( m ove_upload ed_file( $ _FILES['fi le_module' ]['tmp_nam e'], $tmp_ file ) )
176       {   176       {
177     177  
178           if  ( !($f =  fopen ( $t mp_file, " r" )) )   178           if  ( !($f =  fopen ( $t mp_file, " r" )) )
179           {   179           {
180                $result  .= "<font  color=red> Could not  open file  with sql i nstruction s: $tmp_fi le </font> ";   180                $result  .= "<font  color=red> Could not  open file  with sql i nstruction s: $tmp_fi le </font> ";
181                unlink($ tmp_file);   181                unlink($ tmp_file);
182                return 0 ;   182                return 0 ;
183           }   183           }
184     184  
185           //  run mysql  inctructi ons   185           //  run mysql  inctructi ons
186           wh ile ( $s =  fgets ( $ f, 10240)  )   186           wh ile ( $s =  fgets ( $ f, 10240)  )
187           {   187           {
188                $s = tri m ($s);   188                $s = tri m ($s);
189                if ( $s[ 0] == '#'  ) continue ;   189                if ( $s[ 0] == '#'  ) continue ;
190                if ( !st rlen($s) )  continue;   190                if ( !st rlen($s) )  continue;
191     191  
192     192  
193                if ( $s[ strlen($s) -1] == ';'  )   193                if ( $s[ strlen($s) -1] == ';'  )
194                {   194                {
195                    $s_s ql .= $s;   195                    $s_s ql .= $s;
196                }   196                }
197                else   197                else
198                {   198                {
199                    $s_s ql .= $s;   199                    $s_s ql .= $s;
200                    cont inue;   200                    cont inue;
201                }   201                }
202     202  
203                $res = d b_res ( $s _sql, 0 );   203                $res = d b_res ( $s _sql, 0 );
204                if ( !$r es )   204                if ( !$r es )
205                {   205                {
206                    $res ult.="<b>E rror</b> < br /><pre> ".mysql_er ror()."</p re><hr>";   206                    $res ult.="<b>E rror</b> < br /><pre> ".mysql_er ror()."</p re><hr>";
207                }   207                }
208                $s_sql =  "";   208                $s_sql =  "";
209           }   209           }
210     210  
211           fc lose($f);   211           fc lose($f);
212     212  
213           un link($tmp_ file);   213           un link($tmp_ file);
214     214  
215           if  ( strlen( $result) )  return 0;   215           if  ( strlen( $result) )  return 0;
216           re turn 1;   216           re turn 1;
217       }   217       }
218       else   218       else
219           re turn 0;   219           re turn 0;
220   }   220   }
221     221  
222   function M oduleConfi gure()   222   function M oduleConfi gure()
223   {   223   {
224       global  $demo_mod e;   224       global  $demo_mod e;
225     225  
226       if ( $ demo_mode  ) return 0 ;   226       if ( $ demo_mode  ) return 0 ;
227     227  
228       $_POST ['CONF_ID' ] = (int)$ _POST['CON F_ID'];   228       $_POST ['CONF_ID' ] = (int)$ _POST['CON F_ID'];
229     229  
230       $res =  db_res( " UPDATE Mod ules SET ` Conf`='".  process_db _input($_P OST['text' ], 1). "'  WHERE ID =  {$_POST[' CONF_ID']} " );   230       $res =  db_res( " UPDATE Mod ules SET ` Conf`='".  process_db _input($_P OST['text' ], 1). "'  WHERE ID =  {$_POST[' CONF_ID']} " );
231     231  
232       return  $res;   232       return  $res;
233   }   233   }
234     234  
235   /**   235   /**
236    * Compare s profile  tables of  Dolphin an d phpBB. S hows resul t of compa rison   236    * Compare s profile  tables of  Dolphin an d phpBB. S hows resul t of compa rison
237    *   237    *
238    * @return  int   238    * @return  int
239    *      0  - Tables c ompared su ccessfully , No diffe rence foun d.   239    *      0  - Tables c ompared su ccessfully , No diffe rence foun d.
240    *      1  - Tables c ompared su ccessfully , there ha ve been fo und profil es that ar e not in p hpBB users  table.   240    *      1  - Tables c ompared su ccessfully , there ha ve been fo und profil es that ar e not in p hpBB users  table.
241    *      <o ther> - An  error occ ured while  comparing .   241    *      <o ther> - An  error occ ured while  comparing .
242    */   242    */
243   function M oduleCompa reDatabase s()   243   function M oduleCompa reDatabase s()
244   {   244   {
245       functi on debugPr intProfile Info($ID,  $nickname,  $email, $ registered Email, $st atus)   245       functi on debugPr intProfile Info($ID,  $nickname,  $email, $ registered Email, $st atus)
246       {   246       {
247           gl obal $bott om_result;   247           gl obal $bott om_result;
248           gl obal $site ;   248           gl obal $site ;
249           st atic $Colo redRow = f alse;   249           st atic $Colo redRow = f alse;
250     250  
251           $C oloredRow  = !$Colore dRow;   251           $C oloredRow  = !$Colore dRow;
252     252  
253           $H TMLcode =  "<tr bgcol or=\"".(($ ColoredRow ) ? '#EEEE EE' : '#FF FFFF')."\"  height=\" 20\">   253           $H TMLcode =  "<tr bgcol or=\"".(($ ColoredRow ) ? '#EEEE EE' : '#FF FFFF')."\"  height=\" 20\">
254                             <td>   254                             <td>
255                                  <a   href=\"{$s ite['url'] }p rofile_ edit.php?I D=".addsla shes($ID). "\"   target=\"_ blank\">   [{$ID}]   </a>   255                                  <a   href=\"{$s ite['url'] }p
edit.php?I D=".addsla shes($ID). "\"   target=\"_ blank\">   [{$ID}]   </a>
256                             </td>   256                             </td>
257                             <td>   257                             <td>
258                                 [" .addslashe s(htmlspec ialchars($ nickname)) ."]   258                                 [" .addslashe s(htmlspec ialchars($ nickname)) ."]
259                             </td>   259                             </td>
260                             <td>   260                             <td>
261                                 [" .addslashe s(htmlspec ialchars($ email))."]   261                                 [" .addslashe s(htmlspec ialchars($ email))."]
262                             </td>   262                             </td>
263                             <td>   263                             <td>
264                                 [" .addslashe s(htmlspec ialchars($ registered Email))."]   264                                 [" .addslashe s(htmlspec ialchars($ registered Email))."]
265                             </td>   265                             </td>
266                             <td>   266                             <td>
267                                 ". addslashes (htmlspeci alchars($s tatus))."   267                                 ". addslashes (htmlspeci alchars($s tatus))."
268                             </td>   268                             </td>
269                         </tr>";   269                         </tr>";
270           $b ottom_resu lt .= $HTM Lcode;   270           $b ottom_resu lt .= $HTM Lcode;
271       }   271       }
272     272  
273       global  $mods;   273       global  $mods;
274       global  $bottom_r esult;   274       global  $bottom_r esult;
275       global  $site;   275       global  $site;
276     276  
277       $botto m_result . = '<table>   277       $botto m_result . = '<table>
278           <t r>   278           <t r>
279                <td alig n="center"  colspan=" 5">List of  profiles  not includ ed into mo dule datab ase:</td>   279                <td alig n="center"  colspan=" 5">List of  profiles  not includ ed into mo dule datab ase:</td>
280           </ tr>   280           </ tr>
281           <t r style="f ont-weight :bold">   281           <t r style="f ont-weight :bold">
282                <td>ID</ td>   282                <td>ID</ td>
283                <td>Pass word</td>   283                <td>Pass word</td>
284                <td>Emai l</td>   284                <td>Emai l</td>
285                <td>Emai l of nickn ame owner< /td>   285                <td>Emai l of nickn ame owner< /td>
286                <td>Stat us</td>   286                <td>Stat us</td>
287           </ tr>';   287           </ tr>';
288     288  
289       $mysql Link = mys ql_pconnec t($mods['p hpbb']['Da tabase'][' Host'],   289       $mysql Link = mys ql_pconnec t($mods['p hpbb']['Da tabase'][' Host'],
290                                 $m ods['phpbb ']['Databa se']['User name'],   290                                 $m ods['phpbb ']['Databa se']['User name'],
291                                 $m ods['phpbb ']['Databa se']['Pass word']);   291                                 $m ods['phpbb ']['Databa se']['Pass word']);
292     292  
293       if (!  $mysqlLink )   293       if (!  $mysqlLink )
294           mo dules_err( "ModuleCom pareDataba ses error: \n mysql_p connect\n\ n".mysql_e rror($mysq lLink));   294           mo dules_err( "ModuleCom pareDataba ses error: \n mysql_p connect\n\ n".mysql_e rror($mysq lLink));
295     295  
296       mysql_ select_db( $mods['php bb']['Data base']['Na me'], $mys qlLink) or   296       mysql_ select_db( $mods['php bb']['Data base']['Na me'], $mys qlLink) or
297           mo dules_err( "ModuleCom pareDataba ses error: \n mysql_s elect_db({ $mods['php bb']['Data base']['Na me']}\n\n) ".mysql_er ror($mysql Link));   297           mo dules_err( "ModuleCom pareDataba ses error: \n mysql_s elect_db({ $mods['php bb']['Data base']['Na me']}\n\n) ".mysql_er ror($mysql Link));
298     298  
299       $query GetAllUser s = "SELEC T `usernam e`,   299       $query GetAllUser s = "SELEC T `usernam e`,
300                                      `user_em ail`   300                                      `user_em ail`
301                              FROM  {$mods['ph pbb']['Dat abase']['T ablePrefix ']}users";   301                              FROM  {$mods['ph pbb']['Dat abase']['T ablePrefix ']}users";
302       $dbres ult = mysq l_query($q ueryGetAll Users, $my sqlLink) o r modules_ err("Modul eCompareDa tabases er ror: mysql _query({$q ueryGetAll Users})\n\ n".mysql_e rror($mysq lLink));   302       $dbres ult = mysq l_query($q ueryGetAll Users, $my sqlLink) o r modules_ err("Modul eCompareDa tabases er ror: mysql _query({$q ueryGetAll Users})\n\ n".mysql_e rror($mysq lLink));
303       if (!  $dbresult)   303       if (!  $dbresult)
304           mo dules_err( "ModuleCom pareDataba ses() erro r:\n empty  result on  query {$q ueryGetAll Users} \n\ n".mysql_e rror($mysq lLink));   304           mo dules_err( "ModuleCom pareDataba ses() erro r:\n empty  result on  query {$q ueryGetAll Users} \n\ n".mysql_e rror($mysq lLink));
305     305  
306       $phpBB Users = ar ray();   306       $phpBB Users = ar ray();
307       while  ($row = my sql_fetch_ assoc($dbr esult))   307       while  ($row = my sql_fetch_ assoc($dbr esult))
308       {   308       {
309           $p hpBBUsers[ strtolower ($row['use rname'])]  = $row['us er_email'] ;   309           $p hpBBUsers[ strtolower ($row['use rname'])]  = $row['us er_email'] ;
310       }   310       }
311     311  
312       $dbres ult = db_r es("SELECT  `Status`,  `ID`, `Ni ckName`, ` Email` FRO M `Profile s`");   312       $dbres ult = db_r es("SELECT  `Status`,  `ID`, `Ni ckName`, ` Email` FRO M `Profile s`");
313       $misse dProfiles  = array();   313       $misse dProfiles  = array();
314       while  ($profileI nfo = mysq l_fetch_as soc($dbres ult))   314       while  ($profileI nfo = mysq l_fetch_as soc($dbres ult))
315       {   315       {
316           if  (! array_ key_exists (strtolowe r($profile Info['Nick Name']), $ phpBBUsers ) ||   316           if  (! array_ key_exists (strtolowe r($profile Info['Nick Name']), $ phpBBUsers ) ||
317                $profile Info['Emai l'] != $ph pBBUsers[s trtolower( $profileIn fo['NickNa me'])])   317                $profile Info['Emai l'] != $ph pBBUsers[s trtolower( $profileIn fo['NickNa me'])])
318           {   318           {
319                $profile Info['Regi steredEMai l'] = $php BBUsers[st rtolower($ profileInf o['NickNam e'])];   319                $profile Info['Regi steredEMai l'] = $php BBUsers[st rtolower($ profileInf o['NickNam e'])];
320                $missedP rofiles[]  = $profile Info;   320                $missedP rofiles[]  = $profile Info;
321           }   321           }
322       }   322       }
323       sort($ missedProf iles);   323       sort($ missedProf iles);
324     324  
325       foreac h ($missed Profiles a s $profile )   325       foreac h ($missed Profiles a s $profile )
326       {   326       {
327           de bugPrintPr ofileInfo( $profile[' ID'], $pro file['Nick Name'], $p rofile['Em ail'], $pr ofile['Reg isteredEMa il'], $pro file['Stat us']);   327           de bugPrintPr ofileInfo( $profile[' ID'], $pro file['Nick Name'], $p rofile['Em ail'], $pr ofile['Reg isteredEMa il'], $pro file['Stat us']);
328       }   328       }
329     329  
330       $botto m_result . = "</table ><br />";   330       $botto m_result . = "</table ><br />";
331     331  
332       return  (count($m issedProfi les) > 0)  ? 1 : 0;   332       return  (count($m issedProfi les) > 0)  ? 1 : 0;
333   }   333   }
334     334  
335   /* Output  */   335   /* Output  */
336     336  
337   ContentBlo ckHead("") ;   337   ContentBlo ckHead("") ;
338     338  
339   $result =  '';   339   $result =  '';
340     340  
341   if ( $_POS T['MODULE_ UPLOAD'] = = "YES" &&  $_FILES[' file_modul e']['name' ] )   341   if ( $_POS T['MODULE_ UPLOAD'] = = "YES" &&  $_FILES[' file_modul e']['name' ] )
342   {   342   {
343       if ( M oduleUploa d() )   343       if ( M oduleUploa d() )
344           $r esult .= " Module was  uploaded" ;   344           $r esult .= " Module was  uploaded" ;
345       else   345       else
346           $r esult .= " Module upl oad failed ";   346           $r esult .= " Module upl oad failed ";
347   }   347   }
348     348  
349   if ( $_POS T['MODULES _REFRESH']  == "YES"  )   349   if ( $_POS T['MODULES _REFRESH']  == "YES"  )
350   {   350   {
351       module sRefresh() ;   351       module sRefresh() ;
352       $resul t .= "All  profiles w ere update d.";   352       $resul t .= "All  profiles w ere update d.";
353   }   353   }
354     354  
355   if ( (int) $_POST['CO NF_ID'] !=  0 && $_PO ST['text']  )   355   if ( (int) $_POST['CO NF_ID'] !=  0 && $_PO ST['text']  )
356   {   356   {
357       if ( M oduleConfi gure() )   357       if ( M oduleConfi gure() )
358           $r esult .= " Module was  configure d";   358           $r esult .= " Module was  configure d";
359       else   359       else
360           $r esult .= " Module con figuration  failed";   360           $r esult .= " Module con figuration  failed";
361   }   361   }
362     362  
363   if ( ((int )($_GET['d elete_id'] )) != 0 )   363   if ( ((int )($_GET['d elete_id'] )) != 0 )
364   {   364   {
365       if ( M oduleDelet e() )   365       if ( M oduleDelet e() )
366           $r esult .= " Module was  deleted";   366           $r esult .= " Module was  deleted";
367       else   367       else
368           $r esult .= " Module del etion fail ed";   368           $r esult .= " Module del etion fail ed";
369   }   369   }
370     370  
371   if (strlen ($result))   371   if (strlen ($result))
372   {   372   {
373   ?>   373   ?>
374       <cente r>   374       <cente r>
375           <d iv class=" err"><?= $ result ?>< /div>   375           <d iv class=" err"><?= $ result ?>< /div>
376       </cent er>   376       </cent er>
377       <br />   377       <br />
378   <?   378   <?
379   }   379   }
380     380  
381   PrintModul esListBloc k();   381   PrintModul esListBloc k();
382     382  
383   if (((int) $_POST['co nf_id']) ! = 0)   383   if (((int) $_POST['co nf_id']) ! = 0)
384   {   384   {
385       PrintM oduleConfi gBlock();   385       PrintM oduleConfi gBlock();
386   }   386   }
387   else   387   else
388   {   388   {
389       PrintC ommonModul esActionsB lock();   389       PrintC ommonModul esActionsB lock();
390   }   390   }
391     391  
392   $bottom_re sult = '';   392   $bottom_re sult = '';
393     393  
394   if ($_POST ['MODULES_ COMPARE_DA TABASES']  == "YES")   394   if ($_POST ['MODULES_ COMPARE_DA TABASES']  == "YES")
395   {   395   {
396       switch  (ModuleCo mpareDatab ases())   396       switch  (ModuleCo mpareDatab ases())
397       {   397       {
398           ca se 0:   398           ca se 0:
399                $bottom_ result .=  'Comparing  completed  successfu lly. No di fference f ound.';   399                $bottom_ result .=  'Comparing  completed  successfu lly. No di fference f ound.';
400                break;   400                break;
401           ca se 1:   401           ca se 1:
402                $bottom_ result .=  'Compariso n complete d. There h ave been f ound profi les that a re not in  phpBB user s table.';   402                $bottom_ result .=  'Compariso n complete d. There h ave been f ound profi les that a re not in  phpBB user s table.';
403                break;   403                break;
404           de fault:   404           de fault:
405                $bottom_ result .=  'An error  was occure d while co mparing.';   405                $bottom_ result .=  'An error  was occure d while co mparing.';
406       };   406       };
407   }   407   }
408     408  
409   ContentBlo ckFoot();   409   ContentBlo ckFoot();
410     410  
411   if (strlen ($bottom_r esult))   411   if (strlen ($bottom_r esult))
412   {   412   {
413   ?>   413   ?>
414       <cente r>   414       <cente r>
415           <d iv class=" err"><?= $ bottom_res ult ?></di v>   415           <d iv class=" err"><?= $ bottom_res ult ?></di v>
416       </cent er>   416       </cent er>
417       <br />   417       <br />
418   <?   418   <?
419   }   419   }
420     420  
421   BottomCode ();   421   BottomCode ();
422     422  
423   ?>   423   ?>