16. Araxis Merge File Comparison Report

Produced by Araxis Merge on Mon May 18 06:28:30 2009 UTC. See www.araxis.com for information about Merge. 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.

16.1 Files compared

# Location File Last Modified
1 D:\Dolphin-v.6.1.5\orca\classes ThingPage.php Fri Apr 24 05:28:27 2009 UTC
2 D:\Dolphin-v.6.1.6\orca\classes ThingPage.php Wed May 13 11:24:22 2009 UTC

16.2 Comparison summary

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

16.3 Comparison options

Whitespace All differences in whitespace within lines are ignored
Character case Differences in character case are ignored
Line endings Differences in line endings (CR and LF characters) are significant
CR/LF characters Not shown in the comparison detail

16.4 Active regular expressions

No regular expressions were active.

16.5 Comparison detail

1   <?php   1   <?php
2   /********* ********** ********** ********** ********** ********** ********** ******   2   /********* ********** ********** ********** ********** ********** ********** ******
3   *                              O rca Intera ctive Foru m Script   3   *                              O rca Intera ctive Foru m Script
4   *                                 --------- --------   4   *                                 --------- --------
5   *     begi n                 : F r Nov 10 2 006   5   *     begi n                 : F r Nov 10 2 006
6   *     copy right             : ( C) 2006 Bo onEx Group   6   *     copy right             : ( C) 2006 Bo onEx Group
7   *     webs ite               : h ttp://www. boonex.com /   7   *     webs ite               : h ttp://www. boonex.com /
8   * This fil e is part  of Orca -  Interactiv e Forum Sc ript   8   * This fil e is part  of Orca -  Interactiv e Forum Sc ript
9   *   9   *
10   * Orca is  free softw are. This  work is li censed und er a Creat ive Common s Attribut ion 3.0 Li cense.    10   * Orca is  free softw are. This  work is li censed und er a Creat ive Common s Attribut ion 3.0 Li cense. 
11   * http://c reativecom mons.org/l icenses/by /3.0/   11   * http://c reativecom mons.org/l icenses/by /3.0/
12   *   12   *
13   * Orca is  distribute d in the h ope that i t will be  useful, bu t WITHOUT  ANY WARRAN TY;   13   * Orca is  distribute d in the h ope that i t will be  useful, bu t WITHOUT  ANY WARRAN TY;
14   * without  even the i mplied war ranty of   MERCHANTAB ILITY or F ITNESS FOR  A PARTICU LAR PURPOS E.   14   * without  even the i mplied war ranty of   MERCHANTAB ILITY or F ITNESS FOR  A PARTICU LAR PURPOS E.
15   * See the  Creative C ommons Att ribution 3 .0 License  for more  details.    15   * See the  Creative C ommons Att ribution 3 .0 License  for more  details. 
16   * You shou ld have re ceived a c opy of the  Creative  Commons At tribution  3.0 Licens e along wi th Orca,    16   * You shou ld have re ceived a c opy of the  Creative  Commons At tribution  3.0 Licens e along wi th Orca, 
17   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m   17   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m
18   ********** ********** ********** ********** ********** ********** ********** *****/   18   ********** ********** ********** ********** ********** ********** ********** *****/
19     19  
20     20  
21   // parent  object for  all pages  classes   21   // parent  object for  all pages  classes
22     22  
23   class Thin gPage exte nds Thing   23   class Thin gPage exte nds Thing
24   {   24   {
25     25  
26              26           
27   // public  functions   27   // public  functions
28     28  
29           /* *   29           /* *
30            *  construct or   30            *  construct or
31            * /   31            * /
32           fu nction Thi ngPage ()   32           fu nction Thi ngPage ()
33           {   33           {
34           }   34           }
35     35  
36       functi on getLang s ()   36       functi on getLang s ()
37       {   37       {
38           gl obal $gCon f;   38           gl obal $gCon f;
39     39  
40           $a  = array ( );   40           $a  = array ( );
41           if  (isset($g Conf['dir' ]['langs'] ))   41           if  (isset($g Conf['dir' ]['langs'] ))
42           {   42           {
43                $d = dir ($gConf['d ir']['lang s']);   43                $d = dir ($gConf['d ir']['lang s']);
44                while (F ALSE !== ( $entry = $ d->read()) )   44                while (F ALSE !== ( $entry = $ d->read()) )
45                {   45                {
46                    if ( $entry ==  '.' || $en try == '.. ')   46                    if ( $entry ==  '.' || $en try == '.. ')
47                         continue;   47                         continue;
48                    $a[]  = substr( $entry, 0,  2);   48                    $a[]  = substr( $entry, 0,  2);
49                }   49                }
50           }   50           }
51           re turn $a;   51           re turn $a;
52       }    52       } 
53     53  
54       functi on getLang sXml ()   54       functi on getLang sXml ()
55       {   55       {
56           re turn '<lan gs>' . arr ay2xml($th is->getLan gs(), 'lan g') . '</l angs>';   56           re turn '<lan gs>' . arr ay2xml($th is->getLan gs(), 'lan g') . '</l angs>';
57       }   57       }
58     58  
59           fu nction get UrlsXml ()   59           fu nction get UrlsXml ()
60           {   60           {
61                    glob al $gConf;              61                    glob al $gConf;           
62     62  
63                    $ret  = '';   63                    $ret  = '';
64     64  
65                    $ret  .= "<urls >";   65                    $ret  .= "<urls >";
66                    $ret  .= "<xsl_ mode>{$gCo nf['xsl_mo de']}</xsl _mode>";   66                    $ret  .= "<xsl_ mode>{$gCo nf['xsl_mo de']}</xsl _mode>";
67                    $ret  .= "<icon >{$gConf[' url']['ico n']}</icon >";   67                    $ret  .= "<icon >{$gConf[' url']['ico n']}</icon >";
68                    $ret  .= "<img> {$gConf['u rl']['img' ]}</img>";   68                    $ret  .= "<img> {$gConf['u rl']['img' ]}</img>";
69                    $ret  .= "<css> {$gConf['u rl']['css' ]}</css>";   69                    $ret  .= "<css> {$gConf['u rl']['css' ]}</css>";
70           $r et .= "<xs l>{$gConf[ 'url']['xs l']}</xsl> ";                70           $r et .= "<xs l>{$gConf[ 'url']['xs l']}</xsl> ";             
71           $r et .= "<js >{$gConf[' url']['js' ]}</js>";   71           $r et .= "<js >{$gConf[' url']['js' ]}</js>";
72           $r et .= "<ed itor>{$gCo nf['url'][ 'editor']} </editor>" ;   72           $r et .= "<ed itor>{$gCo nf['url'][ 'editor']} </editor>" ;
73                    $ret  .= "</url s>\n";                73                    $ret  .= "</url s>\n";             
74                       74                    
75                    retu rn $ret;                75                    retu rn $ret;             
76           }   76           }
77     77  
78       functi on addHead erFooter ( &$li, $con tent)   78       functi on addHead erFooter ( &$li, $con tent)
79       {   79       {
80           gl obal $gCon f, $l;   80           gl obal $gCon f, $l;
81           gl obal $glHe ader;   81           gl obal $glHe ader;
82           gl obal $glFo oter;   82           gl obal $glFo oter;
83     83  
84           $r et = '';   84           $r et = '';
85     85  
86           $r et .= "<ro ot>\n";   86           $r et .= "<ro ot>\n";
87     87  
88                                                                                                                                                                                                                                       $l ('JHJldCAu PSAnPGRpc2 FibGVfYm9v bmV4X2Zvb3 RlcnM+JyAu ICFnZXRQYX JhbSgnZW5h YmxlX2RvbH BoaW5fZm9v dGVyJykgLi AnPC9kaXNh YmxlX2Jvb2 5leF9mb290 ZXJzPic7') ;   88                                                                                                                                                                                                                                       $l ('JHJldCAu PSAnPGRpc2 FibGVfYm9v bmV4X2Zvb3 RlcnM+JyAu ICFnZXRQYX JhbSgnZW5h YmxlX2RvbH BoaW5fZm9v dGVyJykgLi AnPC9kaXNh YmxlX2Jvb2 5leF9mb290 ZXJzPic7') ;
89     89  
90           $r et .= '<he ader><![CD ATA['.$glH eader.']]> </header>' ;   90           $r et .= '<he ader><![CD ATA['.$glH eader.']]> </header>' ;
91                    $ret  .= '<foot er><![CDAT A['.$glFoo ter.']]></ footer>';   91                    $ret  .= '<foot er><![CDAT A['.$glFoo ter.']]></ footer>';
    92           $r et .= '<ra y_integrat ion><![CDA TA[' . get RayIntegra tionJS() .  ']]></ray _integrati on>';
92     93  
93           $r et .= "<mi n_point>{$ gConf['min _point']}< /min_point >\n";   94           $r et .= "<mi n_point>{$ gConf['min _point']}< /min_point >\n";
94              95           
95           $r et .= "<ba se>{$gConf ['url']['b ase']}</ba se>\n";   96           $r et .= "<ba se>{$gConf ['url']['b ase']}</ba se>\n";
96     97  
97           $r et .= "<ti tle>{$gCon f['def_tit le']}</tit le>\n";   98           $r et .= "<ti tle>{$gCon f['def_tit le']}</tit le>\n";
98     99  
99           $i ntegration _xml = '';   100           $i ntegration _xml = '';
100           @i nclude ($g Conf['dir' ]['base']  . 'xml/xml .php');   101           @i nclude ($g Conf['dir' ]['base']  . 'xml/xml .php');
101           $r et .= $int egration_x ml;   102           $r et .= $int egration_x ml;
102     103  
103                    $ret  .= $this- >getUrlsXm l ();   104                    $ret  .= $this- >getUrlsXm l ();
104     105  
105           if  (is_array ($li))   106           if  (is_array ($li))
106           {   107           {
107                $ret .=  "<logininf o>";   108                $ret .=  "<logininf o>";
108                reset ($ li);   109                reset ($ li);
109                while (l ist($k,$v)  = each($l i))   110                while (l ist($k,$v)  = each($l i))
110                {   111                {
111                    $ret  .= "<$k>$ v</$k>";   112                    $ret  .= "<$k>$ v</$k>";
112                }                113                }             
113                $ret .=  "</loginin fo>";   114                $ret .=  "</loginin fo>";
114     115  
115                if (1 ==  $li['admi n'])   116                if (1 ==  $li['admi n'])
116                {   117                {
117                    $ret  .= $this- >getLangsX ml();   118                    $ret  .= $this- >getLangsX ml();
118                }   119                }
119           }   120           }
120     121  
121              122           
122     123  
123           $r et .= "<pa ge>\n";   124           $r et .= "<pa ge>\n";
124     125  
125           $r et .= $con tent;   126           $r et .= $con tent;
126     127  
127           $r et .= "</p age>\n";   128           $r et .= "</p age>\n";
128     129  
129           $r et .= "</r oot>\n";   130           $r et .= "</r oot>\n";
130     131  
131           re turn $ret;   132           re turn $ret;
132       }   133       }
133     134  
134           /* *   135           /* *
135            *  returns p age XML   136            *  returns p age XML
136            * /   137            * /
137           fu nction get PageXML (& $li)   138           fu nction get PageXML (& $li)
138           {   139           {
139                    retu rn $this-> addHeaderF ooter ($li , $this->c ontent);   140                    retu rn $this-> addHeaderF ooter ($li , $this->c ontent);
140           }   141           }
141     142  
142     143  
143           /* *   144           /* *
144            *  write cac he to a fi le    145            *  write cac he to a fi le 
145            *       @par am $fn       filename  to write  to\x001C   146            *       @par am $fn       filename  to write  to\x001C
146            *       @par am $s        string t o write    147            *       @par am $s        string t o write 
147            * /   148            * /
148           fu nction cac heWrite ($ fn, $s)   149           fu nction cac heWrite ($ fn, $s)
149           {   150           {
150                    glob al $gConf;   151                    glob al $gConf;
151     152  
152                    if ( !$gConf['c ache']['on ']) return ;   153                    if ( !$gConf['c ache']['on ']) return ;
153                       154                    
154                    $f =  fopen ($g Conf['dir' ]['xmlcach e'] . $fn,  "w");   155                    $f =  fopen ($g Conf['dir' ]['xmlcach e'] . $fn,  "w");
155     156  
156                    if ( !$f)   157                    if ( !$f)
157                    {   158                    {
158                             $mk =  new Mistak e ();   159                             $mk =  new Mistak e ();
159                             $mk->l og ("Thing Page::read Cache - ca n not open  file({$gC onf['dir'] ['xmlcache ']}$fn) fo r writing" );   160                             $mk->l og ("Thing Page::read Cache - ca n not open  file({$gC onf['dir'] ['xmlcache ']}$fn) fo r writing" );
160                             $mk->d isplayErro r ("[L[Sit e is unava ilable]]") ;   161                             $mk->d isplayErro r ("[L[Sit e is unava ilable]]") ;
161                    }   162                    }
162                                163                             
163                    fwri te ($f, $s );   164                    fwri te ($f, $s );
164     165  
165                    fclo se ($f);                166                    fclo se ($f);             
166           }   167           }
167     168  
168           /* *   169           /* *
169            *  read cach e from a f ile    170            *  read cach e from a f ile 
170            *       @par am $fn                filename t o read fro m   171            *       @par am $fn                filename t o read fro m
171            *       @par am return    string f rom a file          172            *       @par am return    string f rom a file       
172            * /   173            * /
173           fu nction cac heRead ($f n)   174           fu nction cac heRead ($f n)
174           {   175           {
175                    glob al $gConf;   176                    glob al $gConf;
176     177  
177                    $f =  fopen ($g Conf['dir' ]['xmlcach e'] . $fn,  "r");   178                    $f =  fopen ($g Conf['dir' ]['xmlcach e'] . $fn,  "r");
178     179  
179                    if ( !$f)   180                    if ( !$f)
180                    {   181                    {
181                             $mk =  new Mistak e ();   182                             $mk =  new Mistak e ();
182                             $mk->l og ("Thing Page::read Cache - ca n not open  file({$gC onf['dir'] ['xmlcache ']}$fn) fo r reading" );   183                             $mk->l og ("Thing Page::read Cache - ca n not open  file({$gC onf['dir'] ['xmlcache ']}$fn) fo r reading" );
183                             $mk->d isplayErro r ("[L[Sit e is unava ilable]]") ;   184                             $mk->d isplayErro r ("[L[Sit e is unava ilable]]") ;
184                    }   185                    }
185              186           
186                    $s =  '';   187                    $s =  '';
187                    whil e ($st = f read ($f,  1024)) $s  .= $st;   188                    whil e ($st = f read ($f,  1024)) $s  .= $st;
188     189  
189                    fclo se ($f);   190                    fclo se ($f);
190     191  
191                    retu rn $s;          192                    retu rn $s;       
192           }   193           }
193     194  
194           /* *   195           /* *
195            *  check if  cache is a vailable    196            *  check if  cache is a vailable 
196            *       @par am $fn                filename t o check   197            *       @par am $fn                filename t o check
197            *       @par am return    true if  cache is a vailable   198            *       @par am return    true if  cache is a vailable
198            * /   199            * /
199           fu nction cac heExists ( $fn)   200           fu nction cac heExists ( $fn)
200           {   201           {
201                    glob al $gConf;   202                    glob al $gConf;
202                    retu rn file_ex ists ($gCo nf['dir'][ 'xmlcache' ] . $fn);   203                    retu rn file_ex ists ($gCo nf['dir'][ 'xmlcache' ] . $fn);
203           }   204           }
204     205  
205           /* *   206           /* *
206            *  check if  cache is e nabled   207            *  check if  cache is e nabled
207            * /   208            * /
208           fu nction cac heEnabled  ()   209           fu nction cac heEnabled  ()
209           {   210           {
210                    glob al $gConf;   211                    glob al $gConf;
211                    retu rn $gConf[ 'cache'][' on'];   212                    retu rn $gConf[ 'cache'][' on'];
212           }   213           }
213     214  
214   // private  functions   215   // private  functions
215              216           
216   }   217   }
217     218  
218     219  
219     220  
220     221  
221     222  
222   ?>   223   ?>