Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Your code isn't as secure as you say it is... I rewrote the second part. I haven't tested it yet but it's a lot better.
[PHP] <?php $ltd_id = (isset($_POST['ltd_id']) && $_POST['ltd_id'] != NULL && is_nu - Pastebin.com
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Quote:
Originally Posted by
billsonnn
(1)
POST on second part is already filtered.
$ltd_id = preg_replace('/[^0-9]/', '', $_POST["ltd_id"]);
(2)
The "auto increment" doesn't always work as great.
(3)
You forgot to redirect back to /me (or whatever page that is prefered)
(4)
Your code doesn't work.
PHP Code:
Warning: mysql_result() expects parameter 1 to be resource, integer given in C:\xampp\htdocs\RevCMS\app\tpl\skins\Priv\buyltd.php on line 7
You don't have enough credits for that furniture
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Changing all of the text when the user doesn't have enough credits is kind of unnecessary imo, you could just display a prompt saying "Insufficient Funds" when the user tries to purchase it. Otherwise this is a pretty cool release. :thumbup:
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Quote:
Originally Posted by
Riley H
Changing all of the text when the user doesn't have enough credits is kind of unnecessary imo, you could just display a prompt saying "Insufficient Funds" when the user tries to purchase it. Otherwise this is a pretty cool release. :thumbup:
I don't see what damage it does? :P
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
anybody managed to get this fully working for habbo theme?
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Quote:
Originally Posted by
Dan822
anybody managed to get this fully working for habbo theme?
Send me URL of a plain Habbo theme and I'll look into it.
[RevCMS] LIMITED furniture sales in CMS [Phoenix]
Quote:
Originally Posted by
Thewicard
(1)
POST on second part is already filtered.
$ltd_id = preg_replace('/[^0-9]/', '', $_POST["ltd_id"]);
(2)
The "auto increment" doesn't always work as great.
(3)
You forgot to redirect back to /me (or whatever page that is prefered)
(4)
Your code doesn't work.
PHP Code:
Warning: mysql_result() expects parameter 1 to be resource, integer given in C:\xampp\htdocs\RevCMS\app\tpl\skins\Priv\buyltd.php on line 7
You don't have enough credits for that furniture
I said I hadn't tested it yet. Your code is messy and could use some improvement. I was simply trying to help.
Sent from my iPhone using Tapatalk 2
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Quote:
Originally Posted by
Thewicard
I tested it out with phoenix, furni appeared after reload (Like it should)
I tried shutdowning and various other things, but it seems to work like it should.
This is no issue.
It works at first, but wait and see after using it for a period of time people will start complaining of their furni dissapear. Aaron himself has confirmed that the Emulator will simply overwrite what is inserted by the CMS in the "items" table. I'm just trying to help out, you should try using MUS commands :)
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Quote:
Originally Posted by
BuzzOfficial
It works at first, but wait and see after using it for a period of time people will start complaining of their furni dissapear. Aaron himself has confirmed that the Emulator will simply overwrite what is inserted by the CMS in the "items" table. I'm just trying to help out, you should try using MUS commands :)
Not possible to open gifts sent in MUS?
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Thank you very much.
I'm just wondering why you are making a string out of this?
Quote:
$newfurnileft = $furnileft - '1';
$newfurnisold = $furnisold + '1';
mysql_query("UPDATE rev_ltd SET furni_sold='".$newfurnisold."'") or die(mysql_error());
mysql_query("UPDATE rev_ltd SET furni_left='".$newfurnileft."'") or die(mysql_error());
Instead of a preg_match you can also do is_digit, not sure what the function was called, it's been a long time since i worked with php!
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Once made the same for phoenixphp. Deleted it yesterday lol.
Maybe you should implent MUS so coins are immediatly taken when buying one. Now there is a chance people can get one for free.
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Thanks, i can use this! :w00t:
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
The code dont work right on habbo theme it may not work right at all because if you put 2 limited rares one has 100 out and the other has 60 out it will make them both say 100 and after you buy one in the database it makes them both 100 but this is messing with the database and giving free rares. MUS should be added if you can do that real fast that would help with the free rares and the limit thing idk you should try to find that out. Also this is a awesome release for phoenix users really good!
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
Quote:
Originally Posted by
Nate Curry
The code dont work right on habbo theme it may not work right at all because if you put 2 limited rares one has 100 out and the other has 60 out it will make them both say 100 and after you buy one in the database it makes them both 100 but this is messing with the database and giving free rares. MUS should be added if you can do that real fast that would help with the free rares and the limit thing idk you should try to find that out. Also this is a awesome release for phoenix users really good!
It works like it should for Priv theme, not really sure what the issue is when converting to Habbo theme.
Will look closer into that.
Re: [RevCMS] LIMITED furniture sales in CMS [Phoenix]
okay ill tell you what errors i see so you can find out better thanks