mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
imageinfo_ni: add yWeb version
Origin commit data
------------------
Branch: ni/coolstream
Commit: 227f5cbfff
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-03 (Fri, 03 Mar 2017)
Origin message was:
------------------
- imageinfo_ni: add yWeb version
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -321,6 +321,10 @@ void CImageInfoNI::paint()
|
||||
paintLine(xpos+offset, font_info, to_string(LUA_API_VERSION_MAJOR) + "." + to_string(LUA_API_VERSION_MINOR));
|
||||
#endif
|
||||
|
||||
ypos += iheight;
|
||||
paintLine(xpos, font_info, "yWeb:");
|
||||
paintLine(xpos+offset, font_info, getYWebVersion());
|
||||
|
||||
ypos += iheight;
|
||||
paintLine(xpos, font_info, g_Locale->getText(LOCALE_IMAGEINFO_DATE));
|
||||
paintLine(xpos+offset, font_info, builddate );
|
||||
@@ -894,3 +898,10 @@ void CImageInfoNI::paint_NET_Info(int posx, int posy)
|
||||
read_old = read_akt;
|
||||
write_old = write_akt;
|
||||
}
|
||||
|
||||
string CImageInfoNI::getYWebVersion()
|
||||
{
|
||||
CConfigFile yV('=', false);
|
||||
yV.loadConfig(PRIVATE_HTTPDDIR "/Y_Version.txt");
|
||||
return yV.getString("version", "n/a");
|
||||
}
|
||||
|
@@ -140,6 +140,8 @@ class CImageInfoNI : public CMenuTarget
|
||||
void get_NET_Info(uint64_t *read_akt, long *read_packet, long *dummy, uint64_t *write_akt, long *write_packet);
|
||||
void paint_NET_Info(int posx, int posy);
|
||||
|
||||
std::string getYWebVersion();
|
||||
|
||||
public:
|
||||
|
||||
CImageInfoNI();
|
||||
|
Reference in New Issue
Block a user