urbackup_backend/urbackupserver/serverinterface/google_chart.cpp
2012-02-25 02:45:06 +01:00

36 lines
1.2 KiB
C++

/*************************************************************************
* UrBackup - Client/Server backup system
* Copyright (C) 2011 Martin Raiber
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
**************************************************************************/
#ifndef CLIENT_ONLY
#include "action_header.h"
ACTION_IMPL(google_chart)
{
ITemplate *tmpl=Server->createTemplate("urbackup/google_chart.js");
if(tmpl!=NULL && pychart_fak==NULL)
{
Server->Write(tid, tmpl->getData(), false);
}
if(tmpl!=NULL)
Server->destroy(tmpl);
}
#endif //CLIENT_ONLY