791. File Comparison Report

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

791.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 join_aff.php Mon Jan 28 09:41:44 2008 UTC
2 Dolphin-v.6.1.0 join_aff.php Thu Mar 27 04:18:32 2008 UTC

791.2 Comparison summary

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

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

791.4 Active regular expressions

No regular expressions were active.

791.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( 'inc/h eader.inc. php' );   21   require_on ce( 'inc/h eader.inc. 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 . 'p rofile_dis p.inc.php'  );    
25     24  
26   // ------- -------- p age variab les and lo gin   25   // ------- -------- p age variab les and lo gin
27     26  
28   if (getPar am("enable _aff") !=  'on')   27   if (getPar am("enable _aff") !=  'on')
29   {   28   {
30       $sCode  = MsgBox(  _t( '_aff iliate_sys tem_was_di sabled' )  );   29       $sCode  = MsgBox(  _t( '_aff iliate_sys tem_was_di sabled' )  );
31       $_page ['name_ind ex'] = 0;   30       $_page ['name_ind ex'] = 0;
32       $_page _cont[0][' page_main_ code'] = $ sCode;   31       $_page _cont[0][' page_main_ code'] = $ sCode;
33       PageCo de();   32       PageCo de();
34       exit() ;   33       exit() ;
35   }   34   }
36     35  
37   $_page['na me_index']     = 30;   36   $_page['na me_index']     = 30;
38   $_page['cs s_name']       = 'joi n_aff.css' ;   37   $_page['cs s_name']       = 'joi n_aff.css' ;
39     38  
40   $logged['m ember'] =  member_aut h(0, false );   39   $logged['m ember'] =  member_aut h(0, false );
41     40  
42   $_page['he ader'] = _ t( "_JOIN_ AFF_H" );   41   $_page['he ader'] = _ t( "_JOIN_ AFF_H" );
43   $_page['he ader_text' ] = _t( "_ JOIN_AFF_H " );   42   $_page['he ader_text' ] = _t( "_ JOIN_AFF_H " );
44     43  
45   // ------- -------- p age compon ents   44   // ------- -------- p age compon ents
46     45  
47   $_ni = $_p age['name_ index'];   46   $_ni = $_p age['name_ index'];
48   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;   47   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;
49     48  
50   // ------- -------- [ END] page  components   49   // ------- -------- [ END] page  components
51     50  
52   PageCode() ;   51   PageCode() ;
53     52  
54   // ------- -------- p age compon ents funct ions   53   // ------- -------- p age compon ents funct ions
55     54  
56   /**   55   /**
57    * page co de functio n   56    * page co de functio n
58    */   57    */
59   function P ageCompPag eMainCode( )   58   function P ageCompPag eMainCode( )
60   {   59   {
61     60  
62       global  $site;   61       global  $site;
63     62  
64       ob_sta rt();    63       ob_sta rt(); 
65     64  
66       $min_n ick   = 2;   65       $min_n ick   = 2;
67       $max_n ick   = 10 ;   66       $max_n ick   = 10 ;
68       $min_p asswd = 4;   67       $min_p asswd = 4;
69       $max_p asswd = 8;   68       $max_p asswd = 8;
70     69  
71       $page  = $_POST[p age];   70       $page  = $_POST[p age];
72     71  
73       $Name  = $_POST[N ame];   72       $Name  = $_POST[N ame];
74       $Email  = $_POST[ Email];   73       $Email  = $_POST[ Email];
75       $Email 2 = $_POST [Email2];   74       $Email 2 = $_POST [Email2];
76       $Pwd1  = $_POST[P assword1];   75       $Pwd1  = $_POST[P assword1];
77       $Pwd2  = $_POST[P assword2];   76       $Pwd2  = $_POST[P assword2];
78     77  
79   switch ( $ page )   78   switch ( $ page )
80   {   79   {
81       case 2 :   80       case 2 :
82       if (!i sset($_POS T['securit yImageValu e']) || !i sset($_COO KIE['strSe c']) || md 5($_POST[' securityIm ageValue'] ) != $_COO KIE['strSe c'])   81       if (!i sset($_POS T['securit yImageValu e']) || !i sset($_COO KIE['strSe c']) || md 5($_POST[' securityIm ageValue'] ) != $_COO KIE['strSe c'])
83       {   82       {
84           $a dd_on .= r eport_err  ( _t("_SIM G_ERR") );   83           $a dd_on .= r eport_err  ( _t("_SIM G_ERR") );
85           $p age = 1;   84           $p age = 1;
86     85  
87       }   86       }
88       if ( s trlen($Nam e) > 10 ||  strlen($N ame) < 2 )   87       if ( s trlen($Nam e) > 10 ||  strlen($N ame) < 2 )
89       {   88       {
90           $a dd_on .= r eport_err(  _t("_NICK _LEAST2",  $min_nick,  $max_nick ) );   89           $a dd_on .= r eport_err(  _t("_NICK _LEAST2",  $min_nick,  $max_nick ) );
91           $p age = 1;   90           $p age = 1;
92       }   91       }
93           if  ( !strcmp ($Email,$E mail2) &&  (!eregi("^ [_\.0-9a-z -]+@([0-9a -z][0-9a-z -]+\.)+[a- z]{2,4}$",  $Email) | | db_arr(" SELECT ID  FROM aff W HERE UPPER (email) =  UPPER('$Em ail')")) )   92           if  ( !strcmp ($Email,$E mail2) &&  (!eregi("^ [_\.0-9a-z -]+@([0-9a -z][0-9a-z -]+\.)+[a- z]{2,4}$",  $Email) | | db_arr(" SELECT ID  FROM aff W HERE UPPER (email) =  UPPER('$Em ail')")) )
94           {   93           {
95                $add_on  .= report_ err( _t("_ EMAIL_INVA LID_AFF")  );   94                $add_on  .= report_ err( _t("_ EMAIL_INVA LID_AFF")  );
96                $page =  1;   95                $page =  1;
97           }   96           }
98           if  ( !(strle n($Pwd1) > = 4 && str len($Pwd1)  <= 10 &&  !strcmp($P wd1,$Pwd2) ) )   97           if  ( !(strle n($Pwd1) > = 4 && str len($Pwd1)  <= 10 &&  !strcmp($P wd1,$Pwd2) ) )
99           {   98           {
100                $add_on  .= report_ err( _t("_ PWD_INVALI D2", $min_ passwd, $m ax_passwd)  );   99                $add_on  .= report_ err( _t("_ PWD_INVALI D2", $min_ passwd, $m ax_passwd)  );
101                $page =  1;   100                $page =  1;
102           }   101           }
103     102  
104     103  
105       break;   104       break;
106     105  
107   }   106   }
108     107  
109   switch( $p age )   108   switch( $p age )
110   {   109   {
111       case 2 :   110       case 2 :
112       $page_ text = _t(  "_JOIN_AF F2", $site ['url_aff' ], $site[' title'] );   111       $page_ text = _t(  "_JOIN_AF F2", $site ['url_aff' ], $site[' title'] );
113       break;   112       break;
114     113  
115       defaul t:   114       defaul t:
116       $page_ text = _t(  "_JOIN1_A FF" ).$add _on;   115       $page_ text = _t(  "_JOIN1_A FF" ).$add _on;
117       break;   116       break;
118   }   117   }
119     118  
120   switch ( $ page )   119   switch ( $ page )
121   {   120   {
122   case 2:   121   case 2:
123       // new  profile c reation   122       // new  profile c reation
124     123  
125       $cl_va lues = "IN SERT INTO  aff SET ";   124       $cl_va lues = "IN SERT INTO  aff SET ";
126     125  
127       $seed  = rand();   126       $seed  = rand();
128       $cl_va lues .= "   `seed`      = ".$see d;   127       $cl_va lues .= "   `seed`      = ".$see d;
129       $cl_va lues .= ",  `RegDate`   = NOW()" ;   128       $cl_va lues .= ",  `RegDate`   = NOW()" ;
130       $cl_va lues .= ",  `Percent`   = 10 ";   129       $cl_va lues .= ",  `Percent`   = 10 ";
131       $cl_va lues .= ",  `Status`    = 'activ e' ";   130       $cl_va lues .= ",  `Status`    = 'activ e' ";
132     131  
133       $cl_va lues .= ",  `Name`      = '$Name ' ";   132       $cl_va lues .= ",  `Name`      = '$Name ' ";
134       $cl_va lues .= ",  `email`     = '$Emai l' ";   133       $cl_va lues .= ",  `email`     = '$Emai l' ";
135       $cl_va lues .= ",  `Password ` = '" . m d5( $Pwd1  ) . "' ";   134       $cl_va lues .= ",  `Password ` = '" . m d5( $Pwd1  ) . "' ";
136     135  
137       $creat e_result =  db_res( $ cl_values  );   136       $creat e_result =  db_res( $ cl_values  );
138     137  
139       if ($c reate_resu lt)   138       if ($c reate_resu lt)
140       {   139       {
141           $a rr = db_ar r("SELECT  ID FROM af f WHERE `s eed` = $se ed");   140           $a rr = db_ar r("SELECT  ID FROM af f WHERE `s eed` = $se ed");
142           if  ( $arr )   141           if  ( $arr )
143                db_res(" UPDATE aff  SET `seed ` = 0 WHER E ID = $ar r[ID]");   142                db_res(" UPDATE aff  SET `seed ` = 0 WHER E ID = $ar r[ID]");
144           $I D_New_Aff  = $arr[ID] ;   143           $I D_New_Aff  = $arr[ID] ;
145       }   144       }
146     145  
147       echo " <table wid th=\"100%\ " cellpadd ing=4 cell spacing=4> <td align= center cla ss=text2>" ;   146       echo " <table wid th=\"100%\ " cellpadd ing=4 cell spacing=4> <td align= center cla ss=text2>" ;
148       echo " <div align =justify>$ page_text< /div>";   147       echo " <div align =justify>$ page_text< /div>";
149       echo " <div align =justify>" ._t("_JOIN _AFF_ID",$ ID_New_Aff )."</div>" ;   148       echo " <div align =justify>" ._t("_JOIN _AFF_ID",$ ID_New_Aff )."</div>" ;
150       break;   149       break;
151     150  
152   default:   151   default:
153     152  
154       echo " <table wid th=\"100%\ " cellpadd ing=4 cell spacing=4> <td align= center cla ss=text2>" ;   153       echo " <table wid th=\"100%\ " cellpadd ing=4 cell spacing=4> <td align= center cla ss=text2>" ;
155   ?>   154   ?>
156   <form meth od=post ac tion="<? e cho $_SERV ER[PHP_SEL F]; ?>">   155   <form meth od=post ac tion="<? e cho $_SERV ER[PHP_SEL F]; ?>">
157   <input typ e=hidden n ame=page v alue=2>   156   <input typ e=hidden n ame=page v alue=2>
158   <div align =justify>< ?   echo $ page_text;  ?></div>   157   <div align =justify>< ?   echo $ page_text;  ?></div>
159   <br /><br  />   158   <br /><br  />
160   <table wid th=100% ce llspacing= 1 cellpadd ing=3 clas s=text>   159   <table wid th=100% ce llspacing= 1 cellpadd ing=3 clas s=text>
161     160  
162   <tr class= table>   161   <tr class= table>
163       <td wi dth=30%><b ><?php ech o _t("_Nam e"); ?></b ></td>   162       <td wi dth=30%><b ><?php ech o _t("_Nam e"); ?></b ></td>
164       <td wi dth=40%><i nput class =no type=t ext size=4 0 name="Na me" value= "<?php ech o $Name; ? >"></td>   163       <td wi dth=40%><i nput class =no type=t ext size=4 0 name="Na me" value= "<?php ech o $Name; ? >"></td>
165       <td wi dth=30%><? php echo _ t("_chars_ to_chars", $min_nick, $max_nick) ; ?></td>   164       <td wi dth=30%><? php echo _ t("_chars_ to_chars", $min_nick, $max_nick) ; ?></td>
166   </tr>   165   </tr>
167     166  
168   <tr><td><b r /></td>< /tr>   167   <tr><td><b r /></td>< /tr>
169     168  
170   <tr class= table>   169   <tr class= table>
171       <td wi dth=30%><b ><?php ech o _t("_E-m ail"); ?>< /b></td>   170       <td wi dth=30%><b ><?php ech o _t("_E-m ail"); ?>< /b></td>
172       <td wi dth=40%><i nput class =no type=t ext size=4 0 name="Em ail" value ="<?php ec ho $Email;  ?>"></td>   171       <td wi dth=40%><i nput class =no type=t ext size=4 0 name="Em ail" value ="<?php ec ho $Email;  ?>"></td>
173       <td wi dth=30%><? php echo _ t("_Must b e valid");  ?></td>   172       <td wi dth=30%><? php echo _ t("_Must b e valid");  ?></td>
174   </tr>   173   </tr>
175     174  
176   <tr class= table>   175   <tr class= table>
177       <td wi dth=30%><b ><?php ech o _t("_Con firm E-mai l"); ?></b ></td>   176       <td wi dth=30%><b ><?php ech o _t("_Con firm E-mai l"); ?></b ></td>
178       <td wi dth=40%><i nput class =no type=t ext size=4 0 name="Em ail2"></td >   177       <td wi dth=40%><i nput class =no type=t ext size=4 0 name="Em ail2"></td >
179       <td wi dth=30%><? php echo _ t("_Confir m your e-m ail"); ?>< /td>   178       <td wi dth=30%><? php echo _ t("_Confir m your e-m ail"); ?>< /td>
180   </tr>   179   </tr>
181     180  
182   <tr><td><b r /></td>< /tr>   181   <tr><td><b r /></td>< /tr>
183     182  
184   <tr class= table>   183   <tr class= table>
185       <td wi dth=30%><b ><?php ech o _t("_Pas sword"); ? ></b></td>   184       <td wi dth=30%><b ><?php ech o _t("_Pas sword"); ? ></b></td>
186       <td wi dth=40%><i nput class =no type=p assword si ze=40 name ="Password 1" value=" "></td>   185       <td wi dth=40%><i nput class =no type=p assword si ze=40 name ="Password 1" value=" "></td>
187       <td wi dth=30%></ td>   186       <td wi dth=30%></ td>
188   </tr>   187   </tr>
189     188  
190   <tr class= table>   189   <tr class= table>
191       <td wi dth=30%><b ><?php ech o _t("_Con firm passw ord"); ?>< /b></td>   190       <td wi dth=30%><b ><?php ech o _t("_Con firm passw ord"); ?>< /b></td>
192       <td wi dth=40%><i nput class =no type=p assword si ze=40 name ="Password 2" value=" "></td>   191       <td wi dth=40%><i nput class =no type=p assword si ze=40 name ="Password 2" value=" "></td>
193       <td wi dth=30%><? php echo _ t("_Confir m your pas sword"); ? ></td>   192       <td wi dth=30%><? php echo _ t("_Confir m your pas sword"); ? ></td>
194   </tr>   193   </tr>
195     194  
196     195  
197   </table>   196   </table>
198   <br /><cen ter>   197   <br /><cen ter>
199   <img alt=" Security I mage" src= "simg/simg .php" /><b r /><br />   198   <img alt=" Security I mage" src= "simg/simg .php" /><b r /><br />
200   <? echo _t ( "_Enter  what you s ee:" ); ?> <input nam e="securit yImageValu e" type="t ext" size= "15" ><br  /><br />   199   <? echo _t ( "_Enter  what you s ee:" ); ?> <input nam e="securit yImageValu e" type="t ext" size= "15" ><br  /><br />
201   <input cla ss=no type ="submit"  value="<?  echo _t( " _Submit" ) ; ?>" clas s="text">< /center></ form>   200   <input cla ss=no type ="submit"  value="<?  echo _t( " _Submit" ) ; ?>" clas s="text">< /center></ form>
202   <?   201   <?
203       break;   202       break;
204   }   203   }
205   echo "</td ></table>" ;   204   echo "</td ></table>" ;
206     205  
207        $ ret   =   ob_get_cle an();   206       
ret urn   ob_get_cle an();
208      
209       return  $ret;    
210   }   207   }
211     208  
212     209  
213   /**   210   /**
214    * Print e rror messa ge   211    * Print e rror messa ge
215    */   212    */
216   function r eport_err(  $str )   213   function r eport_err(  $str )
217   {   214   {
218       return  "<font co lor=\"#880 000\"><b>"  . _t( "_E rror" ) .  ":</b> $st r</font><b r />";   215       return  "<font co lor=\"#880 000\"><b>"  . _t( "_E rror" ) .  ":</b> $st r</font><b r />";
219   }   216   }
220     217  
221     218  
222   ?>   219   ?>