Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2011, 10:03 AM
tittlemouse tittlemouse is offline
Member
 
Join Date: Mar 2011
Posts: 29
Gender: Male
Credits: 3,040
tittlemouse is on a distinguished road
Default Can offer negative money on trades

I tested this out on this site
http://dragonsfarm.host56.com/

It is using the latest version of the Mysidia script
You can send someone a offer of a pet for -999999999 from the trades page. The person accepting loses the money.

I made 2 accounts 1 named tittlemouse the other named avfctom
I send a offer of -999999999 tittlemouse from avfctom and accepted it and I got this.

On tittlemouse
You have -999996999 Dragon Yen.

Your links:
ADOPT NEW PETS
ACQUIRE POUNDED PETS
MANAGE ADOPTABLES

Last edited by tittlemouse; 03-24-2011 at 10:08 AM.
Reply With Quote
  #2  
Old 03-24-2011, 10:08 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,873
fadillzzz is an unknown quantity at this point
Default

Seems like people always forgot to filter the (-) minus sign.
Anyway, I think this should fix the problem.
Open your trade.php
find this code
PHP Code:
$adoptwanted $_POST["adoptwanted"];
$adoptgiven $_POST["adoptgiven"];
$cashgiven $_POST["cashgiven"];
$message $_POST["message"]; 
Just below that, add
PHP Code:
$cashgiven abs($cashgiven); 
Reply With Quote
  #3  
Old 03-24-2011, 10:09 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,073
Hall of Famer is on a distinguished road
Default

umm I see, add this line after if($cashenabled == "yes")[

PHP Code:
$cashgiven abs($cashgiven); 
Lemme know if it solves your problem or not.

@Fadillzzz: Another possible way to fix this issue is to generate an error message when negative amount is entered.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #4  
Old 03-24-2011, 10:11 AM
tittlemouse tittlemouse is offline
Member
 
Join Date: Mar 2011
Posts: 29
Gender: Male
Credits: 3,040
tittlemouse is on a distinguished road
Default

I don't know since that is not my site buy hopefully the owner of it will log on later and be able to see if that works.
Reply With Quote
  #5  
Old 03-24-2011, 10:23 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,873
fadillzzz is an unknown quantity at this point
Default

@HoF
Yeah. That should works too.
Reply With Quote
  #6  
Old 03-24-2011, 10:27 AM
RoconzaArt's Avatar
RoconzaArt RoconzaArt is offline
Member
 
Join Date: Jan 2011
Location: NJ Shore (and proud of it)
Posts: 479
Gender: Female
Credits: 45,937
RoconzaArt is an unknown quantity at this point
Default

How do i fix this for mytrades.php too? Is it the same way?
__________________
Reply With Quote
  #7  
Old 03-24-2011, 10:31 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,873
fadillzzz is an unknown quantity at this point
Default

For mytrades.php
After this
PHP Code:
$tid $_POST["tid"];
$petoffered $_POST["petoffered"];
$tradewith $_POST["tradewith"];
$petrequested $_POST["petrequested"];
$moneyoffered $_POST["moneyoffered"];
$trademessage $_POST["trademessage"]; 
Add
PHP Code:
$moneyoffered abs($moneyoffered); 
Reply With Quote
  #8  
Old 03-24-2011, 10:34 AM
RoconzaArt's Avatar
RoconzaArt RoconzaArt is offline
Member
 
Join Date: Jan 2011
Location: NJ Shore (and proud of it)
Posts: 479
Gender: Female
Credits: 45,937
RoconzaArt is an unknown quantity at this point
Default

Ok I'll try testing it.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Partial Trades Not Showing - MystFell.com NobodysHero Questions and Supports 12 12-12-2015 06:56 AM
One Sided Trades GuardiansWish Questions and Supports 16 04-28-2013 05:50 PM
Offer? RoconzaArt Questions and Supports 4 01-21-2011 08:07 AM
Money trainerluke Questions and Supports 1 04-07-2009 06:31 PM


All times are GMT -5. The time now is 11:55 AM.

Currently Active Users: 9847 (0 members and 9847 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636