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

Sourcemod Webadmin (Updated 12/05/2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Jumpman
Senior Member
Join Date: Mar 2010
Location: Denmark
Old 12-13-2012 , 18:40   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #621

Now i have updated to smwa_2_2_beta_b + Fix_for_2_2_beta_b

Now i get this error when i click under Plugins and then MySQL Banning to see my ban list, thats not good i can not see the ban list anymore :-(
PHP Fatal error: Cannot redeclare mysqlbanstoarray() (previously declared in D:\wwwroot\41-xxxxxxx\sites\clandisa.dk\webadmin1\inc\funct ion.php:1879) in D:\wwwroot\41-xxxxxxx\sites\clandisa.dk\webadmin1\plugins\m ysqlbans.php on line 1015

Can someone please help me here ?
__________________
[+35]Jumpman

Last edited by Jumpman; 12-15-2012 at 03:39.
Jumpman is offline
Jumpman
Senior Member
Join Date: Mar 2010
Location: Denmark
Old 12-15-2012 , 05:54   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #622

Quote:
Originally Posted by Jumpman View Post
Now i have updated to smwa_2_2_beta_b + Fix_for_2_2_beta_b

Now i get this error when i click under Plugins and then MySQL Banning to see my ban list, thats not good i can not see the ban list anymore :-(
PHP Fatal error: Cannot redeclare mysqlbanstoarray() (previously declared in D:\wwwroot\41-xxxxxxx\sites\clandisa.dk\webadmin1\inc\funct ion.php:1879) in D:\wwwroot\41-xxxxxxx\sites\clandisa.dk\webadmin1\plugins\m ysqlbans.php on line 1015

Can someone please help me here ?
Is there any solutions to this problem ?

Line 1879 in funktion.php look like this
Code:
function MysqlBansToArray($table, $steamid){
Line 986 to 1015 in mysqlbans.php look like this
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;
 }
Perhaps it has something to do with funktion.php i don't know i'm no expert to .php so i hope you guys can help her ?
__________________
[+35]Jumpman
Jumpman is offline
Jumpman
Senior Member
Join Date: Mar 2010
Location: Denmark
Old 12-17-2012 , 03:50   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #623

No help at all ?
__________________
[+35]Jumpman

Last edited by Jumpman; 12-20-2012 at 03:46.
Jumpman is offline
noidea
AlliedModders Donor
Join Date: Jul 2006
Old 12-24-2012 , 02:40   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #624

Quote:
Originally Posted by Jumpman View Post
Now i have updated to smwa_2_2_beta_b + Fix_for_2_2_beta_b

Now i get this error when i click under Plugins and then MySQL Banning to see my ban list, thats not good i can not see the ban list anymore :-(
PHP Fatal error: Cannot redeclare mysqlbanstoarray() (previously declared in D:\wwwroot\41-xxxxxxx\sites\clandisa.dk\webadmin1\inc\funct ion.php:1879) in D:\wwwroot\41-xxxxxxx\sites\clandisa.dk\webadmin1\plugins\m ysqlbans.php on line 1015

Can someone please help me here ?
i just installed this and the only plugin that doesn't work for me is the mysqlbans just loads a blank page for me
PHP Fatal error: Cannot redeclare mysqlbanstoarray() (previously declared in /home/exotherm/public_html/sourcemod/inc/function.php:1879) in /home/exotherm/public_html/sourcemod/plugins/mysqlbans.php on line 1015


fixed it by deleting

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;
}

from plugins/mysqlbans.php

Last edited by noidea; 12-24-2012 at 02:46.
noidea is offline
noidea
AlliedModders Donor
Join Date: Jul 2006
Old 12-24-2012 , 03:38   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #625

found another problem

when uploading the admins via ftp it works but the files wrong

"STEAM_0:1:ID" "99:z" // namern"STEAM_0:1:ID" "z" // namern"STEAM_0:1:ID" "z" // namern
instead of
"STEAM_0:1:ID" "99:z" // name
"STEAM_0:1:ID" "z" // name
"STEAM_0:1:ID" "z" // name
noidea is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 01-01-2013 , 22:24   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #626

I am performing a new install and have run into this error:
Code:
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'
Which is indeed an issue since an empty string can not be assigned to an int column
naris is offline
r0xi
BANNED
Join Date: Oct 2012
Location: Sofia
Old 01-12-2013 , 19:09   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #627

and who is my user ? not request ...my user and password for loggin to "webadmin"
r0xi is offline
Send a message via AIM to r0xi Send a message via Yahoo to r0xi Send a message via Skype™ to r0xi
Jumpman
Senior Member
Join Date: Mar 2010
Location: Denmark
Old 01-12-2013 , 19:27   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #628

you could start reading readme_en.txt then come back and say sorry i did not read that file :-)
__________________
[+35]Jumpman
Jumpman is offline
r0xi
BANNED
Join Date: Oct 2012
Location: Sofia
Old 01-12-2013 , 19:51   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #629

ok, thanks, bud add my server and faill all

Quote:
Warning: Cannot modify header information - headers already sent by (output started at /home2/qclan/public_html/inc/config.php:117) in /home2/qclan/public_html/inc/logged_in.php on line 94

Warning: Cannot modify header information - headers already sent by (output started at /home2/qclan/public_html/inc/config.php:117) in /home2/qclan/public_html/inc/logged_in.php on line 95
Quote:
The page you are looking for is temporarily unavailable.
Please try again later.

Last edited by r0xi; 01-12-2013 at 19:52.
r0xi is offline
Send a message via AIM to r0xi Send a message via Yahoo to r0xi Send a message via Skype™ to r0xi
ShadowBlade
New Member
Join Date: Feb 2012
Old 01-19-2013 , 13:40   Re: Sourcemod Webadmin (Updated 12/05/2012)
Reply With Quote #630

I am having a problem and am hoping there is a fix.

When I use the Export FTP upload option instead of creating a new line in the .cfg it prints the text rn. So it is like this
"Admins"rn[rn
instead of
"admins"
[
It works right when I save the file instead of upload it, it does this same thing with all the files, admin_groups.cfg, admins.cfg. But only when I chose upload, does anyone know how to fix this?
ShadowBlade 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 12:03.


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