Raised This Month: $51 Target: $400
 12% 

Will this web interface work with Sourcemod?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bouncer
Veteran Member
Join Date: Apr 2009
Old 04-18-2010 , 09:11   Will this web interface work with Sourcemod?
Reply With Quote #1

I found a web interface for ban management, but its eventscripts. Its a really nice neat web interface.. I have been using sourcebans for a long time...but I think that this one would better suite us.

I was wondering if its possible to use that web interface but instead connect it with sourcemod?

Eventscripts addon: http://forums.eventscripts.com/viewtopic.php?t=14384
Web interface demo: http://www.steamgamers.com/banned/

Notice at the demo page on top, you can upload a demo, view ban list, ip ban list, and server list.

So what do you guys think? How could this be done?
__________________


bouncer is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 04-18-2010 , 09:52   Re: Will this web interface work with Sourcemod?
Reply With Quote #2

It can be done by rewriting the code using source pawn.
CrimsonGT is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 04-18-2010 , 10:25   Re: Will this web interface work with Sourcemod?
Reply With Quote #3

Well I don't want the server side plugin... I was thinking just maybe connecting the web interface to sourcemod and having all bans be on web interface...

Like use this instead of sourcebans.
__________________


bouncer is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-18-2010 , 13:56   Re: Will this web interface work with Sourcemod?
Reply With Quote #4

sourcebans uses MySQL
sourcebans writes bans using sourcePawn
__________________
Leonardo is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 04-18-2010 , 14:17   Re: Will this web interface work with Sourcemod?
Reply With Quote #5

K maybe I didnt state it clear... ill try saying it this way..

can the web interface be used with sourcemod by... making it read from the mysql database.

For example sourcebans uses mysql.. so lets just say it reads bans from a table named bans...so do the same thing with this web interface, make it read bans from bans table.

do you get my idea?
__________________


bouncer is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-18-2010 , 14:20   Re: Will this web interface work with Sourcemod?
Reply With Quote #6

> (...) making it read from the mysql database. (...)

apache + php + mysql = gentleman set o_O
__________________

Last edited by Leonardo; 04-18-2010 at 14:55.
Leonardo is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 04-18-2010 , 14:22   Re: Will this web interface work with Sourcemod?
Reply With Quote #7

huh?
__________________


bouncer is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-18-2010 , 14:26   Re: Will this web interface work with Sourcemod?
Reply With Quote #8

> (...) so lets just say it reads bans from a table named bans (...)

PHP Code:
<?
$db 
mysql_connect("localhost","login","password");
mysql_select_db("sourcebans"$db);
$query "SELECT * FROM sb_bans ORDER BY created DESC";
$result mysql_query($query,$db);
if(
mysql_num_rows($result)>0)
{
    while(
$row mysql_fetch_assoc($result))
    {
        
print_r($row);
        echo 
"<br/>";
    }
}
else
    echo 
"empty DB or incorrect query";
?>
__________________

Last edited by Leonardo; 04-18-2010 at 14:54.
Leonardo is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 04-18-2010 , 14:29   Re: Will this web interface work with Sourcemod?
Reply With Quote #9

what is that for?
__________________


bouncer is offline
Scone
Senior Member
Join Date: Apr 2010
Location: England
Old 04-18-2010 , 14:30   Re: Will this web interface work with Sourcemod?
Reply With Quote #10

Each of the web interfaces are coded specifically for their respective banning plugins, supporting the features, database structures and so on that each plugin does. Making one interface work with the other plugin would require a near total rewrite.
__________________
Scone 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 13:09.


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