2017-08-31 Fred Gleason <fredg@paravelsystems.com>

* Modified web client components to use a distinctive http USER_AGENT
	string.
This commit is contained in:
Fred Gleason
2017-08-31 12:38:39 -04:00
parent 8d9a2ecadc
commit aef7c2229b
80 changed files with 216 additions and 69 deletions

View File

@@ -85,8 +85,9 @@ MainObject::MainObject(QObject *parent)
//
// Read Configuration
//
RDConfig *config=new RDConfig();
config=new RDConfig();
config->load();
config->setModuleName("rdfeed.cgi");
//
// Determine Range
@@ -279,7 +280,7 @@ QString MainObject::ResolveChannelWildcards(RDSqlQuery *chan_q)
QString MainObject::ResolveItemWildcards(const QString &keyname,
RDSqlQuery *item_q,RDSqlQuery *chan_q)
{
RDFeed *feed=new RDFeed(keyname);
RDFeed *feed=new RDFeed(keyname,config);
QString ret=chan_q->value(11).toString();
ret.replace("%ITEM_TITLE%",RDXmlEscape(item_q->value(0).toString()));
ret.replace("%ITEM_DESCRIPTION%",

View File

@@ -24,6 +24,7 @@
#include <qobject.h>
#include <qsqldatabase.h>
#include <rdconfig.h>
#include <rddb.h>
class MainObject : public QObject
@@ -41,6 +42,7 @@ class MainObject : public QObject
unsigned cast_id);
bool ShouldCount(const QString &hdr);
void Redirect(const QString &url);
RDConfig *config;
};