Raised This Month: $ Target: $400
 0% 

MySQL fetch information > write & read file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
s70rm3r
Junior Member
Join Date: Dec 2008
Old 05-14-2011 , 13:43   MySQL fetch information > write & read file
Reply With Quote #1

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!
s70rm3r is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 05-14-2011 , 14:16   Re: MySQL fetch information > write & read file
Reply With Quote #2

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

Last edited by jimaway; 05-14-2011 at 14:20.
jimaway is offline
s70rm3r
Junior Member
Join Date: Dec 2008
Old 05-14-2011 , 14:30   Re: MySQL fetch information > write & read file
Reply With Quote #3

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)
s70rm3r is offline
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


All times are GMT -4. The time now is 18:15.


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