Fixed build problem due to missing PRIVACORE_SAFE_VERSION

This commit is contained in:
Brian Rasmusson
2015-11-23 10:05:20 +01:00
parent 44b0ba9410
commit ad5dcae067

@ -19,6 +19,11 @@ bool sendPageDelColl ( TcpSocket *s , HttpRequest *r ) {
}
bool sendPageAddDelColl ( TcpSocket *s , HttpRequest *r , bool add ) {
#ifdef PRIVACORE_SAFE_VERSION
g_errno = EBADENGINEER;
char *msg = "Function disabled by PRIVACORE_SAFE_VERSION define";
return g_httpServer.sendErrorReply(s,g_errno,msg,NULL);
#else
// get collection name
//int32_t nclen;
//char *nc = r->getString ( "nc" , &nclen );
@ -334,10 +339,15 @@ skip:
g_pages.printAdminBottom ( &p );
int32_t bufLen = p.length();
return g_httpServer.sendDynamicPage (s,p.getBufStart(),bufLen);
#endif
}
bool sendPageCloneColl ( TcpSocket *s , HttpRequest *r ) {
#ifdef PRIVACORE_SAFE_VERSION
g_errno = EBADENGINEER;
char *msg = "Function disabled by PRIVACORE_SAFE_VERSION define";
return g_httpServer.sendErrorReply(s,g_errno,msg,NULL);
#else
char format = r->getReplyFormat();
char *coll = r->getString("c");
@ -398,7 +408,7 @@ bool sendPageCloneColl ( TcpSocket *s , HttpRequest *r ) {
g_pages.printAdminBottom ( &p );
int32_t bufLen = p.length();
return g_httpServer.sendDynamicPage (s,p.getBufStart(),bufLen);
#endif
}