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

Global banlist


Post New Thread Reply   
 
Thread Tools Display Modes
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-29-2006 , 19:17   Re: Global banlist plugin
Reply With Quote #81

No, as of right now you have to go to the page and input the ban.. it should work in the in game browser, if you have an admin mod that can bring up the page for you.

I plan on adding support for banning from ingame, but I don't know how long it will take.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Falco
SourceMod Donor
Join Date: Dec 2004
Location: CANADA
Old 06-29-2006 , 19:22   Re: Global banlist plugin
Reply With Quote #82

Thanks, appreciate the help.
__________________
[DmZ|EPSILON CSS 70.75.139.92:27016
[DmZ|EPSILON GG 70.75.167.30:27015
[DmZ|EPSILON CS:GO Classic Casual 70.75.139.92:27013
[DmZ|EPSILON CS:GO Demolition 70.75.139.92:27014
[DmZ|EPSILON BF3 69.46.43.221:25203 (8-slot) Practice Server
www.dmzepsilon.ca
----------------------
Falco is offline
ShadoX
Junior Member
Join Date: Jul 2006
Old 07-03-2006 , 06:18   Re: Global banlist plugin
Reply With Quote #83

Hey, great plugin though doesn't seem to be banning me when i join as it should. Could you take a look at my settings and tell me if anything is wrong? Cheers

AMXBans is fully installed btw

I'm fairly sure my webserver is hosted on linux - my game server is on linux FC4

Website
I created a "plugin" directory in the main directory of amxbans. Created a temp directory - both chmod'ed to 777 (for the moment)

Put getupdates.php and config.php file in the "plugin" directory (step up from temp directory)

I have php 4.3.8 so i'm running in "text" mode as you describe it

Config file settings (DB stuff is correct so not included for obvious reasons)

Code:
    //Path to a temporary directory.. PHP must be able to write to this direcotry.
    $temp_path = "/*****/amxbanssource/plugin/temp/";
    
    //The number of hours that each server must wait before updating. 
    //This does not override the svar on the actual game server.
    //If they update more frequently then this, they get the old update file.
    $min_repeat = 0;
    
    //What are the table names for the ban and banhistory tables?
    //These are the default ones.
    $ban_table = "amx_bans";
    $unban_table = "amx_banhistory";

    //If you have php5 and the correct modules installed (php_pdo, php_pdo_sqlite)
    //Then you can set this to 1, and we will distribute sqlite update files instead.
    $use_sqlite = 0;
Note this is running off my ISP webspace so i don't have access to background gear and don't have a harddrive directory type address to the temp folder, only my internet address - I've previously tried the temp location as

Code:
$temp_path = "home.exetel.com.au/*****/*****/amxbanssource/plugin/temp/";
(I blanked out 2 directories cause i'd rather not post the exact address

Server
Game - Day of Defeat Source
Metamod source version - v1.2.3

banlist.cfg is

Code:
banlist_url http://home.exetel.com.au/****/*****/amxbanssource/plugin/
banlist_sqliteupdate 0
(Other stuff is trivial but FYI kick msg is default and ban time is 60, update time 1 hour)

Note i noticed in the database.sq has database creation type stuff (you know code to actually create database tables - i've attached it) the other file is completely empty.

In my server console after an update this is what i get
Quote:
20:11:46 L 07/03/2006 - 2135: [BL] Starting update
20:11:46 L 07/03/2006 - 2135: [BL] Downloading database updates
20:11:46 L 07/03/2006 - 2135: [BL] Download complete - 6
20:11:46 L 07/03/2006 - 2135: [BL] UPDATE config SET value='1151926415' WHERE key='lastupdate'
Note i've only got 1 id in my banned list (me), if the 6 above shows how many were downloaded then its seriously wrong

If you can see anything wrong that'd be great mate
Cheers
Attached Files
File Type: zip database.zip (550 Bytes, 125 views)

Last edited by ShadoX; 07-03-2006 at 06:20.
ShadoX is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 07-03-2006 , 07:24   Re: Global banlist plugin
Reply With Quote #84

banlist_url must be in quotes. The 6 is an error code.. it means hostname not found. If you look at banlist_url right now, it will just be "http://"
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
ShadoX
Junior Member
Join Date: Jul 2006
Old 07-03-2006 , 07:48   Re: Global banlist plugin
Reply With Quote #85

Ok i changed it too

Code:
banlist_url "http://home.exetel.com.au/****/*****/amxbanssource/plugin/"
also tried

Code:
banlist_url "home.exetel.com.au/****/*****/amxbanssource/plugin/"
no banning and i get this message now
Quote:
21:55:47 L 07/03/2006 - 23:178: [BL] Starting update
21:55:47 L 07/03/2006 - 23:178: [BL] Downloading database updates
21:55:47 L 07/03/2006 - 23:178: [BL] Download complete - 0
21:55:47 L 07/03/2006 - 23:178: [BL] UPDATE config SET value='1151932658' WHERE key='lastupdate'
and now my database.sql file is empty and the update.sq3 file seems to have a chunk of html in it - i've attached for you to look at

Cheers
Attached Files
File Type: zip update.zip (620 Bytes, 148 views)

Last edited by ShadoX; 07-03-2006 at 21:34.
ShadoX is offline
ShadoX
Junior Member
Join Date: Jul 2006
Old 07-03-2006 , 07:49   Re: Global banlist plugin
Reply With Quote #86

oops double post
ShadoX is offline
ShadoX
Junior Member
Join Date: Jul 2006
Old 07-03-2006 , 08:10   Re: Global banlist plugin
Reply With Quote #87

oh

is it possible to get a list a error codes? Saves me posting everytime if its something i can fix
ShadoX is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 07-03-2006 , 23:52   Re: Global banlist plugin
Reply With Quote #88

0 means it worked fine..

The problem now is the URL must be to the getupdates.php script, not the directory that it is in.

These are all the error codes:
Code:
typedef enum {
  CURLE_OK = 0,
  CURLE_UNSUPPORTED_PROTOCOL,    /* 1 */
  CURLE_FAILED_INIT,             /* 2 */
  CURLE_URL_MALFORMAT,           /* 3 */
  CURLE_URL_MALFORMAT_USER,      /* 4 (NOT USED) */
  CURLE_COULDNT_RESOLVE_PROXY,   /* 5 */
  CURLE_COULDNT_RESOLVE_HOST,    /* 6 */
  CURLE_COULDNT_CONNECT,         /* 7 */
  CURLE_FTP_WEIRD_SERVER_REPLY,  /* 8 */
  CURLE_FTP_ACCESS_DENIED,       /* 9 a service was denied by the FTP server
                                    due to lack of access - when login fails
                                    this is not returned. */
  CURLE_FTP_USER_PASSWORD_INCORRECT, /* 10 */
  CURLE_FTP_WEIRD_PASS_REPLY,    /* 11 */
  CURLE_FTP_WEIRD_USER_REPLY,    /* 12 */
  CURLE_FTP_WEIRD_PASV_REPLY,    /* 13 */
  CURLE_FTP_WEIRD_227_FORMAT,    /* 14 */
  CURLE_FTP_CANT_GET_HOST,       /* 15 */
  CURLE_FTP_CANT_RECONNECT,      /* 16 */
  CURLE_FTP_COULDNT_SET_BINARY,  /* 17 */
  CURLE_PARTIAL_FILE,            /* 18 */
  CURLE_FTP_COULDNT_RETR_FILE,   /* 19 */
  CURLE_FTP_WRITE_ERROR,         /* 20 */
  CURLE_FTP_QUOTE_ERROR,         /* 21 */
  CURLE_HTTP_RETURNED_ERROR,     /* 22 */
  CURLE_WRITE_ERROR,             /* 23 */
  CURLE_MALFORMAT_USER,          /* 24 - NOT USED */
  CURLE_FTP_COULDNT_STOR_FILE,   /* 25 - failed FTP upload */
  CURLE_READ_ERROR,              /* 26 - could open/read from file */
  CURLE_OUT_OF_MEMORY,           /* 27 */
  CURLE_OPERATION_TIMEOUTED,     /* 28 - the timeout time was reached */
  CURLE_FTP_COULDNT_SET_ASCII,   /* 29 - TYPE A failed */
  CURLE_FTP_PORT_FAILED,         /* 30 - FTP PORT operation failed */
  CURLE_FTP_COULDNT_USE_REST,    /* 31 - the REST command failed */
  CURLE_FTP_COULDNT_GET_SIZE,    /* 32 - the SIZE command failed */
  CURLE_HTTP_RANGE_ERROR,        /* 33 - RANGE "command" didn't work */
  CURLE_HTTP_POST_ERROR,         /* 34 */
  CURLE_SSL_CONNECT_ERROR,       /* 35 - wrong when connecting with SSL */
  CURLE_BAD_DOWNLOAD_RESUME,     /* 36 - couldn't resume download */
  CURLE_FILE_COULDNT_READ_FILE,  /* 37 */
  CURLE_LDAP_CANNOT_BIND,        /* 38 */
  CURLE_LDAP_SEARCH_FAILED,      /* 39 */
  CURLE_LIBRARY_NOT_FOUND,       /* 40 */
  CURLE_FUNCTION_NOT_FOUND,      /* 41 */
  CURLE_ABORTED_BY_CALLBACK,     /* 42 */
  CURLE_BAD_FUNCTION_ARGUMENT,   /* 43 */
  CURLE_BAD_CALLING_ORDER,       /* 44 - NOT USED */
  CURLE_INTERFACE_FAILED,        /* 45 - CURLOPT_INTERFACE failed */
  CURLE_BAD_PASSWORD_ENTERED,    /* 46 - NOT USED */
  CURLE_TOO_MANY_REDIRECTS ,     /* 47 - catch endless re-direct loops */
  CURLE_UNKNOWN_TELNET_OPTION,   /* 48 - User specified an unknown option */
  CURLE_TELNET_OPTION_SYNTAX ,   /* 49 - Malformed telnet option */
  CURLE_OBSOLETE,                /* 50 - NOT USED */
  CURLE_SSL_PEER_CERTIFICATE,    /* 51 - peer's certificate wasn't ok */
  CURLE_GOT_NOTHING,             /* 52 - when this is a specific error */
  CURLE_SSL_ENGINE_NOTFOUND,     /* 53 - SSL crypto engine not found */
  CURLE_SSL_ENGINE_SETFAILED,    /* 54 - can not set SSL crypto engine as
                                    default */
  CURLE_SEND_ERROR,              /* 55 - failed sending network data */
  CURLE_RECV_ERROR,              /* 56 - failure in receiving network data */
  CURLE_SHARE_IN_USE,            /* 57 - share is in use */
  CURLE_SSL_CERTPROBLEM,         /* 58 - problem with the local certificate */
  CURLE_SSL_CIPHER,              /* 59 - couldn't use specified cipher */
  CURLE_SSL_CACERT,              /* 60 - problem with the CA cert (path?) */
  CURLE_BAD_CONTENT_ENCODING,    /* 61 - Unrecognized transfer encoding */
  CURLE_LDAP_INVALID_URL,        /* 62 - Invalid LDAP URL */
  CURLE_FILESIZE_EXCEEDED,       /* 63 - Maximum file size exceeded */
  CURLE_FTP_SSL_FAILED,          /* 64 - Requested FTP SSL level failed */
  CURLE_SEND_FAIL_REWIND,        /* 65 - Sending the data requires a rewind
                                    that failed */
  CURLE_SSL_ENGINE_INITFAILED,   /* 66 - failed to initialise ENGINE */
  CURLE_LOGIN_DENIED,            /* 67 - user, password or similar was not
                                    accepted and we failed to login */
  CURLE_TFTP_NOTFOUND,           /* 68 - file not found on server */
  CURLE_TFTP_PERM,               /* 69 - permission problem on server */
  CURLE_TFTP_DISKFULL,           /* 70 - out of disk space on server */
  CURLE_TFTP_ILLEGAL,            /* 71 - Illegal TFTP operation */
  CURLE_TFTP_UNKNOWNID,          /* 72 - Unknown transfer ID */
  CURLE_TFTP_EXISTS,             /* 73 - File already exists */
  CURLE_TFTP_NOSUCHUSER,         /* 74 - No such user */
  CURL_LAST /* never use! */
} CURLcode;
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
ShadoX
Junior Member
Join Date: Jul 2006
Old 07-04-2006 , 00:36   Re: Global banlist plugin
Reply With Quote #89

so should i just add getupdates.php on the end on the url?
ShadoX is offline
ShadoX
Junior Member
Join Date: Jul 2006
Old 07-04-2006 , 04:23   Re: Global banlist plugin
Reply With Quote #90

change the line above, get a "0" returned but still get a big jumble of crap in my database file like in the first post

This works on DoDS doesn't it? The latest update didn't break it by any chance did it? (it broke alot of other things like mani admin/etc)

I get this in my server console when i manually exec the banlist.cfg file
Code:
Unknown command "banlist_update"
Unknown command "banlist_url"
Unknown command "banlist_kickreason"
Unknown command "banlist_banduration"
Unknown command "banlist_sqliteupdate"
rcon from "***.***.***.***:****": command "exec banlist.cfg"
rcon from "***.***.***.***:****": command ""
This happens when the plugin is loaded and when its unloaded, This'd be the problem i guess?

Last edited by ShadoX; 07-04-2006 at 04:27.
ShadoX 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 10:31.


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