Customizing SMF > Mod Requests

Automatic Admin after Payment

(1/4) > >>

erick6one9:
Hey. I just wanted to ask if anyone knows if this mod exists, or if someone can make this mod for me.
Description:
This is just basically, as the title says, when someone buys admin on my website, it will go to FTP, or whatever it is it goes to, and edit a .ini file, and add a user's name in it, so it will give them admin.
So, it has an "Buy Admin" button, with some different choices to choose from, such as, 1 Month Admin - $$, and 2 Month Admin - $$. Then when the payment is made, it edits an .ini file, and add a user's name in it. It seems pretty simple, but I can't do this, since I have no knowledge in PayPal API, nor in PHP. If you need some more detail, I would be happy to give you some more detail.
Thanks!

Arantor:
Why do you need it to edit an .ini file? SMF can quite happily add users to groups (and you can look that up in a variety of ways)

If you're referring to making people forum admins, there are a large bunch of reasons NOT to do this. Never mind the fact that your website can and will be compromised, you're essentially giving anyone who buys admin level access the ability to access any and all private data on the server - that is to say email addresses, IP addresses and even password hashes meaning that it's not impossible that their passwords will be compromised.

I hope I don't need to explain further why these are problems.

erick6one9:

--- Quote from: Arantor on June 19, 2012, 06:58:20 PM ---Why do you need it to edit an .ini file? SMF can quite happily add users to groups (and you can look that up in a variety of ways)

If you're referring to making people forum admins, there are a large bunch of reasons NOT to do this. Never mind the fact that your website can and will be compromised, you're essentially giving anyone who buys admin level access the ability to access any and all private data on the server - that is to say email addresses, IP addresses and even password hashes meaning that it's not impossible that their passwords will be compromised.

I hope I don't need to explain further why these are problems.

--- End quote ---

I didn't mean admin on the website. Sorry, if I didn't give enough info. I meant giving admin in a game server.

Arantor:
The more information you can give, the better.

It is likely that it will not work properly upon trying to do that, given how SMF handles its usernames and a few other things... but without more details it's impossible to say.

erick6one9:

--- Quote from: Arantor on June 19, 2012, 07:16:09 PM ---The more information you can give, the better.

--- End quote ---

Alright. Well again, once Admin is bought, payment is done, and everything. It'll go edit a file in my FTP, called users.ini, and it will add the user's name in it. I don't know any other way to explain it. So that's pretty much it. I got a quote from another forum, that gives better info.
--- Quote ---No matter how you make it, the core code has nothing to do with AMXX. You have to have a payment gateway that handles the payment and everything else first, which can't be done with AMXX. The script handling the gateway can either edit the users.ini file or the SQL database and then use RCON to reload the admins or just let the admins reload on mapchange.
--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version