mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
.version: fix path to .version in some relevant files
This commit is contained in:
@@ -710,7 +710,7 @@ void CNetworkSetup::testNetworkSettings()
|
|||||||
|
|
||||||
//get www-domain testsite from /.version
|
//get www-domain testsite from /.version
|
||||||
CConfigFile config('\t');
|
CConfigFile config('\t');
|
||||||
config.loadConfig(TARGET_PREFIX "/.version");
|
config.loadConfig("/.version");
|
||||||
testsite = config.getString("homepage",defaultsite);
|
testsite = config.getString("homepage",defaultsite);
|
||||||
testsite.replace( 0, testsite.find("www",0), "" );
|
testsite.replace( 0, testsite.find("www",0), "" );
|
||||||
|
|
||||||
|
@@ -146,7 +146,7 @@ bool CFlashUpdate::checkOnlineVersion()
|
|||||||
std::vector<CUpdateMenuTarget*> update_t_list;
|
std::vector<CUpdateMenuTarget*> update_t_list;
|
||||||
|
|
||||||
CConfigFile _configfile('\t');
|
CConfigFile _configfile('\t');
|
||||||
const char * versionString = (_configfile.loadConfig(TARGET_PREFIX "/.version")) ? (_configfile.getString( "version", "????????????????").c_str()) : "????????????????";
|
const char * versionString = (_configfile.loadConfig( "/.version")) ? (_configfile.getString( "version", "????????????????").c_str()) : "????????????????";
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("[update] file %s\n", g_settings.softupdate_url_file.c_str());
|
printf("[update] file %s\n", g_settings.softupdate_url_file.c_str());
|
||||||
#endif
|
#endif
|
||||||
@@ -203,7 +203,7 @@ bool CFlashUpdate::selectHttpImage(void)
|
|||||||
|
|
||||||
CConfigFile _configfile('\t');
|
CConfigFile _configfile('\t');
|
||||||
std::string versionString = "????????????????";
|
std::string versionString = "????????????????";
|
||||||
if (_configfile.loadConfig(TARGET_PREFIX "/.version"))
|
if (_configfile.loadConfig("/.version"))
|
||||||
versionString = _configfile.getString("version", "????????????????");
|
versionString = _configfile.getString("version", "????????????????");
|
||||||
|
|
||||||
CFlashVersionInfo curInfo(versionString.c_str());
|
CFlashVersionInfo curInfo(versionString.c_str());
|
||||||
|
@@ -822,7 +822,7 @@ void CControlAPI::InfoCGI(CyhookHandler *hh)
|
|||||||
if (hh->ParamList["1"] == "streaminfo") // print streaminfo
|
if (hh->ParamList["1"] == "streaminfo") // print streaminfo
|
||||||
SendStreamInfo(hh);
|
SendStreamInfo(hh);
|
||||||
else if (hh->ParamList["1"] == "version") // send version file
|
else if (hh->ParamList["1"] == "version") // send version file
|
||||||
hh->SendFile(TARGET_PREFIX "/.version");
|
hh->SendFile("/.version");
|
||||||
else if (hh->ParamList["1"] == "httpdversion") // print httpd version typ (just for compatibility)
|
else if (hh->ParamList["1"] == "httpdversion") // print httpd version typ (just for compatibility)
|
||||||
hh->Write("3");
|
hh->Write("3");
|
||||||
else if (hh->ParamList["1"] == "nhttpd_version")// print nhttpd version
|
else if (hh->ParamList["1"] == "nhttpd_version")// print nhttpd version
|
||||||
@@ -2052,7 +2052,7 @@ void CControlAPI::EpgCGI(CyhookHandler *hh)
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void CControlAPI::VersionCGI(CyhookHandler *hh)
|
void CControlAPI::VersionCGI(CyhookHandler *hh)
|
||||||
{
|
{
|
||||||
hh->SendFile(TARGET_PREFIX "/.version");
|
hh->SendFile("/.version");
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void CControlAPI::ReloadNeutrinoSetupCGI(CyhookHandler *hh)
|
void CControlAPI::ReloadNeutrinoSetupCGI(CyhookHandler *hh)
|
||||||
|
Reference in New Issue
Block a user