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

756.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 blogs.php Wed Mar 5 05:31:28 2008 UTC
2 Dolphin-v.6.1.0 blogs.php Sat Apr 19 12:05:06 2008 UTC

756.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 6 348
Changed 3 9
Inserted 2 7
Removed 0 0

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

756.4 Active regular expressions

No regular expressions were active.

756.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( 'inc/h eader.inc. php' );   21   require_on ce( 'inc/h eader.inc. 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 . 'p rofiles.in c.php' );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.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     25  
26   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolBl ogs.php' ) ;   26   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolBl ogs.php' ) ;
27     27  
28   // ------- -------- p age variab les and lo gin   28   // ------- -------- p age variab les and lo gin
29     29  
30   $_page['na me_index']     = 49;   30   $_page['na me_index']     = 49;
31   $_page['cs s_name']       = 'blo gs.css';   31   $_page['cs s_name']       = 'blo gs.css';
32     32  
    33  
33   check_logg ed();   34   check_logg ed();
34     35  
35   $oBlogs   =   new   BxDolBlogs ( FALSE );   36   $oBlogs   =   new   BxDolBlogs ( false );
    37   $oBlogs->s CommonCSS  = <<<EOF
    38   <link href ="{$site[' url']}temp lates/tmpl _{$tmpl}/c ss/blogs_c ommon.css"  rel="styl esheet" ty pe="text/c ss" />
    39   EOF;
36     40  
37   $_ni = $_p age['name_ index'];   41   $_ni = $_p age['name_ index'];
38   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompBlog s();   42   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompBlog s();
39   $_page['ex tra_js'] =  $oTemplCo nfig -> sT inyMceEdit orJS;   43   $_page['ex tra_js'] =  $oTemplCo nfig -> sT inyMceEdit orJS;
40     44  
41   $_page['he ader'] = $ oBlogs->Ge tHeaderStr ing();   45   $_page['he ader'] = $ oBlogs->Ge tHeaderStr ing();
42   $_page['he ader_text' ] = $oBlog s->GetHead erString() ;   46   $_page['he ader_text' ] = $oBlog s->GetHead erString() ;
43     47  
44   function P ageCompBlo gs() {   48   function P ageCompBlo gs() {
45       global  $site;   49       global  $site;
46       global  $date_for mat;   50       global  $date_for mat;
47       global  $oBlogs;   51       global  $oBlogs;
48     52  
49       $sRetH tml = '';   53       $sRetH tml = '';
50       $sRetH tml .= $oB logs->GenC ommandForm s();   54       $sRetH tml .= $oB logs->GenC ommandForm s();
51     55  
52       switch  ( $_REQUE ST['action '] ) {   56       switch  ( $_REQUE ST['action '] ) {
53           // print func tions   57           // print func tions
54           ca se 'top_bl ogs':   58           ca se 'top_bl ogs':
55                $sRetHtm l .= $oBlo gs->GenBlo gLists('to p');   59                $sRetHtm l .= $oBlo gs->GenBlo gLists('to p');
56                break;   60                break;
57           ca se 'show_m ember_blog ':   61           ca se 'show_m ember_blog ':
58                $sRetHtm l .= $oBlo gs->GenMem berBlog();   62                $sRetHtm l .= $oBlo gs->GenMem berBlog();
59                break;   63                break;
60           ca se 'top_po sts':   64           ca se 'top_po sts':
61                $sRetHtm l .= $oBlo gs->GenPos tLists('to p');   65                $sRetHtm l .= $oBlo gs->GenPos tLists('to p');
62                break;   66                break;
63           ca se 'new_po st':   67           ca se 'new_po st':
64                $sRetHtm l .= $oBlo gs->AddNew PostForm() ;   68                $sRetHtm l .= $oBlo gs->AddNew PostForm() ;
65                break;   69                break;
66           ca se 'show_m ember_post ':   70           ca se 'show_m ember_post ':
67                $sRetHtm l .= $oBlo gs->GenPos tPage();   71                $sRetHtm l .= $oBlo gs->GenPos tPage();
68                break;   72                break;
69           ca se 'search _by_tag':   73           ca se 'search _by_tag':
70                $sRetHtm l .= $oBlo gs->GenSea rchResult( );   74                $sRetHtm l .= $oBlo gs->GenSea rchResult( );
71                break;   75                break;
72     76  
73           // forms of e diting   77           // forms of e diting
74           ca se 'add_ca tegory':   78           ca se 'add_ca tegory':
75                $sRetHtm l .= $oBlo gs->GenEdi tCategoryF orm();   79                $sRetHtm l .= $oBlo gs->GenEdi tCategoryF orm();
76                break;   80                break;
77           ca se 'edit_c ategory':   81           ca se 'edit_c ategory':
78                $iCatego ryID = (in t)($_REQUE ST['catego ryID']);   82                $iCatego ryID = (in t)($_REQUE ST['catego ryID']);
79                $sRetHtm l .= $oBlo gs->GenEdi tCategoryF orm($iCate goryID);   83                $sRetHtm l .= $oBlo gs->GenEdi tCategoryF orm($iCate goryID);
80                break;   84                break;
81           ca se 'edit_p ost':   85           ca se 'edit_p ost':
82                $iPostID  = (int)($ _POST['Edi tPostID']) ;   86                $iPostID  = (int)($ _POST['Edi tPostID']) ;
83                $sRetHtm l .= $oBlo gs->AddNew PostForm($ iPostID);   87                $sRetHtm l .= $oBlo gs->AddNew PostForm($ iPostID);
84                break;   88                break;
85     89  
86           // non safe f unctions   90           // non safe f unctions
87           ca se 'create _blog':   91           ca se 'create _blog':
88                $sRetHtm l .= $oBlo gs->Action CreateBlog ();   92                $sRetHtm l .= $oBlo gs->Action CreateBlog ();
89                break;   93                break;
90           ca se 'edit_b log':   94           ca se 'edit_b log':
91                $sRetHtm l .= $oBlo gs->Action EditBlog() ;   95                $sRetHtm l .= $oBlo gs->Action EditBlog() ;
92                $iBlogID  = (int)($ _POST['Edi tBlogID']) ;   96                $iBlogID  = (int)($ _POST['Edi tBlogID']) ;
93                $iOwnerI D = (int)( $_REQUEST[ 'EOwnerID' ]);   97                $iOwnerI D = (int)( $_REQUEST[ 'EOwnerID' ]);
94                $sRetHtm l .= $oBlo gs->GenMem berBlog($i OwnerID);   98                $sRetHtm l .= $oBlo gs->GenMem berBlog($i OwnerID);
95                break;   99                break;
96           ca se 'delete _blog':   100           ca se 'delete _blog':
97                $sRetHtm l .= $oBlo gs->Action DeleteBlog SQL();   101                $sRetHtm l .= $oBlo gs->Action DeleteBlog SQL();
98                $sRetHtm l .= $oBlo gs->GenBlo gLists('la st');   102                $sRetHtm l .= $oBlo gs->GenBlo gLists('la st');
99                break;   103                break;
100           ca se 'addcat egory':   104           ca se 'addcat egory':
101                $sRetHtm l .= $oBlo gs->Action UpdateCate gory();   105                $sRetHtm l .= $oBlo gs->Action UpdateCate gory();
102                $iOwnerI D = (int)( $_REQUEST[ 'OwnerID'] );   106                $iOwnerI D = (int)( $_REQUEST[ 'OwnerID'] );
103                $_REQUES T['categor y'] = mysq l_insert_i d();   107                $_REQUES T['categor y'] = mysq l_insert_i d();
104                $sRetHtm l .= $oBlo gs->GenMem berBlog($i OwnerID);   108                $sRetHtm l .= $oBlo gs->GenMem berBlog($i OwnerID);
105                break;   109                break;
106           ca se 'editca tegory':   110           ca se 'editca tegory':
107                $sRetHtm l .= $oBlo gs->Action UpdateCate gory(TRUE) ;   111                $sRetHtm l .= $oBlo gs->Action UpdateCate gory(TRUE) ;
108                $iOwnerI D = (int)( $_REQUEST[ 'OwnerID'] );   112                $iOwnerI D = (int)( $_REQUEST[ 'OwnerID'] );
109                $_REQUES T['categor y'] = mysq l_insert_i d();   113                $_REQUES T['categor y'] = mysq l_insert_i d();
110                $sRetHtm l .= $oBlo gs->GenMem berBlog($i OwnerID);   114                $sRetHtm l .= $oBlo gs->GenMem berBlog($i OwnerID);
111                break;   115                break;
112           ca se 'delete _category' :   116           ca se 'delete _category' :
113                $sRetHtm l .= $oBlo gs->Action DeleteCate gory();   117                $sRetHtm l .= $oBlo gs->Action DeleteCate gory();
    118                $iOwnerI D = (int)$ _COOKIE['m emberID'];
    119                $sRetHtm l .= $oBlo gs->GenMem berBlog($i OwnerID);
    120                break;
    121           ca se 'del_im g':
    122                $sRetHtm l .= $oBlo gs->Action DelImg();
    123                $sRetHtm l .= $oBlo gs->GenPos tPage();
114                break;   124                break;
115           ca se 'add_po st':   125           ca se 'add_po st':
116                $arrPost Adv = $oBl ogs->GetPo stArrByPos tValues();   126                $arrPost Adv = $oBl ogs->GetPo stArrByPos tValues();
117                $arrErr  = $oBlogs- >GetCheckE rrors($arr PostAdv);   127                $arrErr  = $oBlogs- >GetCheckE rrors($arr PostAdv);
118                if( empt y( $arrErr  ) ) {   128                if( empt y( $arrErr  ) ) {
119                    $iLa stID = -1;   129                    $iLa stID = -1;
120                    $sRe tHtml .= $ oBlogs->Ac tionAddNew Post($iLas tID);   130                    $sRe tHtml .= $ oBlogs->Ac tionAddNew Post($iLas tID);
121                    $_RE QUEST['pos t_id'] = $ iLastID;   131                    $_RE QUEST['pos t_id'] = $ iLastID;
122                    $sRe tHtml .= $ oBlogs->Ge nPostPage( );   132                    $sRe tHtml .= $ oBlogs->Ge nPostPage( );
123                } else {   133                } else {
124                    $sRe tHtml .= $ oBlogs->Ad dNewPostFo rm(-1, $ar rErr);   134                    $sRe tHtml .= $ oBlogs->Ad dNewPostFo rm(-1, $ar rErr);
125                }   135                }
126                break;   136                break;
127           ca se 'post_u pdated':   137           ca se 'post_u pdated':
128                $iPostID  = (int)($ _POST['Edi tedPostID' ]);   138                $iPostID  = (int)($ _POST['Edi tedPostID' ]);
129     139  
130                $arrPost Adv = $oBl ogs->GetPo stArrByPos tValues();   140                $arrPost Adv = $oBl ogs->GetPo stArrByPos tValues();
131                $arrErr  = $oBlogs  -> GetChec kErrors($a rrPostAdv) ;   141                $arrErr  = $oBlogs  -> GetChec kErrors($a rrPostAdv) ;
132                if( empt y( $arrErr  ) ) {   142                if( empt y( $arrErr  ) ) {
133                    $sRe tHtml .= $ oBlogs->Ac tionEditPo st();   143                    $sRe tHtml .= $ oBlogs->Ac tionEditPo st();
134                    $_RE QUEST['pos t_id'] = $ iPostID;   144                    $_RE QUEST['pos t_id'] = $ iPostID;
135                    $sRe tHtml .= $ oBlogs->Ge nPostPage( );   145                    $sRe tHtml .= $ oBlogs->Ge nPostPage( );
136                } else {   146                } else {
137                    $sRe tHtml .= $ oBlogs->Ad dNewPostFo rm($iPostI D, $arrErr );   147                    $sRe tHtml .= $ oBlogs->Ad dNewPostFo rm($iPostI D, $arrErr );
138                }   148                }
139                break;   149                break;
140           ca se 'delete _post':   150           ca se 'delete _post':
141                $sRetHtm l .= $oBlo gs->Action DeletePost ();   151                $sRetHtm l .= $oBlo gs->Action DeletePost ();
142                $iPostID  = (int)($ _POST['Del etePostID' ]);   152                $iPostID  = (int)($ _POST['Del etePostID' ]);
143                $_REQUES T['ownerID '] = $oBlo gs->aBlogC onf['visit orID'];   153                $_REQUES T['ownerID '] = $oBlo gs->aBlogC onf['visit orID'];
144                $sRetHtm l .= $oBlo gs->GenMem berBlog();   154                $sRetHtm l .= $oBlo gs->GenMem berBlog();
145                break;   155                break;
146           
case   'addcommen t':
  156            /* case   'addcommen t':
147                $sRetHtm l .= $oBlo gs->Action AddBlogCom ment();   157                $sRetHtm l .= $oBlo gs->Action AddBlogCom ment();
148                $iPostID  = (int)($ _POST['Com mPostID']) ;   158                $iPostID  = (int)($ _POST['Com mPostID']) ;
149                $iOwnerI D = (int)( $_POST['ow nerID']);   159                $iOwnerI D = (int)( $_POST['ow nerID']);
150                $_REQUES T['post_id '] = $iPos tID;   160                $_REQUES T['post_id '] = $iPos tID;
151                $sRetHtm l .= $oBlo gs->GenPos tPage();   161                $sRetHtm l .= $oBlo gs->GenPos tPage();
152                break;   162                break;
153           ca se 'editco mment':   163           ca se 'editco mment':
154                $sRetHtm l .= $oBlo gs->Action EditCommen t();   164                $sRetHtm l .= $oBlo gs->Action EditCommen t();
155                $iPostID  = (int)($ _POST['EPo stID']);   165                $iPostID  = (int)($ _POST['EPo stID']);
156                $iOwnerI D = (int)( $_POST['ow nerID']);   166                $iOwnerI D = (int)( $_POST['ow nerID']);
157                $_REQUES T['post_id '] = $iPos tID;   167                $_REQUES T['post_id '] = $iPos tID;
158                $sRetHtm l .= $oBlo gs->GenPos tPage();   168                $sRetHtm l .= $oBlo gs->GenPos tPage();
159                break;   169                break;
160           ca se 'delete _comment':   170           ca se 'delete _comment':
161                $sRetHtm l .= $oBlo gs->Action DeleteComm ent();   171                $sRetHtm l .= $oBlo gs->Action DeleteComm ent();
162                $iPostID  = (int)($ _POST['DPo stID']);   172                $iPostID  = (int)($ _POST['DPo stID']);
163                $iOwnerI D = (int)( $_POST['ow nerID']);   173                $iOwnerI D = (int)( $_POST['ow nerID']);
164                $_REQUES T['post_id '] = $iPos tID;   174                $_REQUES T['post_id '] = $iPos tID;
165                $sRetHtm l .= $oBlo gs->GenPos tPage();   175                $sRetHtm l .= $oBlo gs->GenPos tPage();
166                 break;
  176                 break; */
167           de fault:   177           de fault:
168                $sRetHtm l .= $oBlo gs->GenBlo gLists('la st');   178                $sRetHtm l .= $oBlo gs->GenBlo gLists('la st');
169                break;   179                break;
170       }   180       }
171     181  
172       return  $sRetHtml ;   182       return  $sRetHtml ;
173   }   183   }
174     184  
175   PageCode() ;   185   PageCode() ;
176     186  
177   ?>   187   ?>