27. File Comparison Report

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

27.1 Files compared

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

27.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 9 262
Changed 7 14
Inserted 0 0
Removed 1 1

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

27.4 Active regular expressions

No regular expressions were active.

27.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( '../in c/header.i nc.php' );   21   require_on ce( '../in c/header.i nc.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 . 'a dmin_desig n.inc.php'  );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin_desig n.inc.php'  );
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
25   //require_ once( BX_D IRECTORY_P ATH_INC .  'articles. inc.php');    
26   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 ' );
27     26  
28     27  
29   //$_page[' header'] =  "Articles ";   28   //$_page[' header'] =  "Articles ";
30   $_page['he ader_text' ] = "Manag e site art icles";   29   $_page['he ader_text' ] = "Manag e site art icles";
31   $_page['cs s_name'] =  'articles .css';   30   $_page['cs s_name'] =  'articles .css';
32     31  
33   $_page['ex traCodeInH ead'] = '   32   $_page['ex traCodeInH ead'] = '
34       <!-- t inyMCE -->   33       <!-- t inyMCE -->
35       <scrip t language ="javascri pt" type=" text/javas cript" src ="' . $sit e['plugins '] . 'tiny _mce/tiny_ mce.js"></ script>   34       <scrip t language ="javascri pt" type=" text/javas cript" src ="' . $sit e['plugins '] . 'tiny _mce/tiny_ mce.js"></ script>
36       <scrip t language ="javascri pt" type=" text/javas cript">   35       <scrip t language ="javascri pt" type=" text/javas cript">
37       // Not ice: The s imple them e does not  use all o ptions som e of them  are limite d to the a dvanced th eme   36       // Not ice: The s imple them e does not  use all o ptions som e of them  are limite d to the a dvanced th eme
38       tinyMC E.init({   37       tinyMC E.init({
39           mo de : "text areas",   38           mo de : "text areas",
40           th eme : "adv anced",   39           th eme : "adv anced",
41           co ntent_css  : "' . $si te['base']  . 'css/ti ny_mce.css ",   40           co ntent_css  : "' . $si te['base']  . 'css/ti ny_mce.css ",
42           ed itor_selec tor : "art icl",   41           ed itor_selec tor : "art icl",
43           pl ugins : "t able,save, advhr,advi mage,advli nk,emotion s,iespell, insertdate time,previ ew,zoom,me dia,search replace,pr int,contex tmenu,past e,directio nality,ful lscreen",   42           pl ugins : "t able,save, advhr,advi mage,advli nk,emotion s,iespell, insertdate time,previ ew,zoom,me dia,search replace,pr int,contex tmenu,past e,directio nality,ful lscreen",
44           th eme_advanc ed_buttons 1_add : "f ontselect, fontsizese lect",   43           th eme_advanc ed_buttons 1_add : "f ontselect, fontsizese lect",
45           th eme_advanc ed_buttons 2_add_befo re: "cut,c opy,paste, pastetext, pasteword, separator, search,rep lace,separ ator",   44           th eme_advanc ed_buttons 2_add_befo re: "cut,c opy,paste, pastetext, pasteword, separator, search,rep lace,separ ator",
46           th eme_advanc ed_buttons 2_add : "s eparator,i nsertdate, inserttime ,separator ,forecolor ,backcolor ",   45           th eme_advanc ed_buttons 2_add : "s eparator,i nsertdate, inserttime ,separator ,forecolor ,backcolor ",
47           th eme_advanc ed_buttons 3_add_befo re : "tabl econtrols, separator" ,   46           th eme_advanc ed_buttons 3_add_befo re : "tabl econtrols, separator" ,
48           th eme_advanc ed_buttons 3_add : "e motions",   47           th eme_advanc ed_buttons 3_add : "e motions",
49           th eme_advanc ed_toolbar _location  : "top",   48           th eme_advanc ed_toolbar _location  : "top",
50           th eme_advanc ed_toolbar _align : " left",   49           th eme_advanc ed_toolbar _align : " left",
51           th eme_advanc ed_statusb ar_locatio n : "botto m",   50           th eme_advanc ed_statusb ar_locatio n : "botto m",
52           th eme_advanc ed_disable  : "link,u nlink,inse rtanchor,i mage,subsc ript,super script,hel p,anchor,c ode,styles elect",   51           th eme_advanc ed_disable  : "link,u nlink,inse rtanchor,i mage,subsc ript,super script,hel p,anchor,c ode,styles elect",
53           pl ugi2n_inse rtdate_dat eFormat :  "%Y-%m-%d" ,   52           pl ugi2n_inse rtdate_dat eFormat :  "%Y-%m-%d" ,
54           pl ugi2n_inse rtdate_tim eFormat :  "%H:%M:%S" ,   53           pl ugi2n_inse rtdate_tim eFormat :  "%H:%M:%S" ,
55           pa ste_use_di alog : fal se,   54           pa ste_use_di alog : fal se,
56           th eme_advanc ed_resizin g : false,   55           th eme_advanc ed_resizin g : false,
57           th eme_advanc ed_resize_ horizontal  : false,   56           th eme_advanc ed_resize_ horizontal  : false,
58           th eme_advanc ed_link_ta rgets : "_ something= My somthin g;_somethi ng2=My som thing2;_so mething3=M y somthing 3;",   57           th eme_advanc ed_link_ta rgets : "_ something= My somthin g;_somethi ng2=My som thing2;_so mething3=M y somthing 3;",
59           pa ste_auto_c leanup_on_ paste : tr ue,   58           pa ste_auto_c leanup_on_ paste : tr ue,
60           pa ste_conver t_headers_ to_strong  : false,   59           pa ste_conver t_headers_ to_strong  : false,
61           pa ste_strip_ class_attr ibutes : " all",   60           pa ste_strip_ class_attr ibutes : " all",
62           pa ste_remove _spans : f alse,   61           pa ste_remove _spans : f alse,
63           pa ste_remove _styles :  false   62           pa ste_remove _styles :  false
64     63  
65           }) ;   64           }) ;
66       </scri pt>   65       </scri pt>
67       <!-- / tinyMCE -- >   66       <!-- / tinyMCE -- >
68     67  
69   ';   68   ';
70     69  
71   $logged['a dmin']   =   member_aut h(   1  
);
  70   $logged['a dmin']   =   member_aut h(   1 ,   true,   true   );
72     71  
73   TopCodeAdm in();   72   TopCodeAdm in();
74   ContentBlo ckHead("Ar ticles");   73   ContentBlo ckHead("Ar ticles");
75   print   getArticle sAdminCont ent(
);
  74   print   getArticle sAdminCont ent( $logged );
76   ContentBlo ckFoot();   75   ContentBlo ckFoot();
77   BottomCode ();   76   BottomCode ();
78     77  
79   function   getArticle sAdminCont ent(
)   {
  78   function   getArticle sAdminCont ent( $logged )   {
80       global  $site;   79       global  $site;
81       global  $sActionT ext;   80       global  $sActionT ext;
82     81  
83        $oArticles   =   new   BxDolArtic les( tru e
);
  82        $oArticles   =   new   BxDolArtic les( $logg e d );
84       $sRet  = '';   83       $sRet  = '';
85     84  
86       $sActi ons = $oAr ticles->Ac tionAddUpd ateElement s();   85       $sActi ons = $oAr ticles->Ac tionAddUpd ateElement s();
87       $sRet  .=  $sActi ons;   86       $sRet  .=  $sActi ons;
88     87  
89       switch  ($_GET['a ction'] )   88       switch  ($_GET['a ction'] )
90       {   89       {
91           ca se 'addcat egory':   90           ca se 'addcat egory':
92                $sRet .=  $oArticle s->getArti clesCatego ryEditForm ();   91                $sRet .=  $oArticle s->getArti clesCatego ryEditForm ();
93           br eak;   92           br eak;
94     93  
95           ca se 'catego ryedit':   94           ca se 'catego ryedit':
96                $iCatego ryID = (in t)$_REQUES T['catID'] ;   95                $iCatego ryID = (in t)$_REQUES T['catID'] ;
97                $sRet .=  $oArticle s->getArti clesCatego ryEditForm ( $iCatego ryID );   96                $sRet .=  $oArticle s->getArti clesCatego ryEditForm ( $iCatego ryID );
98           br eak;   97           br eak;
99     98  
100           ca se 'viewca tegory':   99           ca se 'viewca tegory':
101                $iCatego ryID = (in t)$_REQUES T['catID'] ;   100                $iCatego ryID = (in t)$_REQUES T['catID'] ;
102                $sRet .=  $oArticle s->getArti clesList(  $iCategory ID );   101                $sRet .=  $oArticle s->getArti clesList(  $iCategory ID );
103           br eak;   102           br eak;
104     103  
105           ca se 'viewar ticle':   104           ca se 'viewar ticle':
106                $iArticl eID = (int )$_REQUEST ['articleI D'];   105                $iArticl eID = (int )$_REQUEST ['articleI D'];
107                $sRet .=  $oArticle s->getArti cle( $iArt icleID );   106                $sRet .=  $oArticle s->getArti cle( $iArt icleID );
108           br eak;   107           br eak;
109     108  
110           ca se 'addart icle':   109           ca se 'addart icle':
111                $sRet .=  $oArticle s->getArti cleEditFor m();   110                $sRet .=  $oArticle s->getArti cleEditFor m();
112           br eak;   111           br eak;
113     112  
114           ca se 'catego rydelete':   113           ca se 'catego rydelete':
115                $iCatego ryID = (in t)$_REQUES T['catID'] ;   114                $iCatego ryID = (in t)$_REQUES T['catID'] ;
116                $sRet .=  $oArticle s->deleteC ategory( $ iCategoryI D );   115                $sRet .=  $oArticle s->deleteC ategory( $ iCategoryI D );
117                 $sRet   .=   $oArticles ->getArtic lesCateg i riesList() ;   116                 $sRet   .=   $oArticles ->getArtic lesCateg o riesList() ;
118           br eak;   117           br eak;
119     118  
120           ca se 'editar ticle':   119           ca se 'editar ticle':
121                $iArticl eID = (int )$_REQUEST ['articleI D'];   120                $iArticl eID = (int )$_REQUEST ['articleI D'];
122                $sRet .=  $oArticle s->getArti cleEditFor m( $iArtic leID );   121                $sRet .=  $oArticle s->getArti cleEditFor m( $iArtic leID );
123           br eak;   122           br eak;
124     123  
125           ca se 'delete article':   124           ca se 'delete article':
126                $iArticl eID = (int )$_REQUEST ['articleI D'];   125                $iArticl eID = (int )$_REQUEST ['articleI D'];
127                $sRet .=  $oArticle s->deleteA rticle( $i ArticleID  );   126                $sRet .=  $oArticle s->deleteA rticle( $i ArticleID  );
128                 $sRet   .=   $oArticles ->getArtic lesCateg i riesList() ;   127                 $sRet   .=   $oArticles ->getArtic lesCateg o riesList() ;
129           br eak;   128           br eak;
130     129  
131           de fault:   130           de fault:
132                 $sRet   .=   $oArticles ->getArtic lesCateg i riesList() ;   131                 $sRet   .=   $oArticles ->getArtic lesCateg o riesList() ;
133           br eak;   132           br eak;
134       }   133       }
135     134  
136       return  $sRet;   135       return  $sRet;
137   }   136   }
138     137  
139   ?>   138   ?>