From 804bef95be76ba37ffd3fb4c9d027c18a00680c9 Mon Sep 17 00:00:00 2001 From: waly Date: Mon, 21 Jun 2021 17:38:40 -0300 Subject: [PATCH] en la lucha con estos pelotudos! --- README.md | 0 active_auctions.php | 170 +- admin/aboutus.php | 30 +- admin/accounts.php | 208 +- admin/activatenewsletter.php | 27 +- admin/addnew.php | 96 +- admin/adminusers.php | 69 +- admin/analytics.php | 7 +- admin/auctions.php | 131 +- admin/banips.php | 108 +- admin/banners.php | 23 +- admin/boards.php | 46 +- admin/boardsettings.php | 27 +- admin/buyerprivacy.php | 28 +- admin/buyitnow.php | 55 +- admin/categories.php | 372 +-- admin/categoriestrans.php | 103 +- admin/catsorting.php | 30 +- admin/checkversion.php | 52 +- admin/clear_image_cache.php | 37 +- admin/clearcache.php | 37 +- admin/contactseller.php | 30 +- admin/cookiespolicy.php | 102 +- admin/counters.php | 36 +- admin/countries.php | 116 +- admin/currency.php | 111 +- admin/defaultcountry.php | 31 +- admin/deleteauction.php | 198 +- admin/deletebanner.php | 13 +- admin/deletemessage.php | 55 +- admin/{deletenews.php => deletenew.php} | 43 +- admin/deleteuser.php | 315 +-- admin/deleteuserfeed.php | 75 +- admin/displaysettings.php | 66 +- admin/durations.php | 69 +- admin/editadminuser.php | 100 +- admin/editauction.php | 609 +++-- admin/editbanner.php | 356 +-- admin/editbannersuser.php | 94 +- admin/editboards.php | 81 +- admin/editfaq.php | 152 +- admin/editfaqscategory.php | 109 +- admin/editmessage.php | 55 +- admin/editmessages.php | 73 +- admin/editnew.php | 147 +- admin/edituser.php | 376 +-- admin/edituserfeed.php | 86 +- admin/emailsettings.php | 134 +- admin/enablefees.php | 67 +- admin/errorhandling.php | 28 +- admin/errorlog.php | 60 +- admin/excludeauction.php | 267 +- admin/excludeuser.php | 180 +- admin/faqs.php | 59 +- admin/faqscategories.php | 277 +- admin/fee_gateways.php | 91 +- admin/fees.php | 285 +- admin/footer.php | 18 +- admin/header.php | 18 +- admin/help.php | 8 +- admin/increments.php | 160 +- admin/index.php | 300 ++- admin/invoice.php | 303 ++- admin/invoice_settings.php | 30 +- admin/listauctions.php | 136 +- admin/listclosedauctions.php | 117 +- admin/listreportedauctions.php | 132 +- admin/listsuspendedauctions.php | 119 +- admin/listusers.php | 336 +-- admin/loggedin.inc.php | 109 +- admin/login.php | 190 +- admin/logo_upload.php | 55 +- admin/logout.php | 4 +- admin/maintainance.php | 68 + admin/maintenance.php | 62 - admin/managebanners.php | 52 +- admin/membertypes.php | 105 +- admin/metatags.php | 32 +- admin/moderateauctions.php | 134 +- admin/moderation.php | 26 +- admin/multilingual.php | 43 +- admin/newadminuser.php | 92 +- admin/newbannersuser.php | 55 +- admin/newboard.php | 61 +- admin/newfaq.php | 96 +- admin/news.php | 85 +- admin/newsletter.php | 101 +- admin/newuser.php | 313 ++- admin/payments.php | 110 +- admin/privacypolicy.php | 30 +- admin/profile.php | 113 +- admin/removefrommoderation.php | 96 +- admin/searchauctions.php | 218 +- admin/settings.php | 91 +- admin/spam.php | 55 +- admin/stats_settings.php | 91 +- admin/tax.php | 28 +- admin/tax_levels.php | 188 +- admin/terms.php | 34 +- admin/theme.php | 196 +- admin/time.php | 32 +- admin/userbanners.php | 314 +-- admin/userfeedback.php | 154 +- admin/usergroups.php | 366 +-- admin/usersettings.php | 42 +- admin/util_cc1.php | 48 +- admin/viewaccessstats.php | 201 +- admin/viewbrowserstats.php | 44 +- admin/viewfilters.php | 75 +- admin/viewplatformstats.php | 47 +- admin/viewuserips.php | 151 +- admin/viewwinners.php | 98 +- admin/wordsfilter.php | 67 +- adsearch.php | 493 ++-- ajax.php | 17 +- auction_watch.php | 125 +- batch.php | 4 +- bid.php | 1064 ++++---- boards.php | 37 +- browse.php | 329 ++- buy_now.php | 615 +++-- buying.php | 116 +- leave_feedback.php => buysellnofeedback.php | 69 +- cache/index.php | 0 calendar.html | 152 ++ clickthrough.php | 4 +- closed_auctions.php | 185 +- common.php | 45 +- confirm.php | 237 +- contents.php | 50 +- cron.php | 1220 +++++---- docs/COPYRIGHT | 2 +- docs/LICENSE | 0 docs/changes.txt | 22 +- docs/install.txt | 2 + docs/readme.txt | 9 +- edit_active_auction.php | 179 +- edit_data.php | 350 +-- email_request.php | 131 +- error.php | 16 +- favicon.ico | Bin feedback.php | 578 ++-- fees.php | 216 +- footer.php | 24 +- forgotpasswd.php | 118 +- friend.php | 164 +- getthumb.php | 313 +-- header.php | 65 +- help.php | 35 +- images/arrow.gif | Bin images/arrow2.gif | Bin images/arrow_down.gif | Bin images/arrow_up.gif | Bin images/authnet.gif | Bin images/back_bar2.gif | Bin images/ball.gif | Bin images/bc_but.gif | Bin images/bc_foot.gif | Bin images/bc_search2.gif | Bin images/bk_b_but.gif | Bin images/bk_tit2.gif | Bin images/border-anim-h.gif | Bin images/border-anim-v.gif | Bin images/border-h.gif | Bin images/border-v.gif | Bin images/bullet.gif | Bin images/edititem.gif | Bin images/email_alerts/Active_Acct_Btn.jpg | Bin images/email_alerts/Sell_More_Btn.jpg | Bin images/email_alerts/Take_Me_There.jpg | Bin images/email_alerts/Total_Due_Btn.jpg | Bin images/email_alerts/default_item_img.jpg | Bin images/flags/DE.gif | Bin images/flags/DK.gif | Bin images/flags/EN.gif | Bin images/flags/ES.gif | Bin images/flags/FR.gif | Bin images/flags/IT.gif | Bin images/flags/MO.gif | Bin images/flags/NL.gif | Bin images/flags/PL.gif | Bin 84 -> 4385 bytes images/gallery.gif | Bin images/icons/starB.gif | Bin images/icons/starFR.gif | Bin images/icons/starFT.gif | Bin images/icons/starFV.gif | Bin images/icons/starFY.gif | Bin images/icons/starG.gif | Bin images/icons/starR.gif | Bin images/icons/starT.gif | Bin images/icons/starV.gif | Bin images/icons/starY.gif | Bin images/icons/transparent.gif | Bin images/imgsep.gif | Bin images/info.gif | Bin images/lightbox-blank.gif | Bin images/lightbox-btn-close.gif | Bin images/lightbox-btn-next.gif | Bin images/lightbox-btn-prev.gif | Bin images/lightbox-ico-loading.gif | Bin images/linea.gif | Bin images/moneybookers.gif | Bin 0 -> 2482 bytes images/negative.png | Bin images/neutral.png | Bin images/nodelete.gif | Bin images/paypal.gif | Bin images/picture.gif | Bin images/plus.gif | Bin images/positive.png | Bin images/rss.png | Bin images/selected.gif | Bin images/sep_bco.gif | Bin images/skrill.png | Bin 5062 -> 0 bytes images/tit_l.gif | Bin images/tit_r.gif | Bin images/toocheckout.gif | Bin images/transparent.gif | Bin images/trash.gif | Bin images/unselected.gif | Bin images/worldpay.gif | Bin includes/Date.php | 131 - includes/Time.php | 136 + includes/User.php | 322 +-- includes/auction/Auction.php | 143 +- includes/auction/Auction_BIN.php | 33 - includes/auction/Auction_Bid.php | 33 - includes/auction/Auction_Dutch.php | 33 - includes/browseitems.inc.php | 242 +- includes/calendar.css | 0 includes/calendar.inc.php | 57 +- includes/checks/database.php | 0 includes/class_MPTTcategories.php | 933 ++++--- includes/class_email_handler.php | 971 +++---- includes/class_fees.php | 832 +++--- includes/config.inc.php.new | 8 - includes/config/gateways.php | 44 +- includes/config/timezones.php | 186 +- includes/database/Database.php | 57 +- includes/database/DatabasePDO.php | 436 +-- includes/datacheck.inc.php | 519 ++-- includes/dates.inc.php | 146 + includes/diff/diff.php | 816 ++++++ includes/diff/engine.php | 516 ++++ includes/diff/renderer.php | 840 ++++++ includes/email/auction_confirmation.php | 30 +- includes/email/auction_pending.php | 32 +- includes/email/auction_pending_moderation.php | 30 +- includes/email/endauction_cumulative.php | 20 +- includes/email/endauction_multi_item_win.php | 30 +- includes/email/endauction_nowinner.php | 41 +- includes/email/endauction_winner.php | 41 +- includes/email/endauction_youwin.php | 47 +- includes/email/endauction_youwin_nodutch.php | 28 +- includes/email/outbid.php | 24 +- includes/email/seller_end_buynowonly.php | 49 +- includes/email/seller_partial_winner.php | 51 +- includes/email/user_approved.php | 25 +- includes/email/user_confirmation.php | 29 +- includes/email/user_needapproval.php | 51 +- includes/email/user_reactivated.php | 16 +- includes/email/user_suspended.php | 16 +- includes/errors.inc.php | 101 +- includes/functions_admin.php | 398 +-- includes/functions_ajax.php | 109 +- includes/functions_banners.php | 247 +- includes/functions_cron.php | 275 +- includes/functions_global.php | 944 +++---- includes/functions_invoices.php | 228 +- includes/functions_rebuild.php | 64 + includes/functions_sell.php | 1014 +++---- includes/img/cal.gif | Bin includes/img/next_mon.gif | Bin includes/img/next_year.gif | Bin includes/img/no_cal.gif | Bin includes/img/pixel.gif | Bin includes/img/prev_mon.gif | Bin includes/img/prev_year.gif | Bin includes/img/shade_bl.png | Bin includes/img/shade_bm.png | Bin includes/img/shade_br.png | Bin includes/img/shade_mr.png | Bin includes/img/shade_tr.png | Bin includes/index.php | 0 .../{maintenance.php => maintainance.php} | 20 +- includes/membertypes.inc.php | 36 + includes/messages.inc.php | 102 +- .../packages/PHPMailer/PHPMailerAutoload.php | 2 +- .../packages/PHPMailer/class.phpmailer.php | 590 +--- includes/packages/PHPMailer/class.pop3.php | 2 +- includes/packages/PHPMailer/class.smtp.php | 152 +- includes/packages/PasswordHash.php | 0 includes/packages/PluploadHandler.php | 3 +- includes/packages/captcha/AHGBold.ttf | Bin includes/packages/captcha/LICENSE.txt | 0 includes/packages/captcha/README.FONT.txt | 0 includes/packages/captcha/README.md | 9 +- includes/packages/captcha/README.txt | 8 +- includes/packages/captcha/WavFile.php | 0 includes/packages/captcha/audio/.htaccess | 0 includes/packages/captcha/audio/en/0.wav | Bin includes/packages/captcha/audio/en/1.wav | Bin includes/packages/captcha/audio/en/10.wav | Bin includes/packages/captcha/audio/en/11.wav | Bin includes/packages/captcha/audio/en/12.wav | Bin includes/packages/captcha/audio/en/13.wav | Bin includes/packages/captcha/audio/en/14.wav | Bin includes/packages/captcha/audio/en/15.wav | Bin includes/packages/captcha/audio/en/16.wav | Bin includes/packages/captcha/audio/en/17.wav | Bin includes/packages/captcha/audio/en/18.wav | Bin includes/packages/captcha/audio/en/19.wav | Bin includes/packages/captcha/audio/en/2.wav | Bin includes/packages/captcha/audio/en/20.wav | Bin includes/packages/captcha/audio/en/3.wav | Bin includes/packages/captcha/audio/en/4.wav | Bin includes/packages/captcha/audio/en/5.wav | Bin includes/packages/captcha/audio/en/6.wav | Bin includes/packages/captcha/audio/en/7.wav | Bin includes/packages/captcha/audio/en/8.wav | Bin includes/packages/captcha/audio/en/9.wav | Bin includes/packages/captcha/audio/en/A.wav | Bin includes/packages/captcha/audio/en/B.wav | Bin includes/packages/captcha/audio/en/C.wav | Bin includes/packages/captcha/audio/en/D.wav | Bin includes/packages/captcha/audio/en/E.wav | Bin includes/packages/captcha/audio/en/F.wav | Bin includes/packages/captcha/audio/en/G.wav | Bin includes/packages/captcha/audio/en/H.wav | Bin includes/packages/captcha/audio/en/I.wav | Bin includes/packages/captcha/audio/en/J.wav | Bin includes/packages/captcha/audio/en/K.wav | Bin includes/packages/captcha/audio/en/L.wav | Bin includes/packages/captcha/audio/en/M.wav | Bin includes/packages/captcha/audio/en/MINUS.wav | Bin includes/packages/captcha/audio/en/N.wav | Bin includes/packages/captcha/audio/en/O.wav | Bin includes/packages/captcha/audio/en/P.wav | Bin includes/packages/captcha/audio/en/PLUS.wav | Bin includes/packages/captcha/audio/en/Q.wav | Bin includes/packages/captcha/audio/en/R.wav | Bin includes/packages/captcha/audio/en/S.wav | Bin includes/packages/captcha/audio/en/T.wav | Bin includes/packages/captcha/audio/en/TIMES.wav | Bin includes/packages/captcha/audio/en/U.wav | Bin includes/packages/captcha/audio/en/V.wav | Bin includes/packages/captcha/audio/en/W.wav | Bin includes/packages/captcha/audio/en/X.wav | Bin includes/packages/captcha/audio/en/Y.wav | Bin includes/packages/captcha/audio/en/Z.wav | Bin includes/packages/captcha/audio/en/error.wav | Bin .../captcha/audio/noise/check-point-1.wav | Bin .../captcha/audio/noise/crowd-talking-1.wav | Bin .../captcha/audio/noise/crowd-talking-6.wav | Bin .../captcha/audio/noise/crowd-talking-7.wav | Bin .../captcha/audio/noise/kids-playing-1.wav | Bin includes/packages/captcha/backgrounds/bg3.jpg | Bin includes/packages/captcha/backgrounds/bg4.jpg | Bin includes/packages/captcha/backgrounds/bg5.jpg | Bin includes/packages/captcha/backgrounds/bg6.png | Bin includes/packages/captcha/captcha.html | 0 includes/packages/captcha/database/.htaccess | 1 - includes/packages/captcha/database/index.html | 1 - .../packages/captcha/database/securimage.sq3 | Bin 4096 -> 0 bytes .../packages/captcha/images/audio_icon.png | Bin includes/packages/captcha/images/loading.png | Bin includes/packages/captcha/images/refresh.png | Bin includes/packages/captcha/securimage.css | 0 includes/packages/captcha/securimage.js | 1 - includes/packages/captcha/securimage.php | 245 +- includes/packages/captcha/securimage_play.php | 0 includes/packages/captcha/securimage_play.swf | Bin includes/packages/captcha/securimage_show.php | 0 includes/packages/captcha/words/words.txt | 0 includes/packages/htmLawed.php | 1393 +++++----- .../recaptcha/ReCaptcha/ReCaptcha.php | 5 +- .../recaptcha/ReCaptcha/RequestMethod.php | 0 .../ReCaptcha/RequestMethod/Curl.php | 0 .../ReCaptcha/RequestMethod/CurlPost.php | 0 .../ReCaptcha/RequestMethod/Post.php | 2 +- .../ReCaptcha/RequestMethod/Socket.php | 3 +- .../ReCaptcha/RequestMethod/SocketPost.php | 0 .../recaptcha/ReCaptcha/RequestParameters.php | 0 .../packages/recaptcha/ReCaptcha/Response.php | 2 +- includes/packages/recaptcha/autoload.php | 2 +- includes/packages/recaptcha/recaptcha.php | 2 +- includes/packages/useragent.inc.php | 0 includes/stats.inc.php | 422 +-- includes/template/Template.php | 830 +++--- includes/template/TemplateCompile.php | 1396 +++++----- includes/user_cp.php | 16 +- index.php | 246 +- install/functions.php | 435 --- install/install.php | 145 - install/scripts/1.2.2.php | 179 -- install/sql/updatedump.inc.php | 524 ---- install/thisversion.txt | 1 - install/update.php | 94 - invoices.php | 245 +- item.php | 849 +++--- item_report.php | 142 +- item_watch.php | 103 +- js/calendar.js | 4 +- js/ckeditor/.htaccess | 0 js/ckeditor/CHANGES.md | 160 +- js/ckeditor/LICENSE.md | 4 +- js/ckeditor/README.md | 2 +- js/ckeditor/adapters/jquery.js | 10 +- js/ckeditor/build-config.js | 75 +- js/ckeditor/ckeditor.js | 1492 +++++------ js/ckeditor/ckeditor.pack | 211 ++ js/ckeditor/ckeditor_basic.js | 8 + js/ckeditor/ckeditor_basic_source.js | 20 + js/ckeditor/ckeditor_source.js | 25 + js/ckeditor/config.js | 5 +- js/ckeditor/contents.css | 5 +- js/ckeditor/images/spacer.gif | Bin 0 -> 43 bytes js/ckeditor/lang/_languages.js | 6 + js/ckeditor/lang/_translationstatus.txt | 60 + js/ckeditor/lang/af.js | 5 + js/ckeditor/lang/ar.js | 5 + js/ckeditor/lang/bg.js | 5 + js/ckeditor/lang/bn.js | 5 + js/ckeditor/lang/bs.js | 5 + js/ckeditor/lang/ca.js | 5 + js/ckeditor/lang/cs.js | 5 + js/ckeditor/lang/cy.js | 5 + js/ckeditor/lang/da.js | 5 + js/ckeditor/lang/de.js | 5 + js/ckeditor/lang/el.js | 5 + js/ckeditor/lang/en-au.js | 5 + js/ckeditor/lang/en-ca.js | 5 + js/ckeditor/lang/en-gb.js | 5 + js/ckeditor/lang/en.js | 4 +- js/ckeditor/lang/eo.js | 5 + js/ckeditor/lang/es.js | 5 + js/ckeditor/lang/et.js | 5 + js/ckeditor/lang/eu.js | 5 + js/ckeditor/lang/fa.js | 5 + js/ckeditor/lang/fi.js | 5 + js/ckeditor/lang/fo.js | 5 + js/ckeditor/lang/fr-ca.js | 5 + js/ckeditor/lang/fr.js | 5 + js/ckeditor/lang/gl.js | 5 + js/ckeditor/lang/gu.js | 5 + js/ckeditor/lang/he.js | 5 + js/ckeditor/lang/hi.js | 5 + js/ckeditor/lang/hr.js | 5 + js/ckeditor/lang/hu.js | 5 + js/ckeditor/lang/id.js | 5 + js/ckeditor/lang/is.js | 5 + js/ckeditor/lang/it.js | 5 + js/ckeditor/lang/ja.js | 5 + js/ckeditor/lang/ka.js | 5 + js/ckeditor/lang/km.js | 5 + js/ckeditor/lang/ko.js | 5 + js/ckeditor/lang/ku.js | 5 + js/ckeditor/lang/lt.js | 5 + js/ckeditor/lang/lv.js | 5 + js/ckeditor/lang/mk.js | 5 + js/ckeditor/lang/mn.js | 5 + js/ckeditor/lang/ms.js | 5 + js/ckeditor/lang/nb.js | 5 + js/ckeditor/lang/nl.js | 5 + js/ckeditor/lang/no.js | 5 + js/ckeditor/lang/pl.js | 5 + js/ckeditor/lang/pt-br.js | 5 + js/ckeditor/lang/pt.js | 5 + js/ckeditor/lang/ro.js | 5 + js/ckeditor/lang/ru.js | 5 + js/ckeditor/lang/si.js | 5 + js/ckeditor/lang/sk.js | 5 + js/ckeditor/lang/sl.js | 5 + js/ckeditor/lang/sq.js | 5 + js/ckeditor/lang/sr-latn.js | 5 + js/ckeditor/lang/sr.js | 5 + js/ckeditor/lang/sv.js | 5 + js/ckeditor/lang/th.js | 5 + js/ckeditor/lang/tr.js | 5 + js/ckeditor/lang/tt.js | 5 + js/ckeditor/lang/ug.js | 5 + js/ckeditor/lang/uk.js | 5 + js/ckeditor/lang/vi.js | 5 + js/ckeditor/lang/zh-cn.js | 5 + js/ckeditor/lang/zh.js | 5 + .../plugins/a11yhelp/dialogs/a11yhelp.js | 7 + js/ckeditor/plugins/a11yhelp/lang/en.js | 6 + js/ckeditor/plugins/a11yhelp/lang/he.js | 6 + js/ckeditor/plugins/about/dialogs/about.js | 9 +- .../about/dialogs/hidpi/logo_ckeditor.png | Bin .../plugins/about/dialogs/logo_ckeditor.png | Bin js/ckeditor/plugins/autogrow/plugin.js | 6 + .../plugins/clipboard/dialogs/paste.js | 17 +- .../colordialog/dialogs/colordialog.js | 7 + .../plugins/dialog/dialogDefinition.js | 2 +- js/ckeditor/plugins/div/dialogs/div.js | 8 + js/ckeditor/plugins/find/dialogs/find.js | 9 + js/ckeditor/plugins/flash/dialogs/flash.js | 9 + .../plugins/flash/images/placeholder.png | Bin 0 -> 256 bytes js/ckeditor/plugins/forms/dialogs/button.js | 6 + js/ckeditor/plugins/forms/dialogs/checkbox.js | 6 + js/ckeditor/plugins/forms/dialogs/form.js | 6 + .../plugins/forms/dialogs/hiddenfield.js | 6 + js/ckeditor/plugins/forms/dialogs/radio.js | 6 + js/ckeditor/plugins/forms/dialogs/select.js | 9 + js/ckeditor/plugins/forms/dialogs/textarea.js | 6 + .../plugins/forms/dialogs/textfield.js | 7 + .../plugins/forms/images/hiddenfield.gif | Bin 0 -> 105 bytes js/ckeditor/plugins/icons.png | Bin js/ckeditor/plugins/icons_hidpi.png | Bin js/ckeditor/plugins/iframedialog/plugin.js | 6 + js/ckeditor/plugins/image/dialogs/image.js | 13 + js/ckeditor/plugins/link/dialogs/anchor.js | 4 +- js/ckeditor/plugins/link/dialogs/link.js | 47 +- js/ckeditor/plugins/link/images/anchor.gif | Bin 0 -> 184 bytes js/ckeditor/plugins/link/images/anchor.png | Bin .../plugins/link/images/hidpi/anchor.png | Bin .../plugins/liststyle/dialogs/liststyle.js | 7 + .../plugins/pagebreak/images/pagebreak.gif | Bin 0 -> 54 bytes .../plugins/pastefromword/filter/default.js | 10 + .../plugins/pastetext/dialogs/pastetext.js | 6 + js/ckeditor/plugins/scayt/dialogs/options.js | 8 + js/ckeditor/plugins/scayt/dialogs/toolbar.css | 6 + .../showblocks/images/block_address.png | Bin 0 -> 171 bytes .../showblocks/images/block_blockquote.png | Bin 0 -> 181 bytes .../plugins/showblocks/images/block_div.png | Bin 0 -> 136 bytes .../plugins/showblocks/images/block_h1.png | Bin 0 -> 127 bytes .../plugins/showblocks/images/block_h2.png | Bin 0 -> 134 bytes .../plugins/showblocks/images/block_h3.png | Bin 0 -> 131 bytes .../plugins/showblocks/images/block_h4.png | Bin 0 -> 133 bytes .../plugins/showblocks/images/block_h5.png | Bin 0 -> 133 bytes .../plugins/showblocks/images/block_h6.png | Bin 0 -> 129 bytes .../plugins/showblocks/images/block_p.png | Bin 0 -> 119 bytes .../plugins/showblocks/images/block_pre.png | Bin 0 -> 136 bytes js/ckeditor/plugins/smiley/dialogs/smiley.js | 7 + .../plugins/smiley/images/angel_smile.gif | Bin 0 -> 465 bytes .../plugins/smiley/images/angry_smile.gif | Bin 0 -> 443 bytes .../plugins/smiley/images/broken_heart.gif | Bin 0 -> 192 bytes .../plugins/smiley/images/confused_smile.gif | Bin 0 -> 464 bytes .../plugins/smiley/images/cry_smile.gif | Bin 0 -> 468 bytes .../plugins/smiley/images/devil_smile.gif | Bin 0 -> 436 bytes .../smiley/images/embaressed_smile.gif | Bin 0 -> 442 bytes .../plugins/smiley/images/envelope.gif | Bin 0 -> 426 bytes js/ckeditor/plugins/smiley/images/heart.gif | Bin 0 -> 183 bytes js/ckeditor/plugins/smiley/images/kiss.gif | Bin 0 -> 241 bytes .../plugins/smiley/images/lightbulb.gif | Bin 0 -> 368 bytes .../plugins/smiley/images/omg_smile.gif | Bin 0 -> 451 bytes .../plugins/smiley/images/regular_smile.gif | Bin 0 -> 450 bytes .../plugins/smiley/images/sad_smile.gif | Bin 0 -> 460 bytes .../plugins/smiley/images/shades_smile.gif | Bin 0 -> 449 bytes .../plugins/smiley/images/teeth_smile.gif | Bin 0 -> 442 bytes .../plugins/smiley/images/thumbs_down.gif | Bin 0 -> 408 bytes .../plugins/smiley/images/thumbs_up.gif | Bin 0 -> 396 bytes .../plugins/smiley/images/tounge_smile.gif | Bin 0 -> 446 bytes .../images/whatchutalkingabout_smile.gif | Bin 0 -> 452 bytes .../plugins/smiley/images/wink_smile.gif | Bin 0 -> 458 bytes .../specialchar/dialogs/specialchar.js | 7 + js/ckeditor/plugins/styles/styles/default.js | 6 + js/ckeditor/plugins/table/dialogs/table.js | 9 + js/ckeditor/plugins/tableresize/plugin.js | 7 + .../plugins/tabletools/dialogs/tableCell.js | 8 + .../plugins/templates/dialogs/templates.js | 7 + .../plugins/templates/templates/default.js | 6 + .../templates/templates/images/template1.gif | Bin 0 -> 375 bytes .../templates/templates/images/template2.gif | Bin 0 -> 333 bytes .../templates/templates/images/template3.gif | Bin 0 -> 422 bytes .../plugins/uicolor/dialogs/uicolor.js | 7 + js/ckeditor/plugins/uicolor/lang/en.js | 6 + js/ckeditor/plugins/uicolor/plugin.js | 6 + js/ckeditor/plugins/uicolor/uicolor.gif | Bin 0 -> 1108 bytes .../plugins/uicolor/yui/assets/hue_bg.png | Bin 0 -> 1120 bytes .../plugins/uicolor/yui/assets/hue_thumb.png | Bin 0 -> 195 bytes .../uicolor/yui/assets/picker_mask.png | Bin 0 -> 12174 bytes .../uicolor/yui/assets/picker_thumb.png | Bin 0 -> 192 bytes .../plugins/uicolor/yui/assets/yui.css | 6 + js/ckeditor/plugins/uicolor/yui/yui.js | 76 + js/ckeditor/plugins/wsc/dialogs/ciframe.html | 49 + .../plugins/wsc/dialogs/tmpFrameset.html | 52 + js/ckeditor/plugins/wsc/dialogs/wsc.css | 6 + js/ckeditor/plugins/wsc/dialogs/wsc.js | 7 + js/ckeditor/skins/kama/dialog.css | 9 + js/ckeditor/skins/kama/editor.css | 12 + js/ckeditor/skins/kama/icons.png | Bin 0 -> 4918 bytes js/ckeditor/skins/kama/icons_rtl.png | Bin 0 -> 4935 bytes .../skins/kama/images/dialog_sides.gif | Bin 0 -> 48 bytes .../skins/kama/images/dialog_sides.png | Bin 0 -> 178 bytes .../skins/kama/images/dialog_sides_rtl.png | Bin 0 -> 181 bytes js/ckeditor/skins/kama/images/mini.gif | Bin 0 -> 183 bytes js/ckeditor/skins/kama/images/noimage.png | Bin 0 -> 2115 bytes js/ckeditor/skins/kama/images/sprites.png | Bin 0 -> 7086 bytes js/ckeditor/skins/kama/images/sprites_ie6.png | Bin 0 -> 2724 bytes .../skins/kama/images/toolbar_start.gif | Bin 0 -> 105 bytes js/ckeditor/skins/kama/skin.js | 7 + js/ckeditor/skins/kama/templates.css | 6 + js/ckeditor/skins/moono/dialog.css | 5 + js/ckeditor/skins/moono/dialog_ie.css | 5 + js/ckeditor/skins/moono/dialog_ie7.css | 5 + js/ckeditor/skins/moono/dialog_ie8.css | 5 + js/ckeditor/skins/moono/dialog_iequirks.css | 5 + js/ckeditor/skins/moono/editor.css | 5 + js/ckeditor/skins/moono/editor_gecko.css | 5 + js/ckeditor/skins/moono/editor_ie.css | 5 + js/ckeditor/skins/moono/editor_ie7.css | 5 + js/ckeditor/skins/moono/editor_ie8.css | 5 + js/ckeditor/skins/moono/editor_iequirks.css | 5 + js/ckeditor/skins/moono/icons.png | Bin 0 -> 6305 bytes js/ckeditor/skins/moono/icons_hidpi.png | Bin 0 -> 19169 bytes js/ckeditor/skins/moono/images/arrow.png | Bin 0 -> 191 bytes js/ckeditor/skins/moono/images/close.png | Bin 0 -> 468 bytes .../skins/moono/images/hidpi/close.png | Bin 0 -> 1271 bytes .../skins/moono/images/hidpi/lock-open.png | Bin 0 -> 1329 bytes js/ckeditor/skins/moono/images/hidpi/lock.png | Bin 0 -> 1299 bytes .../skins/moono/images/hidpi/refresh.png | Bin 0 -> 1842 bytes js/ckeditor/skins/moono/images/lock-open.png | Bin 0 -> 349 bytes js/ckeditor/skins/moono/images/lock.png | Bin 0 -> 475 bytes js/ckeditor/skins/moono/images/refresh.png | Bin 0 -> 422 bytes js/ckeditor/skins/moono/images/spinner.gif | Bin 0 -> 2984 bytes js/ckeditor/skins/moono/readme.md | 49 + js/ckeditor/skins/office2003/dialog.css | 9 + js/ckeditor/skins/office2003/editor.css | 13 + js/ckeditor/skins/office2003/icons.png | Bin 0 -> 4918 bytes js/ckeditor/skins/office2003/icons_rtl.png | Bin 0 -> 4935 bytes .../skins/office2003/images/dialog_sides.gif | Bin 0 -> 48 bytes .../skins/office2003/images/dialog_sides.png | Bin 0 -> 178 bytes .../office2003/images/dialog_sides_rtl.png | Bin 0 -> 181 bytes js/ckeditor/skins/office2003/images/mini.gif | Bin 0 -> 183 bytes .../skins/office2003/images/noimage.png | Bin 0 -> 2115 bytes .../skins/office2003/images/sprites.png | Bin 0 -> 6119 bytes .../skins/office2003/images/sprites_ie6.png | Bin 0 -> 2715 bytes js/ckeditor/skins/office2003/skin.js | 6 + js/ckeditor/skins/office2003/templates.css | 6 + js/ckeditor/skins/office2013/dialog.css | 0 js/ckeditor/skins/office2013/editor.css | 2 +- js/ckeditor/skins/office2013/icons.png | Bin 5155 -> 10440 bytes js/ckeditor/skins/office2013/icons_hidpi.png | Bin 12491 -> 24320 bytes js/ckeditor/skins/office2013/images/arrow.png | Bin js/ckeditor/skins/office2013/images/close.png | Bin .../skins/office2013/images/hidpi/close.png | Bin .../office2013/images/hidpi/lock-open.png | Bin .../skins/office2013/images/hidpi/lock.png | Bin .../skins/office2013/images/hidpi/refresh.png | Bin .../skins/office2013/images/lock-open.png | Bin js/ckeditor/skins/office2013/images/lock.png | Bin .../skins/office2013/images/refresh.png | Bin js/ckeditor/skins/office2013/skin.js | 5 + js/ckeditor/skins/v2/dialog.css | 8 + js/ckeditor/skins/v2/editor.css | 12 + js/ckeditor/skins/v2/icons.png | Bin 0 -> 4918 bytes js/ckeditor/skins/v2/icons_rtl.png | Bin 0 -> 4935 bytes js/ckeditor/skins/v2/images/dialog_sides.gif | Bin 0 -> 48 bytes js/ckeditor/skins/v2/images/dialog_sides.png | Bin 0 -> 178 bytes .../skins/v2/images/dialog_sides_rtl.png | Bin 0 -> 181 bytes js/ckeditor/skins/v2/images/mini.gif | Bin 0 -> 183 bytes js/ckeditor/skins/v2/images/noimage.png | Bin 0 -> 2115 bytes js/ckeditor/skins/v2/images/sprites.png | Bin 0 -> 5389 bytes js/ckeditor/skins/v2/images/sprites_ie6.png | Bin 0 -> 492 bytes js/ckeditor/skins/v2/images/toolbar_start.gif | Bin 0 -> 105 bytes js/ckeditor/skins/v2/skin.js | 6 + js/ckeditor/skins/v2/templates.css | 6 + js/ckeditor/styles.js | 2 +- js/ckeditor/themes/default/theme.js | 8 + js/jquery-migrate.js | 0 js/jquery.imgareaselect.js | 0 js/jquery.js | 0 js/jquery.lightbox.js | 0 js/pluploadjs/Moxie.swf | Bin js/pluploadjs/Moxie.xap | Bin js/pluploadjs/i18n/ar.js | 0 js/pluploadjs/i18n/az.js | 0 js/pluploadjs/i18n/be_BY.js | 0 js/pluploadjs/i18n/bg.js | 0 js/pluploadjs/i18n/bs.js | 0 js/pluploadjs/i18n/ca.js | 0 js/pluploadjs/i18n/cs.js | 0 js/pluploadjs/i18n/cy.js | 0 js/pluploadjs/i18n/da.js | 0 js/pluploadjs/i18n/de.js | 0 js/pluploadjs/i18n/el.js | 0 js/pluploadjs/i18n/en.js | 0 js/pluploadjs/i18n/es.js | 0 js/pluploadjs/i18n/et.js | 0 js/pluploadjs/i18n/fa.js | 0 js/pluploadjs/i18n/fi.js | 0 js/pluploadjs/i18n/fr.js | 0 js/pluploadjs/i18n/he.js | 0 js/pluploadjs/i18n/hr.js | 0 js/pluploadjs/i18n/hu.js | 0 js/pluploadjs/i18n/hy.js | 0 js/pluploadjs/i18n/id.js | 0 js/pluploadjs/i18n/it.js | 0 js/pluploadjs/i18n/ja.js | 0 js/pluploadjs/i18n/ka.js | 0 js/pluploadjs/i18n/kk.js | 0 js/pluploadjs/i18n/km.js | 0 js/pluploadjs/i18n/ko.js | 0 js/pluploadjs/i18n/ku_IQ.js | 0 js/pluploadjs/i18n/lt.js | 0 js/pluploadjs/i18n/lv.js | 0 js/pluploadjs/i18n/mn.js | 0 js/pluploadjs/i18n/ms.js | 0 js/pluploadjs/i18n/nl.js | 0 js/pluploadjs/i18n/pl.js | 0 js/pluploadjs/i18n/pt.js | 0 js/pluploadjs/i18n/pt_BR.js | 0 js/pluploadjs/i18n/ro.js | 0 js/pluploadjs/i18n/ru.js | 0 js/pluploadjs/i18n/sk.js | 0 js/pluploadjs/i18n/sl.js | 0 js/pluploadjs/i18n/sq.js | 0 js/pluploadjs/i18n/sr.js | 0 js/pluploadjs/i18n/sr_RS.js | 0 js/pluploadjs/i18n/sv.js | 0 js/pluploadjs/i18n/th_TH.js | 0 js/pluploadjs/i18n/tr.js | 0 js/pluploadjs/i18n/uk_UA.js | 0 js/pluploadjs/i18n/vi.js | 0 js/pluploadjs/i18n/zh_CN.js | 0 js/pluploadjs/i18n/zh_TW.js | 0 .../css/jquery.plupload.queue.css | 0 .../jquery.plupload.queue/img/Thumbs.db | Bin .../jquery.plupload.queue/img/backgrounds.gif | Bin .../img/buttons-disabled.png | Bin .../jquery.plupload.queue/img/buttons.png | Bin .../jquery.plupload.queue/img/delete.gif | Bin .../jquery.plupload.queue/img/done.gif | Bin .../jquery.plupload.queue/img/error.gif | Bin .../jquery.plupload.queue/img/throbber.gif | Bin .../jquery.plupload.queue/img/transp50.png | Bin .../jquery.plupload.queue.js | 0 .../jquery.plupload.queue.min.js | 0 .../css/jquery.ui.plupload.css | 0 .../jquery.ui.plupload/img/loading.gif | Bin .../jquery.ui.plupload/img/plupload.png | Bin .../jquery.ui.plupload/jquery.ui.plupload.js | 0 .../jquery.ui.plupload.min.js | 0 js/pluploadjs/moxie.js | 0 js/pluploadjs/moxie.min.js | 0 js/pluploadjs/plupload.dev.js | 0 js/pluploadjs/plupload.full.min.js | 0 js/pluploadjs/plupload.min.js | 0 js/webid.js | 0 language/EN/admin.inc.php | 693 ----- language/EN/categories.inc.php | 2 +- language/EN/categories_select_box.inc.php | 0 language/EN/emails/html/auction_pending.php | 0 .../html/auction_pending_moderation.php | 0 .../EN/emails/html/auction_watchmail.inc.php | 0 .../emails/html/auctionend_watchmail.inc.php | 0 language/EN/emails/html/auctionmail.inc.php | 0 language/EN/emails/html/buyer_fee.inc.php | 0 language/EN/emails/html/buyer_request.inc.php | 0 .../html/email_seller_end_buynowonly.inc.php | 0 .../html/email_seller_partial_winner.inc.php | 0 .../emails/html/endauction_cumulative.inc.php | 0 .../html/endauction_multi_item_win.inc.php | 0 .../emails/html/endauction_nowinner.inc.php | 0 .../EN/emails/html/endauction_winner.inc.php | 0 .../EN/emails/html/endauction_youwin.inc.php | 0 .../html/endauction_youwin_nodutch.inc.php | 0 .../EN/emails/html/final_value_fee.inc.php | 0 language/EN/emails/html/friendmail.inc.php | 0 language/EN/emails/html/item_watch.inc.php | 0 language/EN/emails/html/newpasswd.inc.php | 0 .../EN/emails/html/no_longer_winner.inc.php | 0 .../EN/emails/html/payment_reminder.inc.php | 0 language/EN/emails/html/send_email.inc.php | 0 .../EN/emails/html/suspended_balance.inc.php | 0 language/EN/emails/html/user_approved.inc.php | 0 .../EN/emails/html/user_needapproval.inc.php | 0 .../EN/emails/html/user_reactivated.inc.php | 0 .../EN/emails/html/user_suspended.inc.php | 0 language/EN/emails/html/usermail.inc.php | 0 language/EN/emails/text/auction_pending.php | 0 .../text/auction_pending_moderation.php | 0 .../EN/emails/text/auction_watchmail.inc.php | 0 .../emails/text/auctionend_watchmail.inc.php | 0 language/EN/emails/text/auctionmail.inc.php | 0 language/EN/emails/text/buyer_fee.inc.php | 0 language/EN/emails/text/buyer_request.inc.php | 0 .../emails/text/endauction_cumulative.inc.php | 0 .../text/endauction_multi_item_win.inc.php | 0 .../emails/text/endauction_nowinner.inc.php | 0 .../EN/emails/text/endauction_winner.inc.php | 0 .../EN/emails/text/endauction_youwin.inc.php | 0 .../text/endauction_youwin_nodutch.inc.php | 0 .../EN/emails/text/final_value_fee.inc.php | 0 language/EN/emails/text/friendmail.inc.php | 0 language/EN/emails/text/item_watch.inc.php | 0 language/EN/emails/text/newpasswd.inc.php | 0 .../EN/emails/text/no_longer_winner.inc.php | 0 .../EN/emails/text/payment_reminder.inc.php | 0 language/EN/emails/text/send_email.inc.php | 0 .../EN/emails/text/suspended_balance.inc.php | 0 language/EN/emails/text/user_approved.inc.php | 0 .../EN/emails/text/user_needapproval.inc.php | 0 .../EN/emails/text/user_reactivated.inc.php | 0 .../EN/emails/text/user_suspended.inc.php | 0 language/EN/emails/text/usermail.inc.php | 0 language/EN/images/bn_only.png | Bin language/EN/images/buy_it_now.gif | Bin language/EN/images/nopicture.gif | Bin language/EN/messages.inc.php | 2382 ++++++++++------- logout.php | 17 +- mail.php | 388 +-- message.php | 77 +- models/auctions.models.php | 70 + models/bids.models.php | 21 + models/categories.models.php | 2 + msgboard.php | 224 +- order_packingslip.php | 50 +- order_print.php | 326 +-- outstanding.php | 113 +- pay.php | 388 +-- preview_gallery.php | 14 +- profile.php | 236 +- register.php | 819 +++--- robots.txt | 0 rss.php | 248 +- search.php | 127 +- select_category.php | 318 ++- sell.php | 1323 ++++----- selleremails.php | 63 +- selling.php | 150 +- sellsimilar.php | 255 +- send_email.php | 169 +- themes/adminClassic/accounts.tpl | 10 +- themes/adminClassic/addnew.tpl | 4 +- themes/adminClassic/adminpages.tpl | 0 themes/adminClassic/adminusers.tpl | 8 +- themes/adminClassic/approveauction.tpl | 8 +- themes/adminClassic/banips.tpl | 28 +- themes/adminClassic/boards.tpl | 10 +- themes/adminClassic/categories.tpl | 9 +- themes/adminClassic/categoriestrans.tpl | 4 +- themes/adminClassic/categoryconfirm.tpl | 35 - themes/adminClassic/checkversion.tpl | 0 themes/adminClassic/clear_image_cache.tpl | 6 +- themes/adminClassic/clearcache.tpl | 6 +- themes/adminClassic/confirm.tpl | 8 +- themes/adminClassic/countries.tpl | 10 +- themes/adminClassic/durations.tpl | 6 +- themes/adminClassic/editadminuser.tpl | 4 +- themes/adminClassic/editauction.tpl | 30 +- themes/adminClassic/editbanneruser.tpl | 4 +- themes/adminClassic/editboards.tpl | 4 +- themes/adminClassic/editfaq.tpl | 0 themes/adminClassic/editfaqscategory.tpl | 0 themes/adminClassic/editmessage.tpl | 2 +- themes/adminClassic/editmessages.tpl | 4 +- themes/adminClassic/edituser.tpl | 14 +- themes/adminClassic/edituserfeed.tpl | 0 themes/adminClassic/emailsettings.tpl | 0 themes/adminClassic/errorlog.tpl | 0 themes/adminClassic/excludeauction.tpl | 11 +- themes/adminClassic/excludeuser.tpl | 9 +- themes/adminClassic/faqcatconfirm.tpl | 36 - themes/adminClassic/faqs.tpl | 0 themes/adminClassic/faqscategories.tpl | 2 +- themes/adminClassic/fee_gateways.tpl | 0 themes/adminClassic/fees.tpl | 0 themes/adminClassic/footer.tpl | 0 themes/adminClassic/header.tpl | 0 themes/adminClassic/help.tpl | 2 +- themes/adminClassic/home.tpl | 34 +- themes/adminClassic/images/accept.png | Bin .../images/application_form_edit.png | Bin themes/adminClassic/images/arrow.gif | Bin themes/adminClassic/images/bin.png | Bin themes/adminClassic/images/bullet_blue.png | Bin themes/adminClassic/images/bullet_red.png | Bin themes/adminClassic/images/bullet_wrench.png | Bin themes/adminClassic/images/cog.png | Bin themes/adminClassic/images/error.png | Bin themes/adminClassic/images/exclamation.png | Bin themes/adminClassic/images/information.png | Bin themes/adminClassic/increments.tpl | 0 themes/adminClassic/invoice.tpl | 4 +- themes/adminClassic/listauctions.tpl | 6 +- themes/adminClassic/listreportedauctions.tpl | 116 - themes/adminClassic/listusers.tpl | 28 +- themes/adminClassic/login.tpl | 12 +- themes/adminClassic/logo_upload.tpl | 4 +- themes/adminClassic/managebanners.tpl | 4 +- themes/adminClassic/membertypes.tpl | 0 themes/adminClassic/message.tpl | 0 themes/adminClassic/newbanneruser.tpl | 2 +- themes/adminClassic/newboard.tpl | 2 +- themes/adminClassic/newfaq.tpl | 36 +- themes/adminClassic/news.tpl | 4 +- themes/adminClassic/newsletter.tpl | 0 themes/adminClassic/newuser.tpl | 8 +- themes/adminClassic/payments.tpl | 2 +- themes/adminClassic/profile.tpl | 56 +- themes/adminClassic/removefrommoderation.tpl | 8 +- themes/adminClassic/searchauctions.tpl | 8 +- themes/adminClassic/sidebar-auctions.tpl | 8 +- themes/adminClassic/sidebar-banners.tpl | 4 +- themes/adminClassic/sidebar-contents.tpl | 16 +- themes/adminClassic/sidebar-fees.tpl | 10 +- themes/adminClassic/sidebar-interface.tpl | 6 +- themes/adminClassic/sidebar-settings.tpl | 36 +- themes/adminClassic/sidebar-stats.tpl | 4 +- themes/adminClassic/sidebar-tools.tpl | 6 +- themes/adminClassic/sidebar-users.tpl | 6 +- themes/adminClassic/style.css | 4 +- themes/adminClassic/tax_levels.tpl | 0 themes/adminClassic/theme.tpl | 8 +- themes/adminClassic/userbanners.tpl | 12 +- themes/adminClassic/userfeedback.tpl | 6 +- themes/adminClassic/usergroups.tpl | 20 +- themes/adminClassic/viewaccessstats.tpl | 0 themes/adminClassic/viewbrowserstats.tpl | 0 themes/adminClassic/viewfilters.tpl | 40 - themes/adminClassic/viewplatformstats.tpl | 0 themes/adminClassic/viewuserips.tpl | 27 +- themes/adminClassic/viewwinners.tpl | 0 themes/adminClassic/wordfilter.tpl | 4 +- themes/adminModern/accounts.tpl | 6 +- themes/adminModern/addnew.tpl | 8 +- themes/adminModern/adminpages.tpl | 4 +- themes/adminModern/adminusers.tpl | 12 +- themes/adminModern/banips.tpl | 32 +- themes/adminModern/boards.tpl | 14 +- themes/adminModern/categories.tpl | 11 +- themes/adminModern/categoriestrans.tpl | 6 +- themes/adminModern/categoryconfirm.tpl | 65 - themes/adminModern/checkversion.tpl | 4 +- themes/adminModern/clear_image_cache.tpl | 8 +- themes/adminModern/clearcache.tpl | 8 +- themes/adminModern/confirm.tpl | 8 +- themes/adminModern/countries.tpl | 12 +- themes/adminModern/css/bootstrap-theme.css | 0 .../adminModern/css/bootstrap-theme.css.map | 0 .../adminModern/css/bootstrap-theme.min.css | 0 themes/adminModern/css/bootstrap.css | 0 themes/adminModern/css/bootstrap.css.map | 0 themes/adminModern/css/bootstrap.min.css | 0 themes/adminModern/css/jquery.lightbox.css | 0 themes/adminModern/css/style.css | 0 themes/adminModern/durations.tpl | 8 +- themes/adminModern/editadminuser.tpl | 8 +- themes/adminModern/editauction.tpl | 30 +- themes/adminModern/editbanneruser.tpl | 4 +- themes/adminModern/editboards.tpl | 8 +- themes/adminModern/editfaq.tpl | 4 +- themes/adminModern/editfaqscategory.tpl | 6 +- themes/adminModern/editmessage.tpl | 8 +- themes/adminModern/editmessages.tpl | 10 +- themes/adminModern/edituser.tpl | 18 +- themes/adminModern/edituserfeed.tpl | 6 +- themes/adminModern/emailsettings.tpl | 4 +- themes/adminModern/errorlog.tpl | 6 +- themes/adminModern/excludeauction.tpl | 15 +- themes/adminModern/excludeuser.tpl | 13 +- themes/adminModern/faqcatconfirm.tpl | 66 - themes/adminModern/faqs.tpl | 6 +- themes/adminModern/faqscategories.tpl | 12 +- themes/adminModern/fee_gateways.tpl | 2 +- themes/adminModern/fees.tpl | 2 +- themes/adminModern/fonts/Carlito-Bold.ttf | Bin .../fonts/glyphicons-halflings-regular.eot | Bin .../fonts/glyphicons-halflings-regular.svg | 0 .../fonts/glyphicons-halflings-regular.ttf | Bin .../fonts/glyphicons-halflings-regular.woff | Bin .../fonts/glyphicons-halflings-regular.woff2 | Bin themes/adminModern/footer.tpl | 0 themes/adminModern/header.tpl | 0 themes/adminModern/help.tpl | 2 +- themes/adminModern/home.tpl | 34 +- themes/adminModern/images/accept.png | Bin .../images/application_form_edit.png | Bin themes/adminModern/images/arrow.gif | Bin themes/adminModern/images/bin.png | Bin themes/adminModern/images/bullet_blue.png | Bin themes/adminModern/images/bullet_red.png | Bin themes/adminModern/images/bullet_wrench.png | Bin themes/adminModern/images/cog.png | Bin themes/adminModern/images/error.png | Bin themes/adminModern/images/exclamation.png | Bin themes/adminModern/images/information.png | Bin themes/adminModern/img/bot_deg.gif | Bin themes/adminModern/img/bullet.gif | Bin themes/adminModern/img/close.png | Bin themes/adminModern/img/loading.gif | Bin themes/adminModern/img/logo.png | Bin themes/adminModern/img/next.png | Bin themes/adminModern/img/no-image.jpg | Bin themes/adminModern/img/no-picture-gallery.png | Bin themes/adminModern/img/prev.png | Bin themes/adminModern/increments.tpl | 4 +- themes/adminModern/invoice.tpl | 139 +- themes/adminModern/js/bootstrap.js | 0 themes/adminModern/js/bootstrap.min.js | 0 themes/adminModern/js/npm.js | 0 themes/adminModern/listauctions.tpl | 12 +- themes/adminModern/listreportedauctions.tpl | 116 - themes/adminModern/listusers.tpl | 34 +- themes/adminModern/login.tpl | 4 +- themes/adminModern/logo_upload.tpl | 8 +- themes/adminModern/managebanners.tpl | 6 +- themes/adminModern/membertypes.tpl | 4 +- themes/adminModern/message.tpl | 0 themes/adminModern/newbanneruser.tpl | 4 +- themes/adminModern/newboard.tpl | 10 +- themes/adminModern/newfaq.tpl | 42 +- themes/adminModern/news.tpl | 16 +- themes/adminModern/newsletter.tpl | 4 +- themes/adminModern/newuser.tpl | 12 +- themes/adminModern/payments.tpl | 4 +- themes/adminModern/profile.tpl | 233 +- themes/adminModern/removefrommoderation.tpl | 14 +- themes/adminModern/searchauctions.tpl | 14 +- themes/adminModern/sidebar-auctions.tpl | 8 +- themes/adminModern/sidebar-banners.tpl | 4 +- themes/adminModern/sidebar-contents.tpl | 16 +- themes/adminModern/sidebar-fees.tpl | 10 +- themes/adminModern/sidebar-interface.tpl | 6 +- themes/adminModern/sidebar-settings.tpl | 36 +- themes/adminModern/sidebar-stats.tpl | 4 +- themes/adminModern/sidebar-tools.tpl | 6 +- themes/adminModern/sidebar-users.tpl | 6 +- themes/adminModern/style.css | 0 themes/adminModern/tax_levels.tpl | 118 +- themes/adminModern/theme.tpl | 2 +- themes/adminModern/userbanners.tpl | 12 +- themes/adminModern/userfeedback.tpl | 12 +- themes/adminModern/usergroups.tpl | 26 +- themes/adminModern/viewaccessstats.tpl | 108 +- themes/adminModern/viewbrowserstats.tpl | 6 +- themes/adminModern/viewfilters.tpl | 40 - themes/adminModern/viewplatformstats.tpl | 6 +- themes/adminModern/viewuserips.tpl | 29 +- themes/adminModern/viewwinners.tpl | 8 +- themes/adminModern/wordfilter.tpl | 8 +- themes/classic/active_auctions.tpl | 0 themes/classic/advanced_search.tpl | 0 themes/classic/asearch_result.tpl | 0 themes/classic/auction_watch.tpl | 0 themes/classic/auctions_closed.tpl | 0 themes/classic/bid.tpl | 4 +- themes/classic/boards.tpl | 2 +- themes/classic/browse.tpl | 6 +- themes/classic/browsecats.tpl | 0 themes/classic/buy_now.tpl | 6 +- themes/classic/buying.tpl | 4 +- themes/classic/confirm.tpl | 0 themes/classic/contents.tpl | 0 themes/classic/edit_data.tpl | 8 +- themes/classic/email_request.tpl | 2 +- themes/classic/error.tpl | 0 themes/classic/feedback.tpl | 4 +- themes/classic/fees.tpl | 0 themes/classic/forgotpasswd.tpl | 2 +- themes/classic/friend.tpl | 0 themes/classic/global_footer.tpl | 2 +- themes/classic/global_header.tpl | 0 themes/classic/help.tpl | 0 themes/classic/home.tpl | 4 +- themes/classic/img/bot_deg.gif | Bin themes/classic/img/bot_rev.gif | Bin themes/classic/img/bullet.gif | Bin themes/classic/img/close.png | Bin themes/classic/img/loading.gif | Bin themes/classic/img/next.png | Bin themes/classic/img/prev.png | Bin themes/classic/invoices.tpl | 0 themes/classic/item.tpl | 48 +- themes/classic/item_report.tpl | 0 themes/classic/item_watch.tpl | 3 - themes/classic/jquery.lightbox.css | 0 themes/classic/l_gpl.gif | Bin themes/classic/logo.gif | Bin themes/classic/mail-send.tpl | 2 +- themes/classic/mail.tpl | 14 +- themes/classic/message.tpl | 0 themes/classic/msgboard.tpl | 0 themes/classic/order_invoice.tpl | 0 themes/classic/order_packingslip.tpl | 0 themes/classic/outstanding.tpl | 0 themes/classic/pay.tpl | 11 +- themes/classic/preview_gallery.tpl | 0 themes/classic/profile.tpl | 4 +- themes/classic/register.tpl | 10 +- themes/classic/rss.tpl | 0 themes/classic/search.tpl | 0 themes/classic/select_category.tpl | 0 themes/classic/sell.tpl | 45 +- ...leave_feedback.tpl => sellbuyfeedback.tpl} | 9 +- themes/classic/sellermails.tpl | 0 themes/classic/selling.tpl | 0 themes/classic/send_email.tpl | 0 themes/classic/show_feedback.tpl | 8 +- themes/classic/style.css | 11 +- themes/classic/upldgallery.tpl | 0 themes/classic/user_login.tpl | 2 +- themes/classic/user_menu.tpl | 2 +- themes/classic/user_menu_footer.tpl | 0 themes/classic/user_menu_header.tpl | 0 themes/classic/viewallnews.tpl | 0 themes/classic/viewhelp.tpl | 0 themes/classic/viewnews.tpl | 0 themes/classic/yourauctions.tpl | 0 themes/classic/yourauctions_c.tpl | 0 themes/classic/yourauctions_p.tpl | 0 themes/classic/yourauctions_s.tpl | 0 themes/classic/yourauctions_sold.tpl | 0 themes/classic/yourbids.tpl | 0 themes/classic/yourfeedback.tpl | 4 +- themes/classic/yourmessages.tpl | 4 +- themes/modern/Thumbs.db | Bin themes/modern/active_auctions.tpl | 0 themes/modern/advanced_search.tpl | 0 themes/modern/asearch_result.tpl | 0 themes/modern/auction_watch.tpl | 0 themes/modern/auctions_closed.tpl | 0 themes/modern/bid.tpl | 4 +- themes/modern/boards.tpl | 2 +- themes/modern/browse.tpl | 6 +- themes/modern/browsecats.tpl | 0 themes/modern/buy_now.tpl | 8 +- themes/modern/buying.tpl | 2 +- themes/modern/confirm.tpl | 0 themes/modern/contents.tpl | 0 themes/modern/css/bootstrap-theme.css | 0 themes/modern/css/bootstrap-theme.css.map | 0 themes/modern/css/bootstrap-theme.min.css | 0 themes/modern/css/bootstrap.css | 0 themes/modern/css/bootstrap.css.map | 0 themes/modern/css/bootstrap.min.css | 0 themes/modern/css/jquery.lightbox.css | 0 themes/modern/css/style.css | 4 +- themes/modern/edit_data.tpl | 6 +- themes/modern/email_request.tpl | 2 +- themes/modern/error.tpl | 0 themes/modern/feedback.tpl | 4 +- themes/modern/fees.tpl | 0 themes/modern/fonts/Carlito-Bold.ttf | Bin .../fonts/glyphicons-halflings-regular.eot | Bin .../fonts/glyphicons-halflings-regular.svg | 0 .../fonts/glyphicons-halflings-regular.ttf | Bin .../fonts/glyphicons-halflings-regular.woff | Bin .../fonts/glyphicons-halflings-regular.woff2 | Bin themes/modern/forgotpasswd.tpl | 2 +- themes/modern/friend.tpl | 0 themes/modern/global_footer.tpl | 2 +- themes/modern/global_header.tpl | 0 themes/modern/help.tpl | 0 themes/modern/home.tpl | 4 +- themes/modern/img/Thumbs.db | Bin themes/modern/img/bot_deg.gif | Bin themes/modern/img/bullet.gif | Bin themes/modern/img/close.png | Bin themes/modern/img/loading.gif | Bin themes/modern/img/logo.png | Bin themes/modern/img/next.png | Bin themes/modern/img/no-image.jpg | Bin themes/modern/img/no-picture-gallery.png | Bin themes/modern/img/prev.png | Bin themes/modern/invoices.tpl | 0 themes/modern/item.tpl | 52 +- themes/modern/item_report.tpl | 0 themes/modern/item_watch.tpl | 5 +- themes/modern/js/bootstrap.js | 0 themes/modern/js/bootstrap.min.js | 0 themes/modern/js/npm.js | 0 themes/modern/l_gpl.gif | Bin themes/modern/logo.gif | Bin themes/modern/mail-send.tpl | 2 +- themes/modern/mail.tpl | 6 +- themes/modern/message.tpl | 0 themes/modern/msgboard.tpl | 0 themes/modern/order_invoice.tpl | 0 themes/modern/order_packingslip.tpl | 0 themes/modern/outstanding.tpl | 0 themes/modern/pay.tpl | 11 +- themes/modern/preview_gallery.tpl | 0 themes/modern/profile.tpl | 4 +- themes/modern/register.tpl | 23 +- themes/modern/rss.tpl | 0 themes/modern/search.tpl | 0 themes/modern/select_category.tpl | 0 themes/modern/sell.tpl | 45 +- ...leave_feedback.tpl => sellbuyfeedback.tpl} | 12 +- themes/modern/sellermails.tpl | 0 themes/modern/selling.tpl | 0 themes/modern/send_email.tpl | 0 themes/modern/show_feedback.tpl | 10 +- themes/modern/style.css | 9 +- themes/modern/upldgallery.tpl | 0 themes/modern/user_login.tpl | 2 +- themes/modern/user_menu.tpl | 8 +- themes/modern/user_menu_footer.tpl | 0 themes/modern/user_menu_header.tpl | 4 +- themes/modern/viewallnews.tpl | 0 themes/modern/viewhelp.tpl | 0 themes/modern/viewnews.tpl | 0 themes/modern/yourauctions.tpl | 0 themes/modern/yourauctions_c.tpl | 4 +- themes/modern/yourauctions_p.tpl | 0 themes/modern/yourauctions_s.tpl | 0 themes/modern/yourauctions_sold.tpl | 0 themes/modern/yourbids.tpl | 0 themes/modern/yourfeedback.tpl | 4 +- themes/modern/yourmessages.tpl | 6 +- upldgallery.php | 379 +-- uploaded/.htaccess | 0 uploaded/cache/purge | 0 uploaded/logo/logo.png | Bin user_login.php | 242 +- user_menu.php | 240 +- validate.php | 54 +- viewallnews.php | 19 +- viewhelp.php | 114 +- viewnews.php | 94 +- yourauctions.php | 315 ++- yourauctions_c.php | 519 ++-- yourauctions_p.php | 281 +- yourauctions_s.php | 224 +- yourauctions_sold.php | 336 +-- yourbids.php | 75 +- yourfeedback.php | 175 +- yourmessages.php | 63 +- zinstall/functions.php | 459 ++++ {install => zinstall}/index.php | 24 +- zinstall/install.php | 170 ++ {install => zinstall}/scripts/1.2.0.php | 17 +- {install => zinstall}/scripts/1.2.1.php | 132 +- {install => zinstall}/sql/dump.inc.php | 481 ++-- zinstall/sql/updatedump.inc.php | 523 ++++ zinstall/thisversion.txt | 1 + zinstall/update.php | 110 + 1230 files changed, 32084 insertions(+), 26931 deletions(-) mode change 100644 => 100755 README.md mode change 100644 => 100755 active_auctions.php mode change 100644 => 100755 admin/aboutus.php mode change 100644 => 100755 admin/accounts.php mode change 100644 => 100755 admin/activatenewsletter.php mode change 100644 => 100755 admin/addnew.php mode change 100644 => 100755 admin/adminusers.php mode change 100644 => 100755 admin/analytics.php mode change 100644 => 100755 admin/auctions.php mode change 100644 => 100755 admin/banips.php mode change 100644 => 100755 admin/banners.php mode change 100644 => 100755 admin/boards.php mode change 100644 => 100755 admin/boardsettings.php mode change 100644 => 100755 admin/buyerprivacy.php mode change 100644 => 100755 admin/buyitnow.php mode change 100644 => 100755 admin/categories.php mode change 100644 => 100755 admin/categoriestrans.php mode change 100644 => 100755 admin/catsorting.php mode change 100644 => 100755 admin/checkversion.php mode change 100644 => 100755 admin/clear_image_cache.php mode change 100644 => 100755 admin/clearcache.php mode change 100644 => 100755 admin/contactseller.php mode change 100644 => 100755 admin/counters.php mode change 100644 => 100755 admin/countries.php mode change 100644 => 100755 admin/currency.php mode change 100644 => 100755 admin/defaultcountry.php mode change 100644 => 100755 admin/deleteauction.php mode change 100644 => 100755 admin/deletebanner.php mode change 100644 => 100755 admin/deletemessage.php rename admin/{deletenews.php => deletenew.php} (61%) mode change 100644 => 100755 mode change 100644 => 100755 admin/deleteuser.php mode change 100644 => 100755 admin/deleteuserfeed.php mode change 100644 => 100755 admin/displaysettings.php mode change 100644 => 100755 admin/durations.php mode change 100644 => 100755 admin/editadminuser.php mode change 100644 => 100755 admin/editauction.php mode change 100644 => 100755 admin/editbanner.php mode change 100644 => 100755 admin/editbannersuser.php mode change 100644 => 100755 admin/editboards.php mode change 100644 => 100755 admin/editfaq.php mode change 100644 => 100755 admin/editfaqscategory.php mode change 100644 => 100755 admin/editmessage.php mode change 100644 => 100755 admin/editmessages.php mode change 100644 => 100755 admin/editnew.php mode change 100644 => 100755 admin/edituser.php mode change 100644 => 100755 admin/edituserfeed.php mode change 100644 => 100755 admin/emailsettings.php mode change 100644 => 100755 admin/enablefees.php mode change 100644 => 100755 admin/errorhandling.php mode change 100644 => 100755 admin/errorlog.php mode change 100644 => 100755 admin/excludeauction.php mode change 100644 => 100755 admin/excludeuser.php mode change 100644 => 100755 admin/faqs.php mode change 100644 => 100755 admin/faqscategories.php mode change 100644 => 100755 admin/fee_gateways.php mode change 100644 => 100755 admin/fees.php mode change 100644 => 100755 admin/footer.php mode change 100644 => 100755 admin/header.php mode change 100644 => 100755 admin/help.php mode change 100644 => 100755 admin/increments.php mode change 100644 => 100755 admin/index.php mode change 100644 => 100755 admin/invoice.php mode change 100644 => 100755 admin/invoice_settings.php mode change 100644 => 100755 admin/listauctions.php mode change 100644 => 100755 admin/listclosedauctions.php mode change 100644 => 100755 admin/listreportedauctions.php mode change 100644 => 100755 admin/listsuspendedauctions.php mode change 100644 => 100755 admin/listusers.php mode change 100644 => 100755 admin/loggedin.inc.php mode change 100644 => 100755 admin/login.php mode change 100644 => 100755 admin/logo_upload.php mode change 100644 => 100755 admin/logout.php create mode 100755 admin/maintainance.php delete mode 100644 admin/maintenance.php mode change 100644 => 100755 admin/managebanners.php mode change 100644 => 100755 admin/membertypes.php mode change 100644 => 100755 admin/metatags.php mode change 100644 => 100755 admin/moderateauctions.php mode change 100644 => 100755 admin/moderation.php mode change 100644 => 100755 admin/multilingual.php mode change 100644 => 100755 admin/newadminuser.php mode change 100644 => 100755 admin/newbannersuser.php mode change 100644 => 100755 admin/newboard.php mode change 100644 => 100755 admin/newfaq.php mode change 100644 => 100755 admin/news.php mode change 100644 => 100755 admin/newsletter.php mode change 100644 => 100755 admin/newuser.php mode change 100644 => 100755 admin/payments.php mode change 100644 => 100755 admin/privacypolicy.php mode change 100644 => 100755 admin/profile.php mode change 100644 => 100755 admin/removefrommoderation.php mode change 100644 => 100755 admin/searchauctions.php mode change 100644 => 100755 admin/settings.php mode change 100644 => 100755 admin/spam.php mode change 100644 => 100755 admin/stats_settings.php mode change 100644 => 100755 admin/tax.php mode change 100644 => 100755 admin/tax_levels.php mode change 100644 => 100755 admin/terms.php mode change 100644 => 100755 admin/theme.php mode change 100644 => 100755 admin/time.php mode change 100644 => 100755 admin/userbanners.php mode change 100644 => 100755 admin/userfeedback.php mode change 100644 => 100755 admin/usergroups.php mode change 100644 => 100755 admin/usersettings.php mode change 100644 => 100755 admin/util_cc1.php mode change 100644 => 100755 admin/viewaccessstats.php mode change 100644 => 100755 admin/viewbrowserstats.php mode change 100644 => 100755 admin/viewfilters.php mode change 100644 => 100755 admin/viewplatformstats.php mode change 100644 => 100755 admin/viewuserips.php mode change 100644 => 100755 admin/viewwinners.php mode change 100644 => 100755 admin/wordsfilter.php mode change 100644 => 100755 adsearch.php mode change 100644 => 100755 auction_watch.php mode change 100644 => 100755 batch.php mode change 100644 => 100755 bid.php mode change 100644 => 100755 boards.php mode change 100644 => 100755 browse.php mode change 100644 => 100755 buy_now.php mode change 100644 => 100755 buying.php rename leave_feedback.php => buysellnofeedback.php (55%) mode change 100644 => 100755 mode change 100644 => 100755 cache/index.php create mode 100755 calendar.html mode change 100644 => 100755 clickthrough.php mode change 100644 => 100755 closed_auctions.php mode change 100644 => 100755 common.php mode change 100644 => 100755 confirm.php mode change 100644 => 100755 contents.php mode change 100644 => 100755 cron.php mode change 100644 => 100755 docs/COPYRIGHT mode change 100644 => 100755 docs/LICENSE mode change 100644 => 100755 docs/changes.txt mode change 100644 => 100755 docs/install.txt mode change 100644 => 100755 docs/readme.txt mode change 100644 => 100755 edit_active_auction.php mode change 100644 => 100755 edit_data.php mode change 100644 => 100755 email_request.php mode change 100644 => 100755 error.php mode change 100644 => 100755 favicon.ico mode change 100644 => 100755 feedback.php mode change 100644 => 100755 fees.php mode change 100644 => 100755 footer.php mode change 100644 => 100755 forgotpasswd.php mode change 100644 => 100755 friend.php mode change 100644 => 100755 getthumb.php mode change 100644 => 100755 header.php mode change 100644 => 100755 help.php mode change 100644 => 100755 images/arrow.gif mode change 100644 => 100755 images/arrow2.gif mode change 100644 => 100755 images/arrow_down.gif mode change 100644 => 100755 images/arrow_up.gif mode change 100644 => 100755 images/authnet.gif mode change 100644 => 100755 images/back_bar2.gif mode change 100644 => 100755 images/ball.gif mode change 100644 => 100755 images/bc_but.gif mode change 100644 => 100755 images/bc_foot.gif mode change 100644 => 100755 images/bc_search2.gif mode change 100644 => 100755 images/bk_b_but.gif mode change 100644 => 100755 images/bk_tit2.gif mode change 100644 => 100755 images/border-anim-h.gif mode change 100644 => 100755 images/border-anim-v.gif mode change 100644 => 100755 images/border-h.gif mode change 100644 => 100755 images/border-v.gif mode change 100644 => 100755 images/bullet.gif mode change 100644 => 100755 images/edititem.gif mode change 100644 => 100755 images/email_alerts/Active_Acct_Btn.jpg mode change 100644 => 100755 images/email_alerts/Sell_More_Btn.jpg mode change 100644 => 100755 images/email_alerts/Take_Me_There.jpg mode change 100644 => 100755 images/email_alerts/Total_Due_Btn.jpg mode change 100644 => 100755 images/email_alerts/default_item_img.jpg mode change 100644 => 100755 images/flags/DE.gif mode change 100644 => 100755 images/flags/DK.gif mode change 100644 => 100755 images/flags/EN.gif mode change 100644 => 100755 images/flags/ES.gif mode change 100644 => 100755 images/flags/FR.gif mode change 100644 => 100755 images/flags/IT.gif mode change 100644 => 100755 images/flags/MO.gif mode change 100644 => 100755 images/flags/NL.gif mode change 100644 => 100755 images/flags/PL.gif mode change 100644 => 100755 images/gallery.gif mode change 100644 => 100755 images/icons/starB.gif mode change 100644 => 100755 images/icons/starFR.gif mode change 100644 => 100755 images/icons/starFT.gif mode change 100644 => 100755 images/icons/starFV.gif mode change 100644 => 100755 images/icons/starFY.gif mode change 100644 => 100755 images/icons/starG.gif mode change 100644 => 100755 images/icons/starR.gif mode change 100644 => 100755 images/icons/starT.gif mode change 100644 => 100755 images/icons/starV.gif mode change 100644 => 100755 images/icons/starY.gif mode change 100644 => 100755 images/icons/transparent.gif mode change 100644 => 100755 images/imgsep.gif mode change 100644 => 100755 images/info.gif mode change 100644 => 100755 images/lightbox-blank.gif mode change 100644 => 100755 images/lightbox-btn-close.gif mode change 100644 => 100755 images/lightbox-btn-next.gif mode change 100644 => 100755 images/lightbox-btn-prev.gif mode change 100644 => 100755 images/lightbox-ico-loading.gif mode change 100644 => 100755 images/linea.gif create mode 100755 images/moneybookers.gif mode change 100644 => 100755 images/negative.png mode change 100644 => 100755 images/neutral.png mode change 100644 => 100755 images/nodelete.gif mode change 100644 => 100755 images/paypal.gif mode change 100644 => 100755 images/picture.gif mode change 100644 => 100755 images/plus.gif mode change 100644 => 100755 images/positive.png mode change 100644 => 100755 images/rss.png mode change 100644 => 100755 images/selected.gif mode change 100644 => 100755 images/sep_bco.gif delete mode 100644 images/skrill.png mode change 100644 => 100755 images/tit_l.gif mode change 100644 => 100755 images/tit_r.gif mode change 100644 => 100755 images/toocheckout.gif mode change 100644 => 100755 images/transparent.gif mode change 100644 => 100755 images/trash.gif mode change 100644 => 100755 images/unselected.gif mode change 100644 => 100755 images/worldpay.gif delete mode 100644 includes/Date.php create mode 100755 includes/Time.php mode change 100644 => 100755 includes/User.php mode change 100644 => 100755 includes/auction/Auction.php delete mode 100644 includes/auction/Auction_BIN.php delete mode 100644 includes/auction/Auction_Bid.php delete mode 100644 includes/auction/Auction_Dutch.php mode change 100644 => 100755 includes/browseitems.inc.php mode change 100644 => 100755 includes/calendar.css mode change 100644 => 100755 includes/calendar.inc.php mode change 100644 => 100755 includes/checks/database.php mode change 100644 => 100755 includes/class_MPTTcategories.php mode change 100644 => 100755 includes/class_email_handler.php mode change 100644 => 100755 includes/class_fees.php delete mode 100644 includes/config.inc.php.new mode change 100644 => 100755 includes/config/gateways.php mode change 100644 => 100755 includes/config/timezones.php mode change 100644 => 100755 includes/database/Database.php mode change 100644 => 100755 includes/database/DatabasePDO.php mode change 100644 => 100755 includes/datacheck.inc.php create mode 100755 includes/dates.inc.php create mode 100755 includes/diff/diff.php create mode 100755 includes/diff/engine.php create mode 100755 includes/diff/renderer.php mode change 100644 => 100755 includes/email/auction_confirmation.php mode change 100644 => 100755 includes/email/auction_pending.php mode change 100644 => 100755 includes/email/auction_pending_moderation.php mode change 100644 => 100755 includes/email/endauction_cumulative.php mode change 100644 => 100755 includes/email/endauction_multi_item_win.php mode change 100644 => 100755 includes/email/endauction_nowinner.php mode change 100644 => 100755 includes/email/endauction_winner.php mode change 100644 => 100755 includes/email/endauction_youwin.php mode change 100644 => 100755 includes/email/endauction_youwin_nodutch.php mode change 100644 => 100755 includes/email/outbid.php mode change 100644 => 100755 includes/email/seller_end_buynowonly.php mode change 100644 => 100755 includes/email/seller_partial_winner.php mode change 100644 => 100755 includes/email/user_approved.php mode change 100644 => 100755 includes/email/user_confirmation.php mode change 100644 => 100755 includes/email/user_needapproval.php mode change 100644 => 100755 includes/email/user_reactivated.php mode change 100644 => 100755 includes/email/user_suspended.php mode change 100644 => 100755 includes/errors.inc.php mode change 100644 => 100755 includes/functions_admin.php mode change 100644 => 100755 includes/functions_ajax.php mode change 100644 => 100755 includes/functions_banners.php mode change 100644 => 100755 includes/functions_cron.php mode change 100644 => 100755 includes/functions_global.php mode change 100644 => 100755 includes/functions_invoices.php create mode 100755 includes/functions_rebuild.php mode change 100644 => 100755 includes/functions_sell.php mode change 100644 => 100755 includes/img/cal.gif mode change 100644 => 100755 includes/img/next_mon.gif mode change 100644 => 100755 includes/img/next_year.gif mode change 100644 => 100755 includes/img/no_cal.gif mode change 100644 => 100755 includes/img/pixel.gif mode change 100644 => 100755 includes/img/prev_mon.gif mode change 100644 => 100755 includes/img/prev_year.gif mode change 100644 => 100755 includes/img/shade_bl.png mode change 100644 => 100755 includes/img/shade_bm.png mode change 100644 => 100755 includes/img/shade_br.png mode change 100644 => 100755 includes/img/shade_mr.png mode change 100644 => 100755 includes/img/shade_tr.png mode change 100644 => 100755 includes/index.php rename includes/{maintenance.php => maintainance.php} (69%) mode change 100644 => 100755 create mode 100755 includes/membertypes.inc.php mode change 100644 => 100755 includes/messages.inc.php mode change 100644 => 100755 includes/packages/PHPMailer/PHPMailerAutoload.php mode change 100644 => 100755 includes/packages/PHPMailer/class.phpmailer.php mode change 100644 => 100755 includes/packages/PHPMailer/class.pop3.php mode change 100644 => 100755 includes/packages/PHPMailer/class.smtp.php mode change 100644 => 100755 includes/packages/PasswordHash.php mode change 100644 => 100755 includes/packages/PluploadHandler.php mode change 100644 => 100755 includes/packages/captcha/AHGBold.ttf mode change 100644 => 100755 includes/packages/captcha/LICENSE.txt mode change 100644 => 100755 includes/packages/captcha/README.FONT.txt mode change 100644 => 100755 includes/packages/captcha/README.md mode change 100644 => 100755 includes/packages/captcha/README.txt mode change 100644 => 100755 includes/packages/captcha/WavFile.php mode change 100644 => 100755 includes/packages/captcha/audio/.htaccess mode change 100644 => 100755 includes/packages/captcha/audio/en/0.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/1.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/10.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/11.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/12.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/13.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/14.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/15.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/16.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/17.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/18.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/19.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/2.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/20.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/3.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/4.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/5.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/6.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/7.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/8.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/9.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/A.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/B.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/C.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/D.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/E.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/F.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/G.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/H.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/I.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/J.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/K.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/L.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/M.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/MINUS.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/N.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/O.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/P.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/PLUS.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/Q.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/R.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/S.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/T.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/TIMES.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/U.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/V.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/W.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/X.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/Y.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/Z.wav mode change 100644 => 100755 includes/packages/captcha/audio/en/error.wav mode change 100644 => 100755 includes/packages/captcha/audio/noise/check-point-1.wav mode change 100644 => 100755 includes/packages/captcha/audio/noise/crowd-talking-1.wav mode change 100644 => 100755 includes/packages/captcha/audio/noise/crowd-talking-6.wav mode change 100644 => 100755 includes/packages/captcha/audio/noise/crowd-talking-7.wav mode change 100644 => 100755 includes/packages/captcha/audio/noise/kids-playing-1.wav mode change 100644 => 100755 includes/packages/captcha/backgrounds/bg3.jpg mode change 100644 => 100755 includes/packages/captcha/backgrounds/bg4.jpg mode change 100644 => 100755 includes/packages/captcha/backgrounds/bg5.jpg mode change 100644 => 100755 includes/packages/captcha/backgrounds/bg6.png mode change 100644 => 100755 includes/packages/captcha/captcha.html delete mode 100644 includes/packages/captcha/database/.htaccess delete mode 100644 includes/packages/captcha/database/index.html delete mode 100644 includes/packages/captcha/database/securimage.sq3 mode change 100644 => 100755 includes/packages/captcha/images/audio_icon.png mode change 100644 => 100755 includes/packages/captcha/images/loading.png mode change 100644 => 100755 includes/packages/captcha/images/refresh.png mode change 100644 => 100755 includes/packages/captcha/securimage.css mode change 100644 => 100755 includes/packages/captcha/securimage.js mode change 100644 => 100755 includes/packages/captcha/securimage.php mode change 100644 => 100755 includes/packages/captcha/securimage_play.php mode change 100644 => 100755 includes/packages/captcha/securimage_play.swf mode change 100644 => 100755 includes/packages/captcha/securimage_show.php mode change 100644 => 100755 includes/packages/captcha/words/words.txt mode change 100644 => 100755 includes/packages/htmLawed.php mode change 100644 => 100755 includes/packages/recaptcha/ReCaptcha/ReCaptcha.php mode change 100644 => 100755 includes/packages/recaptcha/ReCaptcha/RequestMethod.php mode change 100644 => 100755 includes/packages/recaptcha/ReCaptcha/RequestMethod/Curl.php mode change 100644 => 100755 includes/packages/recaptcha/ReCaptcha/RequestMethod/CurlPost.php mode change 100644 => 100755 includes/packages/recaptcha/ReCaptcha/RequestMethod/Post.php mode change 100644 => 100755 includes/packages/recaptcha/ReCaptcha/RequestMethod/Socket.php mode change 100644 => 100755 includes/packages/recaptcha/ReCaptcha/RequestMethod/SocketPost.php mode change 100644 => 100755 includes/packages/recaptcha/ReCaptcha/RequestParameters.php mode change 100644 => 100755 includes/packages/recaptcha/ReCaptcha/Response.php mode change 100644 => 100755 includes/packages/recaptcha/autoload.php mode change 100644 => 100755 includes/packages/recaptcha/recaptcha.php mode change 100644 => 100755 includes/packages/useragent.inc.php mode change 100644 => 100755 includes/stats.inc.php mode change 100644 => 100755 includes/template/Template.php mode change 100644 => 100755 includes/template/TemplateCompile.php mode change 100644 => 100755 includes/user_cp.php mode change 100644 => 100755 index.php delete mode 100644 install/functions.php delete mode 100644 install/install.php delete mode 100644 install/scripts/1.2.2.php delete mode 100644 install/sql/updatedump.inc.php delete mode 100644 install/thisversion.txt delete mode 100644 install/update.php mode change 100644 => 100755 invoices.php mode change 100644 => 100755 item.php mode change 100644 => 100755 item_report.php mode change 100644 => 100755 item_watch.php mode change 100644 => 100755 js/calendar.js mode change 100644 => 100755 js/ckeditor/.htaccess mode change 100644 => 100755 js/ckeditor/CHANGES.md mode change 100644 => 100755 js/ckeditor/LICENSE.md mode change 100644 => 100755 js/ckeditor/README.md mode change 100644 => 100755 js/ckeditor/adapters/jquery.js mode change 100644 => 100755 js/ckeditor/build-config.js mode change 100644 => 100755 js/ckeditor/ckeditor.js create mode 100755 js/ckeditor/ckeditor.pack create mode 100755 js/ckeditor/ckeditor_basic.js create mode 100755 js/ckeditor/ckeditor_basic_source.js create mode 100755 js/ckeditor/ckeditor_source.js mode change 100644 => 100755 js/ckeditor/config.js mode change 100644 => 100755 js/ckeditor/contents.css create mode 100755 js/ckeditor/images/spacer.gif create mode 100755 js/ckeditor/lang/_languages.js create mode 100755 js/ckeditor/lang/_translationstatus.txt create mode 100755 js/ckeditor/lang/af.js create mode 100755 js/ckeditor/lang/ar.js create mode 100755 js/ckeditor/lang/bg.js create mode 100755 js/ckeditor/lang/bn.js create mode 100755 js/ckeditor/lang/bs.js create mode 100755 js/ckeditor/lang/ca.js create mode 100755 js/ckeditor/lang/cs.js create mode 100755 js/ckeditor/lang/cy.js create mode 100755 js/ckeditor/lang/da.js create mode 100755 js/ckeditor/lang/de.js create mode 100755 js/ckeditor/lang/el.js create mode 100755 js/ckeditor/lang/en-au.js create mode 100755 js/ckeditor/lang/en-ca.js create mode 100755 js/ckeditor/lang/en-gb.js mode change 100644 => 100755 js/ckeditor/lang/en.js create mode 100755 js/ckeditor/lang/eo.js create mode 100755 js/ckeditor/lang/es.js create mode 100755 js/ckeditor/lang/et.js create mode 100755 js/ckeditor/lang/eu.js create mode 100755 js/ckeditor/lang/fa.js create mode 100755 js/ckeditor/lang/fi.js create mode 100755 js/ckeditor/lang/fo.js create mode 100755 js/ckeditor/lang/fr-ca.js create mode 100755 js/ckeditor/lang/fr.js create mode 100755 js/ckeditor/lang/gl.js create mode 100755 js/ckeditor/lang/gu.js create mode 100755 js/ckeditor/lang/he.js create mode 100755 js/ckeditor/lang/hi.js create mode 100755 js/ckeditor/lang/hr.js create mode 100755 js/ckeditor/lang/hu.js create mode 100755 js/ckeditor/lang/id.js create mode 100755 js/ckeditor/lang/is.js create mode 100755 js/ckeditor/lang/it.js create mode 100755 js/ckeditor/lang/ja.js create mode 100755 js/ckeditor/lang/ka.js create mode 100755 js/ckeditor/lang/km.js create mode 100755 js/ckeditor/lang/ko.js create mode 100755 js/ckeditor/lang/ku.js create mode 100755 js/ckeditor/lang/lt.js create mode 100755 js/ckeditor/lang/lv.js create mode 100755 js/ckeditor/lang/mk.js create mode 100755 js/ckeditor/lang/mn.js create mode 100755 js/ckeditor/lang/ms.js create mode 100755 js/ckeditor/lang/nb.js create mode 100755 js/ckeditor/lang/nl.js create mode 100755 js/ckeditor/lang/no.js create mode 100755 js/ckeditor/lang/pl.js create mode 100755 js/ckeditor/lang/pt-br.js create mode 100755 js/ckeditor/lang/pt.js create mode 100755 js/ckeditor/lang/ro.js create mode 100755 js/ckeditor/lang/ru.js create mode 100755 js/ckeditor/lang/si.js create mode 100755 js/ckeditor/lang/sk.js create mode 100755 js/ckeditor/lang/sl.js create mode 100755 js/ckeditor/lang/sq.js create mode 100755 js/ckeditor/lang/sr-latn.js create mode 100755 js/ckeditor/lang/sr.js create mode 100755 js/ckeditor/lang/sv.js create mode 100755 js/ckeditor/lang/th.js create mode 100755 js/ckeditor/lang/tr.js create mode 100755 js/ckeditor/lang/tt.js create mode 100755 js/ckeditor/lang/ug.js create mode 100755 js/ckeditor/lang/uk.js create mode 100755 js/ckeditor/lang/vi.js create mode 100755 js/ckeditor/lang/zh-cn.js create mode 100755 js/ckeditor/lang/zh.js create mode 100755 js/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js create mode 100755 js/ckeditor/plugins/a11yhelp/lang/en.js create mode 100755 js/ckeditor/plugins/a11yhelp/lang/he.js mode change 100644 => 100755 js/ckeditor/plugins/about/dialogs/about.js mode change 100644 => 100755 js/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png mode change 100644 => 100755 js/ckeditor/plugins/about/dialogs/logo_ckeditor.png create mode 100755 js/ckeditor/plugins/autogrow/plugin.js mode change 100644 => 100755 js/ckeditor/plugins/clipboard/dialogs/paste.js create mode 100755 js/ckeditor/plugins/colordialog/dialogs/colordialog.js mode change 100644 => 100755 js/ckeditor/plugins/dialog/dialogDefinition.js create mode 100755 js/ckeditor/plugins/div/dialogs/div.js create mode 100755 js/ckeditor/plugins/find/dialogs/find.js create mode 100755 js/ckeditor/plugins/flash/dialogs/flash.js create mode 100755 js/ckeditor/plugins/flash/images/placeholder.png create mode 100755 js/ckeditor/plugins/forms/dialogs/button.js create mode 100755 js/ckeditor/plugins/forms/dialogs/checkbox.js create mode 100755 js/ckeditor/plugins/forms/dialogs/form.js create mode 100755 js/ckeditor/plugins/forms/dialogs/hiddenfield.js create mode 100755 js/ckeditor/plugins/forms/dialogs/radio.js create mode 100755 js/ckeditor/plugins/forms/dialogs/select.js create mode 100755 js/ckeditor/plugins/forms/dialogs/textarea.js create mode 100755 js/ckeditor/plugins/forms/dialogs/textfield.js create mode 100755 js/ckeditor/plugins/forms/images/hiddenfield.gif mode change 100644 => 100755 js/ckeditor/plugins/icons.png mode change 100644 => 100755 js/ckeditor/plugins/icons_hidpi.png create mode 100755 js/ckeditor/plugins/iframedialog/plugin.js create mode 100755 js/ckeditor/plugins/image/dialogs/image.js mode change 100644 => 100755 js/ckeditor/plugins/link/dialogs/anchor.js mode change 100644 => 100755 js/ckeditor/plugins/link/dialogs/link.js create mode 100755 js/ckeditor/plugins/link/images/anchor.gif mode change 100644 => 100755 js/ckeditor/plugins/link/images/anchor.png mode change 100644 => 100755 js/ckeditor/plugins/link/images/hidpi/anchor.png create mode 100755 js/ckeditor/plugins/liststyle/dialogs/liststyle.js create mode 100755 js/ckeditor/plugins/pagebreak/images/pagebreak.gif create mode 100755 js/ckeditor/plugins/pastefromword/filter/default.js create mode 100755 js/ckeditor/plugins/pastetext/dialogs/pastetext.js create mode 100755 js/ckeditor/plugins/scayt/dialogs/options.js create mode 100755 js/ckeditor/plugins/scayt/dialogs/toolbar.css create mode 100755 js/ckeditor/plugins/showblocks/images/block_address.png create mode 100755 js/ckeditor/plugins/showblocks/images/block_blockquote.png create mode 100755 js/ckeditor/plugins/showblocks/images/block_div.png create mode 100755 js/ckeditor/plugins/showblocks/images/block_h1.png create mode 100755 js/ckeditor/plugins/showblocks/images/block_h2.png create mode 100755 js/ckeditor/plugins/showblocks/images/block_h3.png create mode 100755 js/ckeditor/plugins/showblocks/images/block_h4.png create mode 100755 js/ckeditor/plugins/showblocks/images/block_h5.png create mode 100755 js/ckeditor/plugins/showblocks/images/block_h6.png create mode 100755 js/ckeditor/plugins/showblocks/images/block_p.png create mode 100755 js/ckeditor/plugins/showblocks/images/block_pre.png create mode 100755 js/ckeditor/plugins/smiley/dialogs/smiley.js create mode 100755 js/ckeditor/plugins/smiley/images/angel_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/angry_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/broken_heart.gif create mode 100755 js/ckeditor/plugins/smiley/images/confused_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/cry_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/devil_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/embaressed_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/envelope.gif create mode 100755 js/ckeditor/plugins/smiley/images/heart.gif create mode 100755 js/ckeditor/plugins/smiley/images/kiss.gif create mode 100755 js/ckeditor/plugins/smiley/images/lightbulb.gif create mode 100755 js/ckeditor/plugins/smiley/images/omg_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/regular_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/sad_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/shades_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/teeth_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/thumbs_down.gif create mode 100755 js/ckeditor/plugins/smiley/images/thumbs_up.gif create mode 100755 js/ckeditor/plugins/smiley/images/tounge_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif create mode 100755 js/ckeditor/plugins/smiley/images/wink_smile.gif create mode 100755 js/ckeditor/plugins/specialchar/dialogs/specialchar.js create mode 100755 js/ckeditor/plugins/styles/styles/default.js create mode 100755 js/ckeditor/plugins/table/dialogs/table.js create mode 100755 js/ckeditor/plugins/tableresize/plugin.js create mode 100755 js/ckeditor/plugins/tabletools/dialogs/tableCell.js create mode 100755 js/ckeditor/plugins/templates/dialogs/templates.js create mode 100755 js/ckeditor/plugins/templates/templates/default.js create mode 100755 js/ckeditor/plugins/templates/templates/images/template1.gif create mode 100755 js/ckeditor/plugins/templates/templates/images/template2.gif create mode 100755 js/ckeditor/plugins/templates/templates/images/template3.gif create mode 100755 js/ckeditor/plugins/uicolor/dialogs/uicolor.js create mode 100755 js/ckeditor/plugins/uicolor/lang/en.js create mode 100755 js/ckeditor/plugins/uicolor/plugin.js create mode 100755 js/ckeditor/plugins/uicolor/uicolor.gif create mode 100755 js/ckeditor/plugins/uicolor/yui/assets/hue_bg.png create mode 100755 js/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png create mode 100755 js/ckeditor/plugins/uicolor/yui/assets/picker_mask.png create mode 100755 js/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png create mode 100755 js/ckeditor/plugins/uicolor/yui/assets/yui.css create mode 100755 js/ckeditor/plugins/uicolor/yui/yui.js create mode 100755 js/ckeditor/plugins/wsc/dialogs/ciframe.html create mode 100755 js/ckeditor/plugins/wsc/dialogs/tmpFrameset.html create mode 100755 js/ckeditor/plugins/wsc/dialogs/wsc.css create mode 100755 js/ckeditor/plugins/wsc/dialogs/wsc.js create mode 100755 js/ckeditor/skins/kama/dialog.css create mode 100755 js/ckeditor/skins/kama/editor.css create mode 100755 js/ckeditor/skins/kama/icons.png create mode 100755 js/ckeditor/skins/kama/icons_rtl.png create mode 100755 js/ckeditor/skins/kama/images/dialog_sides.gif create mode 100755 js/ckeditor/skins/kama/images/dialog_sides.png create mode 100755 js/ckeditor/skins/kama/images/dialog_sides_rtl.png create mode 100755 js/ckeditor/skins/kama/images/mini.gif create mode 100755 js/ckeditor/skins/kama/images/noimage.png create mode 100755 js/ckeditor/skins/kama/images/sprites.png create mode 100755 js/ckeditor/skins/kama/images/sprites_ie6.png create mode 100755 js/ckeditor/skins/kama/images/toolbar_start.gif create mode 100755 js/ckeditor/skins/kama/skin.js create mode 100755 js/ckeditor/skins/kama/templates.css create mode 100755 js/ckeditor/skins/moono/dialog.css create mode 100755 js/ckeditor/skins/moono/dialog_ie.css create mode 100755 js/ckeditor/skins/moono/dialog_ie7.css create mode 100755 js/ckeditor/skins/moono/dialog_ie8.css create mode 100755 js/ckeditor/skins/moono/dialog_iequirks.css create mode 100755 js/ckeditor/skins/moono/editor.css create mode 100755 js/ckeditor/skins/moono/editor_gecko.css create mode 100755 js/ckeditor/skins/moono/editor_ie.css create mode 100755 js/ckeditor/skins/moono/editor_ie7.css create mode 100755 js/ckeditor/skins/moono/editor_ie8.css create mode 100755 js/ckeditor/skins/moono/editor_iequirks.css create mode 100755 js/ckeditor/skins/moono/icons.png create mode 100755 js/ckeditor/skins/moono/icons_hidpi.png create mode 100755 js/ckeditor/skins/moono/images/arrow.png create mode 100755 js/ckeditor/skins/moono/images/close.png create mode 100755 js/ckeditor/skins/moono/images/hidpi/close.png create mode 100755 js/ckeditor/skins/moono/images/hidpi/lock-open.png create mode 100755 js/ckeditor/skins/moono/images/hidpi/lock.png create mode 100755 js/ckeditor/skins/moono/images/hidpi/refresh.png create mode 100755 js/ckeditor/skins/moono/images/lock-open.png create mode 100755 js/ckeditor/skins/moono/images/lock.png create mode 100755 js/ckeditor/skins/moono/images/refresh.png create mode 100755 js/ckeditor/skins/moono/images/spinner.gif create mode 100755 js/ckeditor/skins/moono/readme.md create mode 100755 js/ckeditor/skins/office2003/dialog.css create mode 100755 js/ckeditor/skins/office2003/editor.css create mode 100755 js/ckeditor/skins/office2003/icons.png create mode 100755 js/ckeditor/skins/office2003/icons_rtl.png create mode 100755 js/ckeditor/skins/office2003/images/dialog_sides.gif create mode 100755 js/ckeditor/skins/office2003/images/dialog_sides.png create mode 100755 js/ckeditor/skins/office2003/images/dialog_sides_rtl.png create mode 100755 js/ckeditor/skins/office2003/images/mini.gif create mode 100755 js/ckeditor/skins/office2003/images/noimage.png create mode 100755 js/ckeditor/skins/office2003/images/sprites.png create mode 100755 js/ckeditor/skins/office2003/images/sprites_ie6.png create mode 100755 js/ckeditor/skins/office2003/skin.js create mode 100755 js/ckeditor/skins/office2003/templates.css mode change 100644 => 100755 js/ckeditor/skins/office2013/dialog.css mode change 100644 => 100755 js/ckeditor/skins/office2013/editor.css mode change 100644 => 100755 js/ckeditor/skins/office2013/icons.png mode change 100644 => 100755 js/ckeditor/skins/office2013/icons_hidpi.png mode change 100644 => 100755 js/ckeditor/skins/office2013/images/arrow.png mode change 100644 => 100755 js/ckeditor/skins/office2013/images/close.png mode change 100644 => 100755 js/ckeditor/skins/office2013/images/hidpi/close.png mode change 100644 => 100755 js/ckeditor/skins/office2013/images/hidpi/lock-open.png mode change 100644 => 100755 js/ckeditor/skins/office2013/images/hidpi/lock.png mode change 100644 => 100755 js/ckeditor/skins/office2013/images/hidpi/refresh.png mode change 100644 => 100755 js/ckeditor/skins/office2013/images/lock-open.png mode change 100644 => 100755 js/ckeditor/skins/office2013/images/lock.png mode change 100644 => 100755 js/ckeditor/skins/office2013/images/refresh.png create mode 100755 js/ckeditor/skins/office2013/skin.js create mode 100755 js/ckeditor/skins/v2/dialog.css create mode 100755 js/ckeditor/skins/v2/editor.css create mode 100755 js/ckeditor/skins/v2/icons.png create mode 100755 js/ckeditor/skins/v2/icons_rtl.png create mode 100755 js/ckeditor/skins/v2/images/dialog_sides.gif create mode 100755 js/ckeditor/skins/v2/images/dialog_sides.png create mode 100755 js/ckeditor/skins/v2/images/dialog_sides_rtl.png create mode 100755 js/ckeditor/skins/v2/images/mini.gif create mode 100755 js/ckeditor/skins/v2/images/noimage.png create mode 100755 js/ckeditor/skins/v2/images/sprites.png create mode 100755 js/ckeditor/skins/v2/images/sprites_ie6.png create mode 100755 js/ckeditor/skins/v2/images/toolbar_start.gif create mode 100755 js/ckeditor/skins/v2/skin.js create mode 100755 js/ckeditor/skins/v2/templates.css mode change 100644 => 100755 js/ckeditor/styles.js create mode 100755 js/ckeditor/themes/default/theme.js mode change 100644 => 100755 js/jquery-migrate.js mode change 100644 => 100755 js/jquery.imgareaselect.js mode change 100644 => 100755 js/jquery.js mode change 100644 => 100755 js/jquery.lightbox.js mode change 100644 => 100755 js/pluploadjs/Moxie.swf mode change 100644 => 100755 js/pluploadjs/Moxie.xap mode change 100644 => 100755 js/pluploadjs/i18n/ar.js mode change 100644 => 100755 js/pluploadjs/i18n/az.js mode change 100644 => 100755 js/pluploadjs/i18n/be_BY.js mode change 100644 => 100755 js/pluploadjs/i18n/bg.js mode change 100644 => 100755 js/pluploadjs/i18n/bs.js mode change 100644 => 100755 js/pluploadjs/i18n/ca.js mode change 100644 => 100755 js/pluploadjs/i18n/cs.js mode change 100644 => 100755 js/pluploadjs/i18n/cy.js mode change 100644 => 100755 js/pluploadjs/i18n/da.js mode change 100644 => 100755 js/pluploadjs/i18n/de.js mode change 100644 => 100755 js/pluploadjs/i18n/el.js mode change 100644 => 100755 js/pluploadjs/i18n/en.js mode change 100644 => 100755 js/pluploadjs/i18n/es.js mode change 100644 => 100755 js/pluploadjs/i18n/et.js mode change 100644 => 100755 js/pluploadjs/i18n/fa.js mode change 100644 => 100755 js/pluploadjs/i18n/fi.js mode change 100644 => 100755 js/pluploadjs/i18n/fr.js mode change 100644 => 100755 js/pluploadjs/i18n/he.js mode change 100644 => 100755 js/pluploadjs/i18n/hr.js mode change 100644 => 100755 js/pluploadjs/i18n/hu.js mode change 100644 => 100755 js/pluploadjs/i18n/hy.js mode change 100644 => 100755 js/pluploadjs/i18n/id.js mode change 100644 => 100755 js/pluploadjs/i18n/it.js mode change 100644 => 100755 js/pluploadjs/i18n/ja.js mode change 100644 => 100755 js/pluploadjs/i18n/ka.js mode change 100644 => 100755 js/pluploadjs/i18n/kk.js mode change 100644 => 100755 js/pluploadjs/i18n/km.js mode change 100644 => 100755 js/pluploadjs/i18n/ko.js mode change 100644 => 100755 js/pluploadjs/i18n/ku_IQ.js mode change 100644 => 100755 js/pluploadjs/i18n/lt.js mode change 100644 => 100755 js/pluploadjs/i18n/lv.js mode change 100644 => 100755 js/pluploadjs/i18n/mn.js mode change 100644 => 100755 js/pluploadjs/i18n/ms.js mode change 100644 => 100755 js/pluploadjs/i18n/nl.js mode change 100644 => 100755 js/pluploadjs/i18n/pl.js mode change 100644 => 100755 js/pluploadjs/i18n/pt.js mode change 100644 => 100755 js/pluploadjs/i18n/pt_BR.js mode change 100644 => 100755 js/pluploadjs/i18n/ro.js mode change 100644 => 100755 js/pluploadjs/i18n/ru.js mode change 100644 => 100755 js/pluploadjs/i18n/sk.js mode change 100644 => 100755 js/pluploadjs/i18n/sl.js mode change 100644 => 100755 js/pluploadjs/i18n/sq.js mode change 100644 => 100755 js/pluploadjs/i18n/sr.js mode change 100644 => 100755 js/pluploadjs/i18n/sr_RS.js mode change 100644 => 100755 js/pluploadjs/i18n/sv.js mode change 100644 => 100755 js/pluploadjs/i18n/th_TH.js mode change 100644 => 100755 js/pluploadjs/i18n/tr.js mode change 100644 => 100755 js/pluploadjs/i18n/uk_UA.js mode change 100644 => 100755 js/pluploadjs/i18n/vi.js mode change 100644 => 100755 js/pluploadjs/i18n/zh_CN.js mode change 100644 => 100755 js/pluploadjs/i18n/zh_TW.js mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/css/jquery.plupload.queue.css mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/img/Thumbs.db mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/img/backgrounds.gif mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/img/buttons-disabled.png mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/img/buttons.png mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/img/delete.gif mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/img/done.gif mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/img/error.gif mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/img/throbber.gif mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/img/transp50.png mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/jquery.plupload.queue.js mode change 100644 => 100755 js/pluploadjs/jquery.plupload.queue/jquery.plupload.queue.min.js mode change 100644 => 100755 js/pluploadjs/jquery.ui.plupload/css/jquery.ui.plupload.css mode change 100644 => 100755 js/pluploadjs/jquery.ui.plupload/img/loading.gif mode change 100644 => 100755 js/pluploadjs/jquery.ui.plupload/img/plupload.png mode change 100644 => 100755 js/pluploadjs/jquery.ui.plupload/jquery.ui.plupload.js mode change 100644 => 100755 js/pluploadjs/jquery.ui.plupload/jquery.ui.plupload.min.js mode change 100644 => 100755 js/pluploadjs/moxie.js mode change 100644 => 100755 js/pluploadjs/moxie.min.js mode change 100644 => 100755 js/pluploadjs/plupload.dev.js mode change 100644 => 100755 js/pluploadjs/plupload.full.min.js mode change 100644 => 100755 js/pluploadjs/plupload.min.js mode change 100644 => 100755 js/webid.js delete mode 100644 language/EN/admin.inc.php mode change 100644 => 100755 language/EN/categories.inc.php mode change 100644 => 100755 language/EN/categories_select_box.inc.php mode change 100644 => 100755 language/EN/emails/html/auction_pending.php mode change 100644 => 100755 language/EN/emails/html/auction_pending_moderation.php mode change 100644 => 100755 language/EN/emails/html/auction_watchmail.inc.php mode change 100644 => 100755 language/EN/emails/html/auctionend_watchmail.inc.php mode change 100644 => 100755 language/EN/emails/html/auctionmail.inc.php mode change 100644 => 100755 language/EN/emails/html/buyer_fee.inc.php mode change 100644 => 100755 language/EN/emails/html/buyer_request.inc.php mode change 100644 => 100755 language/EN/emails/html/email_seller_end_buynowonly.inc.php mode change 100644 => 100755 language/EN/emails/html/email_seller_partial_winner.inc.php mode change 100644 => 100755 language/EN/emails/html/endauction_cumulative.inc.php mode change 100644 => 100755 language/EN/emails/html/endauction_multi_item_win.inc.php mode change 100644 => 100755 language/EN/emails/html/endauction_nowinner.inc.php mode change 100644 => 100755 language/EN/emails/html/endauction_winner.inc.php mode change 100644 => 100755 language/EN/emails/html/endauction_youwin.inc.php mode change 100644 => 100755 language/EN/emails/html/endauction_youwin_nodutch.inc.php mode change 100644 => 100755 language/EN/emails/html/final_value_fee.inc.php mode change 100644 => 100755 language/EN/emails/html/friendmail.inc.php mode change 100644 => 100755 language/EN/emails/html/item_watch.inc.php mode change 100644 => 100755 language/EN/emails/html/newpasswd.inc.php mode change 100644 => 100755 language/EN/emails/html/no_longer_winner.inc.php mode change 100644 => 100755 language/EN/emails/html/payment_reminder.inc.php mode change 100644 => 100755 language/EN/emails/html/send_email.inc.php mode change 100644 => 100755 language/EN/emails/html/suspended_balance.inc.php mode change 100644 => 100755 language/EN/emails/html/user_approved.inc.php mode change 100644 => 100755 language/EN/emails/html/user_needapproval.inc.php mode change 100644 => 100755 language/EN/emails/html/user_reactivated.inc.php mode change 100644 => 100755 language/EN/emails/html/user_suspended.inc.php mode change 100644 => 100755 language/EN/emails/html/usermail.inc.php mode change 100644 => 100755 language/EN/emails/text/auction_pending.php mode change 100644 => 100755 language/EN/emails/text/auction_pending_moderation.php mode change 100644 => 100755 language/EN/emails/text/auction_watchmail.inc.php mode change 100644 => 100755 language/EN/emails/text/auctionend_watchmail.inc.php mode change 100644 => 100755 language/EN/emails/text/auctionmail.inc.php mode change 100644 => 100755 language/EN/emails/text/buyer_fee.inc.php mode change 100644 => 100755 language/EN/emails/text/buyer_request.inc.php mode change 100644 => 100755 language/EN/emails/text/endauction_cumulative.inc.php mode change 100644 => 100755 language/EN/emails/text/endauction_multi_item_win.inc.php mode change 100644 => 100755 language/EN/emails/text/endauction_nowinner.inc.php mode change 100644 => 100755 language/EN/emails/text/endauction_winner.inc.php mode change 100644 => 100755 language/EN/emails/text/endauction_youwin.inc.php mode change 100644 => 100755 language/EN/emails/text/endauction_youwin_nodutch.inc.php mode change 100644 => 100755 language/EN/emails/text/final_value_fee.inc.php mode change 100644 => 100755 language/EN/emails/text/friendmail.inc.php mode change 100644 => 100755 language/EN/emails/text/item_watch.inc.php mode change 100644 => 100755 language/EN/emails/text/newpasswd.inc.php mode change 100644 => 100755 language/EN/emails/text/no_longer_winner.inc.php mode change 100644 => 100755 language/EN/emails/text/payment_reminder.inc.php mode change 100644 => 100755 language/EN/emails/text/send_email.inc.php mode change 100644 => 100755 language/EN/emails/text/suspended_balance.inc.php mode change 100644 => 100755 language/EN/emails/text/user_approved.inc.php mode change 100644 => 100755 language/EN/emails/text/user_needapproval.inc.php mode change 100644 => 100755 language/EN/emails/text/user_reactivated.inc.php mode change 100644 => 100755 language/EN/emails/text/user_suspended.inc.php mode change 100644 => 100755 language/EN/emails/text/usermail.inc.php mode change 100644 => 100755 language/EN/images/bn_only.png mode change 100644 => 100755 language/EN/images/buy_it_now.gif mode change 100644 => 100755 language/EN/images/nopicture.gif mode change 100644 => 100755 language/EN/messages.inc.php mode change 100644 => 100755 logout.php mode change 100644 => 100755 mail.php mode change 100644 => 100755 message.php create mode 100644 models/auctions.models.php create mode 100644 models/bids.models.php create mode 100644 models/categories.models.php mode change 100644 => 100755 msgboard.php mode change 100644 => 100755 order_packingslip.php mode change 100644 => 100755 order_print.php mode change 100644 => 100755 outstanding.php mode change 100644 => 100755 pay.php mode change 100644 => 100755 preview_gallery.php mode change 100644 => 100755 profile.php mode change 100644 => 100755 register.php mode change 100644 => 100755 robots.txt mode change 100644 => 100755 rss.php mode change 100644 => 100755 search.php mode change 100644 => 100755 select_category.php mode change 100644 => 100755 sell.php mode change 100644 => 100755 selleremails.php mode change 100644 => 100755 selling.php mode change 100644 => 100755 sellsimilar.php mode change 100644 => 100755 send_email.php mode change 100644 => 100755 themes/adminClassic/accounts.tpl mode change 100644 => 100755 themes/adminClassic/addnew.tpl mode change 100644 => 100755 themes/adminClassic/adminpages.tpl mode change 100644 => 100755 themes/adminClassic/adminusers.tpl mode change 100644 => 100755 themes/adminClassic/approveauction.tpl mode change 100644 => 100755 themes/adminClassic/banips.tpl mode change 100644 => 100755 themes/adminClassic/boards.tpl mode change 100644 => 100755 themes/adminClassic/categories.tpl mode change 100644 => 100755 themes/adminClassic/categoriestrans.tpl delete mode 100644 themes/adminClassic/categoryconfirm.tpl mode change 100644 => 100755 themes/adminClassic/checkversion.tpl mode change 100644 => 100755 themes/adminClassic/clear_image_cache.tpl mode change 100644 => 100755 themes/adminClassic/clearcache.tpl mode change 100644 => 100755 themes/adminClassic/confirm.tpl mode change 100644 => 100755 themes/adminClassic/countries.tpl mode change 100644 => 100755 themes/adminClassic/durations.tpl mode change 100644 => 100755 themes/adminClassic/editadminuser.tpl mode change 100644 => 100755 themes/adminClassic/editauction.tpl mode change 100644 => 100755 themes/adminClassic/editbanneruser.tpl mode change 100644 => 100755 themes/adminClassic/editboards.tpl mode change 100644 => 100755 themes/adminClassic/editfaq.tpl mode change 100644 => 100755 themes/adminClassic/editfaqscategory.tpl mode change 100644 => 100755 themes/adminClassic/editmessage.tpl mode change 100644 => 100755 themes/adminClassic/editmessages.tpl mode change 100644 => 100755 themes/adminClassic/edituser.tpl mode change 100644 => 100755 themes/adminClassic/edituserfeed.tpl mode change 100644 => 100755 themes/adminClassic/emailsettings.tpl mode change 100644 => 100755 themes/adminClassic/errorlog.tpl mode change 100644 => 100755 themes/adminClassic/excludeauction.tpl mode change 100644 => 100755 themes/adminClassic/excludeuser.tpl delete mode 100644 themes/adminClassic/faqcatconfirm.tpl mode change 100644 => 100755 themes/adminClassic/faqs.tpl mode change 100644 => 100755 themes/adminClassic/faqscategories.tpl mode change 100644 => 100755 themes/adminClassic/fee_gateways.tpl mode change 100644 => 100755 themes/adminClassic/fees.tpl mode change 100644 => 100755 themes/adminClassic/footer.tpl mode change 100644 => 100755 themes/adminClassic/header.tpl mode change 100644 => 100755 themes/adminClassic/help.tpl mode change 100644 => 100755 themes/adminClassic/home.tpl mode change 100644 => 100755 themes/adminClassic/images/accept.png mode change 100644 => 100755 themes/adminClassic/images/application_form_edit.png mode change 100644 => 100755 themes/adminClassic/images/arrow.gif mode change 100644 => 100755 themes/adminClassic/images/bin.png mode change 100644 => 100755 themes/adminClassic/images/bullet_blue.png mode change 100644 => 100755 themes/adminClassic/images/bullet_red.png mode change 100644 => 100755 themes/adminClassic/images/bullet_wrench.png mode change 100644 => 100755 themes/adminClassic/images/cog.png mode change 100644 => 100755 themes/adminClassic/images/error.png mode change 100644 => 100755 themes/adminClassic/images/exclamation.png mode change 100644 => 100755 themes/adminClassic/images/information.png mode change 100644 => 100755 themes/adminClassic/increments.tpl mode change 100644 => 100755 themes/adminClassic/invoice.tpl mode change 100644 => 100755 themes/adminClassic/listauctions.tpl delete mode 100644 themes/adminClassic/listreportedauctions.tpl mode change 100644 => 100755 themes/adminClassic/listusers.tpl mode change 100644 => 100755 themes/adminClassic/login.tpl mode change 100644 => 100755 themes/adminClassic/logo_upload.tpl mode change 100644 => 100755 themes/adminClassic/managebanners.tpl mode change 100644 => 100755 themes/adminClassic/membertypes.tpl mode change 100644 => 100755 themes/adminClassic/message.tpl mode change 100644 => 100755 themes/adminClassic/newbanneruser.tpl mode change 100644 => 100755 themes/adminClassic/newboard.tpl mode change 100644 => 100755 themes/adminClassic/newfaq.tpl mode change 100644 => 100755 themes/adminClassic/news.tpl mode change 100644 => 100755 themes/adminClassic/newsletter.tpl mode change 100644 => 100755 themes/adminClassic/newuser.tpl mode change 100644 => 100755 themes/adminClassic/payments.tpl mode change 100644 => 100755 themes/adminClassic/profile.tpl mode change 100644 => 100755 themes/adminClassic/removefrommoderation.tpl mode change 100644 => 100755 themes/adminClassic/searchauctions.tpl mode change 100644 => 100755 themes/adminClassic/sidebar-auctions.tpl mode change 100644 => 100755 themes/adminClassic/sidebar-banners.tpl mode change 100644 => 100755 themes/adminClassic/sidebar-contents.tpl mode change 100644 => 100755 themes/adminClassic/sidebar-fees.tpl mode change 100644 => 100755 themes/adminClassic/sidebar-interface.tpl mode change 100644 => 100755 themes/adminClassic/sidebar-settings.tpl mode change 100644 => 100755 themes/adminClassic/sidebar-stats.tpl mode change 100644 => 100755 themes/adminClassic/sidebar-tools.tpl mode change 100644 => 100755 themes/adminClassic/sidebar-users.tpl mode change 100644 => 100755 themes/adminClassic/style.css mode change 100644 => 100755 themes/adminClassic/tax_levels.tpl mode change 100644 => 100755 themes/adminClassic/theme.tpl mode change 100644 => 100755 themes/adminClassic/userbanners.tpl mode change 100644 => 100755 themes/adminClassic/userfeedback.tpl mode change 100644 => 100755 themes/adminClassic/usergroups.tpl mode change 100644 => 100755 themes/adminClassic/viewaccessstats.tpl mode change 100644 => 100755 themes/adminClassic/viewbrowserstats.tpl delete mode 100644 themes/adminClassic/viewfilters.tpl mode change 100644 => 100755 themes/adminClassic/viewplatformstats.tpl mode change 100644 => 100755 themes/adminClassic/viewuserips.tpl mode change 100644 => 100755 themes/adminClassic/viewwinners.tpl mode change 100644 => 100755 themes/adminClassic/wordfilter.tpl mode change 100644 => 100755 themes/adminModern/accounts.tpl mode change 100644 => 100755 themes/adminModern/addnew.tpl mode change 100644 => 100755 themes/adminModern/adminpages.tpl mode change 100644 => 100755 themes/adminModern/adminusers.tpl mode change 100644 => 100755 themes/adminModern/banips.tpl mode change 100644 => 100755 themes/adminModern/boards.tpl mode change 100644 => 100755 themes/adminModern/categories.tpl mode change 100644 => 100755 themes/adminModern/categoriestrans.tpl delete mode 100644 themes/adminModern/categoryconfirm.tpl mode change 100644 => 100755 themes/adminModern/checkversion.tpl mode change 100644 => 100755 themes/adminModern/clear_image_cache.tpl mode change 100644 => 100755 themes/adminModern/clearcache.tpl mode change 100644 => 100755 themes/adminModern/confirm.tpl mode change 100644 => 100755 themes/adminModern/countries.tpl mode change 100644 => 100755 themes/adminModern/css/bootstrap-theme.css mode change 100644 => 100755 themes/adminModern/css/bootstrap-theme.css.map mode change 100644 => 100755 themes/adminModern/css/bootstrap-theme.min.css mode change 100644 => 100755 themes/adminModern/css/bootstrap.css mode change 100644 => 100755 themes/adminModern/css/bootstrap.css.map mode change 100644 => 100755 themes/adminModern/css/bootstrap.min.css mode change 100644 => 100755 themes/adminModern/css/jquery.lightbox.css mode change 100644 => 100755 themes/adminModern/css/style.css mode change 100644 => 100755 themes/adminModern/durations.tpl mode change 100644 => 100755 themes/adminModern/editadminuser.tpl mode change 100644 => 100755 themes/adminModern/editauction.tpl mode change 100644 => 100755 themes/adminModern/editbanneruser.tpl mode change 100644 => 100755 themes/adminModern/editboards.tpl mode change 100644 => 100755 themes/adminModern/editfaq.tpl mode change 100644 => 100755 themes/adminModern/editfaqscategory.tpl mode change 100644 => 100755 themes/adminModern/editmessage.tpl mode change 100644 => 100755 themes/adminModern/editmessages.tpl mode change 100644 => 100755 themes/adminModern/edituser.tpl mode change 100644 => 100755 themes/adminModern/edituserfeed.tpl mode change 100644 => 100755 themes/adminModern/emailsettings.tpl mode change 100644 => 100755 themes/adminModern/errorlog.tpl mode change 100644 => 100755 themes/adminModern/excludeauction.tpl mode change 100644 => 100755 themes/adminModern/excludeuser.tpl delete mode 100644 themes/adminModern/faqcatconfirm.tpl mode change 100644 => 100755 themes/adminModern/faqs.tpl mode change 100644 => 100755 themes/adminModern/faqscategories.tpl mode change 100644 => 100755 themes/adminModern/fee_gateways.tpl mode change 100644 => 100755 themes/adminModern/fees.tpl mode change 100644 => 100755 themes/adminModern/fonts/Carlito-Bold.ttf mode change 100644 => 100755 themes/adminModern/fonts/glyphicons-halflings-regular.eot mode change 100644 => 100755 themes/adminModern/fonts/glyphicons-halflings-regular.svg mode change 100644 => 100755 themes/adminModern/fonts/glyphicons-halflings-regular.ttf mode change 100644 => 100755 themes/adminModern/fonts/glyphicons-halflings-regular.woff mode change 100644 => 100755 themes/adminModern/fonts/glyphicons-halflings-regular.woff2 mode change 100644 => 100755 themes/adminModern/footer.tpl mode change 100644 => 100755 themes/adminModern/header.tpl mode change 100644 => 100755 themes/adminModern/help.tpl mode change 100644 => 100755 themes/adminModern/home.tpl mode change 100644 => 100755 themes/adminModern/images/accept.png mode change 100644 => 100755 themes/adminModern/images/application_form_edit.png mode change 100644 => 100755 themes/adminModern/images/arrow.gif mode change 100644 => 100755 themes/adminModern/images/bin.png mode change 100644 => 100755 themes/adminModern/images/bullet_blue.png mode change 100644 => 100755 themes/adminModern/images/bullet_red.png mode change 100644 => 100755 themes/adminModern/images/bullet_wrench.png mode change 100644 => 100755 themes/adminModern/images/cog.png mode change 100644 => 100755 themes/adminModern/images/error.png mode change 100644 => 100755 themes/adminModern/images/exclamation.png mode change 100644 => 100755 themes/adminModern/images/information.png mode change 100644 => 100755 themes/adminModern/img/bot_deg.gif mode change 100644 => 100755 themes/adminModern/img/bullet.gif mode change 100644 => 100755 themes/adminModern/img/close.png mode change 100644 => 100755 themes/adminModern/img/loading.gif mode change 100644 => 100755 themes/adminModern/img/logo.png mode change 100644 => 100755 themes/adminModern/img/next.png mode change 100644 => 100755 themes/adminModern/img/no-image.jpg mode change 100644 => 100755 themes/adminModern/img/no-picture-gallery.png mode change 100644 => 100755 themes/adminModern/img/prev.png mode change 100644 => 100755 themes/adminModern/increments.tpl mode change 100644 => 100755 themes/adminModern/invoice.tpl mode change 100644 => 100755 themes/adminModern/js/bootstrap.js mode change 100644 => 100755 themes/adminModern/js/bootstrap.min.js mode change 100644 => 100755 themes/adminModern/js/npm.js mode change 100644 => 100755 themes/adminModern/listauctions.tpl delete mode 100644 themes/adminModern/listreportedauctions.tpl mode change 100644 => 100755 themes/adminModern/listusers.tpl mode change 100644 => 100755 themes/adminModern/login.tpl mode change 100644 => 100755 themes/adminModern/logo_upload.tpl mode change 100644 => 100755 themes/adminModern/managebanners.tpl mode change 100644 => 100755 themes/adminModern/membertypes.tpl mode change 100644 => 100755 themes/adminModern/message.tpl mode change 100644 => 100755 themes/adminModern/newbanneruser.tpl mode change 100644 => 100755 themes/adminModern/newboard.tpl mode change 100644 => 100755 themes/adminModern/newfaq.tpl mode change 100644 => 100755 themes/adminModern/news.tpl mode change 100644 => 100755 themes/adminModern/newsletter.tpl mode change 100644 => 100755 themes/adminModern/newuser.tpl mode change 100644 => 100755 themes/adminModern/payments.tpl mode change 100644 => 100755 themes/adminModern/profile.tpl mode change 100644 => 100755 themes/adminModern/removefrommoderation.tpl mode change 100644 => 100755 themes/adminModern/searchauctions.tpl mode change 100644 => 100755 themes/adminModern/sidebar-auctions.tpl mode change 100644 => 100755 themes/adminModern/sidebar-banners.tpl mode change 100644 => 100755 themes/adminModern/sidebar-contents.tpl mode change 100644 => 100755 themes/adminModern/sidebar-fees.tpl mode change 100644 => 100755 themes/adminModern/sidebar-interface.tpl mode change 100644 => 100755 themes/adminModern/sidebar-settings.tpl mode change 100644 => 100755 themes/adminModern/sidebar-stats.tpl mode change 100644 => 100755 themes/adminModern/sidebar-tools.tpl mode change 100644 => 100755 themes/adminModern/sidebar-users.tpl mode change 100644 => 100755 themes/adminModern/style.css mode change 100644 => 100755 themes/adminModern/tax_levels.tpl mode change 100644 => 100755 themes/adminModern/theme.tpl mode change 100644 => 100755 themes/adminModern/userbanners.tpl mode change 100644 => 100755 themes/adminModern/userfeedback.tpl mode change 100644 => 100755 themes/adminModern/usergroups.tpl mode change 100644 => 100755 themes/adminModern/viewaccessstats.tpl mode change 100644 => 100755 themes/adminModern/viewbrowserstats.tpl delete mode 100644 themes/adminModern/viewfilters.tpl mode change 100644 => 100755 themes/adminModern/viewplatformstats.tpl mode change 100644 => 100755 themes/adminModern/viewuserips.tpl mode change 100644 => 100755 themes/adminModern/viewwinners.tpl mode change 100644 => 100755 themes/adminModern/wordfilter.tpl mode change 100644 => 100755 themes/classic/active_auctions.tpl mode change 100644 => 100755 themes/classic/advanced_search.tpl mode change 100644 => 100755 themes/classic/asearch_result.tpl mode change 100644 => 100755 themes/classic/auction_watch.tpl mode change 100644 => 100755 themes/classic/auctions_closed.tpl mode change 100644 => 100755 themes/classic/bid.tpl mode change 100644 => 100755 themes/classic/boards.tpl mode change 100644 => 100755 themes/classic/browse.tpl mode change 100644 => 100755 themes/classic/browsecats.tpl mode change 100644 => 100755 themes/classic/buy_now.tpl mode change 100644 => 100755 themes/classic/buying.tpl mode change 100644 => 100755 themes/classic/confirm.tpl mode change 100644 => 100755 themes/classic/contents.tpl mode change 100644 => 100755 themes/classic/edit_data.tpl mode change 100644 => 100755 themes/classic/email_request.tpl mode change 100644 => 100755 themes/classic/error.tpl mode change 100644 => 100755 themes/classic/feedback.tpl mode change 100644 => 100755 themes/classic/fees.tpl mode change 100644 => 100755 themes/classic/forgotpasswd.tpl mode change 100644 => 100755 themes/classic/friend.tpl mode change 100644 => 100755 themes/classic/global_footer.tpl mode change 100644 => 100755 themes/classic/global_header.tpl mode change 100644 => 100755 themes/classic/help.tpl mode change 100644 => 100755 themes/classic/home.tpl mode change 100644 => 100755 themes/classic/img/bot_deg.gif mode change 100644 => 100755 themes/classic/img/bot_rev.gif mode change 100644 => 100755 themes/classic/img/bullet.gif mode change 100644 => 100755 themes/classic/img/close.png mode change 100644 => 100755 themes/classic/img/loading.gif mode change 100644 => 100755 themes/classic/img/next.png mode change 100644 => 100755 themes/classic/img/prev.png mode change 100644 => 100755 themes/classic/invoices.tpl mode change 100644 => 100755 themes/classic/item.tpl mode change 100644 => 100755 themes/classic/item_report.tpl mode change 100644 => 100755 themes/classic/item_watch.tpl mode change 100644 => 100755 themes/classic/jquery.lightbox.css mode change 100644 => 100755 themes/classic/l_gpl.gif mode change 100644 => 100755 themes/classic/logo.gif mode change 100644 => 100755 themes/classic/mail-send.tpl mode change 100644 => 100755 themes/classic/mail.tpl mode change 100644 => 100755 themes/classic/message.tpl mode change 100644 => 100755 themes/classic/msgboard.tpl mode change 100644 => 100755 themes/classic/order_invoice.tpl mode change 100644 => 100755 themes/classic/order_packingslip.tpl mode change 100644 => 100755 themes/classic/outstanding.tpl mode change 100644 => 100755 themes/classic/pay.tpl mode change 100644 => 100755 themes/classic/preview_gallery.tpl mode change 100644 => 100755 themes/classic/profile.tpl mode change 100644 => 100755 themes/classic/register.tpl mode change 100644 => 100755 themes/classic/rss.tpl mode change 100644 => 100755 themes/classic/search.tpl mode change 100644 => 100755 themes/classic/select_category.tpl mode change 100644 => 100755 themes/classic/sell.tpl rename themes/classic/{leave_feedback.tpl => sellbuyfeedback.tpl} (85%) mode change 100644 => 100755 mode change 100644 => 100755 themes/classic/sellermails.tpl mode change 100644 => 100755 themes/classic/selling.tpl mode change 100644 => 100755 themes/classic/send_email.tpl mode change 100644 => 100755 themes/classic/show_feedback.tpl mode change 100644 => 100755 themes/classic/style.css mode change 100644 => 100755 themes/classic/upldgallery.tpl mode change 100644 => 100755 themes/classic/user_login.tpl mode change 100644 => 100755 themes/classic/user_menu.tpl mode change 100644 => 100755 themes/classic/user_menu_footer.tpl mode change 100644 => 100755 themes/classic/user_menu_header.tpl mode change 100644 => 100755 themes/classic/viewallnews.tpl mode change 100644 => 100755 themes/classic/viewhelp.tpl mode change 100644 => 100755 themes/classic/viewnews.tpl mode change 100644 => 100755 themes/classic/yourauctions.tpl mode change 100644 => 100755 themes/classic/yourauctions_c.tpl mode change 100644 => 100755 themes/classic/yourauctions_p.tpl mode change 100644 => 100755 themes/classic/yourauctions_s.tpl mode change 100644 => 100755 themes/classic/yourauctions_sold.tpl mode change 100644 => 100755 themes/classic/yourbids.tpl mode change 100644 => 100755 themes/classic/yourfeedback.tpl mode change 100644 => 100755 themes/classic/yourmessages.tpl mode change 100644 => 100755 themes/modern/Thumbs.db mode change 100644 => 100755 themes/modern/active_auctions.tpl mode change 100644 => 100755 themes/modern/advanced_search.tpl mode change 100644 => 100755 themes/modern/asearch_result.tpl mode change 100644 => 100755 themes/modern/auction_watch.tpl mode change 100644 => 100755 themes/modern/auctions_closed.tpl mode change 100644 => 100755 themes/modern/bid.tpl mode change 100644 => 100755 themes/modern/boards.tpl mode change 100644 => 100755 themes/modern/browse.tpl mode change 100644 => 100755 themes/modern/browsecats.tpl mode change 100644 => 100755 themes/modern/buy_now.tpl mode change 100644 => 100755 themes/modern/buying.tpl mode change 100644 => 100755 themes/modern/confirm.tpl mode change 100644 => 100755 themes/modern/contents.tpl mode change 100644 => 100755 themes/modern/css/bootstrap-theme.css mode change 100644 => 100755 themes/modern/css/bootstrap-theme.css.map mode change 100644 => 100755 themes/modern/css/bootstrap-theme.min.css mode change 100644 => 100755 themes/modern/css/bootstrap.css mode change 100644 => 100755 themes/modern/css/bootstrap.css.map mode change 100644 => 100755 themes/modern/css/bootstrap.min.css mode change 100644 => 100755 themes/modern/css/jquery.lightbox.css mode change 100644 => 100755 themes/modern/css/style.css mode change 100644 => 100755 themes/modern/edit_data.tpl mode change 100644 => 100755 themes/modern/email_request.tpl mode change 100644 => 100755 themes/modern/error.tpl mode change 100644 => 100755 themes/modern/feedback.tpl mode change 100644 => 100755 themes/modern/fees.tpl mode change 100644 => 100755 themes/modern/fonts/Carlito-Bold.ttf mode change 100644 => 100755 themes/modern/fonts/glyphicons-halflings-regular.eot mode change 100644 => 100755 themes/modern/fonts/glyphicons-halflings-regular.svg mode change 100644 => 100755 themes/modern/fonts/glyphicons-halflings-regular.ttf mode change 100644 => 100755 themes/modern/fonts/glyphicons-halflings-regular.woff mode change 100644 => 100755 themes/modern/fonts/glyphicons-halflings-regular.woff2 mode change 100644 => 100755 themes/modern/forgotpasswd.tpl mode change 100644 => 100755 themes/modern/friend.tpl mode change 100644 => 100755 themes/modern/global_footer.tpl mode change 100644 => 100755 themes/modern/global_header.tpl mode change 100644 => 100755 themes/modern/help.tpl mode change 100644 => 100755 themes/modern/home.tpl mode change 100644 => 100755 themes/modern/img/Thumbs.db mode change 100644 => 100755 themes/modern/img/bot_deg.gif mode change 100644 => 100755 themes/modern/img/bullet.gif mode change 100644 => 100755 themes/modern/img/close.png mode change 100644 => 100755 themes/modern/img/loading.gif mode change 100644 => 100755 themes/modern/img/logo.png mode change 100644 => 100755 themes/modern/img/next.png mode change 100644 => 100755 themes/modern/img/no-image.jpg mode change 100644 => 100755 themes/modern/img/no-picture-gallery.png mode change 100644 => 100755 themes/modern/img/prev.png mode change 100644 => 100755 themes/modern/invoices.tpl mode change 100644 => 100755 themes/modern/item.tpl mode change 100644 => 100755 themes/modern/item_report.tpl mode change 100644 => 100755 themes/modern/item_watch.tpl mode change 100644 => 100755 themes/modern/js/bootstrap.js mode change 100644 => 100755 themes/modern/js/bootstrap.min.js mode change 100644 => 100755 themes/modern/js/npm.js mode change 100644 => 100755 themes/modern/l_gpl.gif mode change 100644 => 100755 themes/modern/logo.gif mode change 100644 => 100755 themes/modern/mail-send.tpl mode change 100644 => 100755 themes/modern/mail.tpl mode change 100644 => 100755 themes/modern/message.tpl mode change 100644 => 100755 themes/modern/msgboard.tpl mode change 100644 => 100755 themes/modern/order_invoice.tpl mode change 100644 => 100755 themes/modern/order_packingslip.tpl mode change 100644 => 100755 themes/modern/outstanding.tpl mode change 100644 => 100755 themes/modern/pay.tpl mode change 100644 => 100755 themes/modern/preview_gallery.tpl mode change 100644 => 100755 themes/modern/profile.tpl mode change 100644 => 100755 themes/modern/register.tpl mode change 100644 => 100755 themes/modern/rss.tpl mode change 100644 => 100755 themes/modern/search.tpl mode change 100644 => 100755 themes/modern/select_category.tpl mode change 100644 => 100755 themes/modern/sell.tpl rename themes/modern/{leave_feedback.tpl => sellbuyfeedback.tpl} (85%) mode change 100644 => 100755 mode change 100644 => 100755 themes/modern/sellermails.tpl mode change 100644 => 100755 themes/modern/selling.tpl mode change 100644 => 100755 themes/modern/send_email.tpl mode change 100644 => 100755 themes/modern/show_feedback.tpl mode change 100644 => 100755 themes/modern/style.css mode change 100644 => 100755 themes/modern/upldgallery.tpl mode change 100644 => 100755 themes/modern/user_login.tpl mode change 100644 => 100755 themes/modern/user_menu.tpl mode change 100644 => 100755 themes/modern/user_menu_footer.tpl mode change 100644 => 100755 themes/modern/user_menu_header.tpl mode change 100644 => 100755 themes/modern/viewallnews.tpl mode change 100644 => 100755 themes/modern/viewhelp.tpl mode change 100644 => 100755 themes/modern/viewnews.tpl mode change 100644 => 100755 themes/modern/yourauctions.tpl mode change 100644 => 100755 themes/modern/yourauctions_c.tpl mode change 100644 => 100755 themes/modern/yourauctions_p.tpl mode change 100644 => 100755 themes/modern/yourauctions_s.tpl mode change 100644 => 100755 themes/modern/yourauctions_sold.tpl mode change 100644 => 100755 themes/modern/yourbids.tpl mode change 100644 => 100755 themes/modern/yourfeedback.tpl mode change 100644 => 100755 themes/modern/yourmessages.tpl mode change 100644 => 100755 upldgallery.php mode change 100644 => 100755 uploaded/.htaccess mode change 100644 => 100755 uploaded/cache/purge mode change 100644 => 100755 uploaded/logo/logo.png mode change 100644 => 100755 user_login.php mode change 100644 => 100755 user_menu.php mode change 100644 => 100755 validate.php mode change 100644 => 100755 viewallnews.php mode change 100644 => 100755 viewhelp.php mode change 100644 => 100755 viewnews.php mode change 100644 => 100755 yourauctions.php mode change 100644 => 100755 yourauctions_c.php mode change 100644 => 100755 yourauctions_p.php mode change 100644 => 100755 yourauctions_s.php mode change 100644 => 100755 yourauctions_sold.php mode change 100644 => 100755 yourbids.php mode change 100644 => 100755 yourfeedback.php mode change 100644 => 100755 yourmessages.php create mode 100755 zinstall/functions.php rename {install => zinstall}/index.php (95%) mode change 100644 => 100755 create mode 100755 zinstall/install.php rename {install => zinstall}/scripts/1.2.0.php (93%) mode change 100644 => 100755 rename {install => zinstall}/scripts/1.2.1.php (54%) mode change 100644 => 100755 rename {install => zinstall}/sql/dump.inc.php (81%) mode change 100644 => 100755 create mode 100755 zinstall/sql/updatedump.inc.php create mode 100755 zinstall/thisversion.txt create mode 100755 zinstall/update.php diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/active_auctions.php b/active_auctions.php old mode 100644 new mode 100755 index 2caadddda..0791f8d2a --- a/active_auctions.php +++ b/active_auctions.php @@ -1,6 +1,6 @@ checkUserValid($user_id); -} elseif ($user->logged_in) { - $user_id = $user->user_data['id']; -} else { - $_SESSION['LOGIN_MESSAGE'] = $MSG['5000']; - $_SESSION['REDIRECT_AFTER_LOGIN'] = 'active_auctions.php'; - header('location: user_login.php'); - exit; +if (isset($_GET['user_id']) && !empty($_GET['user_id'])) +{ + $user_id = intval($_GET['user_id']); + // check trying to access valid user id + $user->checkUserValid($user_id); } +elseif ($user->logged_in) +{ + $user_id = $user->user_data['id']; +} +else +{ + $_SESSION['LOGIN_MESSAGE'] = $MSG['5000']; + $_SESSION['REDIRECT_AFTER_LOGIN'] = 'active_auctions.php'; + header('location: user_login.php'); + exit; +} + +$NOW = time(); // get number of active auctions for this user $query = "SELECT count(id) AS auctions FROM " . $DBPrefix . "auctions WHERE user = :user_id AND closed = 0 - AND suspended = 0 - AND starts <= CURRENT_TIMESTAMP"; + AND starts <= :time"; $params = array(); $params[] = array(':user_id', $user_id, 'int'); +$params[] = array(':time', $NOW, 'int'); $db->query($query, $params); $num_auctions = $db->result('auctions'); // Handle pagination -if (!isset($_GET['PAGE']) || $_GET['PAGE'] == '' || $_GET['PAGE'] < 1) { - $OFFSET = 0; - $PAGE = 1; -} else { - $PAGE = intval($_GET['PAGE']); - $OFFSET = ($PAGE - 1) * $system->SETTINGS['perpage']; +if (!isset($_GET['PAGE']) || $_GET['PAGE'] == '' || $_GET['PAGE'] < 1) +{ + $OFFSET = 0; + $PAGE = 1; } -$PAGES = ceil($num_auctions / $system->SETTINGS['perpage']); -if (!isset($PAGES) || $PAGES < 1) { - $PAGES = 1; +else +{ + $PAGE = intval($_GET['PAGE']); + $OFFSET = ($PAGE - 1) * $system->SETTINGS['perpage']; } +$PAGES = ceil($num_auctions / $system->SETTINGS['perpage']); +if (!isset($PAGES) || $PAGES < 1) $PAGES = 1; $query = "SELECT * FROM " . $DBPrefix . "auctions WHERE user = :user_id AND closed = 0 - AND suspended = 0 - AND starts <= CURRENT_TIMESTAMP + AND starts <= :time ORDER BY ends ASC LIMIT :offset, :perpage"; $params = array(); $params[] = array(':user_id', $user_id, 'int'); +$params[] = array(':time', $NOW, 'int'); $params[] = array(':offset', $OFFSET, 'int'); $params[] = array(':perpage', $system->SETTINGS['perpage'], 'int'); $db->query($query, $params); $k = 0; -while ($row = $db->fetch()) { - if (strlen($row['pict_url']) > 0) { - $row['pict_url'] = $system->SETTINGS['siteurl'] . 'getthumb.php?w=' . $system->SETTINGS['thumb_show'] . '&auction_id=' . $row['id'] . '&fromfile=' . $row['pict_url']; - } else { - $row['pict_url'] = get_lang_img('nopicture.gif'); - } - - $current_time = new DateTime('now', $dt->UTCtimezone); - $end_time = new DateTime($row['ends'], $dt->UTCtimezone); - $difference = $current_time->diff($end_time); - - $template->assign_block_vars('auctions', array( - 'BGCOLOUR' => (!($k % 2)) ? '' : 'class="alt-row"', - 'ID' => $row['id'], - 'PIC_URL' => $row['pict_url'], - 'TITLE' => htmlspecialchars($row['title']), - 'BNIMG' => get_lang_img(($row['bn_only'] == 0) ? 'buy_it_now.gif' : 'bn_only.png'), - 'BNVALUE' => $row['buy_now'], - 'BNFORMAT' => $system->print_money($row['buy_now']), - 'BIDVALUE' => $row['current_bid'], - 'BIDFORMAT' => $system->print_money($row['current_bid']), - 'NUM_BIDS' => $row['num_bids'], - 'TIMELEFT' => $dt->formatTimeLeft($difference), - - 'B_BUY_NOW' => ($row['buy_now'] > 0 && ($row['bn_only'] || $row['bn_only'] == 0 && ($row['num_bids'] == 0 || ($row['reserve_price'] > 0 && $row['current_bid'] < $row['reserve_price'])))), - 'B_BNONLY' => ($row['bn_only']) - )); - $k++; +while ($row = $db->fetch()) +{ + if (strlen($row['pict_url']) > 0) + { + $row['pict_url'] = $system->SETTINGS['siteurl'] . 'getthumb.php?w=' . $system->SETTINGS['thumb_show'] . '&fromfile=' . UPLOAD_FOLDER . $row['id'] . '/' . $row['pict_url']; + } + else + { + $row['pict_url'] = get_lang_img('nopicture.gif'); + } + + $difference = $row['ends'] - $NOW; + + $template->assign_block_vars('auctions', array( + 'BGCOLOUR' => (!($k % 2)) ? '' : 'class="alt-row"', + 'ID' => $row['id'], + 'PIC_URL' => $row['pict_url'], + 'TITLE' => htmlspecialchars($row['title']), + 'BNIMG' => get_lang_img(($row['bn_only'] == 0) ? 'buy_it_now.gif' : 'bn_only.png'), + 'BNVALUE' => $row['buy_now'], + 'BNFORMAT' => $system->print_money($row['buy_now']), + 'BIDVALUE' => $row['current_bid'], + 'BIDFORMAT' => $system->print_money($row['current_bid']), + 'NUM_BIDS' => $row['num_bids'], + 'TIMELEFT' => FormatTimeLeft($difference), + + 'B_BUY_NOW' => ($row['buy_now'] > 0 && ($row['bn_only'] || $row['bn_only'] == 0 && ($row['num_bids'] == 0 || ($row['reserve_price'] > 0 && $row['current_bid'] < $row['reserve_price'])))), + 'B_BNONLY' => ($row['bn_only']) + )); + $k++; } // get this user's nick @@ -102,39 +112,41 @@ $page_title = $MSG['219'] . ': ' . $TPL_user_nick; $LOW = $PAGE - 5; -if ($LOW <= 0) { - $LOW = 1; -} +if ($LOW <= 0) $LOW = 1; $COUNTER = $LOW; $pagenation = ''; -while ($COUNTER <= $PAGES && $COUNTER < ($PAGE + 6)) { - if ($PAGE == $COUNTER) { - $pagenation .= '' . $COUNTER . '  '; - } else { - $pagenation .= '' . $COUNTER . '  '; - } - $COUNTER++; +while ($COUNTER <= $PAGES && $COUNTER < ($PAGE + 6)) +{ + if ($PAGE == $COUNTER) + { + $pagenation .= '' . $COUNTER . '  '; + } + else + { + $pagenation .= '' . $COUNTER . '  '; + } + $COUNTER++; } $template->assign_vars(array( - 'B_MULPAG' => ($PAGES > 1), - 'B_NOTLAST' => ($PAGE < $PAGES), - 'B_NOTFIRST' => ($PAGE > 1), - - 'USER_RSSFEED' => sprintf($MSG['932'], $TPL_user_nick), - 'USER_ID' => $user_id, - 'USERNAME' => $TPL_user_nick, - 'THUMBWIDTH' => $system->SETTINGS['thumb_show'], - 'NEXT' => intval($PAGE + 1), - 'PREV' => intval($PAGE - 1), - 'PAGE' => $PAGE, - 'PAGES' => $PAGES, - 'PAGENA' => $pagenation - )); + 'B_MULPAG' => ($PAGES > 1), + 'B_NOTLAST' => ($PAGE < $PAGES), + 'B_NOTFIRST' => ($PAGE > 1), + + 'USER_RSSFEED' => sprintf($MSG['932'], $TPL_user_nick), + 'USER_ID' => $user_id, + 'USERNAME' => $TPL_user_nick, + 'THUMBWIDTH' => $system->SETTINGS['thumb_show'], + 'NEXT' => intval($PAGE + 1), + 'PREV' => intval($PAGE - 1), + 'PAGE' => $PAGE, + 'PAGES' => $PAGES, + 'PAGENA' => $pagenation + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'active_auctions.tpl' - )); + 'body' => 'active_auctions.tpl' + )); $template->display('body'); include 'footer.php'; diff --git a/admin/aboutus.php b/admin/aboutus.php old mode 100644 new mode 100755 index f152b1aec..c641c092b --- a/admin/aboutus.php +++ b/admin/aboutus.php @@ -1,6 +1,6 @@ writesetting("aboutus", ynbool($_POST['aboutus']), "str"); - $system->writesetting("aboutustext", $system->cleanvars($_POST['aboutustext'], true), "str"); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // Update database + $system->writesetting("aboutus", ynbool($_POST['aboutus']), "str"); + $system->writesetting("aboutustext", $system->cleanvars($_POST['aboutustext'], true), "str"); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['about_us_updated'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['5079'])); } -loadblock($MSG['active_about_us'], $MSG['active_about_us_explain'], 'yesno', 'aboutus', $system->SETTINGS['aboutus'], array($MSG['yes'], $MSG['no'])); +loadblock($MSG['5077'], $MSG['5076'], 'yesno', 'aboutus', $system->SETTINGS['aboutus'], array($MSG['030'], $MSG['029'])); $CKEditor = new CKEditor(); $CKEditor->basePath = $system->SETTINGS['siteurl'] . '/js/ckeditor/'; @@ -35,17 +36,18 @@ $CKEditor->config['width'] = 550; $CKEditor->config['height'] = 400; -loadblock($MSG['about_us_content'], $MSG['about_us_content_explain'], $CKEditor->editor('aboutustext', $system->SETTINGS['aboutustext'])); +loadblock($MSG['5078'], $MSG['5080'], $CKEditor->editor('aboutustext', $system->SETTINGS['aboutustext'])); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['25_0018'], - 'PAGENAME' => $MSG['about_us_page'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['25_0018'], + 'PAGENAME' => $MSG['5074'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/accounts.php b/admin/accounts.php old mode 100644 new mode 100755 index 44346757c..894bcc381 --- a/admin/accounts.php +++ b/admin/accounts.php @@ -1,6 +1,6 @@ SETTINGS['perpage']; -} elseif (isset($_SESSION['RETURN_LIST_OFFSET']) && $_SESSION['RETURN_LIST'] == 'accounts.php') { - $PAGE = intval($_SESSION['RETURN_LIST_OFFSET']); - $OFFSET = ($PAGE - 1) * $system->SETTINGS['perpage']; -} else { - $OFFSET = 0; - $PAGE = 1; +if (isset($_GET['PAGE']) && is_numeric($_GET['PAGE'])) +{ + $PAGE = intval($_GET['PAGE']); + $OFFSET = ($PAGE - 1) * $system->SETTINGS['perpage']; +} +elseif (isset($_SESSION['RETURN_LIST_OFFSET']) && $_SESSION['RETURN_LIST'] == 'accounts.php') +{ + $PAGE = intval($_SESSION['RETURN_LIST_OFFSET']); + $OFFSET = ($PAGE - 1) * $system->SETTINGS['perpage']; +} +else +{ + $OFFSET = 0; + $PAGE = 1; } $where_sql = ''; $params = array(); -if ($from_date != 0) { - $where_sql = 'paid_date > \'' . $dt->convertToDatetime($from_date) . '\''; - $params[] = array(':from_date', $dt->convertToDatetime($from_date) , 'str'); +if ($from_date != 0) +{ + $where_sql = 'paid_date > \'' . FormatTimeStamp($from_date) . '\''; + $params[] = array(':from_date', FormatTimeStamp($from_date) , 'str'); } -if ($to_date != 0) { - if (!empty($where_sql)) { - $where_sql .= ' AND '; - } - $where_sql .= 'paid_date < \'' . $dt->convertToDatetime($to_date) . '\''; - $params[] = array(':to_date', $dt->convertToDatetime($to_date) , 'str'); +if ($to_date != 0) +{ + if (!empty($where_sql)) + { + $where_sql .= ' AND '; + } + $where_sql .= 'paid_date < \'' . FormatTimeStamp($to_date) . '\''; + $params[] = array(':to_date', FormatTimeStamp($to_date) , 'str'); } -if ($list_type == 'm' || $list_type == 'w' || $list_type == 'd') { - $OFFSET = 0; - $PAGE = 1; - $PAGES = 1; - $show_pagnation = false; - if ($list_type == 'm') { - $query = "SELECT *, SUM(amount) As total FROM " . $DBPrefix . "accounts +if ($list_type == 'm' || $list_type == 'w' || $list_type == 'd') +{ + $OFFSET = 0; + $PAGE = 1; + $PAGES = 1; + $show_pagnation = false; + if ($list_type == 'm') + { + $query = "SELECT *, SUM(amount) As total FROM " . $DBPrefix . "accounts " . ((!empty($where_sql)) ? ' WHERE ' . $where_sql : '') . " GROUP BY month, year ORDER BY year, month"; - } elseif ($list_type == 'w') { - $query = "SELECT *, SUM(amount) As total FROM " . $DBPrefix . "accounts + } + elseif ($list_type == 'w') + { + $query = "SELECT *, SUM(amount) As total FROM " . $DBPrefix . "accounts " . ((!empty($where_sql)) ? ' WHERE ' . $where_sql : '') . " GROUP BY week, year ORDER BY year, week"; - } else { - $query = "SELECT *, SUM(amount) As total FROM " . $DBPrefix . "accounts + } + else + { + $query = "SELECT *, SUM(amount) As total FROM " . $DBPrefix . "accounts " . ((!empty($where_sql)) ? ' WHERE ' . $where_sql : '') . " GROUP BY day, year ORDER BY year, day"; - } - $db->query($query, $params); + } + $db->query($query, $params); - while ($row = $db->fetch()) { - if ($list_type == 'm') { - $date = $MSG['MON_00' . $row['month'] . 'E'] . ', ' . $row['year']; - } elseif ($list_type == 'w') { - $date = $MSG['week'] . ' ' . $row['week'] . ', ' . $row['year']; - } else { - $date = $dt->formatDate($row['paid_date']); - } - $template->assign_block_vars('accounts', array( - 'DATE' => $date, - 'AMOUNT' => $system->print_money($row['amount']), - 'TOTAL' => ((!empty($row['total'])) ? $row['total'] : '') - )); - } -} else { - $_SESSION['RETURN_LIST'] = 'accounts.php'; - $_SESSION['RETURN_LIST_OFFSET'] = $PAGE; - $show_pagnation = true; + $bg = ''; + while ($row = $db->fetch()) + { + if ($list_type == 'm') + { + $date = $MSG['MON_00' . $row['month'] . 'E'] . ', ' . $row['year']; + } + elseif ($list_type == 'w') + { + $date = $MSG['828'] . ' ' . $row['week'] . ', ' . $row['year']; + } + else + { + $date = FormatDate($row['paid_date']); + } + $template->assign_block_vars('accounts', array( + 'DATE' => $date, + 'AMOUNT' => $system->print_money($row['amount']), + 'BG' => $bg, + 'TOTAL' => ((!empty($row['total'])) ? $row['total'] : '') + )); + $bg = ($bg == '') ? 'class="bg"' : ''; + } +} +else +{ + $_SESSION['RETURN_LIST'] = 'accounts.php'; + $_SESSION['RETURN_LIST_OFFSET'] = $PAGE; + $show_pagnation = true; - $query = "SELECT COUNT(id) As accounts FROM " . $DBPrefix . "accounts" . ((!empty($where_sql)) ? ' WHERE ' . $where_sql : ''); - $db->direct_query($query); - $num_accounts = $db->numrows(); - $PAGES = ($num_accounts == 0) ? 1 : ceil($num_accounts / $system->SETTINGS['perpage']); - $query = "SELECT * FROM " . $DBPrefix . "accounts + $query = "SELECT COUNT(id) As accounts FROM " . $DBPrefix . "accounts" . ((!empty($where_sql)) ? ' WHERE ' . $where_sql : ''); + $db->direct_query($query); + $num_accounts = $db->numrows(); + $PAGES = ($num_accounts == 0) ? 1 : ceil($num_accounts / $system->SETTINGS['perpage']); + $query = "SELECT * FROM " . $DBPrefix . "accounts " . ((!empty($where_sql)) ? ' WHERE ' . $where_sql : '') . " ORDER BY paid_date LIMIT " . $OFFSET . ", " . $system->SETTINGS['perpage']; - $db->direct_query($query); + $db->direct_query($query); - while ($row = $db->fetch()) { - $template->assign_block_vars('accounts', array( - 'ID' => $row['id'], - 'NICK' => $row['nick'], - 'RNAME' => $row['name'], - 'DATE' => $dt->formatDate($row['paid_date'], 'd F Y - H:i'), - 'AMOUNT' => $system->print_money($row['amount']), - 'TEXT' => $row['text'] - )); - } + $bg = ''; + while ($row = $db->fetch()) + { + $template->assign_block_vars('accounts', array( + 'ID' => $row['id'], + 'NICK' => $row['nick'], + 'RNAME' => $row['name'], + 'DATE' => ArrangeDateNoCorrection($row['paid_date']), + 'AMOUNT' => $system->print_money($row['amount']), + 'TEXT' => $row['text'], + 'BG' => $bg + )); + $bg = ($bg == '') ? 'class="bg"' : ''; + } } // get pagenation $PREV = intval($PAGE - 1); $NEXT = intval($PAGE + 1); -if ($PAGES > 1) { - $LOW = $PAGE - 5; - if ($LOW <= 0) { - $LOW = 1; - } - $COUNTER = $LOW; - while ($COUNTER <= $PAGES && $COUNTER < ($PAGE + 6)) { - $template->assign_block_vars('pages', array( - 'PAGE' => ($PAGE == $COUNTER) ? '' . $COUNTER . '' : '' . $COUNTER . '' - )); - $COUNTER++; - } +if ($PAGES > 1) +{ + $LOW = $PAGE - 5; + if ($LOW <= 0) $LOW = 1; + $COUNTER = $LOW; + while ($COUNTER <= $PAGES && $COUNTER < ($PAGE + 6)) + { + $template->assign_block_vars('pages', array( + 'PAGE' => ($PAGE == $COUNTER) ? '' . $COUNTER . '' : '' . $COUNTER . '' + )); + $COUNTER++; + } } $template->assign_vars(array( - 'TYPE' => $list_type, - 'FROM_DATE' => ($from_date == 0) ? '' : $from_date, - 'TO_DATE' => ($to_date == 0) ? '' : $to_date, - 'PAGNATION' => $show_pagnation, - 'PREV' => ($PAGES > 1 && $PAGE > 1) ? '' . $MSG['5119'] . '  ' : '', - 'NEXT' => ($PAGE < $PAGES) ? '' . $MSG['5120'] . '' : '', - 'PAGE' => $PAGE, - 'PAGES' => $PAGES - )); + 'TYPE' => $list_type, + 'FROM_DATE' => ($from_date == 0) ? '' : $from_date, + 'TO_DATE' => ($to_date == 0) ? '' : $to_date, + 'PAGNATION' => $show_pagnation, + 'PREV' => ($PAGES > 1 && $PAGE > 1) ? '' . $MSG['5119'] . '  ' : '', + 'NEXT' => ($PAGE < $PAGES) ? '' . $MSG['5120'] . '' : '', + 'PAGE' => $PAGE, + 'PAGES' => $PAGES + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'accounts.tpl' - )); + 'body' => 'accounts.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/activatenewsletter.php b/admin/activatenewsletter.php old mode 100644 new mode 100755 index f39b0fb5c..4b100f93b --- a/admin/activatenewsletter.php +++ b/admin/activatenewsletter.php @@ -1,6 +1,6 @@ writesetting('newsletter', $_POST['newsletter'], 'int'); - - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['newsletter_settings_updated'])); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // clean submission and update database + $system->writesetting("newsletter", intval($_POST['newsletter']),"int"); + + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['30_0049'])); } -loadblock($MSG['activate_newsletter'], $MSG['activate_newsletter_explain'], 'batch', 'newsletter', $system->SETTINGS['newsletter'], array($MSG['yes'], $MSG['no'])); +loadblock($MSG['603'], $MSG['604'], 'batch', 'newsletter', $system->SETTINGS['newsletter'], array($MSG['030'], $MSG['029'])); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['25_0010'], - 'PAGENAME' => $MSG['25_0079'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['25_0010'], + 'PAGENAME' => $MSG['25_0079'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; diff --git a/admin/addnew.php b/admin/addnew.php old mode 100644 new mode 100755 index cc0033dc7..c598c6090 --- a/admin/addnew.php +++ b/admin/addnew.php @@ -1,6 +1,6 @@ assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_112)); - } else { - $query = "INSERT INTO " . $DBPrefix . "news (title, content, suspended) - VALUES (:title, :content, :suspended)"; - $params = array(); - $params[] = array(':title', $system->cleanvars($_POST['title'][$system->SETTINGS['defaultlanguage']]), 'str'); - $params[] = array(':content', $system->cleanvars($_POST['content'][$system->SETTINGS['defaultlanguage']], true), 'str'); - $params[] = array(':suspended', $_POST['suspended'], 'int'); - $db->query($query, $params); - $news_id = $db->lastInsertId(); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // Data check + if (!isset($_POST['title']) || !isset($_POST['content'])) + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_112)); + } + else + { + // clean up everything + foreach ($_POST['title'] as $k => $v) + { + $_POST['title'][$k] = $system->cleanvars($v); + $_POST['content'][$k] = $system->cleanvars($_POST['content'][$k], true); + } - // Insert into translation table - foreach ($LANGUAGES as $k => $v) { - $query = "INSERT INTO " . $DBPrefix . "news_translated VALUES (:news_id, :lang, :title, :content)"; - $params = array(); - $params[] = array(':title', $system->cleanvars($_POST['title'][$k]), 'str'); - $params[] = array(':content', $system->cleanvars($_POST['content'][$k], true), 'str'); - $params[] = array(':lang', $k, 'str'); - $params[] = array(':news_id', $news_id, 'int'); - $db->query($query, $params); - } - header('location: news.php'); - exit; - } + $query = "INSERT INTO " . $DBPrefix . "news VALUES (NULL, :title, :content, :time, :suspended)"; + $params = array(); + $params[] = array(':title', $system->cleanvars($_POST['title'][$system->SETTINGS['defaultlanguage']]), 'str'); + $params[] = array(':content', $system->cleanvars($_POST['content'][$system->SETTINGS['defaultlanguage']], true), 'str'); + $params[] = array(':time', time(), 'int'); + $params[] = array(':suspended', $_POST['suspended'], 'int'); + $db->query($query, $params); + $news_id = $db->lastInsertId(); + + // Insert into translation table + foreach ($LANGUAGES as $k => $v) + { + $query = "INSERT INTO " . $DBPrefix . "news_translated VALUES (:news_id, :lang, :title, :content)"; + $params = array(); + $params[] = array(':title', $system->cleanvars($_POST['title'][$k]), 'str'); + $params[] = array(':content', $system->cleanvars($_POST['content'][$k], true), 'str'); + $params[] = array(':lang', $k, 'str'); + $params[] = array(':news_id', $news_id, 'int'); + $db->query($query, $params); + } + header('location: news.php'); + exit; + } } $CKEditor = new CKEditor(); @@ -54,26 +66,28 @@ $CKEditor->config['width'] = 550; $CKEditor->config['height'] = 400; -foreach ($LANGUAGES as $k => $language) { - $template->assign_block_vars('lang', array( - 'LANG' => $language, - 'TITLE' => (isset($_POST['title'][$k])) ? $_POST['title'][$k] : '', - 'CONTENT' => $CKEditor->editor('content[' . $k . ']', (isset($_POST['content'][$k]) ? $_POST['content'][$k] : '')) - )); +foreach ($LANGUAGES as $k => $language) +{ + $template->assign_block_vars('lang', array( + 'LANG' => $language, + 'TITLE' => (isset($_POST['title'][$k])) ? $_POST['title'][$k] : '', + 'CONTENT' => $CKEditor->editor('content[' . $k . ']', (isset($_POST['content'][$k]) ? $_POST['content'][$k] : '')) + )); } $template->assign_vars(array( - 'TITLE' => $MSG['518'], - 'BUTTON' => $MSG['518'], - 'ID' => '', // inserting new user so needs to be blank + 'TITLE' => $MSG['518'], + 'BUTTON' => $MSG['518'], + 'ID' => '', // inserting new user so needs to be blank - 'B_ACTIVE' => ((isset($_POST['suspended']) && $_POST['suspended'] == 0) || !isset($_POST['suspended'])), - 'B_INACTIVE' => (isset($_POST['suspended']) && $_POST['suspended'] == 1) - )); + 'B_ACTIVE' => ((isset($_POST['suspended']) && $_POST['suspended'] == 0) || !isset($_POST['suspended'])), + 'B_INACTIVE' => (isset($_POST['suspended']) && $_POST['suspended'] == 1) + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'addnew.tpl' - )); + 'body' => 'addnew.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/adminusers.php b/admin/adminusers.php old mode 100644 new mode 100755 index 8674293b3..07f314011 --- a/admin/adminusers.php +++ b/admin/adminusers.php @@ -1,6 +1,6 @@ assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['1100'])); - } else { - $query = "DELETE FROM " . $DBPrefix . "adminusers WHERE id IN (:delete)"; - $params = array(); - $params[] = array(':delete', implode(',', $_POST['delete']), 'str'); - $db->query($query, $params); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['1101'])); - } +if (isset($_POST['delete']) && is_array($_POST['delete'])) +{ + if (in_array($_SESSION['WEBID_ADMIN_IN'], $_POST['delete'])) + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['1100'])); + } + else + { + $query = "DELETE FROM " . $DBPrefix . "adminusers WHERE id IN (:delete)"; + $params = array(); + $params[] = array(':delete', implode(',', $_POST['delete']), 'str'); + $db->query($query, $params); + } } $STATUS = array( - 0 => '' . $MSG['567'] . '', - 1 => '' . $MSG['566'] . '' + 0 => '' . $MSG['567'] . '', + 1 => '' . $MSG['566'] . '' ); $query = "SELECT * FROM " . $DBPrefix . "adminusers ORDER BY username"; $db->direct_query($query); -while ($User = $db->fetch()) { - $created = $dt->printDateTz($User['created']); - if ($User['lastlogin'] == $User['created']) { - $lastlogin = $MSG['570']; - } else { - $lastlogin = $dt->printDateTz($User['lastlogin']); - } - $template->assign_block_vars('users', array( - 'ID' => $User['id'], - 'USERNAME' => $User['username'], - 'STATUS' => $STATUS[$User['status']], - 'CREATED' => $created, - 'LASTLOGIN' => $lastlogin - )); +$bg = ''; +while ($User = $db->fetch()) +{ + $created = substr($User['created'], 4, 2) . '/' . substr($User['created'], 6, 2) . '/' . substr($User['created'], 0, 4); + if ($User['lastlogin'] == 0) + { + $lastlogin = $MSG['570']; + } + else + { + $lastlogin = date('d/m/Y H:i:s', $User['lastlogin'] + $system->tdiff); + } + $template->assign_block_vars('users', array( + 'ID' => $User['id'], + 'USERNAME' => $User['username'], + 'STATUS' => $STATUS[$User['status']], + 'CREATED' => $created, + 'LASTLOGIN' => $lastlogin, + 'BG' => $bg + )); + $bg = ($bg == '') ? 'class="bg"' : ''; } include 'header.php'; $template->set_filenames(array( - 'body' => 'adminusers.tpl' - )); + 'body' => 'adminusers.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/analytics.php b/admin/analytics.php old mode 100644 new mode 100755 index 426d9e165..bcefaceac --- a/admin/analytics.php +++ b/admin/analytics.php @@ -1,6 +1,6 @@ assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['google_analytics_updated'])); } -loadblock($MSG['analytics_tracking_code'], $MSG['analytics_tracking_code_hint'], 'textarea', 'trackingcode', $system->SETTINGS['googleanalytics']); +loadblock($MSG['google_analytics_tracking_code'], $MSG['google_analytics_tracking_code_hint'], 'textarea', 'trackingcode', $system->SETTINGS['googleanalytics']); $template->assign_vars(array( 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0023'], - 'PAGENAME' => $MSG['analytics'], + 'PAGENAME' => $MSG['google_analytics'], )); include 'header.php'; @@ -40,3 +40,4 @@ )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/auctions.php b/admin/auctions.php old mode 100644 new mode 100755 index a948902a5..861cadec3 --- a/admin/auctions.php +++ b/admin/auctions.php @@ -1,6 +1,6 @@ assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['error_numeric_values'])); - } elseif ($_POST['maxpicturesize'] == 0) { - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['error_max_pic_size_zero'])); - } elseif (!empty($_POST['maxpicturesize']) && !intval($_POST['maxpicturesize'])) { - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['error_max_pic_size_numeric'])); - } elseif (!empty($_POST['maxpictures']) && !intval($_POST['maxpictures'])) { - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['error_max_num_pics_numeric'])); - } else { - $system->writesetting("proxy_bidding", ynbool($_POST['proxy_bidding']), 'str'); - $system->writesetting("edit_starttime", $_POST['edit_starttime'], 'int'); - $system->writesetting("edit_endtime", $_POST['edit_endtime'], 'int'); - $system->writesetting("cust_increment", $_POST['cust_increment'], 'int'); - $system->writesetting("hours_countdown", $_POST['hours_countdown'], 'int'); - $system->writesetting("ao_hpf_enabled", ynbool($_POST['ao_hpf_enabled']), 'str'); - $system->writesetting("ao_hi_enabled", ynbool($_POST['ao_hi_enabled']), 'str'); - $system->writesetting("ao_bi_enabled", ynbool($_POST['ao_bi_enabled']), 'str'); - $system->writesetting("subtitle", ynbool($_POST['subtitle']), 'str'); - $system->writesetting("extra_cat", ynbool($_POST['extra_cat']), 'str'); - $system->writesetting("autorelist", ynbool($_POST['autorelist']), 'str'); - $system->writesetting("autorelist_max", $_POST['autorelist_max'], 'int'); - $system->writesetting("ae_status", ynbool($_POST['status']), 'str'); - $system->writesetting("ae_timebefore", $_POST['timebefore'], 'int'); - $system->writesetting("ae_extend", $_POST['extend'], 'int'); - $system->writesetting("picturesgallery", $_POST['picturesgallery'], 'int'); - $system->writesetting("maxpictures", $_POST['maxpictures'], 'int'); - $system->writesetting("maxuploadsize", ($_POST['maxpicturesize'] * 1024), 'int'); - $system->writesetting("thumb_show", $_POST['thumb_show'], 'int'); - $system->writesetting("gallery_max_width_height", $_POST['gallery_max_width_height'], 'int'); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + if ($_POST['status'] == 'enabled' && (!is_numeric($_POST['timebefore']) || !is_numeric($_POST['extend']))) + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['2_0038'])); + } + elseif ($_POST['maxpicturesize'] == 0) + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_707)); + } + elseif (!empty($_POST['maxpicturesize']) && !intval($_POST['maxpicturesize'])) + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_708)); + } + elseif (!empty($_POST['maxpictures']) && !intval($_POST['maxpictures'])) + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_706)); + } + else + { + $system->writesetting("proxy_bidding",ynbool($_POST['proxy_bidding']), 'str'); + $system->writesetting("edit_starttime", $_POST['edit_starttime'], 'int'); + $system->writesetting("edit_endtime", $_POST['edit_endtime'], 'int'); + $system->writesetting("cust_increment", $_POST['cust_increment'], 'int'); + $system->writesetting("hours_countdown", $_POST['hours_countdown'], 'int'); + $system->writesetting("ao_hpf_enabled", ynbool($_POST['ao_hpf_enabled']), 'str'); + $system->writesetting("ao_hi_enabled", ynbool($_POST['ao_hi_enabled']), 'str'); + $system->writesetting("ao_bi_enabled", ynbool($_POST['ao_bi_enabled']), 'str'); + $system->writesetting("subtitle", ynbool($_POST['subtitle']), 'str'); + $system->writesetting("extra_cat", ynbool($_POST['extra_cat']), 'str'); + $system->writesetting("autorelist", ynbool($_POST['autorelist']), 'str'); + $system->writesetting("autorelist_max", $_POST['autorelist_max'], 'int'); + $system->writesetting("ae_status", ynbool($_POST['status']), 'str'); + $system->writesetting("ae_timebefore", $_POST['timebefore'], 'int'); + $system->writesetting("ae_extend", $_POST['extend'], 'int'); + $system->writesetting("picturesgallery", $_POST['picturesgallery'], 'int'); + $system->writesetting("maxpictures", $_POST['maxpictures'], 'int'); + $system->writesetting("maxuploadsize", ($_POST['maxpicturesize'] * 1024), 'int'); + $system->writesetting("thumb_show", $_POST['thumb_show'], 'int'); + $system->writesetting("gallery_max_width_height", $_POST['gallery_max_width_height'], 'int'); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['auction_settings_updated'])); - } + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['5088'])); + } } -loadblock($MSG['enable_proxy_bidding'], $MSG['enable_proxy_bidding_explain'], 'yesno', 'proxy_bidding', $system->SETTINGS['proxy_bidding'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['enable_custom_start_date'], $MSG['enable_custom_start_date_explain'], 'batch', 'edit_starttime', $system->SETTINGS['edit_starttime'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['enable_custom_end_date'], $MSG['enable_custom_end_date_explain'], 'batch', 'edit_endtime', $system->SETTINGS['edit_endtime'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['enable_custom_increments'], $MSG['enable_custom_increments_explain'], 'batch', 'cust_increment', $system->SETTINGS['cust_increment'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['hours_until_countdown'], $MSG['hours_until_countdown_explain'], 'days', 'hours_countdown', $system->SETTINGS['hours_countdown'], array($MSG['25_0037'])); +loadblock($MSG['427'], $MSG['428'], 'yesno', 'proxy_bidding', $system->SETTINGS['proxy_bidding'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['5090'], $MSG['5089'], 'batch', 'edit_starttime', $system->SETTINGS['edit_starttime'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['allow_custom_end_date'], $MSG['allow_custom_end_date_explain'], 'batch', 'edit_endtime', $system->SETTINGS['edit_endtime'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['068'], $MSG['070'], 'batch', 'cust_increment', $system->SETTINGS['cust_increment'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['5091'], $MSG['5095'], 'days', 'hours_countdown', $system->SETTINGS['hours_countdown'], array($MSG['25_0037'])); -loadblock($MSG['additional_auction_options'], '', '', '', '', array(), true); -loadblock($MSG['enable_featured_items'], $MSG['enable_featured_items_explain'], 'yesno', 'ao_hpf_enabled', $system->SETTINGS['ao_hpf_enabled'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['enable_hightlighted_items'], $MSG['enable_hightlighted_items_explain'], 'yesno', 'ao_hi_enabled', $system->SETTINGS['ao_hi_enabled'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['enable_bold_items'], $MSG['enable_bold_items_explain'], 'yesno', 'ao_bi_enabled', $system->SETTINGS['ao_bi_enabled'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['enable_subtitles'], $MSG['enable_subtitles_explain'], 'yesno', 'subtitle', $system->SETTINGS['subtitle'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['enable_second_cat'], $MSG['enable_second_cat_explain'], 'yesno', 'extra_cat', $system->SETTINGS['extra_cat'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['enable_auto_relist'], $MSG['enable_auto_relist_explain'], 'yesno', 'autorelist', $system->SETTINGS['autorelist'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['max_relists'], $MSG['max_relists_explain'], 'days', 'autorelist_max', $system->SETTINGS['autorelist_max']); +loadblock($MSG['897'], '', '', '', '', array(), true); +loadblock($MSG['142'], $MSG['157'], 'yesno', 'ao_hpf_enabled', $system->SETTINGS['ao_hpf_enabled'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['162'], $MSG['164'], 'yesno', 'ao_hi_enabled', $system->SETTINGS['ao_hi_enabled'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['174'], $MSG['194'], 'yesno', 'ao_bi_enabled', $system->SETTINGS['ao_bi_enabled'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['797'], $MSG['798'], 'yesno', 'subtitle', $system->SETTINGS['subtitle'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['799'], $MSG['800'], 'yesno', 'extra_cat', $system->SETTINGS['extra_cat'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['849'], $MSG['850'], 'yesno', 'autorelist', $system->SETTINGS['autorelist'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['851'], $MSG['852'], 'days', 'autorelist_max', $system->SETTINGS['autorelist_max']); // auction extension options -loadblock($MSG['auction_extension_settings'], '', '', '', '', array(), true); // :O -loadblock($MSG['enable_auto_extension'], $MSG['enable_auto_extension_explain'], 'yesno', 'status', $system->SETTINGS['ae_status'], array($MSG['yes'], $MSG['no'])); -$string = sprintf($MSG['auto_extend_auction_by'], '', ''); +loadblock($MSG['2_0032'], '', '', '', '', array(), true); // :O +loadblock($MSG['2_0034'], $MSG['2_0039'], 'yesno', 'status', $system->SETTINGS['ae_status'], array($MSG['030'], $MSG['029'])); +$string = $MSG['2_0035'] . '' . $MSG['2_0036'] . '' . $MSG['2_0037']; loadblock('', $string, ''); // picture gallery options loadblock($MSG['663'], '', '', '', '', array(), true); -loadblock($MSG['enable_picture_gallery'], $MSG['enable_picture_gallery_explain'], 'batch', 'picturesgallery', $system->SETTINGS['picturesgallery'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['gallery_images_allowance'], '', 'days', 'maxpictures', $system->SETTINGS['maxpictures']); -loadblock($MSG['gallery_image_max_kb'], $MSG['gallery_image_max_kb_explain'], 'decimals', 'maxpicturesize', ($system->SETTINGS['maxuploadsize'] / 1024), array($MSG['672'])); -loadblock($MSG['thumbnail_size'], $MSG['thumbnail_size_explain'], 'decimals', 'thumb_show', $system->SETTINGS['thumb_show'], array($MSG['pixels'])); -loadblock($MSG['gallery_image_max_size'], $MSG['gallery_image_max_size_explain'], 'decimals', 'gallery_max_width_height', $system->SETTINGS['gallery_max_width_height'], array($MSG['pixels'])); +loadblock($MSG['665'], $MSG['664'], 'batch', 'picturesgallery', $system->SETTINGS['picturesgallery'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['666'], '', 'days', 'maxpictures', $system->SETTINGS['maxpictures']); +loadblock($MSG['671'], $MSG['25_0187'], 'decimals', 'maxpicturesize', ($system->SETTINGS['maxuploadsize'] / 1024), array($MSG['672'])); +loadblock($MSG['25_0107'], $MSG['896'], 'decimals', 'thumb_show', $system->SETTINGS['thumb_show'], array($MSG['2__0045'])); +loadblock($MSG['gallery_image_max_size'], $MSG['gallery_image_max_size_explain'], 'decimals', 'gallery_max_width_height', $system->SETTINGS['gallery_max_width_height'], array($MSG['2__0045'])); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['5142'], - 'PAGENAME' => $MSG['auction_settings'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['5142'], + 'PAGENAME' => $MSG['5087'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/banips.php b/admin/banips.php old mode 100644 new mode 100755 index c741222df..8cd4ccafc --- a/admin/banips.php +++ b/admin/banips.php @@ -1,6 +1,6 @@ cleanvars($_POST['ip']), 'str'); - $db->query($query, $params); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['ip_banned'])); - } else { - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['error_cannot_ban_self'])); - } - } - if (isset($_POST['delete']) && is_array($_POST['delete'])) { - foreach ($_POST['delete'] as $k => $v) { - $query = "DELETE FROM " . $DBPrefix . "usersips WHERE id = :ip_id"; - $params = array(); - $params[] = array(':ip_id', $v, 'int'); - $db->query($query, $params); - } - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => sprintf($MSG['ip_bans_removed'], count($_POST['delete'])))); - } - if (isset($_POST['accept']) && is_array($_POST['accept'])) { - foreach ($_POST['accept'] as $k => $v) { - $query = "UPDATE " . $DBPrefix . "usersips SET action = 'accept' WHERE id = :ip_id"; - $params = array(); - $params[] = array(':ip_id', $v, 'int'); - $db->query($query, $params); - } - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => sprintf($MSG['ip_bans_removed'], count($_POST['accept'])))); - } - if (isset($_POST['deny']) && is_array($_POST['deny'])) { - foreach ($_POST['deny'] as $k => $v) { - if ($_POST['ip'] != $admin_ip) { - $query = "UPDATE " . $DBPrefix . "usersips SET action = 'deny' WHERE id = :ip_id"; - $params = array(); - $params[] = array(':ip_id', $v, 'int'); - $db->query($query, $params); - } else { - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['error_cannot_ban_self'])); - } - } - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => sprintf($MSG['ip_bans_added'], count($_POST['deny'])))); - } +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + if (isset($_POST['ip']) && !empty($_POST['ip'])) + { + $query = "INSERT INTO " . $DBPrefix . "usersips VALUES + (NULL, 'NOUSER', :user_ip, 'next', 'deny')"; + $params = array(); + $params[] = array(':user_ip', $system->cleanvars($_POST['ip']), 'str'); + $db->query($query, $params); + } + if (isset($_POST['delete']) && is_array($_POST['delete'])) + { + foreach ($_POST['delete'] as $k => $v) + { + $query = "DELETE FROM " . $DBPrefix . "usersips WHERE id = :ip_id"; + $params = array(); + $params[] = array(':ip_id', $v, 'int'); + $db->query($query, $params); + } + } + if (isset($_POST['accept']) && is_array($_POST['accept'])) + { + foreach ($_POST['accept'] as $k => $v) + { + $query = "UPDATE " . $DBPrefix . "usersips SET action = 'accept' WHERE id = :ip_id"; + $params = array(); + $params[] = array(':ip_id', $v, 'int'); + $db->query($query, $params); + } + } + if (isset($_POST['deny']) && is_array($_POST['deny'])) + { + foreach ($_POST['deny'] as $k => $v) + { + $query = "UPDATE " . $DBPrefix . "usersips SET action = 'deny' WHERE id = :ip_id"; + $params = array(); + $params[] = array(':ip_id', $v, 'int'); + $db->query($query, $params); + } + } } $query = "SELECT * FROM " . $DBPrefix . "usersips WHERE user = 'NOUSER'"; $db->direct_query($query); -while ($row = $db->fetch()) { - $template->assign_block_vars('ips', array( - 'ID' => $row['id'], - 'IP' => $row['ip'], - 'ACTION' => $row['action'] - )); +$bg = ''; +while ($row = $db->fetch()) +{ + $template->assign_block_vars('ips', array( + 'ID' => $row['id'], + 'IP' => $row['ip'], + 'ACTION' => $row['action'], + 'BG' => $bg + )); + $bg = ($bg == '') ? 'class="bg"' : ''; } include 'header.php'; $template->set_filenames(array( - 'body' => 'banips.tpl' - )); + 'body' => 'banips.tpl' + )); $template->display('body'); include 'footer.php'; +?> \ No newline at end of file diff --git a/admin/banners.php b/admin/banners.php old mode 100644 new mode 100755 index 864ca61c2..4d67051fb --- a/admin/banners.php +++ b/admin/banners.php @@ -1,6 +1,6 @@ writesetting("banners", $_POST['banners'], "int"); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // clean submission and update database + $system->writesetting("banners", intval($_POST['banners']), "int"); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['banner_settings_updated'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['600'])); } -loadblock($MSG['activate_banner_support'], $MSG['activate_banner_support_explain'], 'batch', 'banners', $system->SETTINGS['banners'], array($MSG['yes'], $MSG['no'])); +loadblock($MSG['597'], $MSG['_0014'], 'batch', 'banners', $system->SETTINGS['banners'], array($MSG['030'], $MSG['029'])); $template->assign_vars(array( - 'TYPENAME' => $MSG['25_0011'], - 'PAGENAME' => $MSG['banner_admin'] . ' : ' . $MSG['5205'] - )); + 'TYPENAME' => $MSG['25_0011'], + 'PAGENAME' => $MSG['_0008'] . ' : ' . $MSG['5205'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; diff --git a/admin/boards.php b/admin/boards.php old mode 100644 new mode 100755 index 5ae1f2976..14050b823 --- a/admin/boards.php +++ b/admin/boards.php @@ -1,6 +1,6 @@ $v) { - $query = "DELETE FROM " . $DBPrefix . "community WHERE id = :id"; - $params = array(array(':id', $v, 'int')); - $db->query($query, $params); - $query = "DELETE FROM " . $DBPrefix . "comm_messages WHERE boardid = :id"; - $params = array(array(':id', $v, 'int')); - $db->query($query, $params); - } +if (isset($_POST['delete']) && is_array($_POST['delete'])) +{ + foreach ($_POST['delete'] as $k => $v) + { + $query = "DELETE FROM " . $DBPrefix . "community WHERE id = :id"; + $params = array(array(':id', $v, 'int')); + $db->query($query, $params); + $query = "DELETE FROM " . $DBPrefix . "comm_messages WHERE boardid = :id"; + $params = array(array(':id', $v, 'int')); + $db->query($query, $params); + } - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['boards_removed'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['5044'])); } // get list of boards $query = "SELECT * FROM " . $DBPrefix . "community ORDER BY name"; $db->direct_query($query); -while ($row = $db->fetch()) { - $template->assign_block_vars('boards', array( - 'ID' => $row['id'], - 'NAME' => $row['name'], - 'ACTIVE' => $row['active'], - 'MSGTOSHOW' => $row['msgstoshow'], - 'MSGCOUNT' => $row['messages'] - )); +while ($row = $db->fetch()) +{ + $template->assign_block_vars('boards', array( + 'ID' => $row['id'], + 'NAME' => $row['name'], + 'ACTIVE' => $row['active'], + 'MSGTOSHOW' => $row['msgstoshow'], + 'MSGCOUNT' => $row['messages'] + )); } include 'header.php'; $template->set_filenames(array( - 'body' => 'boards.tpl' - )); + 'body' => 'boards.tpl' + )); $template->display('body'); include 'footer.php'; +?> \ No newline at end of file diff --git a/admin/boardsettings.php b/admin/boardsettings.php old mode 100644 new mode 100755 index e5d858df5..c4e4db1d1 --- a/admin/boardsettings.php +++ b/admin/boardsettings.php @@ -1,6 +1,6 @@ writesetting("boards", ynbool($_POST['boards']), "str"); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // clean submission and update database + $system->writesetting("boards", ynbool($_POST['boards']), "str"); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['msg_board_settings_updated'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['5051'])); } -loadblock($MSG['enable_message_boards'], $MSG['enable_message_boards_explain'], 'yesno', 'boards', $system->SETTINGS['boards'], array($MSG['yes'], $MSG['no'])); +loadblock($MSG['5048'], '', 'yesno', 'boards', $system->SETTINGS['boards'], array($MSG['030'], $MSG['029'])); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['25_0018'], - 'PAGENAME' => $MSG['msg_board_settings'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['25_0018'], + 'PAGENAME' => $MSG['5047'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); -include 'footer.php'; +include 'footer.php'; \ No newline at end of file diff --git a/admin/buyerprivacy.php b/admin/buyerprivacy.php old mode 100644 new mode 100755 index 974f08b56..5fca3c881 --- a/admin/buyerprivacy.php +++ b/admin/buyerprivacy.php @@ -1,6 +1,6 @@ writesetting("buyerprivacy", ynbool($_POST['buyerprivacy']), "str"); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // Update database + $system->writesetting("buyerprivacy", ynbool($_POST['buyerprivacy']), "str"); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['bidder_privacy_updated'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['247'])); } -loadblock($MSG['enable_bidder_privacy'], $MSG['enable_bidder_privacy_explain'], 'yesno', 'buyerprivacy', $system->SETTINGS['buyerprivacy'], array($MSG['yes'], $MSG['no'])); +loadblock($MSG['237'], $MSG['238'], 'yesno', 'buyerprivacy', $system->SETTINGS['buyerprivacy'], array($MSG['030'], $MSG['029'])); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['25_0008'], - 'PAGENAME' => $MSG['bidder_privacy'], - 'B_TITLES' => true - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['25_0008'], + 'PAGENAME' => $MSG['236'], + 'B_TITLES' => true + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; +?> \ No newline at end of file diff --git a/admin/buyitnow.php b/admin/buyitnow.php old mode 100644 new mode 100755 index 0afbd0fe2..78ad91b4a --- a/admin/buyitnow.php +++ b/admin/buyitnow.php @@ -1,6 +1,6 @@ 100) ? 100 : $bn_only_percent; - $bn_only_percent = ($bn_only_percent < 0) ? 0 : $bn_only_percent; - // reset the bn_only blockers - if ($bn_only_percent > $system->SETTINGS['bn_only_percent']) { - $query = "UPDATE " . $DBPrefix . "users SET bn_only = 1 WHERE bn_only = 0"; - $db->direct_query($query); - } - - $system->writesetting("buy_now", $_POST['buy_now'], "int"); - $system->writesetting("bn_only", $_POST['bn_only'], "str"); - $system->writesetting("bn_only_disable", $_POST['bn_only_disable'], "str"); - $system->writesetting("bn_only_percent", $bn_only_percent, "int"); - - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['buy_it_now_settings_updated'])); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + $bn_only_percent = ($_POST['bn_only_percent'] > 100) ? 100 : ($_POST['bn_only_percent'] < 0) ? 0 : intval($_POST['bn_only_percent']); + // reset the bn_only blockers + if ($bn_only_percent > $system->SETTINGS['bn_only_percent']) + { + $query = "UPDATE " . $DBPrefix . "users SET bn_only = 1 WHERE bn_only = 0"; + $db->direct_query($query); + } + + $system->writesetting("buy_now", $_POST['buy_now'], "int"); + $system->writesetting("bn_only", $_POST['bn_only'], "str"); + $system->writesetting("bn_only_disable", $_POST['bn_only_disable'], "str"); + $system->writesetting("bn_only_percent", $bn_only_percent, "int"); + + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['30_0066'])); } -loadblock($MSG['enable_buy_it_now'], $MSG['enable_buy_it_now_explain'], 'batch', 'buy_now', $system->SETTINGS['buy_now'], array($MSG['no'], $MSG['yes'])); -loadblock($MSG['enable_buy_it_now_only'], $MSG['enable_buy_it_now_only_explain'], 'yesno', 'bn_only', $system->SETTINGS['bn_only'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['enable_bin_only_auto_disable'], $MSG['enable_bin_only_auto_disable_explain'], 'yesno', 'bn_only_disable', $system->SETTINGS['bn_only_disable'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['buy_it_now_only_limit'], '', 'percent', 'bn_only_percent', $system->SETTINGS['bn_only_percent'], array($MSG['357'])); +loadblock($MSG['920'], $MSG['921'], 'batch', 'buy_now', $system->SETTINGS['buy_now'], array($MSG['029'], $MSG['030'])); +loadblock($MSG['30_0064'], $MSG['30_0065'], 'yesno', 'bn_only', $system->SETTINGS['bn_only'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['355'], $MSG['358'], 'yesno', 'bn_only_disable', $system->SETTINGS['bn_only_disable'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['356'], '', 'percent', 'bn_only_percent', $system->SETTINGS['bn_only_percent'], array($MSG['357'])); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['25_0008'], - 'PAGENAME' => $MSG['2__0025'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['25_0008'], + 'PAGENAME' => $MSG['2__0025'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/categories.php b/admin/categories.php old mode 100644 new mode 100755 index 41e2e80e8..610a69b79 --- a/admin/categories.php +++ b/admin/categories.php @@ -1,6 +1,6 @@ get_virtual_root(); - $tree = $catscontrol->display_tree($root['left_id'], $root['right_id'], '|___'); - return $tree; + global $catscontrol; + + $root = $catscontrol->get_virtual_root(); + $tree = $catscontrol->display_tree($root['left_id'], $root['right_id'], '|___'); + return $tree; } function rebuild_cat_file() { - global $system, $DBPrefix, $db; - $query = "SELECT cat_id, cat_name, parent_id FROM " . $DBPrefix . "categories ORDER BY cat_name"; - $db->direct_query($query); - $cats = array(); - while ($catarr = $db->fetch()) { - $cats[$catarr['cat_id']] = $catarr['cat_name']; - $allcats[] = $catarr; - } - - $output = "SETTINGS['defaultlanguage'] . '/categories.inc.php', 'w'); - fputs($handle, $output); + global $system, $DBPrefix, $db; + $query = "SELECT cat_id, cat_name, parent_id FROM " . $DBPrefix . "categories ORDER BY cat_name"; + $db->direct_query($query); + $cats = array(); + while ($catarr = $db->fetch()) + { + $cats[$catarr['cat_id']] = $catarr['cat_name']; + $allcats[] = $catarr; + } + + $output = ""; + + $handle = fopen (MAIN_PATH . 'language/' . $system->SETTINGS['defaultlanguage'] . '/categories.inc.php', 'w'); + fputs($handle, $output); } -if (isset($_POST['action'])) { - if ($_POST['action'] == "Process") { - //update all categories that arnt being deleted - if (isset($_POST['categories']) && is_array($_POST['categories'])) { - foreach ($_POST['categories'] as $k => $v) { - if (!isset($_POST['delete'][$k])) { - $query = "UPDATE " . $DBPrefix . "categories SET - cat_name = :name, - cat_colour = :colour, - cat_image = :image - WHERE cat_id = :cat_id"; - $params = array(); - $params[] = array(':name', $_POST['categories'][$k], 'str'); - $params[] = array(':colour', $_POST['colour'][$k], 'str'); - $params[] = array(':image', $_POST['image'][$k], 'str'); - $params[] = array(':cat_id', $k, 'int'); - $db->query($query, $params); - } - } - } - //add category if need be - if (!empty($_POST['new_category']) && isset($_POST['parent'])) { - $add_data = array( - 'cat_name' => $_POST['new_category'], - 'cat_colour' => $_POST['cat_colour'], - 'cat_image' => $_POST['cat_image'] - ); - $catscontrol->add($_POST['parent'], 0, $add_data); - } - if (!empty($_POST['mass_add']) && isset($_POST['parent'])) { - $add = explode("\n", $_POST['mass_add']); - if (is_array($add)) { - foreach ($add as $v) { - $add_data = array('cat_name' => $v); - $catscontrol->add($_POST['parent'], 0, $add_data); - } - } - } - if (isset($_POST['delete']) && is_array($_POST['delete'])) { - // Get data from the database - $query = "SELECT COUNT(a.id) as COUNT, c.* FROM " . $DBPrefix . "categories c - LEFT JOIN " . $DBPrefix . "auctions a ON ( a.category = c.cat_id ) - WHERE c.cat_id IN (" . implode(',', $_POST['delete']) . ") - GROUP BY c.cat_id ORDER BY cat_name"; - $db->direct_query($query); - - while ($row = $db->fetch()) { - $template->assign_block_vars('categories', array( - 'ID' => $row['cat_id'], - 'NAME' => $row['cat_name'], - 'HAS_CHILDREN' => ($row['COUNT'] > 0 || $row['left_id'] != ($row['right_id'] - 1)) - )); - } - // build message - $template->assign_vars(array( - 'ERROR' => (isset($ERR)) ? $ERR : '' - )); - - $template->set_filenames(array( - 'body' => 'categoryconfirm.tpl' - )); - $template->display('body'); - include 'footer.php'; - exit; - } - rebuild_cat_file(); - include 'util_cc1.php'; - } - - if ($_POST['action'] == "Yes") { - //delete categories that are selected - if (isset($_POST['delete']) && is_array($_POST['delete'])) { - foreach ($_POST['delete'] as $k => $v) { - $k = intval($k); - if ($v == 'delete') { - //never delete categories without using this function it will mess up your database big time - $catscontrol->delete($k); - } elseif ($v == 'move') { - if (isset($_POST['moveid'][$k]) && !empty($_POST['moveid'][$k]) - && is_numeric($_POST['moveid'][$k]) && $catscontrol->check_category($_POST['moveid'][$k])) { - // first move the parent - $catscontrol->move($k, $_POST['moveid'][$k]); - // remove the parent and raise the children up a level - $catscontrol->delete($k, true); - $query = "UPDATE " . $DBPrefix . "auctions SET category = :cat_new WHERE category = :cat_old"; - $params = array(); - $params[] = array(':cat_new', $_POST['moveid'][$k], 'str'); - $params[] = array(':cat_old', $k, 'int'); - $db->query($query, $params); - } else { - $ERR = $MSG['move_category_missing_id']; - } - } - } - } - rebuild_cat_file(); - resync_category_counters(); - include 'util_cc1.php'; - } - if (isset($ERR)) { - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $ERR)); - } +if (isset($_POST['action'])) +{ + if ($_POST['action'] == "Process") + { + //update all categories that arnt being deleted + if (isset($_POST['categories']) && is_array($_POST['categories'])) + { + foreach ($_POST['categories'] as $k => $v) + { + if (!isset($_POST['delete'][$k])) + { + $query = "UPDATE " . $DBPrefix . "categories SET + cat_name = :name, + cat_colour = :colour, + cat_image = :image + WHERE cat_id = :cat_id"; + $params = array(); + $params[] = array(':name', $_POST['categories'][$k], 'str'); + $params[] = array(':colour', $_POST['colour'][$k], 'str'); + $params[] = array(':image', $_POST['image'][$k], 'str'); + $params[] = array(':cat_id', $k, 'int'); + $db->query($query, $params); + } + } + } + //add category if need be + if (!empty($_POST['new_category']) && isset($_POST['parent'])) + { + $add_data = array( + 'cat_name' => $_POST['new_category'], + 'cat_colour' => $_POST['cat_colour'], + 'cat_image' => $_POST['cat_image'] + ); + $catscontrol->add($_POST['parent'], 0, $add_data); + } + if (!empty($_POST['mass_add']) && isset($_POST['parent'])) + { + $add = explode("\n", $_POST['mass_add']); + if (is_array($add)) + { + foreach ($add as $v) + { + $add_data = array('cat_name' => $v); + $catscontrol->add($_POST['parent'], 0, $add_data); + } + } + } + if (isset($_POST['delete']) && is_array($_POST['delete'])) + { + // Get data from the database + $query = "SELECT COUNT(a.id) as COUNT, c.* FROM " . $DBPrefix . "categories c + LEFT JOIN " . $DBPrefix . "auctions a ON ( a.category = c.cat_id ) + WHERE c.cat_id IN (" . implode(',', $_POST['delete']) . ") + GROUP BY c.cat_id ORDER BY cat_name"; + $db->direct_query($query); + + $message = $MSG['843'] . ''; + $names = array(); + $counter = 0; + while ($row = $db->fetch()) + { + if ($row['COUNT'] > 0 || $row['left_id'] != ($row['right_id'] - 1)) + { + $names[] = $row['cat_name']; + $message .= ''; + $message .= ''; + $message .= ''; + $message .= ''; + $counter++; + } + else + { + $names[] = $row['cat_name'] . ''; + } + } + $message .= '
' . $row['cat_name'] . ''; + $message .= ''; + $message .= '
'; + // build message + $template->assign_vars(array( + 'ERROR' => (isset($ERR)) ? $ERR : '', + 'ID' => '', + 'MESSAGE' => (($counter > 0) ? $message : '') . '

' . $MSG['838'] . implode(', ', $names) . '

', + 'TYPE' => 1 + )); + + $template->set_filenames(array( + 'body' => 'confirm.tpl' + )); + $template->display('body'); + include 'footer.php'; + exit; + } + rebuild_cat_file(); + include 'util_cc1.php'; + } + + if ($_POST['action'] == "Yes") + { + //delete categories that are selected + if (isset($_POST['delete']) && is_array($_POST['delete'])) + { + foreach ($_POST['delete'] as $k => $v) + { + $k = intval($k); + if ($v == 'delete') + { + //never delete categories without using this function it will mess up your database big time + $catscontrol->delete($k); + } + elseif ($v == 'move') + { + if (isset($_POST['moveid'][$k]) && !empty($_POST['moveid'][$k]) + && is_numeric($_POST['moveid'][$k]) && $catscontrol->check_category($_POST['moveid'][$k])) + { + // first move the parent + $catscontrol->move($k, $_POST['moveid'][$k]); + // remove the parent and raise the children up a level + $catscontrol->delete($k, true); + $query = "UPDATE " . $DBPrefix . "auctions SET category = :cat_new WHERE category = :cat_old"; + $params = array(); + $params[] = array(':cat_new', $_POST['moveid'][$k], 'str'); + $params[] = array(':cat_old', $k, 'int'); + $db->query($query, $params); + } + else + { + $ERR = $MSG['844']; + } + } + } + } + rebuild_cat_file(); + resync_category_counters(); + include 'util_cc1.php'; + } + if (!isset($ERR)) + { + $ERR = $MSG['086']; + } } -//show the page -if (!isset($_GET['parent'])) { - $query = "SELECT left_id, right_id, level, cat_id FROM " . $DBPrefix . "categories WHERE parent_id = -1"; - $params = array(); -} else { - $parent = intval($_GET['parent']); - $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :parent_id"; - $params = array(); - $params[] = array(':parent_id', $parent, 'int'); +//show the page... +if (!isset($_GET['parent'])) +{ + $query = "SELECT left_id, right_id, level, cat_id FROM " . $DBPrefix . "categories WHERE parent_id = -1"; + $params = array(); +} +else +{ + $parent = intval($_GET['parent']); + $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :parent_id"; + $params = array(); + $params[] = array(':parent_id', $parent, 'int'); } $db->query($query, $params); $parent_node = $db->result(); -if (!isset($_GET['parent'])) { - $parent = $parent_node['cat_id']; +if (!isset($_GET['parent'])) +{ + $parent = $parent_node['cat_id']; } $crumb_string = ''; -if ($parent != 0) { - $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); - for ($i = 0; $i < count($crumbs); $i++) { - $template->assign_block_vars('crumbs', array( - 'CAT_ID' => $crumbs[$i]['cat_id'], - 'CAT_NAME' => $crumbs[$i]['cat_name'] - )); - } +if ($parent != 0) +{ + $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); + for ($i = 0; $i < count($crumbs); $i++) + { + if ($i > 0) + { + $crumb_string .= ' > '; + } + $crumb_string .= '' . $crumbs[$i]['cat_name'] . ''; + } } $children = $catscontrol->get_children($parent_node['left_id'], $parent_node['right_id'], $parent_node['level']); -for ($i = 0; $i < count($children); $i++) { - $child = $children[$i]; - $template->assign_block_vars('cats', array( - 'CAT_ID' => $child['cat_id'], - 'CAT_NAME' => htmlspecialchars($child['cat_name']), - 'CAT_COLOUR' => $child['cat_colour'], - 'CAT_IMAGE' => $child['cat_image'], - - 'B_SUBCATS' => ($child['left_id'] != ($child['right_id'] - 1)), - 'B_AUCTIONS' => ($child['counter'] > 0) - )); +for ($i = 0; $i < count($children); $i++) +{ + $child = $children[$i]; + $template->assign_block_vars('cats', array( + 'CAT_ID' => $child['cat_id'], + 'CAT_NAME' => htmlspecialchars($child['cat_name']), + 'CAT_COLOUR' => $child['cat_colour'], + 'CAT_IMAGE' => $child['cat_image'], + + 'B_SUBCATS' => ($child['left_id'] != ($child['right_id'] - 1)), + 'B_AUCTIONS' => ($child['counter'] > 0) + )); } $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'CRUMBS' => $crumb_string, - 'PARENT' => $parent - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'CRUMBS' => $crumb_string, + 'PARENT' => $parent + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'categories.tpl' - )); + 'body' => 'categories.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/categoriestrans.php b/admin/categoriestrans.php old mode 100644 new mode 100755 index 6e8490fb5..6c35a6834 --- a/admin/categoriestrans.php +++ b/admin/categoriestrans.php @@ -1,6 +1,6 @@ SETTINGS['defaultlanguage']; +$lang = (isset($_GET['lang'])) ? $_GET['lang'] : 'EN'; $catscontrol = new MPTTcategories(); -function search_cats() +function search_cats($parent_id, $level) { - global $catscontrol; - $catstr = ''; - $root = $catscontrol->get_virtual_root(); - $tree = $catscontrol->display_tree($root['left_id'], $root['right_id'], '|___'); - foreach ($tree as $k => $v) { - $v = str_replace("'", "\'", $v); - $catstr .= ",\n" . $k . " => '" . addslashes($v) . "'"; - } - return $catstr; + global $catscontrol; + $catstr = ''; + $root = $catscontrol->get_virtual_root(); + $tree = $catscontrol->display_tree($root['left_id'], $root['right_id'], '|___'); + foreach ($tree as $k => $v) + { + $v = str_replace("'", "\'", $v); + $catstr .= ",\n" . $k . " => '" . addslashes($v) . "'"; + } + return $catstr; } function rebuild_cat_file($cats) { - global $lang; - $output = " $v) { - $v = str_replace("'", "\'", $v); - $output .= "$k => '$v'"; - $i++; - if ($i < $num_rows) { - $output .= ",\n"; - } else { - $output .= "\n"; - } - } + $i = 0; + foreach ($cats as $k => $v) + { + $v = str_replace("'", "\'", $v); + $output .= "$k => '$v'"; + $i++; + if ($i < $num_rows) + $output .= ",\n"; + else + $output .= "\n"; + } - $output .= ");\n\n"; + $output .= ");\n\n"; - $output .= "$" . "category_plain = array(\n0 => ''"; + $output .= "$" . "category_plain = array(\n0 => ''"; - $output .= search_cats(); + $output .= search_cats(0, 0); - $output .= ");"; + $output .= ");\n?>"; - $handle = fopen(MAIN_PATH . 'language/' . $lang . '/categories.inc.php', 'w'); - fputs($handle, $output); - fclose($handle); + $handle = fopen (MAIN_PATH . 'language/' . $lang . '/categories.inc.php', 'w'); + fputs($handle, $output); + fclose($handle); } -if (isset($_POST['categories'])) { - rebuild_cat_file($_POST['categories']); - include 'util_cc1.php'; +if (isset($_POST['categories'])) +{ + rebuild_cat_file($_POST['categories']); + include 'util_cc1.php'; } include MAIN_PATH . 'language/' . $lang . '/categories.inc.php'; $query = "SELECT cat_id, cat_name FROM " . $DBPrefix . "categories ORDER BY cat_name"; $db->direct_query($query); -while ($row = $db->fetch()) { - // set category data - $template->assign_block_vars('cats', array( - 'CAT_ID' => $row['cat_id'], - 'CAT_NAME' => htmlspecialchars($row['cat_name']), - 'TRAN_CAT' => isset($category_names[$row['cat_id']])? $category_names[$row['cat_id']] : '' - )); +$bg = ''; +while ($row = $db->fetch()) +{ + // set category data + $template->assign_block_vars('cats', array( + 'CAT_ID' => $row['cat_id'], + 'CAT_NAME' => htmlspecialchars($row['cat_name']), + 'TRAN_CAT' => isset($category_names[$row['cat_id']])? $category_names[$row['cat_id']] : '', + 'BG' => $bg + )); + $bg = ($bg == '') ? 'class="bg"' : ''; } $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'categoriestrans.tpl' - )); + 'body' => 'categoriestrans.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/catsorting.php b/admin/catsorting.php old mode 100644 new mode 100755 index 4a7f8830c..7e5f9bddb --- a/admin/catsorting.php +++ b/admin/catsorting.php @@ -1,6 +1,6 @@ writesetting("catsorting", $system->cleanvars($_POST['catsorting']), "str"); - $system->writesetting("catstoshow", $_POST['catstoshow'], "int"); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // clean submission and update database + $system->writesetting("catsorting", $system->cleanvars($_POST['catsorting']), "str"); + $system->writesetting("catstoshow", intval($_POST['catstoshow']),"int"); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['category_sorting_updated'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['25_0150'])); } -loadblock('', $MSG['category_sorting_explain'], 'sortstacked', 'catsorting', $system->SETTINGS['catsorting'], array($MSG['category_sorting_alpha'], $MSG['category_sorting_count'])); -loadblock($MSG['categories_to_show'], $MSG['categories_to_show_explain'], 'percent', 'catstoshow', $system->SETTINGS['catstoshow']); +loadblock('', $MSG['25_0147'], 'sortstacked', 'catsorting', $system->SETTINGS['catsorting'], array($MSG['25_0148'], $MSG['25_0149'])); +loadblock($MSG['30_0030'], $MSG['30_0029'], 'percent', 'catstoshow', $system->SETTINGS['catstoshow']); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['25_0008'], - 'PAGENAME' => $MSG['category_sorting'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['25_0008'], + 'PAGENAME' => $MSG['25_0146'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/checkversion.php b/admin/checkversion.php old mode 100644 new mode 100755 index 309a6d2ab..950414a84 --- a/admin/checkversion.php +++ b/admin/checkversion.php @@ -1,6 +1,6 @@ SETTINGS['version_check']) { - case 'unstable': - $url = 'http://raw.githubusercontent.com/renlok/WeBid/dev/install/thisversion.txt'; - break; - default: - $url = 'http://raw.githubusercontent.com/renlok/WeBid/master/install/thisversion.txt'; - break; -} -if (!($realversion = load_file_from_url($url))) { - $text = $MSG['error_file_access_disabled']; - $realversion = $MSG['unknown']; - $myversion = $system->SETTINGS['version']; -} else { - if (version_compare($system->SETTINGS['version'], $realversion, "<")) { - $myversion = '' . $system->SETTINGS['version'] . ''; - $text = $MSG['outdated_version']; - } else { - $myversion = '' . $system->SETTINGS['version'] . ''; - $text = $MSG['current_version']; - } +if (!($realversion = load_file_from_url('http://www.webidsupport.com/version.txt'))) +{ + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_25_0002)); + $realversion = 'Unknown'; } +if (version_compare($system->SETTINGS['version'], $realversion, "<")) +{ + $myversion = '' . $system->SETTINGS['version'] . ''; + $text = $MSG['30_0211']; +} +else +{ + $myversion = '' . $system->SETTINGS['version'] . ''; + $text = $MSG['30_0212']; +} $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TEXT' => $text, - 'MYVERSION' => $myversion, - 'REALVERSION' => $realversion - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TEXT' => $text, + 'MYVERSION' => $myversion, + 'REALVERSION' => $realversion + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'checkversion.tpl' - )); + 'body' => 'checkversion.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/clear_image_cache.php b/admin/clear_image_cache.php old mode 100644 new mode 100755 index fd5ac1537..57ceba98b --- a/admin/clear_image_cache.php +++ b/admin/clear_image_cache.php @@ -1,6 +1,6 @@ assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['image_cache_cleared'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['30_0033'])); } $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'clear_image_cache.tpl' - )); + 'body' => 'clear_image_cache.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/clearcache.php b/admin/clearcache.php old mode 100644 new mode 100755 index ae04a9628..5bffd5cb1 --- a/admin/clearcache.php +++ b/admin/clearcache.php @@ -1,6 +1,6 @@ assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['cache_cleared'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['30_0033'])); } $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'clearcache.tpl' - )); + 'body' => 'clearcache.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/contactseller.php b/admin/contactseller.php old mode 100644 new mode 100755 index 8ba777e9a..dbef7463a --- a/admin/contactseller.php +++ b/admin/contactseller.php @@ -1,6 +1,6 @@ writesetting("contactseller", $system->cleanvars($_POST['contactseller']), "str"); - $system->writesetting("users_email", ynbool($_POST['users_email']), 'str'); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // clean submission and update database + $system->writesetting("contactseller", $system->cleanvars($_POST['contactseller']), "str"); + $system->writesetting("users_email", ynbool($_POST['users_email']), 'str'); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['25_0155'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['25_0155'])); } -loadblock($MSG['contact_seller'], $MSG['contact_seller_explain'], 'select3contact', 'contactseller', $system->SETTINGS['contactseller'], array($MSG['contact_seller_anyone'], $MSG['contact_seller_users_only'], $MSG['contact_seller_disabled'])); -loadblock($MSG['hide_user_emails'], $MSG['hide_user_emails_explain'], 'yesno', 'users_email', $system->SETTINGS['users_email'], array($MSG['yes'], $MSG['no'])); +loadblock($MSG['25_0216'], $MSG['25_0217'], 'select3contact', 'contactseller', $system->SETTINGS['contactseller'], array($MSG['25_0218'], $MSG['25_0219'], $MSG['25_0220'])); +loadblock($MSG['30_0085'], $MSG['30_0084'], 'yesno', 'users_email', $system->SETTINGS['users_email'], array($MSG['030'], $MSG['029'])); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['25_0008'], - 'PAGENAME' => $MSG['contact_seller'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['25_0008'], + 'PAGENAME' => $MSG['25_0216'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/cookiespolicy.php b/admin/cookiespolicy.php index 8c9f0dfd9..720624a40 100755 --- a/admin/cookiespolicy.php +++ b/admin/cookiespolicy.php @@ -1,50 +1,52 @@ -writesetting("cookiespolicy", ynbool($_POST['cookiespolicy']), "str"); - $system->writesetting("cookiespolicytext", $system->cleanvars($_POST['cookiespolicytext'], true), "str"); - - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['cookie_policy_updated'])); -} -loadblock($MSG['enable_cookie_policy'], $MSG['enable_cookie_policy_explain'], 'yesno', 'cookiespolicy', $system->SETTINGS['cookiespolicy'], array($MSG['yes'], $MSG['no'])); - -$CKEditor = new CKEditor(); -$CKEditor->basePath = $system->SETTINGS['siteurl'] . '/js/ckeditor/'; -$CKEditor->returnOutput = true; -$CKEditor->config['width'] = 550; -$CKEditor->config['height'] = 400; - -loadblock($MSG['cookie_policy_content'], $MSG['editor_help'], $CKEditor->editor('cookiespolicytext', $system->SETTINGS['cookiespolicytext'])); - -$template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['25_0018'], - 'PAGENAME' => $MSG['cookie_policy'] - )); - -include 'header.php'; -$template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); -$template->display('body'); -include 'footer.php'; +writesetting("cookiespolicy", ynbool($_POST['cookiespolicy']), "str"); + $system->writesetting("cookiespolicytext", $system->cleanvars($_POST['cookiespolicytext'], true), "str"); + + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['1115'])); +} +loadblock($MSG['1111'], $MSG['1112'], 'yesno', 'cookiespolicy', $system->SETTINGS['cookiespolicy'], array($MSG['030'], $MSG['029'])); + +$CKEditor = new CKEditor(); +$CKEditor->basePath = $system->SETTINGS['siteurl'] . '/js/ckeditor/'; +$CKEditor->returnOutput = true; +$CKEditor->config['width'] = 550; +$CKEditor->config['height'] = 400; + +loadblock($MSG['1113'], $MSG['5080'], $CKEditor->editor('cookiespolicytext', $system->SETTINGS['cookiespolicytext'])); + +$template->assign_vars(array( + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['25_0018'], + 'PAGENAME' => $MSG['1114'] + )); + +include 'header.php'; +$template->set_filenames(array( + 'body' => 'adminpages.tpl' + )); +$template->display('body'); +include 'footer.php'; +?> diff --git a/admin/counters.php b/admin/counters.php old mode 100644 new mode 100755 index 39ee8bca6..626ec28fa --- a/admin/counters.php +++ b/admin/counters.php @@ -1,6 +1,6 @@ writesetting("counter_auctions", isset($_POST['auctions'])? 'y' : 'n', "str"); - $system->writesetting("counter_users", isset($_POST['users'])? 'y' : 'n', "str"); - $system->writesetting("counter_online", isset($_POST['online'])? 'y' : 'n', "str"); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // clean submission + $system->writesetting("counter_auctions", isset($_POST['auctions'])? 'y' : 'n',"str"); + $system->writesetting("counter_users", isset($_POST['users'])? 'y' : 'n',"str"); + $system->writesetting("counter_online", isset($_POST['online'])? 'y' : 'n',"str"); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['counter_settings_updated'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['2__0063'])); } -loadblock($MSG['counters_shown'], $MSG['counters_shown_explain']); -loadblock($MSG['counters_active'], '', 'checkbox', 'auctions', $system->SETTINGS['counter_auctions']); -loadblock($MSG['counters_registered'], '', 'checkbox', 'users', $system->SETTINGS['counter_users']); -loadblock($MSG['counters_online'], '', 'checkbox', 'online', $system->SETTINGS['counter_online']); +loadblock($MSG['2__0062'], $MSG['2__0058']); +loadblock($MSG['2__0060'], '', 'checkbox', 'auctions', $system->SETTINGS['counter_auctions']); +loadblock($MSG['2__0061'], '', 'checkbox', 'users', $system->SETTINGS['counter_users']); +loadblock($MSG['2__0059'], '', 'checkbox', 'online', $system->SETTINGS['counter_online']); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['25_0008'], - 'PAGENAME' => $MSG['counter_settings'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['25_0008'], + 'PAGENAME' => $MSG['2__0057'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; +?> \ No newline at end of file diff --git a/admin/countries.php b/admin/countries.php old mode 100644 new mode 100755 index 0d48e26c3..062da7b73 --- a/admin/countries.php +++ b/admin/countries.php @@ -1,6 +1,6 @@ 0) { - // we use a single SQL query to quickly do ALL our deletes - $query = "DELETE FROM " . $DBPrefix . "countries WHERE "; - $params = array(); +if (isset($_POST['act'])) +{ + // remove any countries that need to be + if (isset($_POST['delete']) && count($_POST['delete']) > 0) + { + // we use a single SQL query to quickly do ALL our deletes + $query = "DELETE FROM " . $DBPrefix . "countries WHERE "; + $params = array(); - // if this is the first country being deleted it don't - // precede it with an " or " in the SQL string - for ($i = 0; $i < count($_POST['delete']); $i++) { - if ($i > 0) { - $query .= " OR "; - } - $query .= "country = :country" . $i; - $params[] = array(':country' . $i, $_POST['delete'][$i], 'str'); - } - $db->query($query, $params); - } + // if this is the first country being deleted it don't + // precede it with an " or " in the SQL string + for ($i = 0; $i < count($_POST['delete']); $i++) + { + if ($i > 0) + { + $query .= " OR "; + } + $query .= "country = :country" . $i; + $params[] = array(':country' . $i, $_POST['delete'][$i], 'str'); + } + $db->query($query, $params); + } - //update countries with new names - for ($i = 0; $i < count($_POST['old_countries']); $i++) { - if ($_POST['old_countries'][$i] != $_POST['new_countries'][$i]) { - $query = "UPDATE " . $DBPrefix . "countries SET - country = :country_new - WHERE country = :country_old"; - $params = array(); - $params[] = array(':country_new', $_POST['new_countries'][$i], 'str'); - $params[] = array(':country_old', $_POST['old_countries'][$i], 'str'); - $db->query($query, $params); - } - } + //update countries with new names + for ($i = 0; $i < count($_POST['old_countries']); $i++) + { + if ($_POST['old_countries'][$i] != $_POST['new_countries'][$i]) + { + $query = "UPDATE " . $DBPrefix . "countries SET + country = :country_new + WHERE country = :country_old"; + $params = array(); + $params[] = array(':country_new', $_POST['new_countries'][$i], 'str'); + $params[] = array(':country_old', $_POST['old_countries'][$i], 'str'); + $db->query($query, $params); + } + } - // If a new country was added, insert it into database - if (!empty($_POST['new_countries'][(count($_POST['new_countries']) - 1)])) { - $query = "INSERT INTO " . $DBPrefix . "countries (country) VALUES (:country)"; - $params = array(); - $params[] = array(':country', $_POST['new_countries'][(count($_POST['new_countries']) - 1)], 'str'); - $db->query($query, $params); - } + // If a new country was added, insert it into database + if (!empty($_POST['new_countries'][(count($_POST['new_countries']) - 1)])) + { + $query = "INSERT INTO " . $DBPrefix . "countries (country) VALUES (:country)"; + $params = array(); + $params[] = array(':country', $_POST['new_countries'][(count($_POST['new_countries']) - 1)], 'str'); + $db->query($query, $params); + } - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['countries_updated'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['1028'])); } -$query = "SELECT country_id, c.country, count(u.id) AS user_count - FROM " . $DBPrefix . "countries c - LEFT JOIN " . $DBPrefix . "users u ON (c.country = u.country) - GROUP BY country_id, c.country"; +$query = "SELECT country_id, c.country, count(u.id) AS user_count + FROM " . $DBPrefix . "countries c + LEFT JOIN " . $DBPrefix . "users u ON (c.country = u.country) + GROUP BY country_id, c.country"; $db->direct_query($query); $countries = $db->fetchall(); -foreach ($countries as $country) { - $can_delete = true; - if ($country['user_count'] != 0 || $country['country'] == $system->SETTINGS['defaultcountry']) { - $can_delete = false; - } +foreach($countries as $country) +{ + $can_delete = true; + if ($country['user_count'] != 0 || $country['country'] == $system->SETTINGS['defaultcountry']) { + $can_delete = false; + } - $template->assign_block_vars('countries', array( - 'COUNTRY' => $country['country'], - 'B_CAN_DELETE' => $can_delete - )); + $template->assign_block_vars('countries', array( + 'COUNTRY' => $country['country'], + 'SELECTBOX' => ($can_delete) ? '' : 'You cannot delete this' + )); } include 'header.php'; $template->set_filenames(array( - 'body' => 'countries.tpl' - )); + 'body' => 'countries.tpl' + )); $template->display('body'); + include 'footer.php'; +?> diff --git a/admin/currency.php b/admin/currency.php old mode 100644 new mode 100755 index 77e0290d7..6aa3a5b12 --- a/admin/currency.php +++ b/admin/currency.php @@ -1,6 +1,6 @@ direct_query($query); -if ($db->numrows() > 0) { - while ($row = $db->fetch()) { - $CURRENCIES[$row['id']] = $row['symbol'] . ' ' . $row['ime'] . ' (' . $row['valuta'] . ')'; - $CURRENCIES_SYMBOLS[$row['id']] = $row['symbol']; - } +if ($db->numrows() > 0) +{ + while ($row = $db->fetch()) + { + $CURRENCIES[$row['id']] = $row['symbol'] . ' ' . $row['ime'] . ' (' . $row['valuta'] . ')'; + $CURRENCIES_SYMBOLS[$row['id']] = $row['symbol']; + } } -if (isset($_POST['action']) && $_POST['action'] == 'update') { - // Data check - if (empty($_POST['currency'])) { - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_047)); - } elseif (!empty($_POST['moneydecimals']) && !is_numeric($_POST['moneydecimals'])) { - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_051)); - } else { - if (!empty($_POST['country']) && !empty($_POST['currency_type']) && !empty($_POST['currency_abbreviation'])) { - $query = "INSERT INTO " . $DBPrefix . "rates VALUES (NULL, :country, :currency_type, :currency_abbreviation);"; - $params = array(); - $params[] = array(':country', $system->cleanvars($_POST['country']), 'str'); - $params[] = array(':currency_type', $system->cleanvars($_POST['currency_type']), 'str'); - $params[] = array(':currency_abbreviation', $system->cleanvars($_POST['currency_abbreviation']), 'str'); - $db->query($query, $params); - $new_id = $db->lastInsertId(); - $CURRENCIES[$new_id] = $_POST['currency_abbreviation'] . ' ' . $_POST['country'] . ' (' . $_POST['currency_type'] . ')'; - $system->writesetting("currency", $system->cleanvars($_POST['currency_abbreviation']), 'str'); - } else { - $system->writesetting("currency", $system->cleanvars($CURRENCIES_SYMBOLS[$_POST['currency']]), 'str'); - } +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // Data check + if (empty($_POST['currency'])) + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_047)); + } + elseif (!empty($_POST['moneydecimals']) && !is_numeric($_POST['moneydecimals'])) + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_051)); + } + else + { + if (!empty($_POST['country']) && !empty($_POST['currency_type']) && !empty($_POST['currency_abbreviation'])) + { + $query = "INSERT INTO " . $DBPrefix . "rates VALUES (NULL, :country, :currency_type, :currency_abbreviation);"; + $params = array(); + $params[] = array(':country', $system->cleanvars($_POST['country']), 'str'); + $params[] = array(':currency_type', $system->cleanvars($_POST['currency_type']), 'str'); + $params[] = array(':currency_abbreviation', $system->cleanvars($_POST['currency_abbreviation']), 'str'); + $db->query($query, $params); + $new_id = $db->lastInsertId(); + $CURRENCIES[$new_id] = $_POST['currency_abbreviation'] . ' ' . $_POST['country'] . ' (' . $_POST['currency_type'] . ')'; + $system->writesetting("currency", $system->cleanvars($_POST['currency_abbreviation']), 'str'); + } + else + { + $system->writesetting("currency", $system->cleanvars($CURRENCIES_SYMBOLS[$_POST['currency']]), 'str'); + } - // Update database - $system->writesetting("moneyformat", $_POST['moneyformat'], 'int'); - $system->writesetting("moneydecimals", $_POST['moneydecimals'], 'int'); - $system->writesetting("moneysymbol", $_POST['moneysymbol'], 'int'); + // Update database + $system->writesetting("moneyformat", $_POST['moneyformat'], 'int'); + $system->writesetting("moneydecimals", $_POST['moneydecimals'], 'int'); + $system->writesetting("moneysymbol", $_POST['moneysymbol'], 'int'); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['currency_settings_updated'])); - } + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['553'])); + } } -foreach ($CURRENCIES_SYMBOLS as $k => $v) { - if ($v == $system->SETTINGS['currency']) { - $selectsetting = $k; - } +foreach ($CURRENCIES_SYMBOLS as $k => $v) +{ + if ($v == $system->SETTINGS['currency']) + { + $selectsetting = $k; + } } -loadblock($MSG['default_currency'], $MSG['default_currency_explain'], generateSelect('currency', $CURRENCIES)); -loadblock($MSG['money_format'], '', 'batchstacked', 'moneyformat', $system->SETTINGS['moneyformat'], array($MSG['money_format_us'], $MSG['money_format_euro'])); -loadblock($MSG['money_decimals'], $MSG['money_decimals_explain'], 'decimals', 'moneydecimals', $system->SETTINGS['moneydecimals']); -loadblock($MSG['money_symbol_position'], '', 'batchstacked', 'moneysymbol', $system->SETTINGS['moneysymbol'], array($MSG['money_symbol_position_before'], $MSG['money_symbol_position_after'])); +loadblock($MSG['5008'], '', generateSelect('currency', $CURRENCIES)); +loadblock('', $MSG['5138']); +loadblock($MSG['544'], '', 'batchstacked', 'moneyformat', $system->SETTINGS['moneyformat'], array($MSG['545'], $MSG['546'])); +loadblock($MSG['548'], $MSG['547'], 'decimals', 'moneydecimals', $system->SETTINGS['moneydecimals']); +loadblock($MSG['549'], '', 'batchstacked', 'moneysymbol', $system->SETTINGS['moneysymbol'], array($MSG['550'], $MSG['551'])); loadblock($MSG['new_currency'], '', '', '', '', array(), true); loadblock($MSG['014'], $MSG['curreny_country_explain'], 'text', 'country', (isset($_POST['country'])) ? $_POST['country'] : ''); loadblock($MSG['currency_name'], $MSG['curreny_name_explain'], 'text', 'currency_type', (isset($_POST['currency_type'])) ? $_POST['currency_type'] : ''); loadblock($MSG['curreny_symbol'], $MSG['curreny_symbol_explain'], 'text', 'currency_abbreviation', (isset($_POST['currency_abbreviation'])) ? $_POST['currency_abbreviation'] : ''); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'OPTIONHTML' => '', - 'TYPENAME' => $MSG['25_0008'], - 'PAGENAME' => $MSG['currency_settings'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'OPTIONHTML' => $html, + 'TYPENAME' => $MSG['25_0008'], + 'PAGENAME' => $MSG['5004'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/defaultcountry.php b/admin/defaultcountry.php old mode 100644 new mode 100755 index 1ceb032f1..f7f22817b --- a/admin/defaultcountry.php +++ b/admin/defaultcountry.php @@ -1,6 +1,6 @@ writesetting("defaultcountry", $_POST['country'], "str"); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // clean submission and update database + $system->writesetting("defaultcountry", $_POST['country'], "str"); - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['default_country_updated'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['5323'])); } $query = "SELECT country_id, country FROM " . $DBPrefix . "countries"; @@ -30,22 +31,24 @@ $countries = $db->fetchall(); $options = array(); -foreach ($countries as $country) { - $options[$country['country']] = $country['country']; +foreach($countries as $country) +{ + $options[$country['country']] = $country['country']; } $selectsetting = $system->SETTINGS['defaultcountry']; -loadblock($MSG['default_country'], $MSG['default_country_explain'], generateSelect('country', $options, false)); +loadblock($MSG['5322'], $MSG['5321'], generateSelect('country', $options, false)); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['25_0008'], - 'PAGENAME' => $MSG['default_country'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['25_0008'], + 'PAGENAME' => $MSG['5322'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/deleteauction.php b/admin/deleteauction.php old mode 100644 new mode 100755 index 1d6736985..de2c4c8af --- a/admin/deleteauction.php +++ b/admin/deleteauction.php @@ -1,6 +1,6 @@ query($query, $params); - $auc_data = $db->result(); - - if ($auc_data['suspended'] == 2) { - $query = "DELETE FROM `" . $DBPrefix . "auction_moderation` WHERE auction_id = :auc_id"; - $db->query($query, $params); - } - - // Delete related values - $query = "DELETE FROM " . $DBPrefix . "auctions WHERE id = :auc_id"; - $db->query($query, $params); - - // delete bids - $query = "DELETE FROM " . $DBPrefix . "bids WHERE auction = :auc_id"; - $db->query($query, $params); - - // Delete proxybids - $query = "DELETE FROM " . $DBPrefix . "proxybid WHERE itemid = :auc_id"; - $db->query($query, $params); - - // Delete file in counters - $query = "DELETE FROM " . $DBPrefix . "auccounter WHERE auction_id = :auc_id"; - $db->query($query, $params); - - if ($auc_data['suspended'] == 0 && $auc_data['closed'] == 0) { - // update main counters - $query = "UPDATE " . $DBPrefix . "counters SET auctions = (auctions - 1), bids = (bids - :num_bids)"; - $params = array(); - $params[] = array(':num_bids', $auc_data['num_bids'], 'int'); - $db->query($query, $params); - - // update recursive categories - $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :cat_id"; - $params = array(); - $params[] = array(':cat_id', $auc_data['category'], 'int'); - $db->query($query, $params); - - $parent_node = $db->result(); - $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); - - for ($i = 0; $i < count($crumbs); $i++) { - $query = "UPDATE " . $DBPrefix . "categories SET sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; - $params = array(); - $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); - $db->query($query, $params); - } - } - - // Delete auctions images - if (is_dir(UPLOAD_PATH . $auc_id)) { - if ($dir = opendir(UPLOAD_PATH . $auc_id)) { - while ($file = readdir($dir)) { - if ($file != '.' && $file != '..') { - @unlink(UPLOAD_PATH . $auc_id . '/' . $file); - } - } - closedir($dir); - rmdir(UPLOAD_PATH . $auc_id); - } - } - - $URL = $_SESSION['RETURN_LIST']; - //unset($_SESSION['RETURN_LIST']); - header('location: ' . $URL); - exit; -} elseif (isset($_POST['action']) && $_POST['action'] == "No") { - $URL = $_SESSION['RETURN_LIST']; - //unset($_SESSION['RETURN_LIST']); - header('location: ' . $URL); - exit; +if (isset($_POST['action']) && $_POST['action'] == "Yes") +{ + $catscontrol = new MPTTcategories(); + $auc_id = intval($_POST['id']); + // uses same parameters in every query + $params = array(); + $params[] = array(':auc_id', $auc_id, 'int'); + + // get auction data + $query = "SELECT category, num_bids, suspended, closed FROM " . $DBPrefix . "auctions WHERE id = :auc_id"; + $db->query($query, $params); + $auc_data = $db->result(); + + if ($auc_data['suspended'] == 2) + { + $query = "DELETE FROM `" . $DBPrefix . "auction_moderation` WHERE auction_id = :auc_id"; + $params = array(); + $params[] = array(':auc_id', $auc_id, 'int'); + $db->query($query, $params); + } + + $params = array(); + $params[] = array(':auc_id', $auc_id, 'int'); + + // Delete related values + $query = "DELETE FROM " . $DBPrefix . "auctions WHERE id = :auc_id"; + $db->query($query, $params); + + // delete bids + $query = "DELETE FROM " . $DBPrefix . "bids WHERE auction = :auc_id"; + $db->query($query, $params); + + // Delete proxybids + $query = "DELETE FROM " . $DBPrefix . "proxybid WHERE itemid = :auc_id"; + $db->query($query, $params); + + // Delete file in counters + $query = "DELETE FROM " . $DBPrefix . "auccounter WHERE auction_id = :auc_id"; + $db->query($query, $params); + + if ($auc_data['suspended'] == 0 && $auc_data['closed'] == 0) + { + // update main counters + $query = "UPDATE " . $DBPrefix . "counters SET auctions = (auctions - 1), bids = (bids - :num_bids)"; + $params = array(); + $params[] = array(':num_bids', $auc_data['num_bids'], 'int'); + $db->query($query, $params); + + // update recursive categories + $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :cat_id"; + $params = array(); + $params[] = array(':cat_id', $auc_data['category'], 'int'); + $db->query($query, $params); + + $parent_node = $db->result(); + $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); + + for ($i = 0; $i < count($crumbs); $i++) + { + $query = "UPDATE " . $DBPrefix . "categories SET sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; + $params = array(); + $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); + $db->query($query, $params); + } + } + + // Delete auctions images + if (is_dir(UPLOAD_PATH . $auc_id)) + { + if ($dir = opendir(UPLOAD_PATH . $auc_id)) + { + while ($file = readdir($dir)) + { + if ($file != '.' && $file != '..') + { + @unlink(UPLOAD_PATH . $auc_id . '/' . $file); + } + } + closedir($dir); + rmdir(UPLOAD_PATH . $auc_id); + } + } + + $URL = $_SESSION['RETURN_LIST']; + //unset($_SESSION['RETURN_LIST']); + header('location: ' . $URL); + exit; +} +elseif (isset($_POST['action']) && $_POST['action'] == "No") +{ + $URL = $_SESSION['RETURN_LIST']; + //unset($_SESSION['RETURN_LIST']); + header('location: ' . $URL); + exit; } $query = "SELECT title FROM " . $DBPrefix . "auctions WHERE id = :auc_id"; @@ -113,14 +130,15 @@ $title = $db->result('title'); $template->assign_vars(array( - 'ID' => $_GET['id'], - 'MESSAGE' => sprintf($MSG['confirm_auction_delete'], $title), - 'TYPE' => 1 - )); + 'ID' => $_GET['id'], + 'MESSAGE' => sprintf($MSG['833'], $title), + 'TYPE' => 1 + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'confirm.tpl' - )); + 'body' => 'confirm.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/deletebanner.php b/admin/deletebanner.php old mode 100644 new mode 100755 index fdc8436a7..2b4b1fcd4 --- a/admin/deletebanner.php +++ b/admin/deletebanner.php @@ -1,6 +1,6 @@ query($query, $params); @@ -43,3 +45,4 @@ // Redirect header('location: userbanners.php?id=' . $banneruser); +?> diff --git a/admin/deletemessage.php b/admin/deletemessage.php old mode 100644 new mode 100755 index 9fd18d6f1..a189701e8 --- a/admin/deletemessage.php +++ b/admin/deletemessage.php @@ -1,6 +1,6 @@ query($query, $params); - // Update messages counter - $query = "UPDATE " . $DBPrefix . "community SET messages = messages - 1 WHERE id = :board_id"; - $params = array(); - $params[] = array(':board_id', $board_id, 'int'); - $db->query($query, $params); - header('location: editmessages.php?id=' . $board_id); - exit; -} elseif (isset($_POST['action']) && $_POST['action'] == "No") { - header('location: editmessages.php?id=' . $board_id); - exit; +if (isset($_POST['action']) && $_POST['action'] == "Yes") +{ + $query = "DELETE FROM " . $DBPrefix . "comm_messages WHERE id = :msg_id"; + $params = array(); + $params[] = array(':msg_id', $msg_id, 'int'); + $db->query($query, $params); + // Update messages counter + $query = "UPDATE " . $DBPrefix . "community SET messages = messages - 1 WHERE id = :board_id"; + $params = array(); + $params[] = array(':board_id', $board_id, 'int'); + $db->query($query, $params); + header('location: editmessages.php?id=' . $board_id); + exit; +} +elseif (isset($_POST['action']) && $_POST['action'] == "No") +{ + header('location: editmessages.php?id=' . $board_id); + exit; } $template->assign_vars(array( - 'ID' => $msg_id, - 'MESSAGE' => sprintf($MSG['confirm_msg_delete'], $msg_id), - 'TYPE' => 1 - )); + 'ID' => $msg_id, + 'MESSAGE' => sprintf($MSG['834'], $msg_id), + 'TYPE' => 1 + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'confirm.tpl' - )); + 'body' => 'confirm.tpl' + )); $template->display('body'); include 'footer.php'; +?> \ No newline at end of file diff --git a/admin/deletenews.php b/admin/deletenew.php old mode 100644 new mode 100755 similarity index 61% rename from admin/deletenews.php rename to admin/deletenew.php index 42daf1d8c..1f60d9e7d --- a/admin/deletenews.php +++ b/admin/deletenew.php @@ -1,6 +1,6 @@ query($query, $params); + header('location: news.php'); + exit; } - -if (isset($_POST['action']) && $_POST['action'] == "Yes") { - $query = "DELETE FROM " . $DBPrefix . "news WHERE id = :news_id"; - $params = array(); - $params[] = array(':news_id', $_POST['id'], 'int'); - $db->query($query, $params); - header('location: news.php'); - exit; -} elseif (isset($_POST['action']) && $_POST['action'] == "No") { - header('location: news.php'); - exit; +elseif (isset($_POST['action']) && $_POST['action'] == "No") +{ + header('location: news.php'); + exit; } $query = "SELECT title FROM " . $DBPrefix . "news WHERE id = :news_id"; @@ -44,15 +40,16 @@ $title = $db->result('title'); $template->assign_vars(array( - 'ID' => $_GET['id'], - 'MESSAGE' => sprintf($MSG['confirm_news_delete'], $title), - 'TYPE' => 1 - )); + 'ID' => $_GET['id'], + 'MESSAGE' => sprintf($MSG['832'], $title), + 'TYPE' => 1 + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'confirm.tpl' - )); + 'body' => 'confirm.tpl' + )); $template->display('body'); include 'footer.php'; +?> \ No newline at end of file diff --git a/admin/deleteuser.php b/admin/deleteuser.php old mode 100644 new mode 100755 index b3360db33..005f32a99 --- a/admin/deleteuser.php +++ b/admin/deleteuser.php @@ -1,6 +1,6 @@ query($query, $params); - $num_auctions = $db->result('COUNT'); - - if ($num_auctions > 0) { - $has_auctions = true; - } - - // Check if the user is BIDDER in some auction - $query = "SELECT COUNT(id) As COUNT FROM " . $DBPrefix . "bids WHERE bidder = :user_id"; - $params = array(); - $params[] = array(':user_id', $id, 'int'); - $db->query($query, $params); - $num_bids = $db->result('COUNT'); - - if ($num_bids > 0) { - $has_bids = true; - } - - // check if user is suspended or not - $query = "SELECT suspended FROM " . $DBPrefix . "users WHERE id = :user_id"; - $params = array(); - $params[] = array(':user_id', $id, 'int'); - $db->query($query, $params); - $suspended = $db->result('suspended'); - - // delete user - $query = "DELETE FROM " . $DBPrefix . "users WHERE id = :user_id"; - $params = array(); - $params[] = array(':user_id', $id, 'int'); - $db->query($query, $params); - - if ($has_auctions) { - // update categories table - $query = "SELECT c.level, c.left_id, c.right_id FROM " . $DBPrefix . "auctions a - LEFT JOIN " . $DBPrefix . "categories c ON (a.category = c.cat_id) - WHERE a.user = :user_id"; - $params = array(); - $params[] = array(':user_id', $id, 'int'); - $db->query($query, $params); - $auction_data = $db->fetchall(); - foreach ($auction_data as $row) { - $crumbs = $catscontrol->get_bread_crumbs($row['left_id'], $row['right_id']); - for ($i = 0; $i < count($crumbs); $i++) { - $query = "UPDATE " . $DBPrefix . "categories SET counter = counter - 1, sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; - $params = array(); - $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); - $db->query($query, $params); - } - } - - // delete user's auctions - $query = "DELETE FROM " . $DBPrefix . "auctions WHERE user = :user_id"; - $params = array(); - $params[] = array(':user_id', $id, 'int'); - $db->query($query, $params); - } - - if ($has_bids) { - // update auctions table - $query = "SELECT a.id, a.current_bid, b.bid FROM " . $DBPrefix . "bids b - LEFT JOIN " . $DBPrefix . "auctions a ON (b.auction = a.id) - WHERE b.bidder = :user_id ORDER BY b.bid DESC"; - $params = array(); - $params[] = array(':user_id', $id, 'int'); - $db->query($query, $params); - $bid_data = $db->fetchall(); - foreach ($bid_data as $row) { - $params = array(); - $extra = ''; - // check if user is highest bidder - if ($row['current_bid'] == $row['bid']) { - $query = "SELECT id, bid FROM " . $DBPrefix . "bids WHERE auction = :auc_id ORDER BY bid DESC LIMIT 1, 1"; - $params[] = array(':auc_id', $row['id'], 'int'); - $db->query($query, $params); - $next_bid = $db->result(); - // set new highest bid - $params = array(); - $extra = ", current_bid = :current_bid, current_bid_id = :current_bid_id"; - $params[] = array(':current_bid', $next_bid['bid'], 'float'); - $params[] = array(':current_bid_id', $next_bid['bid_id'], 'int'); - } - $query = "UPDATE " . $DBPrefix . "auctions SET num_bids = num_bids - 1" . $extra . " WHERE id = :auc_id"; - $params[] = array(':auc_id', $row['id'], 'int'); - $db->query($query, $params); - } - - // delete bids - $query = "DELETE FROM " . $DBPrefix . "bids WHERE bidder = :user_id"; - $params = array(); - $params[] = array(':user_id', $id, 'int'); - $db->query($query, $params); - } - - // Update user counters - if ($suspended == 0) { - $query = "UPDATE " . $DBPrefix . "counters set users = users - 1, bids = bids - :num_bids, auctions = auctions - :num_auctions"; - } else { - $query = "UPDATE " . $DBPrefix . "counters set inactiveusers = inactiveusers - 1, bids = bids - :num_bids, auctions = auctions - :num_auctions"; - } - $params = array(); - $params[] = array(':num_bids', $num_bids, 'int'); - $params[] = array(':num_auctions', $num_auctions, 'int'); - $db->query($query, $params); - - header('location: listusers.php'); - exit; -} elseif (isset($_POST['action']) && $_POST['action'] == "No") { - header('location: listusers.php'); - exit; +if (isset($_POST['action']) && $_POST['action'] == "Yes") +{ + $catscontrol = new MPTTcategories(); + + // Check if the users has some auction + $query = "SELECT COUNT(id) As COUNT FROM " . $DBPrefix . "auctions WHERE user = :user_id"; + $params = array(); + $params[] = array(':user_id', $id, 'int'); + $db->query($query, $params); + $num_auctions = $db->result('COUNT'); + + if ($num_auctions > 0) + { + $has_auctions = true; + } + + // Check if the user is BIDDER in some auction + $query = "SELECT COUNT(id) As COUNT FROM " . $DBPrefix . "bids WHERE bidder = :user_id"; + $params = array(); + $params[] = array(':user_id', $id, 'int'); + $db->query($query, $params); + $num_bids = $db->result('COUNT'); + + if ($num_bids > 0) + { + $has_bids = true; + } + + // check if user is suspended or not + $query = "SELECT suspended FROM " . $DBPrefix . "users WHERE id = :user_id"; + $params = array(); + $params[] = array(':user_id', $id, 'int'); + $db->query($query, $params); + $suspended = $db->result('suspended'); + + // delete user + $query = "DELETE FROM " . $DBPrefix . "users WHERE id = :user_id"; + $params = array(); + $params[] = array(':user_id', $id, 'int'); + $db->query($query, $params); + + if ($has_auctions) + { + // update categories table + $query = "SELECT c.level, c.left_id, c.right_id FROM " . $DBPrefix . "auctions a + LEFT JOIN " . $DBPrefix . "categories c ON (a.category = c.cat_id) + WHERE a.user = :user_id"; + $params = array(); + $params[] = array(':user_id', $id, 'int'); + $db->query($query, $params); + $auction_data = $db->fetchall(); + foreach ($auction_data as $row) + { + $crumbs = $catscontrol->get_bread_crumbs($row['left_id'], $row['right_id']); + for ($i = 0; $i < count($crumbs); $i++) + { + $query = "UPDATE " . $DBPrefix . "categories SET counter = counter - 1, sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; + $params = array(); + $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); + $db->query($query, $params); + } + } + + // delete user's auctions + $query = "DELETE FROM " . $DBPrefix . "auctions WHERE user = :user_id"; + $params = array(); + $params[] = array(':user_id', $id, 'int'); + $db->query($query, $params); + } + + if ($has_bids) + { + // update auctions table + $query = "SELECT a.id, a.current_bid, b.bid FROM " . $DBPrefix . "bids b + LEFT JOIN " . $DBPrefix . "auctions a ON (b.auction = a.id) + WHERE b.bidder = :user_id ORDER BY b.bid DESC"; + $params = array(); + $params[] = array(':user_id', $id, 'int'); + $db->query($query, $params); + $bid_data = $db->fetchall(); + foreach ($bid_data as $row) + { + $params = array(); + // check if user is highest bidder + if ($row['current_bid'] == $row['bid']) + { + $query = "SELECT bid FROM " . $DBPrefix . "bids WHERE auction = :auc_id ORDER BY bid DESC LIMIT 1, 1"; + $params[] = array(':auc_id', $row['id'], 'int'); + $db->query($query, $params); + $next_bid = $db->result('bid'); + // set new highest bid + $params = array(); + $extra = ", current_bid = :next_bid, current_bid_id = :current_bid_id"; + $params[] = array(':next_bid', $next_bid, 'float'); + $params[] = array(':current_bid_id', $row['id'], 'int'); + } + $query = "UPDATE " . $DBPrefix . "auctions SET num_bids = num_bids - 1" . $extra . " WHERE id = :auc_id"; + $params[] = array(':auc_id', $row['id'], 'int'); + $db->query($query, $params); + } + + // delete bids + $query = "DELETE FROM " . $DBPrefix . "bids WHERE bidder = :user_id"; + $params = array(); + $params[] = array(':user_id', $id, 'int'); + $db->query($query, $params); + } + + // Update user counters + if ($suspended == 0) + { + $query = "UPDATE " . $DBPrefix . "counters set users = users - 1, bids = bids - :num_bids, auctions = auctions - :num_auctions"; + } + else + { + $query = "UPDATE " . $DBPrefix . "counters set inactiveusers = inactiveusers - 1, bids = bids - :num_bids, auctions = auctions - :num_auctions"; + } + $params = array(); + $params[] = array(':num_bids', $num_bids, 'int'); + $params[] = array(':num_auctions', $num_auctions, 'int'); + $db->query($query, $params); + + header('location: listusers.php'); + exit; +} +elseif (isset($_POST['action']) && $_POST['action'] == "No") +{ + header('location: listusers.php'); + exit; } // Check if the users has some auction @@ -154,22 +167,24 @@ $db->query($query, $params); $num_auctions = $db->result('COUNT'); -if ($num_auctions > 0) { - $error_message = $MSG['user_has_active_auctions']; - $i = 0; - while ($row = $db->fetch()) { - if ($i >= 10) { - break; - } - $has_auctions = true; - $error_message .= $row['id'] . ' - ' . $row['title'] . '
'; - $i++; - } - if ($num_auctions != $i) { - $error_message .= '

' . sprintf($MSG['plus_x_more'], $num_auctions - $i) . '

'; - } - - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $error_message)); +if ($num_auctions > 0) +{ + $error_message = $MSG['420']; + $i = 0; + while ($row = $db->fetch()) + { + if ($i >= 10) + break; + $has_auctions = true; + $error_message .= $row['id'] . ' - ' . $row['title'] . '
'; + $i++; + } + if ($num_auctions != $i) + { + $error_message .= '

' . sprintf($MSG['568'], $num_auctions - $i) . '

'; + } + + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $error_message)); } // Check if the user is BIDDER in some auction @@ -179,10 +194,11 @@ $db->query($query, $params); $num_bids = $db->result('COUNT'); -if ($num_bids > 0) { - $has_bids = true; +if ($num_bids > 0) +{ + $has_bids = true; - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => sprintf($MSG['user_has_x_bids'], $num_bids))); + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => sprintf($MSG['421'], $num_bids))); } $query = "SELECT nick FROM " . $DBPrefix . "users WHERE id = :user_id"; @@ -192,15 +208,16 @@ $username = $db->result('nick'); $template->assign_vars(array( - 'ID' => $id, - 'MESSAGE' => sprintf($MSG['confirm_user_delete'], $username), - 'TYPE' => 1 - )); + 'ID' => $id, + 'MESSAGE' => sprintf($MSG['835'], $username), + 'TYPE' => 1 + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'confirm.tpl' - )); + 'body' => 'confirm.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/deleteuserfeed.php b/admin/deleteuserfeed.php old mode 100644 new mode 100755 index 4c7cfca18..615fb4ab4 --- a/admin/deleteuserfeed.php +++ b/admin/deleteuserfeed.php @@ -1,6 +1,6 @@ query($query, $params); - // get the current feedback count - $query = "SELECT SUM(rate) as FSUM, COUNT(feedback) as FNUM FROM " . $DBPrefix . "feedbacks WHERE rated_user_id = :user_id"; - $params = array(); - $params[] = array(':user_id', $user_id, 'int'); - $db->query($query, $params); - $fb_data = $db->result(); - // update feedback count - $query = "UPDATE " . $DBPrefix . "users SET rate_sum = :rate_sum, rate_num = :rate_num WHERE id = :user_id"; - $params = array(); - $params[] = array(':rate_sum', $fb_data['SUM'], 'int'); - $params[] = array(':rate_num', $fb_data['NUM'], 'int'); - $params[] = array(':user_id', $user_id, 'int'); - $db->query($query, $params); - header('location: userfeedback.php?id=' . $user_id); - exit; -} elseif (isset($_POST['action']) && $_POST['action'] == "No") { - header('location: userfeedback.php?id=' . $user_id); - exit; +if (isset($_POST['action']) && $_POST['action'] == "Yes") +{ + // delete the feedback entry + $query = "DELETE FROM " . $DBPrefix . "feedbacks WHERE id = :feedback_id"; + $params = array(); + $params[] = array(':feedback_id', $id, 'int'); + $db->query($query, $params); + // get the current feedback count + $query = "SELECT SUM(rate) as FSUM, count(feedback) as FNUM FROM " . $DBPrefix . "feedbacks WHERE rated_user_id = :user_id"; + $params = array(); + $params[] = array(':user_id', $user_id, 'int'); + $db->query($query, $params); + $fb_data = $db->result(); + // update feedback count + $query = "UPDATE " . $DBPrefix . "users SET rate_sum = :rate_sum, rate_num = :rate_num WHERE id = :user_id"; + $params = array(); + $params[] = array(':rate_sum', $fb_data['SUM'], 'int'); + $params[] = array(':rate_num', $fb_data['NUM'], 'int'); + $params[] = array(':user_id', $user_id, 'int'); + $db->query($query, $params); + header('location: userfeedback.php?id=' . $user_id); + exit; +} +elseif (isset($_POST['action']) && $_POST['action'] == "No") +{ + header('location: userfeedback.php?id=' . $user_id); + exit; } $template->assign_vars(array( - 'ID' => $id, - 'USERID' => $user_id, - 'MESSAGE' => sprintf($MSG['confirm_feedback_delete'], $id), - 'TYPE' => 2 - )); + 'ID' => $id, + 'USERID' => $user_id, + 'MESSAGE' => sprintf($MSG['848'], $id), + 'TYPE' => 2 + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'confirm.tpl' - )); + 'body' => 'confirm.tpl' + )); $template->display('body'); include 'footer.php'; +?> \ No newline at end of file diff --git a/admin/displaysettings.php b/admin/displaysettings.php old mode 100644 new mode 100755 index 20239545f..8b4820eed --- a/admin/displaysettings.php +++ b/admin/displaysettings.php @@ -1,6 +1,6 @@ writesetting("perpage", $_POST['perpage'], 'int'); - $system->writesetting("featuredperpage", $_POST['featuredperpage'], 'int'); - $system->writesetting("thumb_list", $_POST['thumb_list'], 'int'); - $system->writesetting("loginbox", $_POST['loginbox'], 'int'); - $system->writesetting("newsbox", $_POST['newsbox'], 'int'); - $system->writesetting("newstoshow", $_POST['newstoshow'], 'int'); - $system->writesetting("homefeaturednumber", $_POST['homefeaturednumber'], 'int'); - $system->writesetting("lastitemsnumber", $_POST['lastitemsnumber'], 'int'); - $system->writesetting("hotitemsnumber", $_POST['hotitemsnumber'], 'int'); - $system->writesetting("endingsoonnumber", $_POST['endingsoonnumber'], 'int'); - - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['display_settings_updated'])); +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + // clean submission & update database + $system->writesetting("perpage", $_POST['perpage'], 'int'); + $system->writesetting("featuredperpage", $_POST['featuredperpage'], 'int'); + $system->writesetting("thumb_list", $_POST['thumb_list'], 'int'); + $system->writesetting("loginbox", $_POST['loginbox'], 'int'); + $system->writesetting("newsbox", $_POST['newsbox'], 'int'); + $system->writesetting("newstoshow",$_POST['newstoshow'], 'int'); + $system->writesetting("homefeaturednumber", $_POST['homefeaturednumber'], 'int'); + $system->writesetting("lastitemsnumber", $_POST['lastitemsnumber'], 'int'); + $system->writesetting("hotitemsnumber", $_POST['hotitemsnumber'], 'int'); + $system->writesetting("endingsoonnumber", $_POST['endingsoonnumber'], 'int'); + + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['795'])); } -loadblock($MSG['show_per_page'], $MSG['show_per_page_explain'], 'days', 'perpage', $system->SETTINGS['perpage']); -loadblock($MSG['max_featured_items'], $MSG['max_featured_items_explain'], 'days', 'featuredperpage', $system->SETTINGS['featuredperpage']); -loadblock($MSG['thumbnail_size'], $MSG['thumbnail_size_explain'], 'decimals', 'thumb_list', $system->SETTINGS['thumb_list'], array($MSG['pixels'])); +loadblock($MSG['789'], $MSG['790'], 'days', 'perpage', $system->SETTINGS['perpage']); +loadblock('', $MSG['max_featured_items'], 'days', 'featuredperpage', $system->SETTINGS['featuredperpage']); +loadblock($MSG['25_0107'], $MSG['808'], 'decimals', 'thumb_list', $system->SETTINGS['thumb_list'], array($MSG['2__0045'])); -loadblock($MSG['front_page_settings'], '', '', '', '', array(), true); -loadblock($MSG['home_page_featured'], $MSG['home_page_featured_explain'], 'days', 'homefeaturednumber', $system->SETTINGS['homefeaturednumber']); -loadblock($MSG['home_page_recent'], $MSG['home_page_recent_explain'], 'days', 'lastitemsnumber', $system->SETTINGS['lastitemsnumber']); -loadblock($MSG['home_page_hot'], $MSG['home_page_hot_explain'], 'days', 'hotitemsnumber', $system->SETTINGS['hotitemsnumber']); -loadblock($MSG['home_page_ending_soon'], $MSG['home_page_ending_soon_explain'], 'days', 'endingsoonnumber', $system->SETTINGS['endingsoonnumber']); -loadblock($MSG['home_page_login'], $MSG['home_page_login_explain'], 'batch', 'loginbox', $system->SETTINGS['loginbox'], array($MSG['yes'], $MSG['no'])); -loadblock($MSG['home_page_news'], $MSG['home_page_news_explain'], 'batch', 'newsbox', $system->SETTINGS['newsbox'], array($MSG['yes'], $MSG['no'])); -loadblock('', $MSG['number_news_shown'], 'days', 'newstoshow', $system->SETTINGS['newstoshow']); +loadblock($MSG['807'], '', '', '', '', array(), true); +loadblock($MSG['5011'], $MSG['5012'], 'days', 'homefeaturednumber', $system->SETTINGS['homefeaturednumber']); +loadblock($MSG['5013'], $MSG['5014'], 'days', 'lastitemsnumber', $system->SETTINGS['lastitemsnumber']); +loadblock($MSG['5015'], $MSG['5016'], 'days', 'hotitemsnumber', $system->SETTINGS['hotitemsnumber']); +loadblock($MSG['5017'], $MSG['5018'], 'days', 'endingsoonnumber', $system->SETTINGS['endingsoonnumber']); +loadblock($MSG['532'], $MSG['537'], 'batch', 'loginbox', $system->SETTINGS['loginbox'], array($MSG['030'], $MSG['029'])); +loadblock($MSG['533'], $MSG['538'], 'batch', 'newsbox', $system->SETTINGS['newsbox'], array($MSG['030'], $MSG['029'])); +loadblock('', $MSG['554'], 'days', 'newstoshow', $system->SETTINGS['newstoshow']); $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'], - 'TYPENAME' => $MSG['5142'], - 'PAGENAME' => $MSG['display_settings'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'], + 'TYPENAME' => $MSG['5142'], + 'PAGENAME' => $MSG['788'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'adminpages.tpl' - )); + 'body' => 'adminpages.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/durations.php b/admin/durations.php old mode 100644 new mode 100755 index 03f095103..ed9cee946 --- a/admin/durations.php +++ b/admin/durations.php @@ -1,6 +1,6 @@ $v) { - if ((isset($_POST['delete']) && !in_array($k, $_POST['delete']) || !isset($_POST['delete'])) && !empty($_POST['new_durations'][$k]) && !empty($_POST['new_days'][$k])) { - $rebuilt_durations[] = $_POST['new_durations'][$k]; - $rebuilt_days[] = $_POST['new_days'][$k]; - } - } + foreach ($_POST['new_durations'] as $k => $v) + { + if ((isset($_POST['delete']) && !in_array($k, $_POST['delete']) || !isset($_POST['delete'])) && !empty($_POST['new_durations'][$k]) && !empty($_POST['new_days'][$k])) + { + $rebuilt_durations[] = $_POST['new_durations'][$k]; + $rebuilt_days[] = $_POST['new_days'][$k]; + } + } - $query = "DELETE FROM " . $DBPrefix . "durations"; - $db->direct_query($query); + $query = "DELETE FROM " . $DBPrefix . "durations"; + $db->direct_query($query); - for ($i = 0; $i < count($rebuilt_durations); $i++) { - $query = "INSERT INTO " . $DBPrefix . "durations VALUES (:day_count, :day_string)"; - $params = array(); - $params[] = array(':day_count', $rebuilt_days[$i], 'int'); - $params[] = array(':day_string', $rebuilt_durations[$i], 'str'); - $db->query($query, $params); - } + for ($i = 0; $i < count($rebuilt_durations); $i++) + { + $query = "INSERT INTO " . $DBPrefix . "durations VALUES (:day_count, :day_string)"; + $params = array(); + $params[] = array(':day_count', $rebuilt_days[$i], 'int'); + $params[] = array(':day_string', $rebuilt_durations[$i], 'str'); + $db->query($query, $params); + } - $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['duration_table_updated'])); + $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['123'])); } $query = "SELECT * FROM " . $DBPrefix . "durations ORDER BY days"; $db->direct_query($query); -while ($row = $db->fetch()) { - $template->assign_block_vars('dur', array( - 'DAYS' => $row['days'], - 'DESC' => $row['description'] - )); +$i = 0; +while ($row = $db->fetch()) +{ + $template->assign_block_vars('dur', array( + 'ID' => $i, + 'DAYS' => $row['days'], + 'DESC' => $row['description'] + )); + $i++; } $template->assign_vars(array( - 'SITEURL' => $system->SETTINGS['siteurl'] - )); + 'SITEURL' => $system->SETTINGS['siteurl'] + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'durations.tpl' - )); + 'body' => 'durations.tpl' + )); $template->display('body'); include 'footer.php'; +?> \ No newline at end of file diff --git a/admin/editadminuser.php b/admin/editadminuser.php old mode 100644 new mode 100755 index 75029b4b9..c687c570b --- a/admin/editadminuser.php +++ b/admin/editadminuser.php @@ -1,6 +1,6 @@ assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_054)); - } elseif ($_POST['password'] != $_POST['repeatpassword']) { - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_006)); - } else { - // Update - $query = "UPDATE " . $DBPrefix . "adminusers SET"; - $params = array(); - if (!empty($_POST['password'])) { - include PACKAGE_PATH . 'PasswordHash.php'; - $phpass = new PasswordHash(8, false); - $query .= " password = :password, "; - $params[] = array(':password', $phpass->HashPassword($_POST['password']), 'str'); - } - $query .= " status = :status WHERE id = :admin_id"; - $params[] = array(':status', $_POST['status'], 'bool'); - $params[] = array(':admin_id', $id, 'int'); - $db->query($query, $params); - header('location: adminusers.php'); - exit; - } +if (isset($_POST['action']) && $_POST['action'] == 'update') +{ + if ((!empty($_POST['password']) && empty($_POST['repeatpassword'])) || (empty($_POST['password']) && !empty($_POST['repeatpassword']))) + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_054)); + } + elseif ($_POST['password'] != $_POST['repeatpassword']) + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_006)); + } + else + { + // Update + $query = "UPDATE " . $DBPrefix . "adminusers SET"; + $params = array(); + if (!empty($_POST['password'])) + { + include PACKAGE_PATH . 'PasswordHash.php'; + $phpass = new PasswordHash(8, false); + $query .= " password = :password, "; + $params[] = array(':password', $phpass->HashPassword($_POST['password']), 'str'); + } + $query .= " status = :status WHERE id = :admin_id"; + $params[] = array(':status', $_POST['status'], 'bool'); + $params[] = array(':admin_id', $id, 'int'); + $db->query($query, $params); + header('location: adminusers.php'); + exit; + } } $query = "SELECT * FROM " . $DBPrefix . "adminusers WHERE id = :admin_id"; @@ -55,32 +56,39 @@ $db->query($query, $params); $user_data = $db->result(); -// Data check -if (!$user_data) { - header('location: adminusers.php'); - exit; +if ($system->SETTINGS['datesformat'] == 'USA') +{ + $CREATED = substr($user_data['created'], 4, 2) . '/' . substr($user_data['created'], 6, 2) . '/' . substr($user_data['created'], 0, 4); +} +else +{ + $CREATED = substr($user_data['created'], 6, 2) . '/' . substr($user_data['created'], 4, 2) . '/' . substr($user_data['created'], 0, 4); } -if ($user_data['lastlogin'] == $user_data['created']) { - $LASTLOGIN = $MSG['570']; -} else { - $LASTLOGIN = $dt->printDateTz($user_data['lastlogin']); +if ($user_data['lastlogin'] == 0) +{ + $LASTLOGIN = $MSG['570']; +} +else +{ + $LASTLOGIN = FormatDate($user_data['lastlogin']); } $template->assign_vars(array( - 'ID' => $id, - 'USERNAME' => $user_data['username'], - 'CREATED' => $dt->printDateTz($user_data['created']), - 'LASTLOGIN' => $LASTLOGIN, + 'ID' => $id, + 'USERNAME' => $user_data['username'], + 'CREATED' => $CREATED, + 'LASTLOGIN' => $LASTLOGIN, - 'B_ACTIVE' => ($user_data['status'] == 1), - 'B_INACTIVE' => ($user_data['status'] == 0) - )); + 'B_ACTIVE' => ($user_data['status'] == 1), + 'B_INACTIVE' => ($user_data['status'] == 0) + )); include 'header.php'; $template->set_filenames(array( - 'body' => 'editadminuser.tpl' - )); + 'body' => 'editadminuser.tpl' + )); $template->display('body'); include 'footer.php'; +?> diff --git a/admin/editauction.php b/admin/editauction.php old mode 100644 new mode 100755 index 26757aa77..81b78d059 --- a/admin/editauction.php +++ b/admin/editauction.php @@ -1,6 +1,6 @@ assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_601)); - } elseif (isset($_POST['current_bid']) && $_POST['current_bid'] < $_POST['min_bid'] && $_POST['current_bid'] != 0) { // bid > min_bid - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $MSG['error_current_bid_too_low'])); - } else { - // Retrieve auction data - $query = "SELECT * from " . $DBPrefix . "auctions WHERE id = :auc_id"; - $params = array(); - $params[] = array(':auc_id', $_POST['id'], 'int'); - $db->query($query, $params); - $AUCTION = $db->result(); - - if ($AUCTION['category'] != $_POST['category']) { - // and increase new category counters - $ct = intval($_POST['category']); - $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :cat_id"; - $params = array(); - $params[] = array(':cat_id', $ct, 'int'); - $db->query($query, $params); - $parent_node = $db->result(); - - $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); - - for ($i = 0; $i < count($crumbs); $i++) { - if ($crumbs[$i]['cat_id'] == $ct) { - $query = "UPDATE " . $DBPrefix . "categories SET counter = counter + 1, sub_counter = sub_counter + 1 WHERE cat_id = :cat_id"; - } else { - $query = "UPDATE " . $DBPrefix . "categories SET sub_counter = sub_counter + 1 WHERE cat_id = :cat_id"; - } - $params = array(); - $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); - $db->query($query, $params); - } - - // and decrease old category counters - $cta = intval($AUCTION['category']); - $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :cat_id"; - $params = array(); - $params[] = array(':cat_id', $cta, 'int'); - $db->query($query, $params); - $parent_node = $db->result(); - $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); - - for ($i = 0; $i < count($crumbs); $i++) { - if ($crumbs[$i]['cat_id'] == $cta) { - $query = "UPDATE " . $DBPrefix . "categories SET counter = counter - 1, sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; - } else { - $query = "UPDATE " . $DBPrefix . "categories SET sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; - } - $params = array(); - $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); - $db->query($query, $params); - } - } - - if ($AUCTION['secondcat'] != $_POST['secondcat']) { - // and increase new category counters - $ct = intval($_POST['secondcat']); - $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :cat_id"; - $params = array(); - $params[] = array(':cat_id', $ct, 'int'); - $db->query($query, $params); - $parent_node = $db->result(); - - $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); - - for ($i = 0; $i < count($crumbs); $i++) { - if ($crumbs[$i]['cat_id'] == $ct) { - $query = "UPDATE " . $DBPrefix . "categories SET counter = counter + 1, sub_counter = sub_counter + 1 WHERE cat_id = :cat_id"; - } else { - $query = "UPDATE " . $DBPrefix . "categories SET sub_counter = sub_counter + 1 WHERE cat_id = :cat_id"; - } - $params = array(); - $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); - $db->query($query, $params); - } - - // and decrease old category counters - $cta = intval($AUCTION['secondcat']); - $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :cat_id"; - $params = array(); - $params[] = array(':cat_id', $cta, 'int'); - $db->query($query, $params); - $parent_node = $db->result(); - - $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); - - for ($i = 0; $i < count($crumbs); $i++) { - if ($crumbs[$i]['cat_id'] == $cta) { - $query = "UPDATE " . $DBPrefix . "categories SET counter = counter - 1, sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; - } else { - $query = "UPDATE " . $DBPrefix . "categories SET sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; - } - $params = array(); - $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); - $db->query($query, $params); - } - } - - // clean unwanted images - if (isset($_POST['gallery']) && is_array($_POST['gallery'])) { - $uploaded = load_gallery($_POST['id']); - foreach ($uploaded as $img) { - if (in_array($img, $_POST['gallery'])) { - unlink(MAIN_PATH . $img); - } - } - } - - $start_date = new DateTime($AUCTION['starts'], $dt->UTCtimezone); - $start_date->add(new DateInterval('P' . intval($_POST['duration']) . 'D')); - $auction_ends = $start_date->format('Y-m-d H:i:s'); - - $query = "UPDATE " . $DBPrefix . "auctions SET - title = :title, - subtitle = :subtitle, - ends = :ends, - duration = :duration, - category = :category, - secondcat = :secondcat, - description = :description, - quantity = :quantity, - minimum_bid = :minimum_bid, - shipping_cost = :shipping_cost, - buy_now = :buy_now, - bn_only = :bn_only, - reserve_price = :reserve_price, - increment = :increment, - shipping = :shipping, - payment = :payment, - international = :international, - shipping_terms = :shipping_terms, - bold = :bold, - highlighted = :highlighted, - featured = :featured - WHERE id = :auc_id"; - $params = array(); - $params[] = array(':title', $system->cleanvars($_POST['title']), 'str'); - $params[] = array(':subtitle', $system->cleanvars($_POST['subtitle']), 'str'); - $params[] = array(':ends', $auction_ends, 'str'); - $params[] = array(':duration', $_POST['duration'], 'int'); - $params[] = array(':category', $_POST['category'], 'int'); - $params[] = array(':secondcat', $_POST['secondcat'], 'int'); - $params[] = array(':description', $_POST['description'], 'str'); - $params[] = array(':quantity', $_POST['quantity'], 'int'); - $params[] = array(':minimum_bid', $system->input_money($_POST['min_bid']), 'float'); - $params[] = array(':shipping_cost', $system->input_money($_POST['shipping_cost']), 'float'); - $params[] = array(':buy_now', $system->input_money($_POST['buy_now']), 'float'); - $params[] = array(':bn_only', $_POST['buy_now_only'], 'bool'); - $params[] = array(':reserve_price', $system->input_money($_POST['reserve_price']), 'float'); - $params[] = array(':increment', $system->input_money($_POST['customincrement']), 'float'); - $params[] = array(':shipping', $_POST['shipping'], 'str'); - $params[] = array(':payment', implode(', ', $_POST['payment']), 'str'); - $params[] = array(':international', (isset($_POST['international'])), 'bool'); - $params[] = array(':shipping_terms', $system->cleanvars($_POST['shipping_terms']), 'str'); - $params[] = array(':bold', (isset($_POST['is_bold'])), 'bool'); - $params[] = array(':highlighted', (isset($_POST['is_highlighted'])), 'bool'); - $params[] = array(':featured', (isset($_POST['is_featured'])), 'bool'); - $params[] = array(':auc_id', $_POST['id'], 'int'); - $db->query($query, $params); - - $URL = $_SESSION['RETURN_LIST']; - header('location: ' . $URL); - exit; - } - } else { - $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_112)); - } +if (isset($_POST['action'])) +{ + // Check that all the fields are not NULL + if (!empty($_POST['id']) && !empty($_POST['title']) && !empty($_POST['duration']) && !empty($_POST['category']) && !empty($_POST['description']) && !empty($_POST['min_bid'])) + { + // fix values + $_POST['quantity'] = (empty($_POST['quantity'])) ? 1 : $_POST['quantity']; + $_POST['customincrement'] = (empty($_POST['customincrement'])) ? 0 : $_POST['customincrement']; + // Check the input values for validity. + if ($_POST['quantity'] < 1) // 1 or more items being sold + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_701)); + } + elseif (isset($_POST['current_bid']) && $_POST['current_bid'] < $_POST['min_bid'] && $_POST['current_bid'] != 0) // bid > min_bid + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_702)); + } + else + { + // Retrieve auction data + $query = "SELECT * from " . $DBPrefix . "auctions WHERE id = :auc_id"; + $params = array(); + $params[] = array(':auc_id', $_POST['id'], 'int'); + $db->query($query, $params); + $AUCTION = $db->result(); + + $a_start = $AUCTION['starts']; + $a_ends = $a_start + ($_POST['duration'] * 24 * 60 * 60); + + if ($AUCTION['category'] != $_POST['category']) + { + // and increase new category counters + $ct = intval($_POST['category']); + $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :cat_id"; + $params = array(); + $params[] = array(':cat_id', $ct, 'int'); + $db->query($query, $params); + $parent_node = $db->result(); + + $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); + + for ($i = 0; $i < count($crumbs); $i++) + { + if ($crumbs[$i]['cat_id'] == $ct) + { + $query = "UPDATE " . $DBPrefix . "categories SET counter = counter + 1, sub_counter = sub_counter + 1 WHERE cat_id = :cat_id"; + } + else + { + $query = "UPDATE " . $DBPrefix . "categories SET sub_counter = sub_counter + 1 WHERE cat_id = :cat_id"; + } + $params = array(); + $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); + $db->query($query, $params); + } + + // and decrease old category counters + $cta = intval($AUCTION['category']); + $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :cat_id"; + $params = array(); + $params[] = array(':cat_id', $cta, 'int'); + $db->query($query, $params); + $parent_node = $db->result(); + $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); + + for ($i = 0; $i < count($crumbs); $i++) + { + if ($crumbs[$i]['cat_id'] == $cta) + { + $query = "UPDATE " . $DBPrefix . "categories SET counter = counter - 1, sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; + } + else + { + $query = "UPDATE " . $DBPrefix . "categories SET sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; + } + $params = array(); + $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); + $db->query($query, $params); + } + } + + if ($AUCTION['secondcat'] != $_POST['secondcat']) + { + // and increase new category counters + $ct = intval($_POST['secondcat']); + $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :cat_id"; + $params = array(); + $params[] = array(':cat_id', $ct, 'int'); + $db->query($query, $params); + $parent_node = $db->result(); + + $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); + + for ($i = 0; $i < count($crumbs); $i++) + { + if ($crumbs[$i]['cat_id'] == $ct) + { + $query = "UPDATE " . $DBPrefix . "categories SET counter = counter + 1, sub_counter = sub_counter + 1 WHERE cat_id = :cat_id"; + } + else + { + $query = "UPDATE " . $DBPrefix . "categories SET sub_counter = sub_counter + 1 WHERE cat_id = :cat_id"; + } + $params = array(); + $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); + $db->query($query, $params); + } + + // and decrease old category counters + $cta = intval($AUCTION['secondcat']); + $query = "SELECT left_id, right_id, level FROM " . $DBPrefix . "categories WHERE cat_id = :cat_id"; + $params = array(); + $params[] = array(':cat_id', $cta, 'int'); + $db->query($query, $params); + $parent_node = $db->result(); + + $crumbs = $catscontrol->get_bread_crumbs($parent_node['left_id'], $parent_node['right_id']); + + for ($i = 0; $i < count($crumbs); $i++) + { + if ($crumbs[$i]['cat_id'] == $cta) + { + $query = "UPDATE " . $DBPrefix . "categories SET counter = counter - 1, sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; + } + else + { + $query = "UPDATE " . $DBPrefix . "categories SET sub_counter = sub_counter - 1 WHERE cat_id = :cat_id"; + } + $params = array(); + $params[] = array(':cat_id', $crumbs[$i]['cat_id'], 'int'); + $db->query($query, $params); + } + } + + // clean unwanted images + if (isset($_POST['gallery']) && is_array($_POST['gallery'])) + { + $uploaded = load_gallery($_POST['id']); + foreach ($uploaded as $img) + { + if (in_array($img, $_POST['gallery'])) + { + unlink(MAIN_PATH . $img); + } + } + } + + $query = "UPDATE " . $DBPrefix . "auctions SET + title = :title, + subtitle = :subtitle, + ends = :ends, + duration = :duration, + category = :category, + secondcat = :secondcat, + description = :description, + quantity = :quantity, + minimum_bid = :minimum_bid, + shipping_cost = :shipping_cost, + buy_now = :buy_now, + bn_only = :bn_only, + reserve_price = :reserve_price, + increment = :increment, + shipping = :shipping, + payment = :payment, + international = :international, + shipping_terms = :shipping_terms, + bold = :bold, + highlighted = :highlighted, + featured = :featured + WHERE id = :auc_id"; + $params = array(); + $params[] = array(':title', $system->cleanvars($_POST['title']), 'str'); + $params[] = array(':subtitle', $system->cleanvars($_POST['subtitle']), 'str'); + $params[] = array(':ends', $a_ends, 'int'); + $params[] = array(':duration', $system->cleanvars($_POST['duration']), 'str'); + $params[] = array(':category', $_POST['category'], 'int'); + $params[] = array(':secondcat', $_POST['secondcat'], 'int'); + $params[] = array(':description', $_POST['description'], 'str'); + $params[] = array(':quantity', $_POST['quantity'], 'int'); + $params[] = array(':minimum_bid', $system->input_money($_POST['min_bid']), 'float'); + $params[] = array(':shipping_cost', $system->input_money($_POST['shipping_cost']), 'float'); + $params[] = array(':buy_now', $system->input_money($_POST['buy_now']), 'float'); + $params[] = array(':bn_only', $_POST['buy_now_only'], 'bool'); + $params[] = array(':reserve_price', $system->input_money($_POST['reserve_price']), 'float'); + $params[] = array(':increment', $system->input_money($_POST['customincrement']), 'float'); + $params[] = array(':shipping', $_POST['shipping'], 'str'); + $params[] = array(':payment', implode(', ', $_POST['payment']), 'str'); + $params[] = array(':international', ((isset($_POST['international'])) ? 1 : 0), 'int'); + $params[] = array(':shipping_terms', $system->cleanvars($_POST['shipping_terms']), 'str'); + $params[] = array(':bold', (isset($_POST['is_bold'])), 'bool'); + $params[] = array(':highlighted', (isset($_POST['is_highlighted'])), 'bool'); + $params[] = array(':featured', (isset($_POST['is_featured'])), 'bool'); + $params[] = array(':auc_id', $_POST['id'], 'int'); + $db->query($query, $params); + + $URL = $_SESSION['RETURN_LIST'] . '?offset=' . $_SESSION['RETURN_LIST_OFFSET']; + unset($_SESSION['RETURN_LIST'], $_SESSION['RETURN_LIST_OFFSET']); + header('location: ' . $URL); + exit; + } + } + else + { + $template->assign_block_vars('alerts', array('TYPE' => 'error', 'MESSAGE' => $ERR_112)); + } } $auc_id = intval($_REQUEST['id']); -$query = "SELECT u.nick, a.* FROM " . $DBPrefix . "auctions a - LEFT JOIN " . $DBPrefix . "users u ON (u.id = a.user) - WHERE a.id = :auc_id"; +$query = "SELECT u.nick, a.* FROM " . $DBPrefix . "auctions a + LEFT JOIN " . $DBPrefix . "users u ON (u.id = a.user) + WHERE a.id = :auc_id"; $params = array(); $params[] = array(':auc_id', $auc_id, 'int'); $db->query($query, $params); -if ($db->numrows() == 0) { - $URL = $_SESSION['RETURN_LIST']; - header('location: ' . $URL); - exit; +if ($db->numrows() == 0) +{ + if (!isset($_SESSION['RETURN_LIST'])) + { + $URL = 'listauctions.php'; + } + else + { + $URL = $_SESSION['RETURN_LIST'] . '?offset=' . $_SESSION['RETURN_LIST_OFFSET']; + } + unset($_SESSION['RETURN_LIST'], $_SESSION['RETURN_LIST_OFFSET']); + header('location: ' . $URL); + exit; } $auction_data = $db->result(); // DURATIONS +$dur_list = ''; // empty string to begin HTML list $query = "SELECT days, description FROM " . $DBPrefix . "durations"; $db->direct_query($query); -while ($row = $db->fetch()) { - $template->assign_block_vars('dur', array( - 'DAYS' => $row['days'], - 'SELECTED' => ($row['days'] == $auction_data['duration']), - 'DESC' => $row['description'] - )); +while ($row = $db->fetch()) +{ + $dur_list .= '