From 5d63f71c55ee6bfc60ef2bf40d7378e7f8135dd7 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 17 Oct 2014 11:42:05 -0400 Subject: [PATCH] show version --- Daemon.cpp | 2 ++ HTTPServer.cpp | 2 +- version.h | 12 +----------- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/Daemon.cpp b/Daemon.cpp index d03d6528..13f99db6 100644 --- a/Daemon.cpp +++ b/Daemon.cpp @@ -4,6 +4,7 @@ #include "Log.h" #include "base64.h" +#include "version.h" #include "Transports.h" #include "NTCPSession.h" #include "RouterInfo.h" @@ -54,6 +55,7 @@ namespace i2p i2p::context.Init (); LogPrint("\n\n\n\ni2pd starting\n"); + LogPrint("Version ", VERSION); LogPrint("data directory: ", i2p::util::filesystem::GetDataDir().string()); i2p::util::filesystem::ReadConfigFile(i2p::util::config::mapArgs, i2p::util::config::mapMultiArgs); diff --git a/HTTPServer.cpp b/HTTPServer.cpp index 31b13e63..bf11a03b 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -624,7 +624,7 @@ namespace util s << ""; // TODO: Find something to parse html/template system. This is horrible. s << "Purple I2P Webconsole"; + s << "' />Purple I2P " << VERSION " Webconsole"; // Head end if (address.length () > 1) HandleCommand (address.substr (2), s); diff --git a/version.h b/version.h index a571c850..35e092e9 100644 --- a/version.h +++ b/version.h @@ -1,18 +1,8 @@ #ifndef _VERSION_H_ #define _VERSION_H_ -#include "HTTPServer.h" - #define CODENAME "Purple" - +#define VERSION "0.1.0" #define I2P_VERSION "0.9.15" - -/* TEMPORARY STORE FOR IMAGE CODES */ - -#define ICTOOPIE_128 i2p::util::HTTPConnection::itoopieImage - -#define ICTOOPIE_64_FAVICON i2p::util::HTTPConnection::itoopieFavicon - - #endif