mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- imageinfo: change handling of yWeb version; use own CConfigFile
This commit is contained in:
@@ -310,7 +310,7 @@ void CImageInfo::InitInfoData()
|
||||
s_api += ", ";
|
||||
#endif
|
||||
s_api += "yWeb ";
|
||||
s_api += getYApi();
|
||||
s_api += getYWebVersion();
|
||||
s_api += ", ";
|
||||
s_api += HTTPD_NAME;
|
||||
s_api += + " ";
|
||||
@@ -462,12 +462,9 @@ void CImageInfo::hide()
|
||||
}
|
||||
}
|
||||
|
||||
string CImageInfo::getYApi()
|
||||
string CImageInfo::getYWebVersion()
|
||||
{
|
||||
string ret;
|
||||
config.loadConfig(Y_VERSION_FILE);
|
||||
ret = config.getString("version", "n/a");
|
||||
config.loadConfig(VERSION_FILE);
|
||||
return ret;
|
||||
CConfigFile yV('=', false);
|
||||
yV.loadConfig(PRIVATE_HTTPDDIR "/Y_Version.txt");
|
||||
return yV.getString("version", "n/a");
|
||||
}
|
||||
|
||||
|
@@ -63,7 +63,7 @@ class CImageInfo : public CMenuTarget
|
||||
std::string getLicenseText();
|
||||
void ShowWindow();
|
||||
void ScrollLic(bool scrollDown);
|
||||
std::string getYApi();
|
||||
std::string getYWebVersion();
|
||||
|
||||
CComponentsWindowMax *cc_win;
|
||||
CComponentsForm *cc_info;
|
||||
|
Reference in New Issue
Block a user