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

764.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 classifieds.php Thu Oct 18 11:13:34 2007 UTC
2 Dolphin-v.6.1.0 classifieds.php Sat Apr 19 12:05:06 2008 UTC

764.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 15 278
Changed 10 41
Inserted 4 6
Removed 0 0

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

764.4 Active regular expressions

No regular expressions were active.

764.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  
26   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolCl assifieds. php' );   27   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolCl assifieds. php' );
27     28  
28   // ------- -------- p age variab les and lo gin   29   // ------- -------- p age variab les and lo gin
29   $_page['na me_index']      =   7 ;   30   $_page['na me_index']      =   151 ;
30   $_page['cs s_name'] =  'classifi eds_view.c ss';   31   $_page['cs s_name'] =  'classifi eds_view.c ss';
31   $_page['ex tra_js']   =   $oTemplCon fig   ->   sTinyMceEd itor Compact JS;   32   $_page['ex tra_js']   =   $oTemplCon fig   ->   sTinyMceEd itor
JS;
32     33  
33   check_logg ed();   34   check_logg ed();
34     35  
35   $oClassifi eds = new  BxDolClass ifieds();   36   $oClassifi eds = new  BxDolClass ifieds();
36     37  
37   $_page['he ader'] = $ oClassifie ds -> GetH eaderStrin g();//_t(  "_CLASSIFI EDS_VIEW_H " );   38   $_page['he ader'] = $ oClassifie ds -> GetH eaderStrin g();//_t(  "_CLASSIFI EDS_VIEW_H " );
38   $_page['he ader_text' ] = $oClas sifieds ->  GetHeader String();   39   $_page['he ader_text' ] = $oClas sifieds ->  GetHeader String();
39     40  
40   $_ni = $_p age['name_ index'];   41   $_ni = $_p age['name_ index'];
41   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;   42   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;
42     43  
43   PageCode() ;   44   PageCode() ;
44     45  
45       /**   46       /**
46        * Gen erating Ma in page co de   47        * Gen erating Ma in page co de
47        *   48        *
48        * @re turn ALL p resentatio n of data   49        * @re turn ALL p resentatio n of data
49        */   50        */
50       functi on PageCom pPageMainC ode() {   51       functi on PageCom pPageMainC ode() {
51           $s RetHtml =  '';   52           $s RetHtml =  '';
52           gl obal $oCla ssifieds;   53           gl obal $oCla ssifieds;
    54  
    55           $o APV = new  BxDolAdPag eView($oCl assifieds) ;
    56  
53           $o Classified s -> sCurr BrowsedFil e = $_SERV ER['PHP_SE LF'];   57           $o Classified s -> sCurr BrowsedFil e = $_SERV ER['PHP_SE LF'];
54           $s RetHtml .=  $oClassif ieds -> Pr intCommand Forms();   58           $s RetHtml .=  $oClassif ieds -> Pr intCommand Forms();
55     59  
56           if  ($_REQUES T) {   60           if  ($_REQUES T) {
57                //print  functions   61                //print  functions
58                if (isse t($_REQUES T['action' ])) {   62                if (isse t($_REQUES T['action' ])) {
59                    if ( (int)$_REQ UEST['acti on']==3) {   63                    if ( (int)$_REQ UEST['acti on']==3) {
60                         $sRetHtml  .= $oClass ifieds ->  PrintFilte rForm();   64                         $sRetHtml  .= $oClass ifieds ->  PrintFilte rForm();
61                         $sRetHtml  .= $oClass ifieds ->  PrintFilte redAllAdve rtisements ();   65                         $sRetHtml  .= $oClass ifieds ->  PrintFilte redAllAdve rtisements ();
62                    }   66                    }
63                    else if ((int)$ _REQUEST[' action']== 2) {   67                    else if ((int)$ _REQUEST[' action']== 2) {
64                         $iClassifi edSubID =  (int)$_REQ UEST['Filt erSubCat'] ;   68                         $iClassifi edSubID =  (int)$_REQ UEST['Filt erSubCat'] ;
    69                         //$iClassi fiedSubID  = ($oClass ifieds->bU seFriendly Links) ? ( int)db_val ue("SELECT  `ID` FROM  `Classifi edsSubs` W HERE `СEnt ryUri`='"  . $oClassi fieds->pro cess_html_ db_input($ _REQUEST[' FilterCat' ]) . "' LI MIT 1") :  (int)$_REQ UEST['Filt erSubCat'] ;
65                         $sRetHtml  .= $oClass ifieds ->  PrintSubRe cords($iCl assifiedSu bID, TRUE) ;   70                         $sRetHtml  .= $oClass ifieds ->  PrintSubRe cords($iCl assifiedSu bID, TRUE) ;
66                    }   71                    }
67                    else if ((int)$ _REQUEST[' action']== 1) {   72                    else if ((int)$ _REQUEST[' action']== 1) {
68                         $iClassifi edID = (in t)$_REQUES T['FilterC at'];   73                         $iClassifi edID = (in t)$_REQUES T['FilterC at'];
    74                         //$iClassi fiedID = ( $oClassifi eds->bUseF riendlyLin ks) ? (int )db_value( "SELECT `I D` FROM `C lassifieds ` WHERE `S EntryUri`= '" . $oCla ssifieds-> process_ht ml_db_inpu t($_REQUES T['SEntryU ri']) . "'  LIMIT 1")  : (int)$_ REQUEST['F ilterCat'] ;
69                         $sRetHtml  .= $oClass ifieds ->  PrintAllSu bRecords($ iClassifie dID);   75                         $sRetHtml  .= $oClass ifieds ->  PrintAllSu bRecords($ iClassifie dID);
70                    }   76                    }
71                    else if ($_REQU EST['actio n']=='repo rt') {   77                    else if ($_REQU EST['actio n']=='repo rt') {
72                         $iCommentI D = (int)$ _REQUEST[' commentID' ];   78                         $iCommentI D = (int)$ _REQUEST[' commentID' ];
73                         print $oCl assifieds  -> GenRepo rtSubmitFo rm($iComme ntID);   79                         print $oCl assifieds  -> GenRepo rtSubmitFo rm($iComme ntID);
74                         exit();   80                         exit();
75                    }   81                    }
76                    else if ($_REQU EST['actio n']=='post _report')  {   82                    else if ($_REQU EST['actio n']=='post _report')  {
77                         print $oCl assifieds- >ActionRep ortSubmit( );   83                         print $oCl assifieds- >ActionRep ortSubmit( );
78                         exit();   84                         exit();
79                    }   85                    }
80                }   86                }
81                 elseif   (
isset($_GE T['bClassi fiedID'])   AND   (int)$_GET ['bClassif iedID']   >   0)  
{
  87                 elseif   ( ( isset($_GE T['bClassi fiedID'])   AND   (int)$_GET ['bClassif iedID']   >   0)   OR   (isset($_G ET['catUri '])   &&   $_GET['cat Uri']!='') )   {
82                    
$iClassifi edID   =   (int)$_GET ['bClassif iedID'];
  88                     // $iClassifi edID   =   (int)$_GET ['bClassif iedID'];
    89                    $iCl assifiedID  = ($oClas sifieds->b UseFriendl yLinks) ?  (int)db_va lue("SELEC T `ID` FRO M `Classif ieds` WHER E `CEntryU ri`='" . $ oClassifie ds->proces s_html_db_ input($_RE QUEST['cat Uri']) . " ' LIMIT 1" ) : (int)$ _REQUEST[' bClassifie dID'];
83                    if ( $iClassifi edID > 0)  {   90                    if ( $iClassifi edID > 0)  {
84                         $sRetHtml  .= $oClass ifieds ->  PrintFilte rForm($iCl assifiedID );   91                         $sRetHtml  .= $oClass ifieds ->  PrintFilte rForm($iCl assifiedID );
85                         $sRetHtml  .= $oClass ifieds ->  PrintAllSu bRecords($ iClassifie dID);   92                         $sRetHtml  .= $oClass ifieds ->  PrintAllSu bRecords($ iClassifie dID);
86                    }   93                    }
87                }   94                }
88                 elseif   (
isset($_GE T['bSubCla ssifiedID' ])   AND   (int)$_GET ['bSubClas sifiedID']   >   0)  
{
  95                 elseif   ( ( isset($_GE T['bSubCla ssifiedID' ])   AND   (int)$_GET ['bSubClas sifiedID']   >   0)   OR   (isset($_G ET['scatUr i'])   &&   $_GET['sca tUri']!='' ))   {
89                    
$iSubClass ifiedID   =   (int)$_GET ['bSubClas sifiedID'] ;
  96                     // $iSubClass ifiedID   =   (int)$_GET ['bSubClas sifiedID'] ;
    97                    $iSu bClassifie dID = ($oC lassifieds ->bUseFrie ndlyLinks)  ? (int)db _value("SE LECT `ID`  FROM `Clas sifiedsSub s` WHERE ` SEntryUri` ='" . $oCl assifieds- >process_h tml_db_inp ut($_REQUE ST['scatUr i']) . "'  LIMIT 1")  : (int)$_R EQUEST['bS ubClassifi edID'];
90                    if ( $iSubClass ifiedID >  0) {   98                    if ( $iSubClass ifiedID >  0) {
91                         $sRetHtml  .= $oClass ifieds ->  PrintFilte rForm(0, $ iSubClassi fiedID);   99                         $sRetHtml  .= $oClass ifieds ->  PrintFilte rForm(0, $ iSubClassi fiedID);
92                         $sRetHtml  .= $oClass ifieds ->  PrintSubRe cords($iSu bClassifie dID, TRUE) ;   100                         $sRetHtml  .= $oClass ifieds ->  PrintSubRe cords($iSu bClassifie dID, TRUE) ;
93                    }   101                    }
94                }   102                }
95                 elseif   (
isset($_RE QUEST['Sho wAdvertise mentID'])
)   {
  103                 elseif   ( ( isset($_RE QUEST['Sho wAdvertise mentID'])   &&   (int)$_REQ UEST['Show Advertisem entID']>0)   OR   (isset($_G ET['entryU ri'])   &&   $_GET['ent ryUri']!=' ') )   {
96                    
$id   =  
$_REQUEST[ 'ShowAdver tisementID '];
  104                     // $id   =   (int) $_REQUEST[ 'ShowAdver tisementID '];
97                    if ( $id > 0) {   105                    $id  = ($oClass ifieds->bU seFriendly Links) ? ( int)db_val ue("SELECT  `ID` FROM  `Classifi edsAdverti sements` W HERE `Entr yUri`='" .  $oClassif ieds->proc ess_html_d b_input($_ REQUEST['e ntryUri'])  . "' LIMI T 1") : (i nt)$_REQUE ST['ShowAd vertisemen tID'];
98                        
$sRetHtml   .=  
$oClassifi eds   ->   ActionPrin tAdvertise ment($id);
  106                     /* $sRetHtml   .= */   $oClassifi eds   ->   ActionPrin tAdvertise ment($id);
99                    }   107                    $sRe tHtml .= $ oAPV -> ge tCode();
100                }   108                }
101                elseif ( isset($_GE T['SearchF orm'])) {   109                elseif ( isset($_GE T['SearchF orm'])) {
102                    if ( ((int)$_GE T['SearchF orm']) ==  1) {   110                    if ( ((int)$_GE T['SearchF orm']) ==  1) {
103                         $sRetHtml  .= $oClass ifieds ->  PrintFilte rForm();   111                         $sRetHtml  .= $oClass ifieds ->  PrintFilte rForm();
104                    }   112                    }
105                }   113                }
106                elseif ( isset($_RE QUEST['Use rsOtherLis ting'])) {   114                elseif ( isset($_RE QUEST['Use rsOtherLis ting'])) {
107                    $iPr ofileID =  (int)$_REQ UEST['IDPr ofile'];   115                    $iPr ofileID =  (int)$_REQ UEST['IDPr ofile'];
108                    if ( $iProfileI D > -1) {   116                    if ( $iProfileI D > -1) {
109                         $sRetHtml  .= $oClass ifieds ->  PrintMyAds ($iProfile ID);   117                         $sRetHtml  .= $oClass ifieds ->  PrintMyAds ($iProfile ID);
110                    }   118                    }
111                }   119                }
112                //non sa fe functio ns   120                //non sa fe functio ns
113                elseif ( isset($_RE QUEST['Del eteAdverti sementID'] )) {   121                elseif ( isset($_RE QUEST['Del eteAdverti sementID'] )) {
114                    $id  = (int)$_R EQUEST['De leteAdvert isementID' ];   122                    $id  = (int)$_R EQUEST['De leteAdvert isementID' ];
115                    if ( $id > 0) {   123                    if ( $id > 0) {
116                         $sRetHtml  .= $oClass ifieds ->  ActionDele teAdvertis ement($id) ;   124                         $sRetHtml  .= $oClass ifieds ->  ActionDele teAdvertis ement($id) ;
117                    }   125                    }
118                }   126                }
119                elseif ( isset($_RE QUEST['Buy Now'])) {   127                elseif ( isset($_RE QUEST['Buy Now'])) {
120                    $adv Id = (int) $_REQUEST[ 'IDAdv'];   128                    $adv Id = (int) $_REQUEST[ 'IDAdv'];
121                    if ( $advId > 0 ) {   129                    if ( $advId > 0 ) {
122                         $sRetHtml  .= $oClass ifieds ->  ActionBuyA dvertiseme nt($advId) ;   130                         $sRetHtml  .= $oClass ifieds ->  ActionBuyA dvertiseme nt($advId) ;
123                    }   131                    }
124                }   132                }
125                elseif ( isset($_RE QUEST['Buy SendNow']) ) {   133                elseif ( isset($_RE QUEST['Buy SendNow']) ) {
126                    $adv Id = (int) $_REQUEST[ 'IDAdv'];   134                    $adv Id = (int) $_REQUEST[ 'IDAdv'];
127                    if ( $advId > 0 ) {   135                    if ( $advId > 0 ) {
128                         $sRetHtml  .= $oClass ifieds ->  ActionBuyS endMailAdv ertisement ($advId);   136                         $sRetHtml  .= $oClass ifieds ->  ActionBuyS endMailAdv ertisement ($advId);
129                    }   137                    }
130                }   138                }
131                
elseif   (isset($_R EQUEST['po stCommentA dv']))   {
  139                 /* elseif   (isset($_R EQUEST['po stCommentA dv']))   {
132                    $adv Id = (int) $_REQUEST[ 'CommAdver tisementID '];   140                    $adv Id = (int) $_REQUEST[ 'CommAdver tisementID '];
133                    if ( $advId > 0 ) {   141                    if ( $advId > 0 ) {
134                         $sRetHtml  .= $oClass ifieds ->  ActionPost CommAdvert isement($a dvId);   142                         $sRetHtml  .= $oClass ifieds ->  ActionPost CommAdvert isement($a dvId);
135                         $sRetHtml  .= $oClass ifieds ->  PrintBackL ink2Adv($a dvId);   143                         $sRetHtml  .= $oClass ifieds ->  PrintBackL ink2Adv($a dvId);
136                         $ sRetHtml   .=   $ oClassifie ds   ->   ActionPrin tAdvertise ment($advI d);   144                         $
oClassifie ds   ->   ActionPrin tAdvertise ment($advI d);
137                    }   145                         $sRetHtml  .= $oAPV - > getCode( );
138                }   146                    }
139                
elseif   (isset($_P OST['EditC ommentID'] ))   {
  147                }*/
    148                 /* elseif   (isset($_P OST['EditC ommentID'] ))   {
140                    $sRe tHtml .= $ oClassifie ds->Action EditCommen t();   149                    $sRe tHtml .= $ oClassifie ds->Action EditCommen t();
141                     $ sRetHtml   .=   $ oClassifie ds->Action PrintAdver tisement($ _REQUEST[' EAdvID']);   150                     $
oClassifie ds->Action PrintAdver tisement($ _REQUEST[' EAdvID']);
    151                    $sRe tHtml .= $ oAPV -> ge tCode();
142                }   152                }
143                elseif ( isset($_PO ST['Delete CommentID' ])) {   153                elseif ( isset($_PO ST['Delete CommentID' ])) {
144                    $sRe tHtml .= $ oClassifie ds->Action DeleteComm ent();   154                    $sRe tHtml .= $ oClassifie ds->Action DeleteComm ent();
145                     $ sRetHtml   .=   $ oClassifie ds->Action PrintAdver tisement($ _REQUEST[' DAdvID']);   155                     $
oClassifie ds->Action PrintAdver tisement($ _REQUEST[' DAdvID']);
146                 }
  156                    $sRe tHtml .= $ oAPV -> ge tCode();
    157                 } */
147                else {   158                else {
148                    $sRe tHtml .= $ oClassifie ds -> Prin tClassifie ds();   159                    $sRe tHtml .= $ oClassifie ds -> Prin tClassifie ds();
149                }   160                }
150           }   161           }
151           el se {   162           el se {
152                $sRetHtm l .= $oCla ssifieds - > PrintCla ssifieds() ;   163                $sRetHtm l .= $oCla ssifieds - > PrintCla ssifieds() ;
153           }   164           }
154     165  
155           re turn $sRet Html;   166           re turn $sRet Html;
156       }   167       }
157   ?>   168   ?>