Raised This Month: $ Target: $400
 0% 

Release Legacy SourceBans 1.4.11 (Updated 2014/02/17)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 12-22-2007 , 21:24   Re: SourceBans (1.0.0 RC1d)
#211

Quote:
Originally Posted by HSFighter View Post
You were until now always my contact to the DEV Team and the Project,
and i say thx for this support
Hehe, its because im the only one left working on it

Quote:
Originally Posted by urus View Post
version - RC2_37-2007-12-20

Everytime when i ban someone on a server i get in server console error (from sourcebans.log) :

[sourcebans.smx] Query failed! Field 'country' doesn't have a default value

Everytime when i unban player through webinterface i get same error (in banhistory table) and ban disappear from banlist.


Another bug:

Olly why the real ban time is 21:00 for example, but in Invoked on time is 18:00 !?
Ok, ill take a look
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 12-23-2007 , 09:41   Re: SourceBans (1.0.0 RC1d)
#212

it's cuz you're the only one with the time to work on it, what few opportunities I get to code it's usually working on ATAC.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 12-23-2007 , 13:18   Re: SourceBans (1.0.0 RC1d)
#213

Quote:
Originally Posted by HSFighter View Post
The ban in the (banned_user.cfg) is with my server not 5 min.
When i ban my self "0 = Permanent" the ban in the (banned_user.cfg)
is also Permanent! The same with banning 1 hour,
the ban in the banned_user.cfg is also 1 hour :-(
Still the same Problem with "RC2_42"
__________________



Sorry for my very bad english
Greetings HSFighter
HSFighter is offline
Send a message via ICQ to HSFighter
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 12-23-2007 , 16:20   Re: SourceBans (1.0.0 RC1d)
#214

Quote:
Originally Posted by FlyingMongoose View Post
it's cuz you're the only one with the time to work on it, what few opportunities I get to code it's usually working on ATAC.

hahahaha, your kidding right

I just fixed some small bits because of all of the requests. I dont have ANY time lol
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
urus
Senior Member
Join Date: Jan 2007
Old 12-23-2007 , 18:16   Re: SourceBans (1.0.0 RC1d)
#215

Quote:
Originally Posted by urus View Post
version - RC2_37-2007-12-20

Olly why the real ban time is 21:00 for example, but in Invoked on time is 18:00 !?
I absolutely don`t understand why all time in sourcebans displayed with backlog on three hours =). It`s crazy me...

With time in unixtime format in table bans all right. It real bantime - 1198454952. But after this line for example (page.banlist.php):

$data['ban_date'] = date('m-d-y H:i',$res->fields['ban_created']);

time displayed on Ban List backlog on three hours - 12-24-07 00:09:12


I try this line in :

$data['ban_date'] = $res->fields['ban_created'];

and it dysplay real time of ban in unixtime format - 1198454952


I try small php script and put there this unixtime:

Code:
<?php
$str = '1198454952';
echo date('m-d-y H:i', $str);
?>
And script return... real bantime - 12-24-07 03:09

It`s all on the same web server without any changes...
urus is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 12-23-2007 , 19:31   Re: SourceBans (1.0.0 RC1d)
#216

Quote:
Originally Posted by urus View Post
I absolutely don`t understand why all time in sourcebans displayed with backlog on three hours =). It`s crazy me...

With time in unixtime format in table bans all right. It real bantime - 1198454952. But after this line for example (page.banlist.php):

$data['ban_date'] = date('m-d-y H:i',$res->fields['ban_created']);

time displayed on Ban List backlog on three hours - 12-24-07 00:09:12


I try this line in :

$data['ban_date'] = $res->fields['ban_created'];

and it dysplay real time of ban in unixtime format - 1198454952


I try small php script and put there this unixtime:

Code:
<?php
$str = '1198454952';
echo date('m-d-y H:i', $str);
?>
And script return... real bantime - 12-24-07 03:09

It`s all on the same web server without any changes...
Maybe your server is setup with a weird locale or something

---------

In other news, for all you people looking for an AMX version like this, checkout this link: http://www.steamfriends.com/forums/s...ead.php?t=1094

__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
urus
Senior Member
Join Date: Jan 2007
Old 12-24-2007 , 09:56   Re: SourceBans (1.0.0 RC1d)
#217

Quote:
Originally Posted by Olly View Post
Maybe your server is setup with a weird locale or something
No it hardcoded in sourcebans.
I find it in init.php.

Code:
// ---------------------------------------------------
//  Setup PHP
// ---------------------------------------------------
ini_set('include_path', '.:/php/includes:' . INCLUDES_PATH .'/adodb');
ini_set('date.timezone', 'GMT');

if(function_exists('date_default_timezone_set')){
    date_default_timezone_set('GMT');
}else{
    putenv('TZ=GMT');
}
Possible variants of timezones here - http://us3.php.net/manual/en/timezones.php

Last edited by urus; 12-24-2007 at 16:09.
urus is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 12-24-2007 , 13:22   Re: SourceBans (1.0.0 RC1d)
#218

Quote:
Originally Posted by urus View Post
No it hardcoded in sourcebans.
I find it in init.php.

Code:
// ---------------------------------------------------
//  Setup PHP
// ---------------------------------------------------
ini_set('include_path', '.:/php/includes:' . INCLUDES_PATH .'/adodb');
ini_set('date.timezone', 'GMT');

if(function_exists('date_default_timezone_set')){
    date_default_timezone_set('GMT');
}else{
    putenv('TZ=GMT');
}
I changed GMT on GMT+3 and now all time dates shows correctly.

oh wow, i totally forgot about that :p
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
Gweedo
Member
Join Date: Aug 2007
Old 12-24-2007 , 17:56   Re: SourceBans (1.0.0 RC1d)
#219

Any reason why a ban from the server is added to the ban list 3 times?
Gweedo is offline
Jedi
Member
Join Date: Mar 2004
Location: Houston, TX
Old 12-24-2007 , 19:25   Re: SourceBans (1.0.0 RC1d)
#220

Quote:
Originally Posted by Gweedo View Post
Any reason why a ban from the server is added to the ban list 3 times?
I'm seeing the same thing, except with a twist. When I issue a temp ban (10 minutes), the ban shows up once in the ban list. However, when the ban expires, the ban then shows up 3 times in the ban list (as expired on each one).

Any ideas?
__________________
Jedi is offline
Closed Thread



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 20:39.


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