Raised This Month: $ Target: $400
 0% 

Sql and web


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
asd13
Member
Join Date: Apr 2009
Old 04-04-2009 , 19:09   Sql and web
Reply With Quote #1

This is more like question.
Is it possible to do a sql plugin what is connected to a web and say there is a litle insert box. If i enter in the box like mp_freezetime 0 then server changes the cvar throu this plugin instantly the cvar what i have selected.
If it is possible somehow can someone to it ?

Sorry for my bad englis
+karma for any helper
asd13 is offline
DaxProxy
Senior Member
Join Date: Sep 2007
Old 04-04-2009 , 19:48   Re: Sql and web
Reply With Quote #2

Google.com - WebMod
DaxProxy is offline
asd13
Member
Join Date: Apr 2009
Old 04-04-2009 , 20:23   Re: Sql and web
Reply With Quote #3

Webmod sucks and as i have read it is a security risk.
But thantks anyway
asd13 is offline
OldWolf
Member
Join Date: Mar 2009
Old 04-04-2009 , 22:26   Re: Sql and web
Reply With Quote #4

This actually was a plugin I'm looking at creating, keep an eye out for it. Funny that you asked for it, because the reason I'm on right now is that I'm doing research for it.
OldWolf is offline
asd13
Member
Join Date: Apr 2009
Old 04-05-2009 , 06:59   Re: Sql and web
Reply With Quote #5

Oh nice to hear
asd13 is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-07-2009 , 04:52   Re: Sql and web
Reply With Quote #6

You can connect using PHP to the server via RCON ... and you can send whatever commands you like to the server directly without any plugins...
__________________
Hunter-Digital is offline
OldWolf
Member
Join Date: Mar 2009
Old 04-07-2009 , 20:28   Re: Sql and web
Reply With Quote #7

Quote:
Originally Posted by Hunter-Digital View Post
You can connect using PHP to the server via RCON ... and you can send whatever commands you like to the server directly without any plugins...
Do you happened to know how that's done? I'm very fluent with PHP, and I think that would be a great piece to the panel I'm making.
OldWolf is offline
asd13
Member
Join Date: Apr 2009
Old 04-07-2009 , 08:54   Re: Sql and web
Reply With Quote #8

like i know any php?
asd13 is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-07-2009 , 16:43   Re: Sql and web
Reply With Quote #9

Then learn something... either php or amxx, they have *relatively* the same scripting style, you can find scripts in php to send commands to a hlds server...

in amxx with sql it's more complicated... you need to reload the tables each X seconds... and also you need php knowledge (unless you manage your db another way...)
it's easy to say, you just add cvars in a two colum table (variable and value as colum names for example), the server gets the cvars added and then deletes them (because it loaded them and you need them there no more...)

but this method only gives you commands executed every X seconds (depending on plugin configuration, the task you set on what delay) rather than just sending a RCON command via php

Like I said, just search on google for some scripts, you might find one already made by someone, strip some useless code out and you got yourself a command line web page

so... bottom line... you must learn there aren't any "simple to use" things in scripting or programing
__________________
Hunter-Digital is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-08-2009 , 15:58   Re: Sql and web
Reply With Quote #10

no, I don't... that's why I said:
Quote:
Originally Posted by Hunter-Digital View Post
Like I said, just search on google for some scripts, you might find one already made by someone, strip some useless code out and you got yourself a command line web page
__________________
Hunter-Digital 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 02:24.


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