![]() |
|
Kick/ban log and bans in database - Printable Version +- Las Venturas Playground (https://forum.sa-mp.nl) +-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html) +--- Forum: Development (https://forum.sa-mp.nl/forum-16.html) +--- Thread: Kick/ban log and bans in database (/thread-27767.html) Pages:
1
2
|
Kick/ban log and bans in database - MrBondt - 07-25-2011 Lately I've been working more and more around the limitations of the !why command by using shell commands from IRC. Of course, this could be fixed by reinstating the ban portal, but in the current setup this is actually not an easy task. I know this because I've seriously tried to fix it, a long long time ago. (I see you asking: why did nothing happen after that? Answer: because this is LVP.) Anyway. I don't intend to continue with riddling the LVP channels with my work-around skills, so therefore I'm starting this topic to initiate a change in key architectures. Everything will be saved in the database. Everything. I'm saying everything. So if you still find something that's stored in a file and I didn't mention anything about that in this post, reply. Bans will be stored in the database. The kick/ban log (kblog.txt) will be stored in the database as well. This allows automatic synchronization to the web server, as well as automatic back-ups. Especially the synchronization part is interesting here, like for instance, for restoring the ban portal. Now, obviously, a change like this isn't done in a day or two. That's why I want to do this in steps. Here goes.
When everything is found to be working fine, we can disable kblog.txt and stuff. As you can see, most work is on my side, however, I need the help from one or two gamemode developers. As I work fulltime now, I won't have much time to work on this. I also want to work on some other projects in my free time, and sometimes do something else aside from programming. So this is pretty much a very long term project. Discuss. Re: Kick/ban log and bans in database - Matthias - 07-25-2011 I have no problems helping with updating the gamemode, if you want I could also help with the online ban log (even though I'm not able to write PHP as beautiful as you can :p, but it'll work). And do you want this to go live together with LVP 2.94 or beforehand? I would prefer a seperate update for this. Re: Kick/ban log and bans in database - MrBondt - 07-25-2011 Well, first I want to think up a proper database design and cook some import script. So until that's done (at least the database design), you won't have anything to work with anyway. When's it done? Well, not soonish. Expect it the soonest 2 weeks from now. I don't know when LVP 2.94 is meant to go live however, but we can always wait. Re: Kick/ban log and bans in database - Matthias - 07-25-2011 I could try to make the import script once I have the database structure if you want. Re: Kick/ban log and bans in database - Richard - 08-17-2011 Just started a Crew Committee meeting and this came up. Any update on this?
Re: Kick/ban log and bans in database - MrBondt - 02-05-2012 Code: DROP TABLE IF EXISTS samp_bans;The structure has changed a bit while I was trial-and-erroring the import. The preferred way to insert new rows into samp_logs is as follows:
Re: Kick/ban log and bans in database - MrBondt - 02-05-2012 I'm currently working on an import script for the old log items. Pretty far already, will finish tomorrow. Re: Kick/ban log and bans in database - Kase - 02-06-2012 Cool, let me know! I'll be on IRC
Re: Kick/ban log and bans in database - MrBondt - 02-06-2012 I finished the import. I've also made a couple of changes to the table structure, which I've outlined in my edited post above. About the import:
Re: Kick/ban log and bans in database - MrBondt - 02-06-2012 http://forum.sa-mp.nl/index.php?topic=30167.0 Things to do on relative short term now:
|