AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   MySQL fetch information > write & read file (https://forums.alliedmods.net/showthread.php?t=156970)

s70rm3r 05-14-2011 13:43

MySQL fetch information > write & read file
 
Hello!

My friends and I have an idea for our website.
We want to add admins from the website to the servers with flags.
E.x. - Player , pass , flags , account flags

So.. is there any way that a plugin can read from the mysql tables and write on a file the information about the new admin (users.ini ?) with a duration (30 days , 60 days and so on).

Then it must activate the admin through the file.

Thanks in advance!

jimaway 05-14-2011 14:16

Re: MySQL fetch information > write & read file
 
http://wiki.amxmodx.org/Adding_Admin...mins_.28SQL.29
add an table row for duration end date or something and create cron job or something to check & remove expired admins
yay no amxx scripting needed

s70rm3r 05-14-2011 14:30

Re: MySQL fetch information > write & read file
 
The thing is that the idea was (maybe easier) to use a PHP form , write down the information for the new admin in the database. After that a plugin reads the database , activates the admin for a certain period.

The main idea is to have it on auto. (By paying with a simple SMS message)


All times are GMT -4. The time now is 04:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.