From bb49f0e021fb1fbefad44d944233fb1cf72c495c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 1 Feb 2012 09:12:54 +0000 Subject: Introducing StringUtils - the place to be if you are a generic string routine :) No more sprintf()! git-svn-id: http://mc-server.googlecode.com/svn/trunk@209 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWebAdmin.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'source/cWebAdmin.cpp') diff --git a/source/cWebAdmin.cpp b/source/cWebAdmin.cpp index 901e24cd7..ff4ef8a96 100644 --- a/source/cWebAdmin.cpp +++ b/source/cWebAdmin.cpp @@ -21,16 +21,17 @@ #include #else #include - #include // auto_ptr #endif -extern std::vector StringSplit(std::string str, std::string delim); +cWebAdmin * WebAdmin = 0; + + + -cWebAdmin* WebAdmin = 0; cWebAdmin::cWebAdmin( int a_Port /* = 8080 */ ) : m_Port( a_Port ) @@ -75,12 +76,16 @@ void cWebAdmin::RemovePlugin( cWebPlugin* a_Plugin ) m_Plugins.remove( a_Plugin ); } + + + + void cWebAdmin::Request_Handler(webserver::http_request* r) { if( WebAdmin == 0 ) return; LOG("Path: %s", r->path_.c_str() ); - std::vector< std::string > Split = StringSplit( r->path_, "/" ); + AStringVector Split = StringSplit( r->path_, "/" ); if(r->path_ == "/") { -- cgit v1.2.3