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:
vanhofen
2017-03-03 15:39:42 +01:00
parent 34182e384c
commit 4f035ece4b
2 changed files with 13 additions and 0 deletions

View File

@@ -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");
}