805. File Comparison Report

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

805.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 profile_activate.php Wed Oct 17 08:48:28 2007 UTC
2 Dolphin-v.6.1.0 profile_activate.php Thu Mar 27 04:18:34 2008 UTC

805.2 Comparison summary

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

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

805.4 Active regular expressions

No regular expressions were active.

805.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 . 'u tils.inc.p hp' );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
25     25  
26     26  
27   // ------- -------- p age variab les   27   // ------- -------- p age variab les
28     28  
29   $_page['na me_index']     = 40;   29   $_page['na me_index']     = 40;
30   $_page['cs s_name']       = 'pro file_activ ate.css';   30   $_page['cs s_name']       = 'pro file_activ ate.css';
31     31  
32   $ID     =  (int)$_GET ['ConfID'] ;   32   $ID     =  (int)$_GET ['ConfID'] ;
33   $ConfCode    = $_GET[ 'ConfCode' ];   33   $ConfCode    = $_GET[ 'ConfCode' ];
34     34  
35   if ( !$ID  && !$ConfC ode )   35   if ( !$ID  && !$ConfC ode )
36       exit;   36       exit;
37     37  
38   $logged['m ember']    = member_a uth( 0, fa lse );   38   $logged['m ember']    = member_a uth( 0, fa lse );
39     39  
40   $_page['he ader'] = _ t("_Email  confirmati on");   40   $_page['he ader'] = _ t("_Email  confirmati on");
41   $_page['he ader_text' ] = _t("_E mail confi rmation Ex ");   41   $_page['he ader_text' ] = _t("_E mail confi rmation Ex ");
42     42  
43     43  
44   // ------- -------- p age compon ents   44   // ------- -------- p age compon ents
45     45  
46   $_ni = $_p age['name_ index'];   46   $_ni = $_p age['name_ index'];
47   $_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() ;
48     48  
49   // ------- -------- [ END] page  components   49   // ------- -------- [ END] page  components
50     50  
51   PageCode() ;   51   PageCode() ;
52     52  
53   // ------- -------- p age compon ents funct ions   53   // ------- -------- p age compon ents funct ions
54     54  
55   /**   55   /**
56    * page co de functio n   56    * page co de functio n
57    */   57    */
58   function P ageCompPag eMainCode( )   58   function P ageCompPag eMainCode( )
59   {   59   {
60       global  $ID;   60       global  $ID;
61       global  $ConfCode ;   61       global  $ConfCode ;
62       global  $site;   62       global  $site;
63       global  $newusern otify;   63       global  $newusern otify;
64       global  $dir;   64       global  $dir;
65       $autoA pproval_if Join = isA utoApprova l('join');   65       $autoA pproval_if Join = isA utoApprova l('join');
66     66  
67       $p_arr  = getProf ileInfo( $ ID );   67       $p_arr  = getProf ileInfo( $ ID );
68     68  
69       if ( ! $p_arr )   69       if ( ! $p_arr )
70       {   70       {
71           $_ page['head er'] = _t( "_Error");   71           $_ page['head er'] = _t( "_Error");
72           $_ page['head er_text']  = _t("_Pro file Not f ound");   72           $_ page['head er_text']  = _t("_Pro file Not f ound");
73           $r et =  "<ta ble width= \"100%\" c ellpadding =4 cellspa cing=4><td  align=cen ter class= text2>";   73           $r et =  "<ta ble width= \"100%\" c ellpadding =4 cellspa cing=4><td  align=cen ter class= text2>";
74           $r et .= _t(' _Profile N ot found E x');   74           $r et .= _t(' _Profile N ot found E x');
75           $r et.= "</td ></table>" ;   75           $r et.= "</td ></table>" ;
76           re turn $ret;   76           re turn $ret;
77       }   77       }
78     78  
79       ob_sta rt();   79       ob_sta rt();
80     80  
81       echo " <table wid th=\"100%\ " cellpadd ing=4 cell spacing=4> <td align= center cla ss=text2>" ;   81       echo " <table wid th=\"100%\ " cellpadd ing=4 cell spacing=4> <td align= center cla ss=text2>" ;
82     82  
83       if ( $ p_arr['Sta tus'] == ' Unconfirme d' )   83       if ( $ p_arr['Sta tus'] == ' Unconfirme d' )
84       {   84       {
85           $C onfCodeRea l = base64 _encode( b ase64_enco de( crypt(  $p_arr[Em ail], "sec ret_confir mation_str ing" ) ) ) ;   85           $C onfCodeRea l = base64 _encode( b ase64_enco de( crypt(  $p_arr[Em ail], "sec ret_confir mation_str ing" ) ) ) ;
86           if  ( strcmp(  $ConfCode , $ConfCod eReal ) !=  0 )   86           if  ( strcmp(  $ConfCode , $ConfCod eReal ) !=  0 )
87           {   87           {
88   ?>   88   ?>
89   <b><?=_t(" _Profile a ctivation  failed")?> </b><br /> <br />   89   <b><?=_t(" _Profile a ctivation  failed")?> </b><br /> <br />
90   <?=_t("_EM AIL_CONF_F AILED_EX") ?><br />   90   <?=_t("_EM AIL_CONF_F AILED_EX") ?><br />
91   <center><f orm action ="<? echo  $_SERVER[P HP_SELF];  ?>" method =get>   91   <center><f orm action ="<? echo  $_SERVER[P HP_SELF];  ?>" method =get>
92   <input typ e=hidden n ame="ConfI D" value=" <? echo $I D; ?>">   92   <input typ e=hidden n ame="ConfI D" value=" <? echo $I D; ?>">
93   <table cla ss=text>   93   <table cla ss=text>
94       <td><b ><?=_t("_C onfirmatio n code")?> :</b> </td >   94       <td><b ><?=_t("_C onfirmatio n code")?> :</b> </td >
95       <td><i nput class =no name=" ConfCode"> </td>   95       <td><i nput class =no name=" ConfCode"> </td>
96       <td>&n bsp;</td>   96       <td>&n bsp;</td>
97       <td><i nput class =no type=" submit" va lue=" <?=_ t("_Submit ")?> "></t d>   97       <td><i nput class =no type=" submit" va lue=" <?=_ t("_Submit ")?> "></t d>
98   </table>   98   </table>
99   </form></c enter>   99   </form></c enter>
100   <?   100   <?
101           }   101           }
102           el se   102           el se
103           {   103           {
104                if ( $au toApproval _ifJoin )   104                if ( $au toApproval _ifJoin )
105                {   105                {
106                    $sta tus = 'Act ive';   106                    $sta tus = 'Act ive';
107                    $mes sage = get Param("t_A ctivation" );   107                    $mes sage = get Param("t_A ctivation" );
108                    $sub ject = get Param('t_A ctivation_ subject');   108                    $sub ject = get Param('t_A ctivation_ subject');
109                    send Mail( $p_a rr['Email' ], $subjec t, $messag e, $p_arr[ 'ID'] );   109                    send Mail( $p_a rr['Email' ], $subjec t, $messag e, $p_arr[ 'ID'] );
110                }   110                }
111     111  
112                else   112                else
113                    $sta tus = 'App roval';   113                    $sta tus = 'App roval';
114     114  
115     115  
116                $update  = db_res(  "UPDATE `P rofiles` S ET `Status ` = '$stat us' WHERE  `ID` = '$I D';" );   116                $update  = db_res(  "UPDATE `P rofiles` S ET `Status ` = '$stat us' WHERE  `ID` = '$I D';" );
117                createUs erDataFile ( $ID );   117                createUs erDataFile ( $ID );
118                reparseO bjTags( 'p rofile', $ ID );   118                reparseO bjTags( 'p rofile', $ ID );
119                   119                
120                // Promo tional mem bership   120                // Promo tional mem bership
121                if ( get Param('ena ble_promot ion_member ship') ==  'on' )   121                if ( get Param('ena ble_promot ion_member ship') ==  'on' )
122                {   122                {
123                    $mem ership_day s = getPar am('promot ion_member ship_days' );   123                    $mem ership_day s = getPar am('promot ion_member ship_days' );
124                    setM embership(  $p_arr['I D'], MEMBE RSHIP_ID_P ROMOTION,  $memership _days, tru e );   124                    setM embership(  $p_arr['I D'], MEMBE RSHIP_ID_P ROMOTION,  $memership _days, tru e );
125                }   125                }
126     126  
127   ?>   127   ?>
128   <?php   echo   _t("_EMAIL _CONF_SUCC EEDED",   $site['tit le']) ?>   128   <?php
    129   if ( $auto Approval_i fJoin )
    130   {
    131       echo _ t( "_PROFI LE_CONFIRM " );
    132   }
    133   else
    134   {
    135       
echo   _t("_EMAIL _CONF_SUCC EEDED",   $site['tit le']) ;
    136   }
    137   ?>
129   <br /><br  />   138   <br /><br  />
130   <center><a  href="mem ber.php">< b><?=_t("_ Continue") ?> &gt;&gt ;</b></a>< /center>   139   <center><a  href="mem ber.php">< b><?=_t("_ Continue") ?> &gt;&gt ;</b></a>< /center>
131   <?   140   <?
132                if ( $ne wusernotif y )   141                if ( $ne wusernotif y )
133                {   142                {
134                    $mes sage =   143                    $mes sage =
135   "New user  {$p_arr['N ickName']}  with emai l {$p_arr[ 'Email']}  has been c onfirmed,   144   "New user  {$p_arr['N ickName']}  with emai l {$p_arr[ 'Email']}  has been c onfirmed,
136   his/her ID  is {$p_ar r['ID']}.   145   his/her ID  is {$p_ar r['ID']}.
137   --   146   --
138   {$site['ti tle']} mai l delivery  system   147   {$site['ti tle']} mai l delivery  system
139   <Auto-gene rated e-ma il, please , do not r eply>   148   <Auto-gene rated e-ma il, please , do not r eply>
140   ";   149   ";
141     150  
142                    $sub ject    =  "New user  confirmed" ;   151                    $sub ject    =  "New user  confirmed" ;
143     152  
144                    send Mail( $sit e['email_n otify'], $ subject, $ message );   153                    send Mail( $sit e['email_n otify'], $ subject, $ message );
145                }   154                }
146           }   155           }
147       }   156       }
148       else   157       else
149           ec ho _t('_AL READY_ACTI VATED');   158           ec ho _t('_AL READY_ACTI VATED');
150     159  
151       echo " </td></tab le>";   160       echo " </td></tab le>";
152     161  
153       $ret =  ob_get_co ntents();   162       $ret =  ob_get_co ntents();
154       ob_end _clean();   163       ob_end _clean();
155     164  
156       return  $ret;   165       return  $ret;
157   }   166   }
158     167  
159   ?>   168   ?>