765. File Comparison Report

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

765.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 classifiedsmy.php Thu Oct 18 10:02:56 2007 UTC
2 Dolphin-v.6.1.0 classifiedsmy.php Wed Apr 9 17:45:00 2008 UTC

765.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 244
Changed 2 4
Inserted 0 0
Removed 0 0

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

765.4 Active regular expressions

No regular expressions were active.

765.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) 2007 Bo onEx Group   7   *     copy right             : ( C) 2007 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; yo u can redi stribute i t and/or m odify it u nder   11   * Dolphin  is free so ftware; yo u can redi stribute i t and/or m odify it u nder
12   * the term s of the G NU General  Public Li cense as p ublished b y the   12   * the term s of the G NU General  Public Li cense as p ublished b y the
13   * Free Sof tware Foun dation; ei ther versi on 2 of th e   13   * Free Sof tware Foun dation; ei ther versi on 2 of th e
14   * License,  or  any l ater versi on.   14   * License,  or  any l ater versi on.
15   *   15   *
16   * Dolphin  is distrib uted in th e hope tha t it will  be useful,  but WITHO UT ANY WAR RANTY;   16   * Dolphin  is distrib uted in th e hope tha t it will  be useful,  but WITHO UT ANY WAR RANTY;
17   * without  even the i mplied war ranty of   MERCHANTAB ILITY or F ITNESS FOR  A PARTICU LAR PURPOS E.   17   * without  even the i mplied war ranty of   MERCHANTAB ILITY or F ITNESS FOR  A PARTICU LAR PURPOS E.
18   * See the  GNU Genera l Public L icense for  more deta ils.   18   * See the  GNU Genera l Public L icense for  more deta ils.
19   * You shou ld have re ceived a c opy of the  GNU Gener al Public  License al ong with D olphin,   19   * You shou ld have re ceived a c opy of the  GNU Gener al Public  License al ong with D olphin,
20   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m   20   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m
21   ********** ********** ********** ********** ********** ********** ********** *****/   21   ********** ********** ********** ********** ********** ********** ********** *****/
22     22  
23   require_on ce( 'inc/h eader.inc. php' );   23   require_on ce( 'inc/h eader.inc. php' );
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );
25   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin.inc.p hp' );   25   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin.inc.p hp' );
26   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolCl assifieds. php' );   26   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolCl assifieds. php' );
27     27  
28   // ------- -------- p age variab les and lo gin   28   // ------- -------- p age variab les and lo gin
29   $_page['na me_index']      =   7 ;   29   $_page['na me_index']      =   151 ;
30   $_page['cs s_name'] =  'classifi eds_view.c ss';   30   $_page['cs s_name'] =  'classifi eds_view.c ss';
31   $_page['ex tra_js']   =   $oTemplCon fig   ->   sTinyMceEd itor Compact JS;   31   $_page['ex tra_js']   =   $oTemplCon fig   ->   sTinyMceEd itor
JS;
32     32  
33   check_logg ed();   33   check_logg ed();
34     34  
35   $oClassifi eds = new  BxDolClass ifieds();   35   $oClassifi eds = new  BxDolClass ifieds();
36   $oClassifi eds -> sCu rrBrowsedF ile = $_SE RVER['PHP_ SELF'];   36   $oClassifi eds -> sCu rrBrowsedF ile = $_SE RVER['PHP_ SELF'];
37   $_page['he ader'] = $ oClassifie ds -> GetH eaderStrin g();//_t(  "_CLASSIFI EDS_VIEW_H " );   37   $_page['he ader'] = $ oClassifie ds -> GetH eaderStrin g();//_t(  "_CLASSIFI EDS_VIEW_H " );
38   $_page['he ader_text' ] = $oClas sifieds ->  GetHeader String();   38   $_page['he ader_text' ] = $oClas sifieds ->  GetHeader String();
39     39  
40   $_ni = $_p age['name_ index'];   40   $_ni = $_p age['name_ index'];
41   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;   41   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;
42     42  
43   PageCode() ;   43   PageCode() ;
44     44  
45       /**   45       /**
46        * Gen erating Ma in page co de   46        * Gen erating Ma in page co de
47        *   47        *
48        * @re turn ALL p resentatio n of data   48        * @re turn ALL p resentatio n of data
49        */   49        */
50       functi on PageCom pPageMainC ode() {   50       functi on PageCom pPageMainC ode() {
51           $s RetHtml =  '';   51           $s RetHtml =  '';
52           gl obal $oCla ssifieds;   52           gl obal $oCla ssifieds;
53           // $oClassifi eds -> sCu rrBrowsedF ile = $_SE RVER['PHP_ SELF'];   53           // $oClassifi eds -> sCu rrBrowsedF ile = $_SE RVER['PHP_ SELF'];
54           $s RetHtml .=  $oClassif ieds -> Pr intCommand Forms();   54           $s RetHtml .=  $oClassif ieds -> Pr intCommand Forms();
55     55  
56           if  ($_REQUES T) {   56           if  ($_REQUES T) {
57                if (isse t($_GET['P ostAd']))  {   57                if (isse t($_GET['P ostAd']))  {
58                    if ( ((int)$_GE T['PostAd' ]) == 1) {   58                    if ( ((int)$_GE T['PostAd' ]) == 1) {
59                         $sRetHtml  .= $oClass ifieds ->  PrintPostA dForm();   59                         $sRetHtml  .= $oClass ifieds ->  PrintPostA dForm();
60                    }   60                    }
61                }   61                }
62                elseif ( isset($_GE T['MyAds'] )) {   62                elseif ( isset($_GE T['MyAds'] )) {
63                    if ( ((int)$_GE T['MyAds'] ) == 1) {   63                    if ( ((int)$_GE T['MyAds'] ) == 1) {
64                         $oClassifi eds -> Use DefaultCF( );   64                         $oClassifi eds -> Use DefaultCF( );
65                         $sRetHtml  .= $oClass ifieds ->  PrintMyAds ();   65                         $sRetHtml  .= $oClass ifieds ->  PrintMyAds ();
66                    }   66                    }
67                }   67                }
68                elseif ( isset($_PO ST['PostAd Message']) ) {   68                elseif ( isset($_PO ST['PostAd Message']) ) {
69                    if ( $_POST['Po stAdMessag e'] == 'Se nd') {   69                    if ( $_POST['Po stAdMessag e'] == 'Se nd') {
70                         $arrPostAd v = $oClas sifieds ->  FillPostA dvertismen tArrByPost Values();/ /validatin g   70                         $arrPostAd v = $oClas sifieds ->  FillPostA dvertismen tArrByPost Values();/ /validatin g
71                         $arrErr =  $oClassifi eds -> che ckGroupErr ors( $arrP ostAdv );   71                         $arrErr =  $oClassifi eds -> che ckGroupErr ors( $arrP ostAdv );
72                         if( empty(  $arrErr )  ) {   72                         if( empty(  $arrErr )  ) {
73                             $oClas sifieds ->  UseDefaul tCF();   73                             $oClas sifieds ->  UseDefaul tCF();
74                             $sRetH tml .= $oC lassifieds  -> Action PostAdMess age();   74                             $sRetH tml .= $oC lassifieds  -> Action PostAdMess age();
75                         }   75                         }
76                         else {   76                         else {
77                             $sRetH tml .= $oC lassifieds  -> PrintP ostAdForm( $arrErr);   77                             $sRetH tml .= $oC lassifieds  -> PrintP ostAdForm( $arrErr);
78                         }   78                         }
79                    }   79                    }
80                }   80                }
81                elseif ( isset($_PO ST['EditAd vertisemen tID'])) {   81                elseif ( isset($_PO ST['EditAd vertisemen tID'])) {
82                    if ( ((int)$_PO ST['EditAd vertisemen tID']) > 0 ) {   82                    if ( ((int)$_PO ST['EditAd vertisemen tID']) > 0 ) {
83                         $sRetHtml  .= $oClass ifieds ->  PrintEditF orm((int)$ _POST['Edi tAdvertise mentID']);   83                         $sRetHtml  .= $oClass ifieds ->  PrintEditF orm((int)$ _POST['Edi tAdvertise mentID']);
84                         //$oClassi fieds -> U seDefaultC F();   84                         //$oClassi fieds -> U seDefaultC F();
85                         //$sRetHtm l .= $oCla ssifieds - > PrintBac kLink2Adv( (int)$_POS T['EditAdv ertisement ID']);   85                         //$sRetHtm l .= $oCla ssifieds - > PrintBac kLink2Adv( (int)$_POS T['EditAdv ertisement ID']);
86                    }   86                    }
87                }   87                }
88                elseif ( isset($_PO ST['Update dAdvertise mentID']))  {   88                elseif ( isset($_PO ST['Update dAdvertise mentID']))  {
89                    $id  = (int)$_P OST['Updat edAdvertis ementID'];   89                    $id  = (int)$_P OST['Updat edAdvertis ementID'];
90                    if ( $id > 0) {   90                    if ( $id > 0) {
91                         if (isset( $_REQUEST[ 'DeletedPi ctureID'])  && (int)$ _REQUEST[' DeletedPic tureID']>0 ) {   91                         if (isset( $_REQUEST[ 'DeletedPi ctureID'])  && (int)$ _REQUEST[' DeletedPic tureID']>0 ) {
92                             //dele te a pic   92                             //dele te a pic
93                             $sRetH tml .= $oC lassifieds ->ActionDe letePictur e();   93                             $sRetH tml .= $oC lassifieds ->ActionDe letePictur e();
94                             $sRetH tml .= $oC lassifieds  -> PrintE ditForm($i d, $arrErr );   94                             $sRetH tml .= $oC lassifieds  -> PrintE ditForm($i d, $arrErr );
95                             //brea k;   95                             //brea k;
96                         } else {   96                         } else {
97                             $arrPo stAdv = $o Classified s -> FillP ostAdverti smentArrBy PostValues ();//valid ating   97                             $arrPo stAdv = $o Classified s -> FillP ostAdverti smentArrBy PostValues ();//valid ating
98                             $arrEr r = $oClas sifieds ->  checkGrou pErrors( $ arrPostAdv , TRUE );   98                             $arrEr r = $oClas sifieds ->  checkGrou pErrors( $ arrPostAdv , TRUE );
99     99  
100                             if( em pty( $arrE rr ) ) {   100                             if( em pty( $arrE rr ) ) {
101                                 $s RetHtml .=  $oClassif ieds -> Ac tionUpdate Advertisem entID($id) ;   101                                 $s RetHtml .=  $oClassif ieds -> Ac tionUpdate Advertisem entID($id) ;
102                             }   102                             }
103                             else {   103                             else {
104                                 $s RetHtml .=  $oClassif ieds -> Pr intEditFor m($id, $ar rErr);   104                                 $s RetHtml .=  $oClassif ieds -> Pr intEditFor m($id, $ar rErr);
105                                 $o Classified s -> UseDe faultCF();   105                                 $o Classified s -> UseDe faultCF();
106                                 $s RetHtml .=  $oClassif ieds -> Pr intBackLin k2Adv($id) ;   106                                 $s RetHtml .=  $oClassif ieds -> Pr intBackLin k2Adv($id) ;
107                             }   107                             }
108                         }   108                         }
109                    }   109                    }
110                }   110                }
111                elseif ( isset($_PO ST['Delete Advertisem entID']))  {   111                elseif ( isset($_PO ST['Delete Advertisem entID']))  {
112                    $id  = (int)$_P OST['Delet eAdvertise mentID'];   112                    $id  = (int)$_P OST['Delet eAdvertise mentID'];
113                    if ( $id > 0) {   113                    if ( $id > 0) {
114                         $sRetHtml  .= $oClass ifieds ->  ActionDele teAdvertis ement($id) ;   114                         $sRetHtml  .= $oClass ifieds ->  ActionDele teAdvertis ement($id) ;
115                    }   115                    }
116                }   116                }
117           }   117           }
118           el se {   118           el se {
119                $sRetHtm l .= _t("_ WARNING");   119                $sRetHtm l .= _t("_ WARNING");
120           }   120           }
121     121  
122           re turn $sRet Html;   122           re turn $sRet Html;
123       }   123       }
124   ?>   124   ?>