177. File Comparison Report

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

177.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\groups\orca\xml config.php Mon Jan 28 09:41:42 2008 UTC
2 Dolphin-v.6.1.0\groups\orca\xml config.php Wed Apr 9 17:44:54 2008 UTC

177.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 14 108
Changed 5 66
Inserted 5 22
Removed 3 33

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

177.4 Active regular expressions

No regular expressions were active.

177.5 Comparison detail

1   <?php   1   <?php
2     2  
3   /**   3   /**
4    *   4    *
5    * Overwri te necessa ry variabl es or add  new in thi s file   5    * Overwri te necessa ry variabl es or add  new in thi s file
6    *   6    *
7    ********* ********** ********** ********** ********** ********** ********** ********** /   7    ********* ********** ********** ********** ********** ********** ********** ********** /
8     8  
9    function  isXsltEnab led ()    
10   {    
11       if ((( int)phpver sion()) >=  5)    
12       {                    
13      
14           if  (class_ex ists ('DOM Document')  && class_ exists ('X sltProcess or'))    
15                return t rue;    
16       }    
17       else    
18       {    
19      
20           if  (function _exists('d omxml_xslt _styleshee t_file'))    
21                return t rue;    
22           el seif (func tion_exist s ('xslt_c reate'))    
23                return t rue;    
24       }    
25       return  false;    
26   }    
27      
28   if ('auto'  == $gConf ['xsl_mode '])    
29   {    
30       $gConf ['xsl_mode '] = isXsl tEnabled()  ? 'server ' : 'clien t';    
31   }    
32      
33   /********* ********** ********** ********** ********** ********** ********** *********/    
34      
35      
36   $dir = arr ay ();   9   $dir = arr ay ();
37     10  
38   require_on ce ('./../ ../inc/hea der.inc.ph p');   11   require_on ce ('./../ ../inc/hea der.inc.ph p');
39     12  
    13   $path = $d ir['root']  . 'groups /orca/'; / / path to  orca files
    14  
40   /**   15   /**
41    * directo ries confi guration   16    * directo ries confi guration
42    */    17    */ 
43   $path = $d ir['root']   . 'group s/orca/';  // path to  orca file s    
44   $gConf['di r']['error _log'] = $ path . 'lo g/orca.err or.log'; / / error lo g file pat h   18   $gConf['di r']['error _log'] = $ path . 'lo g/orca.err or.log'; / / error lo g file pat h
45   $gConf['di r']['class es'] = $pa th . 'clas ses/'; //  classes di rectiry pa th   19   $gConf['di r']['class es'] = $pa th . 'clas ses/'; //  classes di rectiry pa th
    20   $gConf['di r']['js']  = $path .  'js/'; //  js directi ry path
46   $gConf['di r']['inc']  = $path .  'inc/';   // include  files pat h   21   $gConf['di r']['inc']  = $path .  'inc/';   // include  files pat h
47   $gConf['di r']['xmlca che'] = $p ath . 'xml /'; // not  used   22   $gConf['di r']['xmlca che'] = $p ath . 'xml /'; // not  used
    23   $gConf['di r']['xml']  = $path .  'xml/'; / / path to  integratio m director y
48   $gConf['di r']['base' ] = $path;   // base  dir   24   $gConf['di r']['base' ] = $path;   // base  dir
49   $gConf['di r']['cache '] = $path  . 'cachej s/'; // js  files cac he    25   $gConf['di r']['cache '] = $path  . 'cachej s/'; // js  files cac he 
50   $gConf['di r']['confi g']   =   $path   .   '../../orc a/ l o g /params.co nf';   //   config   26   $gConf['di r']['confi g']   =   $path   .   '../../orc a/ c o nf /params.co nf';   //   config
    27   $gConf['di r']['layou ts'] = $pa th . 'layo ut/'; // l ayouts dir
    28   $gConf['di r']['integ ration'] =  $path . ' xml/orca.p hp'; // xm l integrat ion file p ath
    29   $gConf['di r']['edito r'] = $dir ['plugins' ] . 'tiny_ mce/'; //  path to ja vascript e ditor
    30   $gConf['di r']['langs '] = $path  . '../../ orca/xml/l angs/'; //  lang file s locaiton
51     31  
52   /**    
53    * urls co nfiguratio n    
54    */     
55   $gConf['ur l']['base' ] = $site[ 'url'] . ' groups/orc a/';  // b ase url    
56   $gConf['ur l']['xml']  = $gConf[ 'url']['ba se'] . 'xm l/orca.php '; // xml  integratio n file url    
57     32  
58   /**   33   /**
59    * skin co nfiguratio n   34    * skin co nfiguratio n
60    */    35    */ 
61   $skin = is set($_GET[ 'skin']) & & $_GET['s kin'] ? $_ GET['skin' ] : (isset ($_COOKIE[ 'skin']) ?  $_COOKIE[ 'skin'] :  '');   36   $skin = is set($_GET[ 'skin']) & & $_GET['s kin'] ? $_ GET['skin' ] : (isset ($_COOKIE[ 'skin']) ?  $_COOKIE[ 'skin'] :  '');
62   if (preg_m atch("/^\w +$/",$skin ) && file_ exists($pa th . 'layo ut/' . $sk in))   37   if (preg_m atch("/^\w +$/",$skin ) && file_ exists($pa th . 'layo ut/' . $sk in))
63   {   38   {
64       $gConf ['skin'] =  $skin;   39       $gConf ['skin'] =  $skin;
65       setcoo kie ('skin ', $skin);   40       setcoo kie ('skin ', $skin);
66   }   41   }
67   else   42   else
68   {   43   {
69       $gConf ['skin'] =  'uni';   44       $gConf ['skin'] =  'uni';
70   }   45   }
71     46  
    47   /**
    48    * languag e configur ation
    49    */ 
    50   $gConf['la ng'] = iss et($_GET[' lang']) &&  $_GET['la ng'] ? $_G ET['lang']  : (isset( $_COOKIE[' lang']) ?  $_COOKIE[' lang'] : ' ');
    51   if (!preg_ match("/^[ a-z]{2}$/" ,$gConf['l ang']))
    52   {
    53       $gConf ['lang'] =  'en';
    54   }
72     55  
73   $gCon f ['d i r'][' x
s l']   =   $path   .   'layout/
'   .   $gConf[' ski n
']   .   '/xsl/';      //   xsl   dir
  56   if   ( f
i le_e x i s ts( $path   .   'layout/ base_ '   .   $gConf[' la n g '] ))
74   $gConf[' di r
'][' smil e
']   =   $ pa t h   .   '
l ayo u t/'   .   $ g Conf['sk in
']   .   ' /sm i l e s /';     //  
s m i l e s   di
r
  57   {
    58       setcoo kie ('lang ', $gConf[ 'lang']);
    59   }
    60   else
    61   {
    62       $gConf ['lang'] =  'en';
    63   }
    64  
    65  
    66   /**
    67    * urls co nfiguratio n
    68    */ 
    69   $gConf['ur l']['base' ] = $site[ 'url'] . ' groups/orc a/';  // b ase url
    70   $gConf['ur l']['layou ts'] = $gC onf['url'] ['base'] .  'layout/' ; // layou ts url
    71   $gConf['ur l']['integ ration'] =  $gConf['u rl']['base '] . 'xml/ orca.php';  // xml in tegration  file url
    72   $gConf['ur l']['js']  = $gConf[' url']['bas e'] . 'js/ '; // layo uts url
    73   $gConf[' u r l ']['
e ditor ']   =   $ si t e[ ' p l
u
g
in s ']   .   ' t i ny_mc e
/';   //   url   to   java s cr i pt   e
di to r
75     74  
    75   /**
    76    * langs p athes conf iguration
    77    */ 
    78   if ($gConf ['lang'] & & file_exi sts($path  . 'layout/ base_' . $ gConf['lan g']))
    79   {
    80       $gConf ['dir']['c lasses'] =  $gConf['d ir']['clas ses'] . $g Conf['lang '] . '/';
    81       $gConf ['dir']['j s'] = $gCo nf['dir'][ 'js'] . $g Conf['lang '] . '/';
    82       $gConf ['url']['j s'] = $gCo nf['url'][ 'js'] . $g Conf['lang '] . '/';
    83       $gConf ['skin'] =  $gConf['s kin'] . '_ ' . $gConf ['lang'];
    84   }
76     85  
77   $gConf['ur l']['icon' ] = $gConf ['url']['b ase'] . 'l ayout/' .  $gConf['sk in'] . '/i cons/'; //  icons url   86   /**
78   $gConf['ur l']['img']  = $gConf[ 'url']['ba se'] . 'la yout/' . $ gConf['ski n'] . '/im g/';    //  img url   87    * include  custom te mplate pat ches
79   $gConf['ur l']['css']  = $gConf[ 'url']['ba se'] . 'la yout/' . $ gConf['ski n'] . '/cs s/';    //  css url   88    */ 
80   $gConf['ur l']['smile '] = $gCon f['url'][' base'] . ' layout/' .  $gConf['s kin'] . '/ smiles/';    // smile s url   89   req u i r e_once   ( $gConf[' di r
']['
layout s ' ]   .   $gConf['sk in']   .   '/ param s .php ' ) ;  
81   $gConf[' u
r l']['xsl']   =   $gConf[' u r l '][' base']   .   ' layout / '  
.   $gConf['sk in']   .   '/ x s l/ '
;      //   xsl   url
   
82     90  
83     91  
84   /**   92   /**
85    * databas e configur ation   93    * databas e configur ation
86    */    94    */ 
87   $gConf['db ']['host']  = DATABAS E_HOST; //  hostname   95   $gConf['db ']['host']  = DATABAS E_HOST;    // hostnam e
88   $gConf['db ']['db'] =  DATABASE_ NAME; // d atabase na me   96   $gConf['db ']['db'] =  DATABASE_ NAME;      // databas e name
89   $gConf['db ']['user']  = DATABAS E_USER; //  database  username   97   $gConf['db ']['user']  = DATABAS E_USER;    // databas e username
90   $gConf['db ']['pwd']  = DATABASE _PASS; //  database p assword   98   $gConf['db ']['pwd']  = DATABASE _PASS;     // databas e password
91   $gConf['db ']['port']  = DATABAS E_PORT; //  database  port   99   $gConf['db ']['port']  = DATABAS E_PORT;     // databa se port
92   $gConf['db ']['sock']  = DATABAS E_SOCK; //  database  socket   100   $gConf['db ']['sock']  = DATABAS E_SOCK;     // databa se socket
93   $gConf['db ']['prefix ']   =   'grp_';
  101   $gConf['db ']['prefix ']   =   'grp_';         //   tables   names   prefix
    102  
    103  
    104  
    105   function i sXsltEnabl ed ()
    106   {
    107       if ((( int)phpver sion()) >=  5)
    108       {                
    109  
    110           if  (class_ex ists ('DOM Document')  && class_ exists ('X sltProcess or'))
    111                return t rue;
    112       }
    113       else
    114       {
    115  
    116           if  (function _exists('d omxml_xslt _styleshee t_file'))
    117                return t rue;
    118           el seif (func tion_exist s ('xslt_c reate'))
    119                return t rue;
    120       }
    121       return  false;
    122   }
    123  
    124   if ('auto'  == $gConf ['xsl_mode '])
    125   {
    126       $gConf ['xsl_mode '] = isXsl tEnabled()  ? 'server ' : 'clien t';
    127   }
    128  
94     129  
95   $gConf['em ail']['sen der'] = $s ite['email _notify'];  // email  sender   130   $gConf['in tegration' ] = 'file' ; // url -  read inte gration se tting from  url, file  - read in tegration  settings f rom file
96     131  
97   ?>   132   ?>