Browse Source

show version

pull/102/head
orignal 10 years ago
parent
commit
5d63f71c55
  1. 2
      Daemon.cpp
  2. 2
      HTTPServer.cpp
  3. 12
      version.h

2
Daemon.cpp

@ -4,6 +4,7 @@
#include "Log.h" #include "Log.h"
#include "base64.h" #include "base64.h"
#include "version.h"
#include "Transports.h" #include "Transports.h"
#include "NTCPSession.h" #include "NTCPSession.h"
#include "RouterInfo.h" #include "RouterInfo.h"
@ -54,6 +55,7 @@ namespace i2p
i2p::context.Init (); i2p::context.Init ();
LogPrint("\n\n\n\ni2pd starting\n"); LogPrint("\n\n\n\ni2pd starting\n");
LogPrint("Version ", VERSION);
LogPrint("data directory: ", i2p::util::filesystem::GetDataDir().string()); LogPrint("data directory: ", i2p::util::filesystem::GetDataDir().string());
i2p::util::filesystem::ReadConfigFile(i2p::util::config::mapArgs, i2p::util::config::mapMultiArgs); i2p::util::filesystem::ReadConfigFile(i2p::util::config::mapArgs, i2p::util::config::mapMultiArgs);

2
HTTPServer.cpp

@ -624,7 +624,7 @@ namespace util
s << "<head><meta charset=\"utf-8\" />"; // TODO: Find something to parse html/template system. This is horrible. s << "<head><meta charset=\"utf-8\" />"; // TODO: Find something to parse html/template system. This is horrible.
s << "<link rel='shortcut icon' href='"; s << "<link rel='shortcut icon' href='";
s << itoopieFavicon; s << itoopieFavicon;
s << "' /><title>Purple I2P Webconsole</title></head>"; s << "' /><title>Purple I2P " << VERSION " Webconsole</title></head>";
// Head end // Head end
if (address.length () > 1) if (address.length () > 1)
HandleCommand (address.substr (2), s); HandleCommand (address.substr (2), s);

12
version.h

@ -1,18 +1,8 @@
#ifndef _VERSION_H_ #ifndef _VERSION_H_
#define _VERSION_H_ #define _VERSION_H_
#include "HTTPServer.h"
#define CODENAME "Purple" #define CODENAME "Purple"
#define VERSION "0.1.0"
#define I2P_VERSION "0.9.15" #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 #endif

Loading…
Cancel
Save