This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Sourcemod Webadmin (Updated 12/05/2012)


Post New Thread Reply   
 
Thread Tools Display Modes
jungjunghoo
Senior Member
Join Date: Sep 2009
Old 03-17-2012 , 03:16   Re: Sourcemod Webadmin (Updated 31/12/2011)
Reply With Quote #561

I can't sql admin

Why ?

Table 'smwa.sb_admins' doesn't exist

like this....

I'm using sourceban system and here is my database.cfg

thank you
Code:
 
 
"Databases"
{
 "driver_default"  "mysql"
 
 "sourcebans"
 {
  "driver"   "mysql"
  "host"    "localhost"
  "database"   "sb"
  "user"    "root"
  "pass"    "pass"
  //"timeout"   "0"
  "port"   "3306"
 }
 
 "smwa"
 {
  "driver"   "mysql"
  "host"    "localhost"
  "database"   "smwa"
  "user"    "root"
  "pass"    "pass"
  //"timeout"   "0"
  "port"   "3306"
 }
 
 "chatlogs"
 {
  "driver"   "mysql"
  "host"    "localhost"
  "database"   "smwa"
  "user"    "root"
  "pass"    "pass"
  //"timeout"   "0"
  "port"   "3306"
 }
 
 
 "storage-local"
 {
  "driver"   "sqlite"
  "database"   "sourcemod-local"
 }
}
jungjunghoo is offline
Jumpman
Senior Member
Join Date: Mar 2010
Location: Denmark
Old 03-23-2012 , 19:04   Re: Sourcemod Webadmin (Updated 31/12/2011)
Reply With Quote #562

Is it possible to make the system so when you ban a player you can se what server the player is banned on ?
Jumpman is offline
excalibur
Junior Member
Join Date: Mar 2010
Old 05-04-2012 , 04:49   Re: Sourcemod Webadmin (Updated 31/12/2011)
Reply With Quote #563

Check your PM HSFighter, you got a security bug in your code
excalibur is offline
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 05-12-2012 , 07:50   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #564

Dear Community,

the version "2.2 Beta B" of the Sourcemod Webadmin is finish.

This version includes mostly fixes and some new futures.
Download and Changelog in the first post.

It is strongly recommended that users of older versions
(older than 2.2 Beta B) update as soon as possible.
I resolved an important security issue.
__________________



Sorry for my very bad english
Greetings HSFighter

Last edited by HSFighter; 05-12-2012 at 07:51.
HSFighter is offline
Send a message via ICQ to HSFighter
excalibur
Junior Member
Join Date: Mar 2010
Old 05-12-2012 , 08:58   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #565

;)
excalibur is offline
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 05-12-2012 , 11:53   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #566

Does this integrate with Sourcebans at all? Unfortunately I cannot move away from SB easily, but would like for it to be controllable in one location. I see options asking for the database information, but where is it?

Edit: Bug Report
If you click on the "Go to page" links for Extended Comms, it doesn't go to the right page, it goes back to the plugin listing page. This is because it's missing the plugin name variable in the URL.
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d

Last edited by daleGEND; 05-12-2012 at 12:05.
daleGEND is offline
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 05-14-2012 , 18:39   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #567

Quote:
Originally Posted by daleGEND View Post
Does this integrate with Sourcebans at all? Unfortunately I cannot move away from SB easily, but would like for it to be controllable in one location. I see options asking for the database information, but where is it?

Edit: Bug Report
If you click on the "Go to page" links for Extended Comms, it doesn't go to the right page, it goes back to the plugin listing page. This is because it's missing the plugin name variable in the URL.
Thank you for the Feedback.

You can use Webadmin for admins and Sourcebans for Bans to.
You need only disable the ingame admin part of Sourcebans,
and install the SQL-Admins from AlliedModders LLC.
I use Sourcebans and Sourcemod-Webadmin together on my Servers.

The Database settings for SB in the Webadmin it's using to import Ban to the SQL-Ban-Plugin.
But i will add a Sourcebans-Admin Import/export function to the next version.
__________________



Sorry for my very bad english
Greetings HSFighter

Last edited by HSFighter; 05-14-2012 at 19:52.
HSFighter is offline
Send a message via ICQ to HSFighter
Acidpimp
New Member
Join Date: May 2012
Old 05-17-2012 , 03:36   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #568

I keep getting this error when setting up your script.. FYI i have set up the sql part on sourcemod and i am pretty computer literate.


Code:
Notice:  Undefined variable: x in /home/kr3w/public_html/webmin/setup.php on line 177

Query: CREATE TABLE sm_servers( id int(10) PRIMARY KEY auto_increment,
ip varchar(15) NOT NULL default '',
port int(10) NOT NULL default '',
name varchar(200) default NULL,
UNIQUE KEY (ip,port)) 

Antwort: Invalid default value for 'port'
Above is the only thing i still dont understand but i got it working by manually adding the stuff to mysql and putting the default port value to 27015(hope this is okay).....

Okay the script works as far as adding admins to the Database, but when i add a sever to the list the status says offline and i cannot manage the plugins on the server. i would like to be able to fully use the plugin if you can please get back to me asap

While installing Sourcebans i had an issue with the servers not responding on there as well.. figured out you gotta have your web host open the ports for you so the server can respond... everything works wonderfully now in case anyone else has this issue refer to the sourcebans article about it...
Code:
http://sourcebans.net/faq/which-ports-does-sourcebans-webpanel-require-be-open
!!!SOLVED!!!

Last edited by Acidpimp; 05-18-2012 at 03:38. Reason: Solved issue
Acidpimp is offline
v1uuu
New Member
Join Date: Dec 2011
Old 05-21-2012 , 08:45   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #569

Don't know if i downloaded the right version, but the chatlog of the new version is buggy for me.
When i try to open the chatlog in the Webinterface it says that the function "MysqlBansToArray" cannot be called. In the older versions the mentioned function was in function.php, but in the latest version it's not there anymore. It worked fine after i copied the function from the older php file to the latest file. Maybe you forgot to add the function or something.

EDIT: Just tried to view MySQL Bans in the WebInterface and then i got an error that MysqlBansToArray can't be declared a second time. Therefore it should work for both plugins if you cut the function from mysqlbans.php and paste it into function.php.

The function should look like this:
PHP Code:
 function MysqlBansToArray($table$steamid){

 
//define bans-array
  
$bans = array();
  
//Set startvalue of counter
  
$x 0;
  
// Read Sourcebans banlist
  
if ($steamid == ""){
    
$sql "SELECT * FROM ".$table."";
  }else{
    
$sql "SELECT * FROM ".$table." WHERE steam_id = '".$steamid."'";
  }
  
$result mysql_query($sql) OR die(mysql_error());
  if(
mysql_num_rows($result)){
    while(
$row mysql_fetch_assoc($result)){
      
// Count bans-array key
      
$x++;
      
//apply MySQL-Bans banlistdata to array
      
$bans['name'][$x] = $row['player_name'];
      
$bans['steam'][$x] = $row['steam_id'];
      
$bans['ip'][$x] = $row['ipaddr'];
      
$bans['length'][$x] = $row['ban_length'] * 60;
      
$bans['date'][$x] = strtotime($row['timestamp']);
      
$bans['reason'][$x] = $row['ban_reason'];
      
$bans['admin'][$x] = $row['banned_by'];
     }    
  }
  
$bans['count'] = $x;
  return 
$bans;
 } 

Last edited by v1uuu; 05-22-2012 at 14:33.
v1uuu is offline
excalibur
Junior Member
Join Date: Mar 2010
Old 05-21-2012 , 08:47   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #570

same here, used the same fix as you did
excalibur 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:05.


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