diff --git a/source/CubeMS/AcMasterserver.csproj b/source/CubeMS/AcMasterserver.csproj deleted file mode 100644 index 624f81d1..00000000 --- a/source/CubeMS/AcMasterserver.csproj +++ /dev/null @@ -1,90 +0,0 @@ - - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {A00CFDD5-210C-415F-A172-386E92A52D9B} - {349C5851-65DF-11DA-9384-00065B846F21};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Library - AcMasterserver - - - true - full - false - bin - DEBUG - prompt - 4 - - - none - false - bin - prompt - 4 - - - - - - - - False - ..\..\..\Desktop\master\Bin\ActionCube.dll - - - False - ..\..\..\Desktop\master\Bin\API.dll - - - False - ..\..\..\Desktop\master\Bin\Cube.dll - - - False - ..\..\..\Desktop\master\Bin\CubeEngineBase.dll - - - - - False - ..\..\..\Desktop\mysql-connector-net-6.1.2-noinstall\mysql.data.dll - - - - - - - - - - - - - - - - - - - - - - - Default.aspx - - - - - - - - - - - - - \ No newline at end of file diff --git a/source/CubeMS/AcMasterserver.pidb b/source/CubeMS/AcMasterserver.pidb deleted file mode 100644 index e1e660c7..00000000 Binary files a/source/CubeMS/AcMasterserver.pidb and /dev/null differ diff --git a/source/CubeMS/App_Code/CubeMS.cs b/source/CubeMS/App_Code/CubeMS.cs deleted file mode 100644 index ef1c45cf..00000000 --- a/source/CubeMS/App_Code/CubeMS.cs +++ /dev/null @@ -1,147 +0,0 @@ -using System; -using System.Data; -using System.Configuration; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; - -using System.Net; -using System.Xml; -using System.IO; -using System.Data.SqlClient; -using System.Text; - -using AHSoftware.CubeMon; -using AHSoftware.CubeMon.Games.ActionCube.v094; - -/// -/// Summary description for CubeMS -/// -public class CubeMS -{ - string connectionString; - - public string ConnectionString - { - get { return connectionString; } - set { connectionString = value; } - } - - private bool AddServer(IPEndPoint address, string name, string description) - { - SqlConnection con = new SqlConnection(connectionString); - SqlCommand cmd = new SqlCommand("AddServer", con); - cmd.CommandType = CommandType.StoredProcedure; - cmd.Parameters.AddWithValue("IP", IPTools.IPToInt(address.Address)); - cmd.Parameters.AddWithValue("Port", address.Port); - cmd.Parameters.AddWithValue("Name", name); - cmd.Parameters.AddWithValue("Description", description); - try - { - con.Open(); - cmd.ExecuteNonQuery(); - return true; - } - catch - { - return false; - } - finally - { - con.Close(); - } - } - - public bool Register(IPEndPoint address) - { - Client c = new Client(); - c.Socket = new IPEndPoint(address.Address, address.Port+1); - ServerInfo info = null; - try - { - info = (ServerInfo) c.RequestInfo(); - } - catch - { - return false; - } - - string name = string.Empty; - try - { - name = Dns.GetHostEntry(info.Socket.Address).HostName; - } - catch { }; - - return AddServer(address, name, info.Description); - } - - public string GetServers(bool xml) - { - SqlConnection con = new SqlConnection(connectionString); - SqlCommand cmd = new SqlCommand(xml ? "GetServersXML" : "GetServers", con); - cmd.CommandType = CommandType.StoredProcedure; - try - { - con.Open(); - SqlDataReader r = cmd.ExecuteReader(); - StringBuilder sb = new StringBuilder(); - - if(xml) - { - // sql server handles xml conversion for us, just embed in a new xmldoc - sb.AppendLine(""); - sb.AppendLine(""); - if(r.Read()) - { - sb.AppendLine(r[0] as string); - } - sb.AppendLine(""); - } - else - { - // construct server list as cubescript - while(r.Read()) - { - sb.AppendFormat("addserver {0} {1};{2}", IPTools.IntToIp((int)r["IP"]).ToString(), r["Port"], Environment.NewLine); - } - } - - return sb.ToString(); - } - catch - { - return null; - } - finally - { - con.Close(); - } - } - - public string GetClientScript(string HTTPAgent) - { - SqlConnection con = new SqlConnection(connectionString); - SqlCommand cmd = new SqlCommand("GetClientScript", con); - cmd.CommandType = CommandType.StoredProcedure; - cmd.Parameters.AddWithValue("HTTPAgent", HTTPAgent); - try - { - con.Open(); - SqlDataReader r = cmd.ExecuteReader(); - r.Read(); - return r["Script"] as string; - } - catch - { - return null; - } - finally - { - con.Close(); - } - } -} diff --git a/source/CubeMS/App_Code/CubeMasterDAL.cs b/source/CubeMS/App_Code/CubeMasterDAL.cs deleted file mode 100644 index 045c0fcc..00000000 --- a/source/CubeMS/App_Code/CubeMasterDAL.cs +++ /dev/null @@ -1,235 +0,0 @@ -using System; -using System.Data; -using System.Data.Common; -using System.Configuration; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; - -using System.Net; -using System.Xml; -using System.IO; -//using System.Data.SqlClient; -using System.Text; -using System.Linq; -using MySql.Data.MySqlClient; - - -using AHSoftware.CubeMon; -using AHSoftware.CubeMon.Games.ActionCube.v094; - -/// -/// Summary description for CubeMS -/// -public class CubeMasterDAL -{ - string connectionString; - //DbProviderFactory factory; - - public string ConnectionString - { - get { return connectionString; } - set { connectionString = value; } - } - - public CubeMasterDAL() - { - // factory = new MySql.Data.MySqlClient.MySqlClientFactory(); - } - - IDbConnection CreateConnection() - { - IDbConnection con = new MySqlConnection(); //factory.CreateConnection(); - con.ConnectionString = ConnectionString; - //con.Open(); - return con; - } - - private void AddServer(IPEndPoint address, string name, string description) - { - //SqlConnection con = new SqlConnection(connectionString); - //SqlCommand cmd = new SqlCommand("AddServer", con); - - IDbConnection con = CreateConnection(); - IDbCommand cmd = con.CreateCommand(); - cmd.CommandText = "DELETE FROM Servers WHERE IP=@IP AND Port=@Port; INSERT INTO Servers VALUES(@IP, @Port, @Name, @Description, @Date)"; - - var param = cmd.CreateParameter(); - param.ParameterName = "IP"; - param.Value = IPTools.IPToInt(address.Address); - cmd.Parameters.Add(param); - - param = cmd.CreateParameter(); - param.ParameterName = "Port"; - param.Value = address.Port; - cmd.Parameters.Add(param); - - param = cmd.CreateParameter(); - param.ParameterName = "Name"; - param.Value = name; - cmd.Parameters.Add(param); - - param = cmd.CreateParameter(); - param.ParameterName = "Description"; - param.Value = description; - cmd.Parameters.Add(param); - - param = cmd.CreateParameter(); - param.ParameterName = "Date"; - param.Value = DateTime.Now; - cmd.Parameters.Add(param); - - Console.WriteLine("opening"); - con.Open(); - cmd.ExecuteNonQuery(); - Console.WriteLine("done"); - } - - public void Register(IPEndPoint address) - { - Client c = new Client(); - c.Socket = new IPEndPoint(address.Address, address.Port + 1); - ServerInfo info = null; - try - { - info = (ServerInfo)c.RequestInfo(); - } - catch - { - throw new ApplicationException("Could not ping you. Make sure your server is accessible from the internet."); - } - - string name = string.Empty; - try - { - name = Dns.GetHostEntry(info.Socket.Address).HostName; - } - catch { }; - - if (info.MaxClients > 20) - { - throw new ApplicationException("Your server must have a maxclients setting of 20 or less. Check your configuration."); - } - - AddServer(address, name, info.Description); - } - - public string GetServers(bool xml) - { - System.Diagnostics.Debug.Assert(xml == false); - - - - IDbConnection con = CreateConnection(); - IDbCommand cmd = con.CreateCommand(); //new SqlCommand(xml ? "GetServersXML" : "GetServers", con); - cmd.CommandText = "DELETE FROM Servers WHERE LastModified + INTERVAL 70 MINUTE < NOW(); SELECT * FROM Servers;"; // fixme, xml - - try - { - con.Open(); - IDataReader r = cmd.ExecuteReader(); - StringBuilder sb = new StringBuilder(); - - if(xml) - { - // sql server handles xml conversion for us, just embed in a new xmldoc - sb.AppendLine(""); - sb.AppendLine(""); - if(r.Read()) - { - sb.AppendLine(r[0] as string); - } - sb.AppendLine(""); - } - else - { - // construct server list as cubescript - while(r.Read()) - { - sb.AppendFormat("addserver {0} {1};{2}", IPTools.IntToIp((int)r["IP"]).ToString(), r["Port"], Environment.NewLine); - } - } - - return sb.ToString(); - } - catch - { - return null; - } - finally - { - con.Close(); - } - } - - public string GetClientScript(string HTTPAgent) - { - IDbConnection con = CreateConnection(); - IDbCommand cmd = con.CreateCommand(); // new SqlCommand("GetClientScript", con); - //cmd.Parameters.AddWithValue("HTTPAgent", HTTPAgent); - cmd.CommandText = "SELECT * FROM ClientScripts WHERE HTTPAgent = @HTTPAgent"; - - var param = cmd.CreateParameter(); - param.ParameterName = "HTTPAgent"; - param.Value = HTTPAgent; - cmd.Parameters.Add(param); - - try - { - con.Open(); - IDataReader r = cmd.ExecuteReader(); - r.Read(); - return r["Script"] as string; - } - catch - { - return null; - } - finally - { - con.Close(); - } - } - - public enum EventType : int - { - RegistrationFailed = 0, - RegistrationSuceeeded, - RetrieveServers, - Exception, - } - - public void AddEvent(EventType type, string data, IPEndPoint address) - { - IDbConnection con = CreateConnection(); - IDbCommand cmd = con.CreateCommand(); //new SqlCommand("AddEvent", con); - cmd.CommandText = "INSERT INTO Events (Type, Data, IP, Time) VALUES (@Type, @Data, @IP, @Time)"; - - var param = cmd.CreateParameter(); - param.ParameterName = "Type"; - param.Value = type; - cmd.Parameters.Add(param); - - param = cmd.CreateParameter(); - param.ParameterName = "Data"; - param.Value = data; - cmd.Parameters.Add(param); - - param = cmd.CreateParameter(); - param.ParameterName = "IP"; - param.Value = IPTools.IPToInt(address.Address); - cmd.Parameters.Add(param); - - param = cmd.CreateParameter(); - param.ParameterName = "Time"; - param.Value = DateTime.Now; - cmd.Parameters.Add(param); - - con.Open(); - cmd.ExecuteNonQuery(); - con.Close(); - } -} diff --git a/source/CubeMS/App_Code/CubeMsRequestHandler.cs b/source/CubeMS/App_Code/CubeMsRequestHandler.cs deleted file mode 100644 index 39638ef6..00000000 --- a/source/CubeMS/App_Code/CubeMsRequestHandler.cs +++ /dev/null @@ -1,210 +0,0 @@ -using System; -using System.Data; -using System.Configuration; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; - -using System.Net; -using System.Xml; -using System.IO; -using System.Web.Configuration; -using System.Web.Caching; - -using AHSoftware.CubeMon; -using AHSoftware.CubeMon.Games.ActionCube.v094; - -/// -/// Summary description for RequestHandler -/// -public class CubeMsRequestHandler : IHttpHandler -{ - CubeMasterDAL masterDal; - ServerBlacklist blacklist; - int serverListCacheMinutes; - - public CubeMsRequestHandler() - { - masterDal = new CubeMasterDAL(); - masterDal.ConnectionString = WebConfigurationManager.ConnectionStrings["CubeMS"].ConnectionString; - serverListCacheMinutes = int.Parse(WebConfigurationManager.AppSettings["ServerListCacheMinutes"] ?? "0"); - - blacklist = new ServerBlacklist(HttpContext.Current.Server.MapPath("/Blacklist.xml")); - } - - #region IHttpHandler Members - - public bool IsReusable - { - get { return false; } - } - - public void ProcessRequest(HttpContext context) - { - - string serverAddress = context.Request.UserHostAddress; - - IPEndPoint address = new IPEndPoint(IPAddress.Parse(serverAddress), 0); - string requestFile = Path.GetFileName(context.Request.FilePath); - - try - { - if(requestFile == "register.do" && context.Request.QueryString["action"] == "add") - { - // fixme - //context.Response.ContentType = "text/plain"; - - try - { - address.Port = int.Parse(context.Request.QueryString["port"]); - } - catch - { - context.Response.Write("Server not registered, invalid request. Maybe you use an older server version?"); - masterDal.AddEvent(CubeMasterDAL.EventType.RegistrationFailed, "invalid request", address); - return; - } - - if (blacklist.IsBlacklisted(serverAddress) || context.Request.QueryString["bansample"] == "1") - { - /* - context.Response.Write(RickRoll.RickRollMeNow()); - context.Response.Flush(); - */ - - - string lyrics = RickRoll.RickRollMeNow(); - - using(StringReader reader = new StringReader(lyrics)) - { - string line = reader.ReadLine(); - while(line != null) - { - // rick roll them.. line by line - context.Response.Write(line); - context.Response.Write(Environment.NewLine); - context.Response.Flush(); - - //System.Threading.Thread.Sleep(250); - line = reader.ReadLine(); - } - } - - - context.Response.Write(Environment.NewLine); - context.Response.Write("Behave and try again in a few days.."); - masterDal.AddEvent(CubeMasterDAL.EventType.RegistrationFailed, "blacklisted", address); - return; - } - - try - { - masterDal.Register(address); - - // TODO: *DOS safety - context.Response.Write("Registration successful. Due to caching it might take a few minutes to see the your server in the serverlist"); - masterDal.AddEvent(CubeMasterDAL.EventType.RegistrationSuceeeded, null, address); - } - catch (Exception ex) - { - context.Response.Write("Server not registered: " + ex.Message + ex.StackTrace); - masterDal.AddEvent(CubeMasterDAL.EventType.RegistrationFailed, null, address); - } - } - else if(requestFile == "retrieve.do") - { - - string type = context.Request.QueryString["item"]; - if(type == "list") - { - // fixme - context.Response.ContentType = "text/plain"; - - - try - { - - // send server list - string servers = context.Cache[type] as string; - if(servers == null || servers.Length == 0) // empty cache, or empty server list - { - servers = masterDal.GetServers(false); - if(serverListCacheMinutes > 0) context.Cache.Add(type, servers, null, Cache.NoAbsoluteExpiration, new TimeSpan(0, serverListCacheMinutes, 0), CacheItemPriority.Normal, null); - } - - context.Response.Write(servers); - context.Response.Flush(); - masterDal.AddEvent(CubeMasterDAL.EventType.RetrieveServers, "list", address); - - // append client script if its an older or unknown client - if(bool.Parse((WebConfigurationManager.AppSettings["EnableClientScripts"] ?? "false")) && context.Request.UserAgent != WebConfigurationManager.AppSettings["ClientAgent"]) - { - string script = context.Cache["script"] as string; - if(script == null) - { - if((script = masterDal.GetClientScript(context.Request.UserAgent)) != null) - { - int cacheminutes = int.Parse(WebConfigurationManager.AppSettings["ClientScriptCacheMinutes"] ?? "0"); - context.Cache.Add("script", script, null, Cache.NoAbsoluteExpiration, new TimeSpan(0, cacheminutes, 0), CacheItemPriority.Normal, null); - } - } - - if(script != null) - { - context.Response.Write(script); - context.Response.Flush(); - masterDal.AddEvent(CubeMasterDAL.EventType.RetrieveServers, "script", address); - } - } - } - /* - catch - { - // send error to the client - context.Response.Write("echo [An error ocurred on the masterserver]"); - context.Response.Flush(); - throw; // log errors globally - } - */ - finally - { - } - } - else if(context.Request.QueryString["item"] == "xml") - { - context.Response.ContentType = "text/xml"; - - string serversXml = context.Cache[type] as string; - if(serversXml == null || serversXml.Length == 0) // empty cache, or empty server list - { - serversXml = masterDal.GetServers(true); - if(serverListCacheMinutes > 0) context.Cache.Add(type, serversXml, null, Cache.NoAbsoluteExpiration, new TimeSpan(0, serverListCacheMinutes, 0), CacheItemPriority.Normal, null); - } - - context.Response.Write(serversXml); - context.Response.Flush(); - - masterDal.AddEvent(CubeMasterDAL.EventType.RetrieveServers, "xml", address); - } - } - } - /* - catch(Exception ex) - { - try - { - // TODO: log all uncaught exceptions - // log.AddEvent(Log.EventType.Exception, ex.Message, address); - } - catch { } - }*/ - finally - { - } - } - - #endregion -} diff --git a/source/CubeMS/App_Code/IPTools.cs b/source/CubeMS/App_Code/IPTools.cs deleted file mode 100644 index 9028a907..00000000 --- a/source/CubeMS/App_Code/IPTools.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Data; -using System.Configuration; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; - -using System.Net; - -/// -/// Summary description for IPTools -/// -public static class IPTools -{ - public static int IPToInt(IPAddress address) - { - byte[] ip = address.GetAddressBytes(); - if(ip.Length == 4) return (int)(ip[0] | (ip[1] << 8) | (ip[2] << 16) | (ip[3] << 24)); - else return 0; - } - - public static IPAddress IntToIp(int address) - { - byte[] octets = { (byte)(address & 0xFF), (byte)((address >> 8) & 0xFF), (byte)((address >> 16) & 0xFF), (byte)((address >> 24) & 0xFF) }; - return new IPAddress(octets); - } -} diff --git a/source/CubeMS/App_Code/Log.cs b/source/CubeMS/App_Code/Log.cs deleted file mode 100644 index 325a0475..00000000 --- a/source/CubeMS/App_Code/Log.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using System.Data; -using System.Configuration; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; - -using System.IO; -using System.Xml; -using System.Net; -using System.Data.SqlClient; - -/// -/// Summary description for Log -/// -public class Log -{ - public enum EventType : int - { - RegistrationFailed = 0, - RegistrationSuceeeded, - RetrieveServers, - Exception, - } - - public void AddEvent(EventType type, string data, IPEndPoint address) - { - SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["CubeMS"].ConnectionString as string); - SqlCommand cmd = new SqlCommand("AddEvent", con); - cmd.CommandType = CommandType.StoredProcedure; - cmd.Parameters.AddWithValue("Type", type); - cmd.Parameters.AddWithValue("Data", data); - cmd.Parameters.AddWithValue("IP", IPTools.IPToInt(address.Address)); - con.Open(); - cmd.ExecuteNonQuery(); - con.Close(); - } -} diff --git a/source/CubeMS/App_Code/RickRoll.cs b/source/CubeMS/App_Code/RickRoll.cs deleted file mode 100644 index e8c33acf..00000000 --- a/source/CubeMS/App_Code/RickRoll.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -/// -/// Summary description for RickRoll -/// -public static class RickRoll -{ - - static readonly string lyrics = @"Never gonna give you up. -Never gonna let you down. -Never gonna run around and desert you. -Never gonna make you cry. -Never gonna say goodbye. -Never gonna tell a lie and hurt you. "; - - public static string RickRollMeNow() - { - return lyrics; - } - -} diff --git a/source/CubeMS/App_Code/ServerBlacklist.cs b/source/CubeMS/App_Code/ServerBlacklist.cs deleted file mode 100644 index 7c26aaa8..00000000 --- a/source/CubeMS/App_Code/ServerBlacklist.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Xml.Linq; - -/// -/// Summary description for ServerBlacklist -/// -public class ServerBlacklist -{ - List serverIps = new List(); - - public ServerBlacklist(string blacklistFile) - { - XDocument document = XDocument.Load(blacklistFile); - var servers = document.Descendants("Server"); - foreach (var server in servers) - { - serverIps.Add(server.Attribute("IP").Value); - } - } - - public bool IsBlacklisted(string serverIp) - { - return serverIps.Contains(serverIp); - } - -} diff --git a/source/CubeMS/App_Themes/Pro/StyleSheet.css b/source/CubeMS/App_Themes/Pro/StyleSheet.css deleted file mode 100644 index 0aa7b503..00000000 --- a/source/CubeMS/App_Themes/Pro/StyleSheet.css +++ /dev/null @@ -1,9 +0,0 @@ -body -{ - Font-family: "Bitstream Vera Serif", Cambria, Baskerville, Palatino, Georgia, Times, "Times New Roman", serif.; - font-size: 12px; -} - -h1 -{ -} diff --git a/source/CubeMS/Bin/API.dll b/source/CubeMS/Bin/API.dll deleted file mode 100644 index 6a88f7f4..00000000 Binary files a/source/CubeMS/Bin/API.dll and /dev/null differ diff --git a/source/CubeMS/Bin/ActionCube.dll b/source/CubeMS/Bin/ActionCube.dll deleted file mode 100644 index 3c3ada0a..00000000 Binary files a/source/CubeMS/Bin/ActionCube.dll and /dev/null differ diff --git a/source/CubeMS/Bin/Cube.dll b/source/CubeMS/Bin/Cube.dll deleted file mode 100644 index 62598c18..00000000 Binary files a/source/CubeMS/Bin/Cube.dll and /dev/null differ diff --git a/source/CubeMS/Bin/CubeEngineBase.dll b/source/CubeMS/Bin/CubeEngineBase.dll deleted file mode 100644 index ec3c1282..00000000 Binary files a/source/CubeMS/Bin/CubeEngineBase.dll and /dev/null differ diff --git a/source/CubeMS/Bin/mysql.data.dll b/source/CubeMS/Bin/mysql.data.dll deleted file mode 100644 index 209cf282..00000000 Binary files a/source/CubeMS/Bin/mysql.data.dll and /dev/null differ diff --git a/source/CubeMS/Blacklist.xml b/source/CubeMS/Blacklist.xml deleted file mode 100644 index 6225e37c..00000000 --- a/source/CubeMS/Blacklist.xml +++ /dev/null @@ -1,402 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/source/CubeMS/Default.aspx b/source/CubeMS/Default.aspx deleted file mode 100644 index e7faac2a..00000000 --- a/source/CubeMS/Default.aspx +++ /dev/null @@ -1,47 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> - - - - - - AssaultCube Master Server - - -
-
-

AssaultCube Master Server

-

Server List

-   - - - - - - - <%-- <%# IPTools.IntToIp((int)DataBinder.Eval(Container.DataItem, "IP")).ToString() %> --%> - - - - - - - - - - - - - - - - - - -
-
- - diff --git a/source/CubeMS/Default.aspx.cs b/source/CubeMS/Default.aspx.cs deleted file mode 100644 index 42c253c5..00000000 --- a/source/CubeMS/Default.aspx.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Data; -using System.Configuration; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; - -public partial class _Default : System.Web.UI.Page -{ - protected void Page_Load(object sender, EventArgs e) - { - - } -} diff --git a/source/CubeMS/README.txt b/source/CubeMS/README.txt deleted file mode 100644 index ea26ac6d..00000000 --- a/source/CubeMS/README.txt +++ /dev/null @@ -1,42 +0,0 @@ -CubeMS -- masterserver for the AssaultCube v1.0 - - -License: -ZLIB -http://www.gzip.org/zlib/zlib_license.html - -Author: -Adrian 'driAn' Henke -root AT sprintf.org - -Version: -v0.3 -November 2007 - -About this Software: -The purpose of this software is to let AssaultCube gameservers register -themselves on a central location and distribute the list of available -servers to all requesting AssaultCube game clients. Also it provides -additional interfaces for external application and possbilities to -control the storage and monitor various events. -This software has been developed to replace other PHP/Perl/Java based -solutions that are not easily expandable for future AssaultCube features -that will require more interaction with the masterserver. -This software is implemented as IIS HTTP-Handler written in C#/ASP.NET -with a MSSQL backend. Integrating the masterserver as HTTP-Handler and using -various caching possiblities ensures good scalability on higher workload. - -Installation: -There is no streamlined installation procedure for this software, you -need some knowledge of IIS 5+, MSSQL and ASP.NET to make any use of it. -Here is a quick list of required steps: - -* In IIS, create a new (virtual) directory that points to the CubeMS - directory. Configure security, ASP.NET 2.0, etc. -* In IIS, configure the application assignement for your CubeMS app. - Assign the ".do" ending to your aspnet_isapi.dll, restrict to GET requests - and disable the optional checks for existing files. -* In MSSQL, create a new database as well as tables and stored procedures. - Use the provided scripts to get this done. -* In MSSQL, create a new user and configure the web.config file in the CubeMS - directory accordingly. diff --git a/source/CubeMS/cgi-bin/actioncube.pl/info.txt b/source/CubeMS/cgi-bin/actioncube.pl/info.txt deleted file mode 100644 index cb66f106..00000000 --- a/source/CubeMS/cgi-bin/actioncube.pl/info.txt +++ /dev/null @@ -1,6 +0,0 @@ -This directory is required to fool apache. - -The masterserver http handler dispatches requests matching *.do -However apache always checks if the requested file/dir actually exists, -if not the request is being aborted. Therefore we need this directory -to ensure that the request reaches our http handler. diff --git a/source/CubeMS/web.config b/source/CubeMS/web.config deleted file mode 100644 index 6920d689..00000000 --- a/source/CubeMS/web.config +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - -
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -