mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-13 08:17:38 +01:00
show version
This commit is contained in:
parent
ae61e47bc2
commit
5d63f71c55
3 changed files with 4 additions and 12 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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
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…
Add table
Reference in a new issue