107. File Comparison Report

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

107.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\groups\orca\js BxLogin.js Thu Sep 20 08:59:34 2007 UTC
2 Dolphin-v.6.1.0\groups\orca\js BxLogin.js Wed Apr 9 17:44:56 2008 UTC

107.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 7 300
Changed 6 12
Inserted 0 0
Removed 0 0

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

107.4 Active regular expressions

No regular expressions were active.

107.5 Comparison detail

1   /**   1   /**
2    *                               Orca Inter active For um Script   2   *                              O rca Intera ctive Foru m Script
3    *                                 -------- -------   3   *                                 --------- ------
4    *     Sta rted           : Mon  Mar 23 200 6   4   *     Star ted              : Mo n Mar 23 2 006
5    *     Cop yright         : (C)  2007 BoonE x Group   5   *     Copy right            : (C ) 2007 Boo nEx Group
6    *     Web site           : http ://www.boo nex.com   6   *     Webs ite              : ht tp://www.b oonex.com
7    * This fi le is part  of Orca -  Interacti ve Forum S cript   7   * This fil e is part  of Orca -  Interactiv e Forum Sc ript
8    * GPL   8   * Creative  Commons A ttribution  3.0 Licen se
9   **/   9   **/
10     10  
11     11  
12   /**   12   /**
13    * login/j oin functi onality   13    * login/j oin functi onality
14    */   14    */
15     15  
16     16  
17   /**   17   /**
18    * constru ctor   18    * constru ctor
19    */   19    */
20   function L ogin (base , forum)   20   function L ogin (base , forum)
21   {      21   {   
22       this._ base = bas e;   22       this._ base = bas e;
23       this._ forum = fo rum;   23       this._ forum = fo rum;
24   }      24   }   
25     25  
26     26  
27   /**   27   /**
28    * show lo gin form   28    * show lo gin form
29    *  @param  id   foru m id   29    *  @param  id   foru m id
30    */   30    */
31   Login.prot otype.show LoginForm  = function  ()   31   Login.prot otype.show LoginForm  = function  ()
32   {   32   {
33        this._foru m.loading   ('
LOADING   LOGIN   FORM
');
  33        this._foru m.loading   (' [L[ LOADING   LOGIN   FORM ]] ');
34     34  
35       var $t his = this ;   35       var $t his = this ;
36     36  
37       var h  = function  (r)   37       var h  = function  (r)
38       {           38       {        
39           $t his._forum .showHTML  (r, 400, 2 00);   39           $t his._forum .showHTML  (r, 400, 2 00);
40              40           
41           $t his._forum .stopLoadi ng ();   41           $t his._forum .stopLoadi ng ();
42       }   42       }
43     43  
44       new Bx XslTransfo rm(this._b ase + "?ac tion=login _form", ur lXsl + "lo gin_form.x sl", h);   44       new Bx XslTransfo rm(this._b ase + "?ac tion=login _form", ur lXsl + "lo gin_form.x sl", h);     
45     45  
46       return  false;   46       return  false;
47   }   47   }
48     48  
49     49  
50   /**   50   /**
51    * show jo in form   51    * show jo in form
52    */   52    */
53   Login.prot otype.show JoinForm =  function  ()   53   Login.prot otype.show JoinForm =  function  ()
54   {   54   {
55        this._foru m.loading   ('
LOADING   JOIN   FORM
');
  55        this._foru m.loading   (' [L[ LOADING   JOIN   FORM ]] ');
56     56  
57       var $t his = this ;   57       var $t his = this ;
58     58  
59       var h  = function  (r)   59       var h  = function  (r)
60       {           60       {        
61           $t his._forum .showHTML  (r, 400, 2 00);   61           $t his._forum .showHTML  (r, 400, 2 00);
62              62           
63           $t his._forum .stopLoadi ng ();   63           $t his._forum .stopLoadi ng ();
64       }   64       }
65     65  
66       new Bx XslTransfo rm(this._b ase + "?ac tion=join_ form", url Xsl + "joi n_form.xsl ", h);   66       new Bx XslTransfo rm(this._b ase + "?ac tion=join_ form", url Xsl + "joi n_form.xsl ", h);
67     67  
68       return  false;   68       return  false;
69   }   69   }
70     70  
71     71  
72   /**   72   /**
73    * submit  join form   73    * submit  join form
74    *  @param  username  new userna me   74    *  @param  username  new userna me
75    *  @param  email     new email   75    *  @param  email     new email
76    */   76    */
77   Login.prot otype.join FormSubmit  = functio n (usernam e, email)   77   Login.prot otype.join FormSubmit  = functio n (usernam e, email)
78   {   78   {
79       var $t his = this ;   79       var $t his = this ;
80     80  
81       var h  = function  (r)   81       var h  = function  (r)
82       {           82       {        
83           va r o = new  BxXmlReque st('','',' ');             83           va r o = new  BxXmlReque st('','',' ');          
84           va r ret = o. getRetNode Value (r,  'js');          84           va r ret = o. getRetNode Value (r,  'js');       
85           if  (!ret ||  !ret.lengt h)   85           if  (!ret ||  !ret.lengt h)
86           {               86           {            
87                 alert   ("
Thank   you!   You   Joined! \n Your   login   and   password   have   been   sent   to   your   email.
");
  87                 alert   (" [L[ Thank   you!   You   Joined!  
Your   login   and   password   have   been   sent   to   your   email. ]] ");
88                $this._f orum.hideH TML();   88                $this._f orum.hideH TML();
89                return f alse;   89                return f alse;
90           }   90           }
91              91           
92            alert   ('
Join   failed
');
  92            alert   (' [L[ Join   failed ]] ');
93              93           
94           ev al (ret);   94           ev al (ret);
95              95           
96           re turn false ;   96           re turn false ;
97       }   97       }
98     98  
99       new Bx XmlRequest  (this._ba se + "?act ion=join_s ubmit&user name="+use rname+"&em ail="+emai l, h, true );   99       new Bx XmlRequest  (this._ba se + "?act ion=join_s ubmit&user name="+use rname+"&em ail="+emai l, h, true );
100     100  
101       return  false;   101       return  false;
102   }   102   }
103     103  
104   /**   104   /**
105    * submit  login form   105    * submit  login form
106    *  @param  username  login user name   106    *  @param  username  login user name
107    *  @param  pwd       login pass word   107    *  @param  pwd       login pass word
108    */   108    */
109   Login.prot otype.logi nFormSubmi t = functi on (userna me, pwd)   109   Login.prot otype.logi nFormSubmi t = functi on (userna me, pwd)
110   {   110   {
111       var $t his = this ;   111       var $t his = this ;
112     112  
113       var h  = function  (r)   113       var h  = function  (r)
114       {               114       {            
115           va r o = new  BxXmlReque st('','',' ');             115           va r o = new  BxXmlReque st('','',' ');          
116           va r ret = o. getRetNode Value (r,  'js');   116           va r ret = o. getRetNode Value (r,  'js');
117           if  (!ret ||  !ret.lengt h)   117           if  (!ret ||  !ret.lengt h)
118           {               118           {            
119                document .location  = $this._b ase + "?re fresh=1";   119                document .location  = $this._b ase + "?re fresh=1";
120                return f alse;   120                return f alse;
121           }   121           }
122              122           
123            alert   ('
Login   failed
');
  123            alert   (' [L[ Login   failed ]] ');
124              124           
125           ev al (ret);   125           ev al (ret);
126              126           
127           re turn false ;   127           re turn false ;
128       }      128       }   
129     129  
130       new Bx XmlRequest  (this._ba se + "?act ion=login_ submit&use rname="+us ername+"&p wd="+pwd,  h, true);   130       new Bx XmlRequest  (this._ba se + "?act ion=login_ submit&use rname="+us ername+"&p wd="+pwd,  h, true);
131     131  
132       return  false;   132       return  false;
133   }   133   }
134     134  
135     135  
136   /**   136   /**
137    * logout   137    * logout
138    */   138    */
139   Login.prot otype.logo ut = funct ion ()   139   Login.prot otype.logo ut = funct ion ()
140   {      140   {   
141       $this  = this;   141       $this  = this;
142     142  
143       var h  = function  (r)   143       var h  = function  (r)
144       {   144       {
145           do cument.loc ation = $t his._base  + "?refres h=1";   145           do cument.loc ation = $t his._base  + "?refres h=1";
146           re turn false ;   146           re turn false ;
147       }   147       }
148     148  
149       new Bx XmlRequest  (this._ba se + "?act ion=logout ", h, true );   149       new Bx XmlRequest  (this._ba se + "?act ion=logout ", h, true );
150     150  
151       return  false;   151       return  false;
152     152  
153       docume nt.cookie  = 'orca_pw d=; orca_u ser=; expi res=Fri, 0 2-Jan-1970  00:00:00  GMT';      153       docume nt.cookie  = 'orca_pw d=; orca_u ser=; expi res=Fri, 0 2-Jan-1970  00:00:00  GMT';   
154       docume nt.locatio n = this._ base + "?r efresh=1";   154       docume nt.locatio n = this._ base + "?r efresh=1";
155       return  false;   155       return  false;
156   }   156   }