mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
Merge branch 'ni/tuxbox' into ni/mp/tuxbox
Conflicts:
lib/libdvbsub/dvbsubtitle.cpp
src/gui/bedit/bouqueteditor_channels.cpp
src/gui/widget/listbox.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: e32d5a869f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-16 (Fri, 16 Jun 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -219,6 +219,7 @@ const CControlAPI::TyCgiCall CControlAPI::yCgiCallList[]=
|
||||
{"crypt", &CControlAPI::CryptCGI, "text/plain"},
|
||||
// timer
|
||||
{"timer", &CControlAPI::TimerCGI, "text/plain"},
|
||||
{"sendalltimers", &CControlAPI::TimerSendCGI, "text/plain"},
|
||||
// bouquet editing
|
||||
{"setbouquet", &CControlAPI::setBouquetCGI, "text/plain"},
|
||||
{"savebouquet", &CControlAPI::saveBouquetCGI, "text/plain"},
|
||||
@@ -348,7 +349,34 @@ void CControlAPI::TimerCGI(CyhookHandler *hh)
|
||||
hh->SendError();
|
||||
}
|
||||
|
||||
void CControlAPI::TimerSendCGI(CyhookHandler *hh)
|
||||
{
|
||||
hh->outStart();
|
||||
|
||||
if (NeutrinoAPI->Timerd->isTimerdAvailable())
|
||||
{
|
||||
if (!hh->ParamList.empty())
|
||||
{
|
||||
bool force = (hh->ParamList["force"] == "1") || (hh->ParamList["force"] == "true");
|
||||
if(!hh->ParamList["ip"].empty())
|
||||
{
|
||||
NeutrinoAPI->SendAllTimers(hh->ParamList["ip"],force);
|
||||
hh->SendOk();
|
||||
}
|
||||
else if(!hh->ParamList["name"].empty())
|
||||
{
|
||||
NeutrinoAPI->SendAllTimers(NeutrinoAPI->GetRemoteBoxIP(decodeString(hh->ParamList["name"])),force);
|
||||
hh->SendOk();
|
||||
}
|
||||
else
|
||||
hh->SendError();
|
||||
}
|
||||
}
|
||||
else
|
||||
hh->SendError();
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
void CControlAPI::SetModeCGI(CyhookHandler *hh)
|
||||
{
|
||||
if (!(hh->ParamList.empty()))
|
||||
|
Reference in New Issue
Block a user