769. File Comparison Report

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

769.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 contact.php Mon Jan 28 09:41:44 2008 UTC
2 Dolphin-v.6.1.0 contact.php Thu Apr 10 09:53:30 2008 UTC

769.2 Comparison summary

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

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

769.4 Active regular expressions

No regular expressions were active.

769.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 . 'u tils.inc.p hp' );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
24     24  
25   // ------- -------- p age variab les and lo gin   25   // ------- -------- p age variab les and lo gin
26     26  
27   $_page['na me_index']     = 16;   27   $_page['na me_index']     = 16;
28   $_page['cs s_name']       = 'con tact.css';   28   $_page['cs s_name']       = 'con tact.css';
29     29  
30   if ( !( $l ogged['adm in'] = mem ber_auth(  1, false )  ) )   30   if ( !( $l ogged['adm in'] = mem ber_auth(  1, false )  ) )
31   {   31   {
32       if ( ! ( $logged[ 'member']  = member_a uth( 0, fa lse ) ) )   32       if ( ! ( $logged[ 'member']  = member_a uth( 0, fa lse ) ) )
33       {   33       {
34           if  ( !( $log ged['aff']  = member_ auth( 2, f alse )) )   34           if  ( !( $log ged['aff']  = member_ auth( 2, f alse )) )
35           {   35           {
36                $logged[ 'moderator '] = membe r_auth( 3,  false );   36                $logged[ 'moderator '] = membe r_auth( 3,  false );
37           }   37           }
38       }   38       }
39   }   39   }
40     40  
41   $_page['he ader'] = _ t( "_CONTA CT_H" );   41   $_page['he ader'] = _ t( "_CONTA CT_H" );
42   $_page['he ader_text' ] = _t( "_ CONTACT_H1 " );   42   $_page['he ader_text' ] = _t( "_ CONTACT_H1 " );
43     43  
44   // ------- -------- p age compon ents   44   // ------- -------- p age compon ents
45     45  
46   $showForm  = getParam ('enable_c ontact_for m') == 'on ' ? true :  false ;   46   $showForm  = getParam ('enable_c ontact_for m') == 'on ' ? true :  false ;
47     47  
48   $_ni = $_p age['name_ index'];   48   $_ni = $_p age['name_ index'];
49     49  
50   if( $showF orm )   50   if( $showF orm )
51   {   51   {
52       $_page _cont[$_ni ]['page_ma in_code']  = PageComp PageMainCo deWithForm ();   52       $_page _cont[$_ni ]['page_ma in_code']  = PageComp PageMainCo deWithForm ();
53   }   53   }
54   else   54   else
55   {   55   {
56       $_page _cont[$_ni ]['page_ma in_code']  = PageComp PageMainCo de();   56       $_page _cont[$_ni ]['page_ma in_code']  = PageComp PageMainCo de();
57   }   57   }
58     58  
59     59  
60   // ------- -------- [ END] page  components   60   // ------- -------- [ END] page  components
61     61  
62   PageCode() ;   62   PageCode() ;
63     63  
64   // ------- -------- p age compon ents funct ions   64   // ------- -------- p age compon ents funct ions
65     65  
66   /**   66   /**
67    * page co de functio n   67    * page co de functio n
68    */   68    */
69   function P ageCompPag eMainCode( )   69   function P ageCompPag eMainCode( )
70   {   70   {
71       global  $oTemplCo nfig;   71       global  $oTemplCo nfig;
72       return  DesignBox Content( _ t( "_CONTA CT_H1" ),  _t( "_CONT ACT" ), $o TemplConfi g -> PageC ompThird_d b_num);   72       return  DesignBox Content( _ t( "_CONTA CT_H1" ),  _t( "_CONT ACT" ), $o TemplConfi g -> PageC ompThird_d b_num);
73   }   73   }
74     74  
75   function P ageCompPag eMainCodeW ithForm()   75   function P ageCompPag eMainCodeW ithForm()
76   {   76   {
77       global  $oTemplCo nfig;   77       global  $oTemplCo nfig;
78       global  $site;   78       global  $site;
79     79  
80       $sActi onText = ' ';   80       $sActi onText = ' ';
81       if( is set($_POST ['do_submi t']) )   81       if( is set($_POST ['do_submi t']) )
82       {   82       {
83           if  (!isset($ _POST['sec urityImage Value']) | | !isset($ _COOKIE['s trSec']) | | md5($_PO ST['securi tyImageVal ue']) != $ _COOKIE['s trSec'])   83           if  (!isset($ _POST['sec urityImage Value']) | | !isset($ _COOKIE['s trSec']) | | md5($_PO ST['securi tyImageVal ue']) != $ _COOKIE['s trSec'])
84           {   84           {
85                $sAction Text = _t_ err( '_SIM G_ERR' );   85                $sAction Text = _t_ err( '_SIM G_ERR' );
86           }   86           }
87           el se   87           el se
88           {   88           {
89                 $sSenderNa me      =   process_ db_in p u t
(   $_POST['na me']   );
  89                 $sSenderNa me      =   process_
p ass_da t a (   $_POST['na me']   );
90                 $sSenderEm ail     =   process_ db_in p u t
(   $_POST['em ail']   );
  90                 $sSenderEm ail     =   process_
p ass_da t a (   $_POST['em ail']   );
91                 $sLetterSu bject   =   process_ db_in p u t
(   $_POST['su bject']   );
  91                 $sLetterSu bject   =   process_
p ass_da t a (   $_POST['su bject']   );
92                 $sLetterBo dy      =   process_ db_in p u t
(   $_POST['bo dy']   );
  92                 $sLetterBo dy      =   process_
p ass_da t a (   $_POST['bo dy']   );
93     93  
94                $sLetter Body = $sL etterBody  . "\r\n" .  '======== ====' . "\ r\n" . _t( '_from') .  ' ' . $sS enderName  . "\r\n" .  'with ema il ' .  $s SenderEmai l;   94                $sLetter Body = $sL etterBody  . "\r\n" .  '======== ====' . "\ r\n" . _t( '_from') .  ' ' . $sS enderName  . "\r\n" .  'with ema il ' .  $s SenderEmai l;
95     95  
96                if( send Mail( $sit e['email'] , $sLetter Subject, $ sLetterBod y ) )   96                if( send Mail( $sit e['email'] , $sLetter Subject, $ sLetterBod y ) )
97                {   97                {
98                    $sAc tionText =  _t_action ('_ADM_PRO FILE_SEND_ MSG');   98                    $sAc tionText =  _t_action ('_ADM_PRO FILE_SEND_ MSG');
99                }   99                }
100                else   100                else
101                {   101                {
102                    $sAc tionText =  _t_err( ' _Email sen t failed'  );   102                    $sAc tionText =  _t_err( ' _Email sen t failed'  );
103                }   103                }
104           }   104           }
105       }   105       }
106          106       
107       ob_sta rt();   107       ob_sta rt();
108          108       
109       echo $ sActionTex t;   109       echo $ sActionTex t;
110       ?>   110       ?>
111       <form  action="<? = $_SERVER ['PHP_SELF '] ?>" met hod="post" >   111       <form  action="<? = $_SERVER ['PHP_SELF '] ?>" met hod="post" >
112           <t able class ="messageB lock">   112           <t able class ="messageB lock">
113                <tr>   113                <tr>
114                    <td  class="con tact_label "><?= _t(' _Your name ') ?>:</td >   114                    <td  class="con tact_label "><?= _t(' _Your name ') ?>:</td >
115                    <td  class="con tact_value "><input t ype="text"  name="nam e" value=" " class="i nputText"  /></td>   115                    <td  class="con tact_value "><input t ype="text"  name="nam e" value=" " class="i nputText"  /></td>
116                </tr>   116                </tr>
117                <tr>   117                <tr>
118                    <td  class="con tact_label "><?= _t(' _Your emai l') ?>:</t d>   118                    <td  class="con tact_label "><?= _t(' _Your emai l') ?>:</t d>
119                    <td  class="con tact_value "><input t ype="text"  name="ema il" value= "" class=" inputText"   onkeyup= "if( email Check( thi s.value )  ) this.for m.do_submi t.disabled =false; el se this.fo rm.do_subm it.disable d=true;" / ></td>   119                    <td  class="con tact_value "><input t ype="text"  name="ema il" value= "" class=" inputText"   onkeyup= "if( email Check( thi s.value )  ) this.for m.do_submi t.disabled =false; el se this.fo rm.do_subm it.disable d=true;" / ></td>
120                </tr>   120                </tr>
121                <tr>   121                <tr>
122                    <td  class="con tact_label "><?= _t(' _message_s ubject') ? >:</td>   122                    <td  class="con tact_label "><?= _t(' _message_s ubject') ? >:</td>
123                    <td  class="con tact_value "><input t ype="text"  name="sub ject" valu e="" class ="inputTex t" /></td>   123                    <td  class="con tact_value "><input t ype="text"  name="sub ject" valu e="" class ="inputTex t" /></td>
124                </tr>   124                </tr>
125                <tr>   125                <tr>
126                    <td  class="con tact_label "><?= _t(' _Message t ext') ?>:< /td>   126                    <td  class="con tact_label "><?= _t(' _Message t ext') ?>:< /td>
127                    <td  class="con tact_value "><textare a name="bo dy" class= "inputText area"></te xtarea></t d>   127                    <td  class="con tact_value "><textare a name="bo dy" class= "inputText area"></te xtarea></t d>
128                </tr>   128                </tr>
129                <tr>   129                <tr>
130                    <td  class="con tact_label "><?= _t(  "_Enter wh at you see :" ) ?></d iv>   130                    <td  class="con tact_label "><?= _t(  "_Enter wh at you see :" ) ?></d iv>
131                    <td  class="con tact_value ">   131                    <td  class="con tact_value ">
132                         <img alt=" Security I mage" src= "<?= $site ['url'] ?> simg/simg. php" /><br  />   132                         <img alt=" Security I mage" src= "<?= $site ['url'] ?> simg/simg. php" /><br  />
133                         <input nam e="securit yImageValu e" type="t ext" size= "15" />   133                         <input nam e="securit yImageValu e" type="t ext" size= "15" />
134                    </td >   134                    </td >
135                </tr>   135                </tr>
136                <tr>   136                <tr>
137                    <td  colspan="2 " class="c ontact_sub mit"><inpu t type="su bmit" name ="do_submi t" value=" <?= _t('_S ubmit') ?> " disabled ="disabled "/></td>   137                    <td  colspan="2 " class="c ontact_sub mit"><inpu t type="su bmit" name ="do_submi t" value=" <?= _t('_S ubmit') ?> " disabled ="disabled "/></td>
138                </tr>   138                </tr>
139           </ table>   139           </ table>
140       </form >   140       </form >
141       <?   141       <?
142       $ret =  ob_get_cl ean();   142       $ret =  ob_get_cl ean();
143     143  
144       return  DesignBox Content( _ t( "_CONTA CT_H1" ),  $ret, $oTe mplConfig  -> PageCom pThird_db_ num);   144       return  DesignBox Content( _ t( "_CONTA CT_H1" ),  $ret, $oTe mplConfig  -> PageCom pThird_db_ num);
145   }   145   }
146     146  
147   ?>   147   ?>