Some more small bug-fixes and some minor features
This has only been updated in the 1.0.0 RC2 Development release (From http://sourcebans.net/snaps.php)
Changes: - Rev46 -> Rev50
- Fixed LOOOTS of problems with the installer
- Removed the ADODB library folder from install dir, now uses the one in the root folder.
- Removed TinyMCE folder in install dir (no idea why this was there)
- Added installer check for /themes_c to be writable
- Added check for missing information on page 5 (setup main admin)
- Fixed players not showing up in IE (pages load slower, so IE has ruined it for all of us >:/) - http://www.getfirefox.com ;)
- Fixed small problem when getting info from the PROXY server
- The Proxy server is now back online, Users who have shit hosts can now query our server to retrieve server, and player data.
- Added new native (SBBanPlayer) for external plugins to ban through SourceBans
sourcebans.inc
Code:
#if defined _sourcebans_included
#endinput
#endif
#define _sourcebans_included
public SharedPlugin:__pl_sourcebans =
{
name = "SourceBans",
file = "sourcebans.smx",
required = 0
};
public __pl_sourcebans_SetNTVOptional()
{
MarkNativeAsOptional("SBBanPlayer");
}
/*********************************************************
* Ban Player from server
*
* @param client The client index of the admin who is banning the client
* @param target The client index of the player to ban
* @param time The time to ban the player for (in minutes, 0 = permanent)
* @param reason The reason to ban the player from the server
* @noreturn
*********************************************************/
native SBBanPlayer(client, target, time, String:reason[]);
//Yarr!
sourcebans_sample.sp
Code:
/**
* sourcebans.sp
*
* This file contains all Source Server Plugin Functions
* @author SteamFriends Development Team
* @version 0.0.0.$Rev: 108 $
* @copyright SteamFriends (www.steamfriends.com)
* @package SourceBans
* @link http://www.sourcebans.net
*/
#pragma semicolon 1
#include <sourcemod>
#include <sourcebans>
#undef REQUIRE_PLUGIN
#include <adminmenu>
#include "dbi.inc"
public Plugin:myinfo =
{
name = "SourceBans Sample Plugin",
author = "SteamFriends Development Team",
description = "Sample plugin to show SourceBans functionality",
version = "1.0.0 RC2",
url = "http://www.sourcebans.net"
};
public banSample()
{
new client = 1;
SBBanPlayer(client, client, 5, "Ohnoes i banned myself");
}
Downloads:
The snapshots have been updated, and the links for the updated version are here:
sourcebans_RC2_50-2008-01-10.zip - (6.92 MB)
sourcebans_RC2_50-2008-01-10.tar.gz - (6.30 MB)
Changed files:
M /trunk/changelog.txt
M /trunk/game_upload/addons/sourcemod/plugins/sourcebans.smx
A /trunk/game_upload/addons/sourcemod/plugins/sourcebans_sample.smx
A /trunk/game_upload/addons/sourcemod/scripting/include
A /trunk/game_upload/addons/sourcemod/scripting/include/sourcebans.inc
M /trunk/game_upload/addons/sourcemod/scripting/sourcebans.sp
A /trunk/game_upload/addons/sourcemod/scripting/sourcebans_sample.sp
M /trunk/web_upload/includes/CServerInfo.php
M /trunk/web_upload/pages/page.servers.php
M /trunk/web_upload/themes/default/page_servers.tpl
D /trunk/web_upload/install/includes/adodb
M /trunk/web_upload/install/includes/css.php
D /trunk/web_upload/install/includes/tinymce
M /trunk/web_upload/install/init.php
M /trunk/web_upload/install/scripts/sourcebans.js
M /trunk/web_upload/install/template/content.header.php
M /trunk/web_upload/install/template/footer.php
M /trunk/web_upload/install/template/header.php
M /trunk/web_upload/install/template/page.2.php
M /trunk/web_upload/install/template/page.3.php
M /trunk/web_upload/install/template/page.4.php
M /trunk/web_upload/install/template/page.5.php
[ m = Modified - D = Deleted - A = Added ]
Once again (just to bump the link) could you please post bugs, and requests here (
http://sourcebans.net/bugs/index.php?project=2)
Keep Bannin`
Olly
__________________