755. File Comparison Report

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

755.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 articles.php Fri Oct 5 11:18:16 2007 UTC
2 Dolphin-v.6.1.0 articles.php Wed Apr 23 09:41:28 2008 UTC

755.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 16 92
Changed 7 31
Inserted 7 40
Removed 1 4

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

755.4 Active regular expressions

No regular expressions were active.

755.5 Comparison detail

1   <?   1   <?
    2  
2   /********* ********** ********** ********** ********** ********** ********** ******   3   /********* ********** ********** ********** ********** ********** ********** ******
3   *                              D olphin Sma rt Communi ty Builder   4   *                              D olphin Sma rt Communi ty Builder
4   *                                 --------- --------   5   *                                 --------- --------
5   *     begi n                 : M on Mar 23  2006   6   *     begi n                 : M on Mar 23  2006
6   *     copy right             : ( C) 2006 Bo onEx Group   7   *     copy right             : ( C) 2006 Bo onEx Group
7   *     webs ite               : h ttp://www. boonex.com /   8   *     webs ite               : h ttp://www. boonex.com /
8   * 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
9   *   10   *
10   * 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. 
11   * http://c reativecom mons.org/l icenses/by /3.0/   12   * http://c reativecom mons.org/l icenses/by /3.0/
12   *   13   *
13   * 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;
14   * 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.
15   * 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. 
16   * 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
17   * 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
18   ********** ********** ********** ********** ********** ********** ********** *****/   19   ********** ********** ********** ********** ********** ********** ********** *****/
19     20  
20   require_on ce( 'inc/h eader.inc. php' );   21   require_on ce( 'inc/h eader.inc. php' );
21   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' );
22   // require_on ce(   BX_DIRECTO RY_PATH_IN C   .   'a rt i cl es
.inc.php'   );
  23  
require_on ce(   BX_DIRECTO RY_PATH_IN C   .   'a dm i n_d es ign .inc.php'   );
    24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
23   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolAr ticles.php ' );   25   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolAr ticles.php ' );
24     26  
25   // ------- -------- p age variab les and lo gin    
26   $_page['na me_index']     = 11;    
27   $_page['cs s_name']       = 'art icles.css' ;    
28      
29   check_logg ed();   27   check_logg ed();
30     28  
    29   $_page['na me_index']  = 0;
31   $_ni = $_p age['name_ index'];   30   $_ni = $_p age['name_ index'];
32   $_page_con t[$_ni]['p age_main_c ode']   =   PageCompAr ticles(
);
  31   $_page_con t[$_ni]['p age_main_c ode']   =   PageCompAr ticles( $logged );
33   // $_page['ex tra_js']   =   $oTemplCon fig   ->   sTinyMceEd itor Mini JS;   32  
$_page['ex tra_js']   =   $oTemplCon fig   ->   sTinyMceEd itor
JS;
    33   $_page['cs s_name'] =  'articles .css';
34     34  
35   $_page['he ader'] = _ t( "_ARTIC LES_H", $s ite['title '] );   35   $_page['he ader'] = _ t( "_ARTIC LES_H", $s ite['title '] );
36   $_page['he ader_text' ] = _t( "_ ARTICLES_H 1" );   36   $_page['he ader_text' ] = _t( "_ ARTICLES_H 1" );
37     37  
38   // ------- -------- p age compon ents   38   // ------- -------- p age compon ents
39     39  
40   function   PageCompAr ticles(
)   {
  40   function   PageCompAr ticles( $logged )   {
41        $oArticles   =   new   BxDolArtic les( fa l s e
);
  41       global  $site;
42        $sRet Html   =   '';   42       global  $sActionT ext;
    43  
    44        $oArticles   =   new   BxDolArtic les( $ l ogg e d );
    45        $sRet  
=   '';
    46  
    47       $sActi ons = $oAr ticles->Ac tionAddUpd ateElement s();
    48       $sRet  .=  $sActi ons;
    49  
43       switch ( $_GET['a ction']) {   50       switch  ($_GET['a ction'] )  {
    51           ca se 'addcat egory':
    52                $sRet .=  $oArticle s->getArti clesCatego ryEditForm ();
    53           br eak;
    54  
    55           ca se 'catego ryedit':
    56                $iCatego ryID = (in t)$_REQUES T['catID'] ;
    57                $sRet .=  $oArticle s->getArti clesCatego ryEditForm ( $iCatego ryID );
    58           br eak;
    59  
44           ca se 'viewca tegory':   60           ca se 'viewca tegory':
    61                if (isse t($_REQUES T['article CatUri']))
    62                    $iCa tegoryID =  (int)$oAr ticles->ge tArticleCa tIdByUri(  $_REQUEST[ 'articleCa tUri'] );
    63                else
45                $iCatego ryID = (in t)$_REQUES T['catID'] ;   64                    $iCa tegoryID =  (int)$_RE QUEST['cat ID'];
46                 $sRet Html   =   $oArticles ->getArtic lesList(   $iCategory ID   );   65                 $sRet  
=   $oArticles ->getArtic lesList(   $iCategory ID   );
47           br eak;   66           br eak;
    67  
48           ca se 'viewar ticle':   68           ca se 'viewar ticle':
    69                if (isse t($_REQUES T['article Uri']))
    70                    $iAr ticleID =  $oArticles ->getArtic leIdByUri(  $_REQUEST ['articleU ri'] );
    71                else 
    72                    $iAr ticleID =  $_REQUEST[ 'articleID '];
    73                
    74                $sRet =  $oArticles ->getArtic le( $iArti cleID );
    75           br eak;
    76  
    77           ca se 'addart icle':
    78                $sRet .=  $oArticle s->getArti cleEditFor m();
    79           br eak;
    80  
    81           ca se 'catego rydelete':
    82                $iCatego ryID = (in t)$_REQUES T['catID'] ;
    83                $sRet .=  $oArticle s->deleteC ategory( $ iCategoryI D );
    84                $sRet .=  $oArticle s->getArti clesCatego riesList() ;
    85           br eak;
    86  
    87           ca se 'editar ticle':
    88                $iArticl eID = (int )$_REQUEST ['articleI D'];
    89                $sRet .=  $oArticle s->getArti cleEditFor m( $iArtic leID );
    90           br eak;
    91  
    92           ca se 'delete article':
49                $iArticl eID = (int )$_REQUEST ['articleI D'];   93                $iArticl eID = (int )$_REQUEST ['articleI D'];
50                 $sRet Html   =   $oArticles -> g et
Article(   $iArticleI D   );
  94                 $sRet   . =   $oArticles -> del et e Article(   $iArticleI D   );
    95                $sRet .=  $oArticle s->getArti clesCatego riesList() ;
51           br eak;   96           br eak;
    97  
52           de fault:   98           de fault:
53                 $sRet Html   =   $oArticles ->getArtic lesCateg i riesList() ;   99                 $sRet   . =   $oArticles ->getArtic lesCateg o riesList() ;
54           br eak;   100           br eak;
55       }   101       }
56        return   $sRet Html ;   102  
    103        return   $sRet
;
57   }   104   }
58     105  
59   PageCode() ;   106   PageCode() ;
60   ?>   107   ?>