Thread: Simple donation [works with martins donation server sided code]

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11  
    Unfortunately we’re all human. Except me


    Join Date
    Aug 2011
    Posts
    926
    Thanks given
    539
    Thanks received
    439
    Rep Power
    601
    Quote Originally Posted by Jay Gatsby View Post
    Does this have the same exploit that Martin's did?

    Good work on this, nice to see you contribute to the community.


    All the best,
    Harry
    What exploit did his have?
    Reply With Quote  
     

  2. #12  
    So when I'm free, I'm free


    Jay Gatsby's Avatar
    Join Date
    Jun 2010
    Posts
    2,307
    Thanks given
    1,148
    Thanks received
    1,982
    Rep Power
    5000
    Quote Originally Posted by LukaFurlan View Post
    What exploit did his have?
    I think you could like change the URL so that you could pay 0.01 and get whatever package you want.
    Don't know the full details of it though!


    All the best,
    Harry
    Reply With Quote  
     

  3. #13  
    Unfortunately we’re all human. Except me


    Join Date
    Aug 2011
    Posts
    926
    Thanks given
    539
    Thanks received
    439
    Rep Power
    601
    Wont be possible here
    Reply With Quote  
     

  4. #14  
    Unfortunately we’re all human. Except me


    Join Date
    Aug 2011
    Posts
    926
    Thanks given
    539
    Thanks received
    439
    Rep Power
    601
    bump
    Reply With Quote  
     

  5. #15  
    Banned
    Join Date
    Aug 2014
    Posts
    518
    Thanks given
    88
    Thanks received
    21
    Rep Power
    0
    Quote Originally Posted by LukaFurlan View Post
    Hello,

    Martins donate system links are dead thats why i decided to "remake" it

    Its realy simple code and ipn is as simple as it can get so dont rage..

    LINK TO SERVER SIDED CODE: http://www.rune-server.org/runescape...on-system.html

    LINK TO WEBSITE CODE DOWNLOAD: http://blanked-studios.info/test/class.zip

    LIVE PREVIEW: http://blanked-studios.info/test


    Ok if you downloaded files, create mysql user and database. Go in class file and edit database.class.php . Change database connect details to yours.
    When that is done go to phpmyadmin and create this table:

    Code:
    CREATE TABLE IF NOT EXISTS `donation` (
      `username` varchar(32) NOT NULL,
      `time` varchar(100) NOT NULL,
      `productid` varchar(100) NOT NULL,
      `price` decimal(10,0) NOT NULL,
      `tickets` int(11) NOT NULL,
      `index` int(11) NOT NULL AUTO_INCREMENT,
      PRIMARY KEY (`index`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
    Now when your database is set up, its time to set up donation itself!

    Edit index.php and change next defines:

    PAYPAL_EMAIL = email where you want to recieve payments to
    PAYPAL_RETURN_URL = url where paypal will redict user if payment is sucessfull/unsucessfull
    PAYPAL_IPN_URL = url to ipn file which is located in class folder. Example: http://blanked-studios.info/test/class/ipn.php

    How do I add rewards?
    Adding rewards is realy simple, all you have to do is add new option in form.

    Code:
    <option value="3">Purple phat</option>
    value is product id! Remember that because you will need it later.

    So now when item is added to form, you have to add it to array.

    Code:
    $rewards = array
    		   (
    		   array("REWARD PRICE", "REWARD NAME"),
    		   array(12, "Dragon Claws"), // Reward 1
    		   array(13, "Armadyl Godsword"), // Reward 2
    		   array(14, "Purple phat"), // Etc..
    		   );
    As you can see first value in array is reward price . If you for example set it to 10, reward will cost 10$ .
    Second value is reward name.

    When adding rewards make sure you dont delete this row:

    Code:
    array("REWARD PRICE", "REWARD NAME"),
    because if you do, it wont work anymore

    Thats all for now, if you like it leave a thanks and if you need help feel free to ask me

    For those who dont like current IPN, I'll write new one. This one looks like that because I didnt have time to make it better

    Credits: Web sided: to me
    Server sided to martin ofc
    This is very good Might use in the future Thanks!
    Reply With Quote  
     

  6. Thankful user:


  7. #16  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Mind adding amount support?
    Reply With Quote  
     

  8. #17  
    Unfortunately we’re all human. Except me


    Join Date
    Aug 2011
    Posts
    926
    Thanks given
    539
    Thanks received
    439
    Rep Power
    601
    Quote Originally Posted by ipkmills View Post
    Mind adding amount support?
    I'm sorry, but I'm currently realy busy with other projects. Might do it when I'm free.
    Reply With Quote  
     

  9. #18  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by LukaFurlan View Post
    I'm sorry, but I'm currently realy busy with other projects. Might do it when I'm free.
    No problem
    Reply With Quote  
     

  10. Thankful user:


  11. #19  
    Registered Member
    Join Date
    Jul 2015
    Posts
    45
    Thanks given
    28
    Thanks received
    27
    Rep Power
    27
    Awesome .
    Reply With Quote  
     

  12. #20  
    Registered Member
    Join Date
    May 2010
    Posts
    220
    Thanks given
    15
    Thanks received
    10
    Rep Power
    7
    Not adding users to database when they donate.
    Attached image
    Reply With Quote  
     

Page 2 of 3 FirstFirst 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 0
    Last Post: 03-24-2015, 08:02 PM
  2. Replies: 16
    Last Post: 10-14-2013, 03:01 AM
  3. Replies: 0
    Last Post: 04-10-2011, 01:18 PM
  4. Replies: 0
    Last Post: 06-26-2010, 02:09 PM
  5. Replies: 2
    Last Post: 12-05-2008, 03:05 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •