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

752.1 Files compared

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

752.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 468
Changed 0 0
Inserted 1 17
Removed 0 0

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

752.4 Active regular expressions

No regular expressions were active.

752.5 Comparison detail

1   <?php   1   <?php
2     2  
3   /********* ********** ********** ********** ********** ********** ********** ******   3   /********* ********** ********** ********** ********** ********** ********** ******
4    *                               Dolphin We b Communit y Software   4    *                               Dolphin We b Communit y Software
5    *                                 -------- ---------- -   5    *                                 -------- ---------- -
6    *     beg in                 :  Mon Mar 23  2006   6    *     beg in                 :  Mon Mar 23  2006
7    *     cop yright             :  (C) 2006 B oonEx Grou p   7    *     cop yright             :  (C) 2006 B oonEx Grou p
8    *     web site               :  http://www .boonex.co m   8    *     web site               :  http://www .boonex.co m
9    *   9    *
10    *        10    *     
11    *   11    *
12    ********* ********** ********** ********** ********** ********** ********** *******/   12    ********* ********** ********** ********** ********** ********** ********** *******/
13     13  
14   /********* ********** ********** ********** ********** ********** ********** ******   14   /********* ********** ********** ********** ********** ********** ********** ******
15    *   15    *
16    *   This  is a free  software;  you can mo dify it un der the te rms of Boo nEx    16    *   This  is a free  software;  you can mo dify it un der the te rms of Boo nEx 
17    *   Produ ct License  Agreement  published  on BoonEx  site at h ttp://www. boonex.com /downloads /license.p df   17    *   Produ ct License  Agreement  published  on BoonEx  site at h ttp://www. boonex.com /downloads /license.p df
18    *   You m ay not how ever distr ibute it f or free or /and a fee   18    *   You m ay not how ever distr ibute it f or free or /and a fee
19    *   This  notice may  not be re moved from  the sourc e code. Yo u may not  also remov e any othe r visible    19    *   This  notice may  not be re moved from  the sourc e code. Yo u may not  also remov e any othe r visible 
20    *   refer ence and l inks to Bo onEx Group  as provid ed in sour ce code.   20    *   refer ence and l inks to Bo onEx Group  as provid ed in sour ce code.
21    *   21    *
22    ********* ********** ********** ********** ********** ********** ********** ******/   22    ********* ********** ********** ********** ********** ********** ********** ******/
23     23  
24   require_on ce( "../in c/header.i nc.php" );   24   require_on ce( "../in c/header.i nc.php" );
25   require_on ce( "{$dir ['inc']}de sign.inc.p hp" );   25   require_on ce( "{$dir ['inc']}de sign.inc.p hp" );
26   require_on ce( "{$dir ['inc']}db .inc.php"  );   26   require_on ce( "{$dir ['inc']}db .inc.php"  );
27   require_on ce( "{$dir ['inc']}xm l.inc.php"  );   27   require_on ce( "{$dir ['inc']}xm l.inc.php"  );
28     28  
29   $query="";   29   $query="";
30   $AddItems= array();   30   $AddItems= array();
31   $dataType= $_GET["dat aType"];   31   $dataType= $_GET["dat aType"];
32     32  
33   switch ($d ataType) {   33   switch ($d ataType) {
34       case " ReloadClas sifieds":   34       case " ReloadClas sifieds":
35           $i IDClassifi ed = proce ss_db_inpu t($_GET["I DClassifie d"]);   35           $i IDClassifi ed = proce ss_db_inpu t($_GET["I DClassifie d"]);
36     36  
37           if  (!empty($ iIDClassif ied)) {   37           if  (!empty($ iIDClassif ied)) {
38                $query=" SELECT `ID `, `NameSu b` AS `Nam e` FROM `C lassifieds Subs` WHER E `IDClass ified`='{$ iIDClassif ied}'";   38                $query=" SELECT `ID `, `NameSu b` AS `Nam e` FROM `C lassifieds Subs` WHER E `IDClass ified`='{$ iIDClassif ied}'";
39           }   39           }
40           el se {   40           el se {
41                $AddItem s["na"]="N ot Applica ble";   41                $AddItem s["na"]="N ot Applica ble";
42           }   42           }
43       break;   43       break;
44       case " ReloadSubT ree":   44       case " ReloadSubT ree":
45           $i IDClassifi ed = proce ss_db_inpu t($_GET["I DClassifie d"]);   45           $i IDClassifi ed = proce ss_db_inpu t($_GET["I DClassifie d"]);
46           if  (!empty($ iIDClassif ied)) {   46           if  (!empty($ iIDClassif ied)) {
47                $query=" SELECT `Cl assifiedsS ubs`.`ID`,  `Classifi edsSubs`.` NameSub` A S `Name`,   47                $query=" SELECT `Cl assifiedsS ubs`.`ID`,  `Classifi edsSubs`.` NameSub` A S `Name`,
48                COUNT(`C lassifieds Advertisem ents`.`ID` ) AS 'Coun t'   48                COUNT(`C lassifieds Advertisem ents`.`ID` ) AS 'Coun t'
49                FROM `Cl assifiedsS ubs`   49                FROM `Cl assifiedsS ubs`
50                LEFT JOI N `Classif iedsAdvert isements`   50                LEFT JOI N `Classif iedsAdvert isements`
51                ON (`Cla ssifiedsAd vertisemen ts`.`IDCla ssifiedsSu bs` = `Cla ssifiedsSu bs`.`ID`)   51                ON (`Cla ssifiedsAd vertisemen ts`.`IDCla ssifiedsSu bs` = `Cla ssifiedsSu bs`.`ID`)
52                WHERE `C lassifieds Subs`.`IDC lassified` ='{$iIDCla ssified}'   52                WHERE `C lassifieds Subs`.`IDC lassified` ='{$iIDCla ssified}'
53                GROUP BY  `Name`";   53                GROUP BY  `Name`";
54           }   54           }
55           el se {   55           el se {
56                $AddItem s["na"]="N ot Applica ble";   56                $AddItem s["na"]="N ot Applica ble";
57           }   57           }
58       break;   58       break;
59       case " ReloadClas sifiedsAnd CustomsFie lds":   59       case " ReloadClas sifiedsAnd CustomsFie lds":
60           $i IDClassifi ed = proce ss_db_inpu t($_GET["I DClassifie d"]);   60           $i IDClassifi ed = proce ss_db_inpu t($_GET["I DClassifie d"]);
61     61  
62           if  (!empty($ iIDClassif ied)) {   62           if  (!empty($ iIDClassif ied)) {
63                $query="   63                $query="
64                    SELE CT `Classi fiedsSubs` .`ID` , `C lassifieds Subs`.`Nam eSub` AS ` Name`, `Cu stomFieldN ame1`, `Cu stomFieldN ame2`, `Cu stomAction 1`, `Custo mAction2`,  `Unit`   64                    SELE CT `Classi fiedsSubs` .`ID` , `C lassifieds Subs`.`Nam eSub` AS ` Name`, `Cu stomFieldN ame1`, `Cu stomFieldN ame2`, `Cu stomAction 1`, `Custo mAction2`,  `Unit`
65                    FROM  `Classifi edsSubs`    65                    FROM  `Classifi edsSubs` 
66                    INNE R JOIN `Cl assifieds`   66                    INNE R JOIN `Cl assifieds`
67                    ON ( `Classifie ds`.`ID`=` Classified sSubs`.`ID Classified `)   67                    ON ( `Classifie ds`.`ID`=` Classified sSubs`.`ID Classified `)
68                    WHER E `Classif iedsSubs`. `IDClassif ied` = '{$ iIDClassif ied}'   68                    WHER E `Classif iedsSubs`. `IDClassif ied` = '{$ iIDClassif ied}'
69                    ORDE R BY `Name ` ASC   69                    ORDE R BY `Name ` ASC
70                ";   70                ";
71           }   71           }
72           el se {   72           el se {
73                $AddItem s["na"]="N ot Applica ble";   73                $AddItem s["na"]="N ot Applica ble";
74           }   74           }
75       break;   75       break;
76       case " ReloadOnly CustomsFie lds":   76       case " ReloadOnly CustomsFie lds":
77           $i IDClassifi ed = proce ss_db_inpu t($_GET["I DClassifie d"]);   77           $i IDClassifi ed = proce ss_db_inpu t($_GET["I DClassifie d"]);
78     78  
79           if  (!empty($ iIDClassif ied)) {   79           if  (!empty($ iIDClassif ied)) {
80                $query="   80                $query="
81                    SELE CT `Custom FieldName1 ` , `Custo mFieldName 2`, `Custo mAction1`,  `CustomAc tion2`, `U nit`   81                    SELE CT `Custom FieldName1 ` , `Custo mFieldName 2`, `Custo mAction1`,  `CustomAc tion2`, `U nit`
82                    FROM  `Classifi eds`    82                    FROM  `Classifi eds` 
83                    WHER E `ID` ='{ $iIDClassi fied}'   83                    WHER E `ID` ='{ $iIDClassi fied}'
84                ";   84                ";
85           }   85           }
86           el se {   86           el se {
87                $AddItem s["na"]="N ot Applica ble";   87                $AddItem s["na"]="N ot Applica ble";
88           }   88           }
89       break;   89       break;
90       case " ApplyChang es":   90       case " ApplyChang es":
91           $i Numb = pro cess_db_in put($_GET[ "iNumb"]);   91           $i Numb = pro cess_db_in put($_GET[ "iNumb"]);
92           $s Action = p rocess_db_ input($_GE T["sAction "]);   92           $s Action = p rocess_db_ input($_GE T["sAction "]);
93           $s Name = pro cess_db_in put($_GET[ "sName"]);   93           $s Name = pro cess_db_in put($_GET[ "sName"]);
94           $i IDcat = pr ocess_db_i nput($_GET ["iIDcat"] );   94           $i IDcat = pr ocess_db_i nput($_GET ["iIDcat"] );
95     95  
96           if  (!empty($ iIDcat)) {   96           if  (!empty($ iIDcat)) {
97                $query="   97                $query="
98                    UPDA TE `Classi fieds` SET  `CustomFi eldName{$i Numb}` = ' {$sName}',  `CustomAc tion{$iNum b}` = '{$s Action}' W HERE `Clas sifieds`.` ID` = {$iI Dcat} LIMI T 1 ;   98                    UPDA TE `Classi fieds` SET  `CustomFi eldName{$i Numb}` = ' {$sName}',  `CustomAc tion{$iNum b}` = '{$s Action}' W HERE `Clas sifieds`.` ID` = {$iI Dcat} LIMI T 1 ;
99                ";   99                ";
100     100  
101                // globa l $dir;   101                // globa l $dir;
102                // $file name = $di r['root']  . 'temp/te st.txt';   102                // $file name = $di r['root']  . 'temp/te st.txt';
103                // if ($ handle = f open($file name, 'w') ) {   103                // if ($ handle = f open($file name, 'w') ) {
104                    // f write($han dle, $quer y);   104                    // f write($han dle, $quer y);
105                    // f close($han dle);   105                    // f close($han dle);
106                // }   106                // }
107     107  
108                if (!emp ty($query) ) {   108                if (!emp ty($query) ) {
109                    $res Data=db_re s($query);   109                    $res Data=db_re s($query);
110                }   110                }
111                exit;   111                exit;
112           }   112           }
113       break;   113       break;
114       case " DeleteCust om":   114       case " DeleteCust om":
115           $i Numb = pro cess_db_in put($_GET[ "iNumb"]);   115           $i Numb = pro cess_db_in put($_GET[ "iNumb"]);
116           $i IDcat = pr ocess_db_i nput($_GET ["iIDcat"] );   116           $i IDcat = pr ocess_db_i nput($_GET ["iIDcat"] );
117     117  
118           if  (!empty($ iIDcat)) {   118           if  (!empty($ iIDcat)) {
119                $query="   119                $query="
120                    UPDA TE `Classi fieds` SET  `CustomFi eldName{$i Numb}` = N ULL, `Cust omAction{$ iNumb}` =  NULL WHERE  `Classifi eds`.`ID`  = {$iIDcat } LIMIT 1  ;   120                    UPDA TE `Classi fieds` SET  `CustomFi eldName{$i Numb}` = N ULL, `Cust omAction{$ iNumb}` =  NULL WHERE  `Classifi eds`.`ID`  = {$iIDcat } LIMIT 1  ;
121                ";   121                ";
122                if (!emp ty($query) ) {   122                if (!emp ty($query) ) {
123                    $res Data=db_re s($query);   123                    $res Data=db_re s($query);
124                }   124                }
125                exit;   125                exit;
126           }   126           }
127       break;   127       break;
128   case "Appl yUnitChang es":   128   case "Appl yUnitChang es":
129           $s Unit = pro cess_db_in put($_GET[ "sUnit"]);   129           $s Unit = pro cess_db_in put($_GET[ "sUnit"]);
130           $i IDcat = pr ocess_db_i nput($_GET ["iIDcat"] );   130           $i IDcat = pr ocess_db_i nput($_GET ["iIDcat"] );
131     131  
132           if  (!empty($ iIDcat)) {   132           if  (!empty($ iIDcat)) {
133                $query="   133                $query="
134                    UPDA TE `Classi fieds` SET  `Unit` =  '{$sUnit}'  WHERE `Cl assifieds` .`ID` = {$ iIDcat} LI MIT 1 ;   134                    UPDA TE `Classi fieds` SET  `Unit` =  '{$sUnit}'  WHERE `Cl assifieds` .`ID` = {$ iIDcat} LI MIT 1 ;
135                ";   135                ";
136     136  
137                if (!emp ty($query) ) {   137                if (!emp ty($query) ) {
138                    $res Data=db_re s($query);   138                    $res Data=db_re s($query);
139                }   139                }
140                exit;   140                exit;
141           }   141           }
142       break;   142       break;
143       case " DeleteUnit ":   143       case " DeleteUnit ":
144           $s Unit = pro cess_db_in put($_GET[ "sUnit"]);   144           $s Unit = pro cess_db_in put($_GET[ "sUnit"]);
145           $i IDcat = pr ocess_db_i nput($_GET ["iIDcat"] );   145           $i IDcat = pr ocess_db_i nput($_GET ["iIDcat"] );
146     146  
147           if  (!empty($ iIDcat)) {   147           if  (!empty($ iIDcat)) {
148                $query="   148                $query="
149                    UPDA TE `Classi fieds` SET  `Unit` =  '$' WHERE  `Classifie ds`.`ID` =  {$iIDcat}  LIMIT 1 ;   149                    UPDA TE `Classi fieds` SET  `Unit` =  '$' WHERE  `Classifie ds`.`ID` =  {$iIDcat}  LIMIT 1 ;
150                ";   150                ";
151                if (!emp ty($query) ) {   151                if (!emp ty($query) ) {
152                    $res Data=db_re s($query);   152                    $res Data=db_re s($query);
153                }   153                }
154                exit;   154                exit;
155           }   155           }
156       break;   156       break;
    157       case " login":
    158           $s Username =  process_d b_input($_ GET["u"]);
    159           $s Pass = pro cess_db_in put($_GET[ "p"]);
    160  
    161           if  (!empty($ sUsername) ) {
    162                $query="
    163                    SELE CT `ID` FR OM `Profil es` WHERE  `NickName` ='{$sUsern ame}' AND  `Password` =MD5('{$sP ass}') LIM IT 1 ;
    164                ";
    165                db_value ($query);
    166                if (mysq l_affected _rows()==0 ) {
    167                    prin t 'failed' ;
    168                } else {
    169                    prin t 'success ';
    170                }
    171                exit;
    172           }
    173       break;
157   }   174   }
158     175  
159   $resultNod e = new Xm lNode();   176   $resultNod e = new Xm lNode();
160   $resultNod e->name =  'data';   177   $resultNod e->name =  'data';
161     178  
162   if ( !empt y($AddItem s) and $_G ET["noadd" ] != 1 )   179   if ( !empt y($AddItem s) and $_G ET["noadd" ] != 1 )
163       foreac h ($AddIte ms as $key  => $val)  {   180       foreac h ($AddIte ms as $key  => $val)  {
164           $A ddNode = n ew XmlNode ();   181           $A ddNode = n ew XmlNode ();
165           $A ddNode->na me = $data Type;   182           $A ddNode->na me = $data Type;
166              183           
167           $A ddNodeID =  new XmlNo de();   184           $A ddNodeID =  new XmlNo de();
168           $A ddNodeID-> name = "ID ";   185           $A ddNodeID-> name = "ID ";
169           $A ddNodeID-> value = $k ey;   186           $A ddNodeID-> value = $k ey;
170           $A ddNode->ad dChild($Ad dNodeID);   187           $A ddNode->ad dChild($Ad dNodeID);
171              188           
172           $A ddNodeName  = new Xml Node();   189           $A ddNodeName  = new Xml Node();
173           $A ddNodeName ->name = " Name";   190           $A ddNodeName ->name = " Name";
174           $A ddNodeName ->value =  $val;   191           $A ddNodeName ->value =  $val;
175                   192                
176           $A ddNode->ad dChild($Ad dNodeName) ;   193           $A ddNode->ad dChild($Ad dNodeName) ;
177              194           
178           $r esultNode- >addChild( $AddNode);   195           $r esultNode- >addChild( $AddNode);
179       }   196       }
180     197  
181   if (!empty ($query))  {   198   if (!empty ($query))  {
182       $resDa ta=db_res( $query);   199       $resDa ta=db_res( $query);
183       if (my sql_affect ed_rows()= =0 AND $da taType=="R eloadClass ifiedsAndC ustomsFiel ds") {   200       if (my sql_affect ed_rows()= =0 AND $da taType=="R eloadClass ifiedsAndC ustomsFiel ds") {
184           $i IDClassifi ed = proce ss_db_inpu t($_GET["I DClassifie d"]);   201           $i IDClassifi ed = proce ss_db_inpu t($_GET["I DClassifie d"]);
185           $q uery="   202           $q uery="
186   SELECT `Cu stomFieldN ame1` , `C ustomField Name2` , ` CustomActi on1` , `Cu stomAction 2`, `Unit`   203   SELECT `Cu stomFieldN ame1` , `C ustomField Name2` , ` CustomActi on1` , `Cu stomAction 2`, `Unit`
187   FROM `Clas sifieds`    204   FROM `Clas sifieds` 
188   WHERE `ID`  = '{$iIDC lassified} '   205   WHERE `ID`  = '{$iIDC lassified} '
189   ";   206   ";
190           $r esData=db_ res($query );   207           $r esData=db_ res($query );
191       }   208       }
192       fillXm lNodeWithD BData($res ultNode, $ resData, $ dataType);   209       fillXm lNodeWithD BData($res ultNode, $ resData, $ dataType);
193   }   210   }
194   sendData($ resultNode );   211   sendData($ resultNode );
195     212  
196   /**   213   /**
197    * Output  XML data   214    * Output  XML data
198    *    215    * 
199    * @param  XmlNode $x mlNode   216    * @param  XmlNode $x mlNode
200    */   217    */
201   function s endData($x mlNode) {   218   function s endData($x mlNode) {
202       header ("Content- type: appl ication/xm l");   219       header ("Content- type: appl ication/xm l");
203       send_h eaders_pag e_changed( );   220       send_h eaders_pag e_changed( );
204       echo ' <?xml vers ion="1.0"  encoding=" UTF-8"?>'. "\r\n";   221       echo ' <?xml vers ion="1.0"  encoding=" UTF-8"?>'. "\r\n";
205       echo $ xmlNode->g etXMLText( );   222       echo $ xmlNode->g etXMLText( );
206   }   223   }
207     224  
208   function f illXmlNode WithDBData (&$xmlNode , $dbResou rce, $obje ctName) {   225   function f illXmlNode WithDBData (&$xmlNode , $dbResou rce, $obje ctName) {
209       if (!  $dbResourc e) {   226       if (!  $dbResourc e) {
210           re turn;   227           re turn;
211       }   228       }
212          229       
213       while  ($arrObjec t = mysql_ fetch_asso c($dbResou rce)) {   230       while  ($arrObjec t = mysql_ fetch_asso c($dbResou rce)) {
214           $o bjectNode  = new XmlN ode();            231           $o bjectNode  = new XmlN ode();         
215     232  
216           $o bjectNode- >name = $o bjectName;   233           $o bjectNode- >name = $o bjectName;
217           fo reach ($ar rObject as  $dataName  => $dataV alue) {   234           fo reach ($ar rObject as  $dataName  => $dataV alue) {
218                if ( $_G ET['applyl ang'] and  $dataName  == 'Name'  )   235                if ( $_G ET['applyl ang'] and  $dataName  == 'Name'  )
219                    $dat aValue = _ t( $_GET[' applylang' ] . $dataV alue );   236                    $dat aValue = _ t( $_GET[' applylang' ] . $dataV alue );
220                   237                
221                $dataNam e = htmlsp ecialchars _adv($data Name);   238                $dataNam e = htmlsp ecialchars _adv($data Name);
222                $dataVal ue = htmls pecialchar s(htmlspec ialchars($ dataValue) );   239                $dataVal ue = htmls pecialchar s(htmlspec ialchars($ dataValue) );
223     240  
224                $objectD ataNode =  new XmlNod e();   241                $objectD ataNode =  new XmlNod e();
225                $objectD ataNode->n ame = $dat aName;   242                $objectD ataNode->n ame = $dat aName;
226                $objectD ataNode->v alue = $da taValue;   243                $objectD ataNode->v alue = $da taValue;
227     244  
228                $objectN ode->addCh ild($objec tDataNode) ;   245                $objectN ode->addCh ild($objec tDataNode) ;
229           }   246           }
230           $x mlNode->ad dChild($ob jectNode);   247           $x mlNode->ad dChild($ob jectNode);
231       }   248       }
232   }   249   }
233     250  
234   ?>   251   ?>