promotion files
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
long BkoCommonSessionCheck(long backoffice_id,long shop,long acc, const char *sessionid, int create );
|
||||
long BkoResendOffer(CVars in, CVars &out);
|
||||
long BkoSendPush(CVars in, CVars &out);
|
||||
long BkoResendMarketing(CVars in, CVars &out);
|
||||
|
||||
struct MemoryStruct {
|
||||
char *memory;
|
||||
@@ -59,7 +60,11 @@ long bko_calls(CVars in, CVars &out)
|
||||
case WRENCHBOARD_BKO_RESEND_OFFER:
|
||||
return BkoResendOffer( in, out);
|
||||
break;
|
||||
|
||||
|
||||
case WRENCHBOARD_BKO_MARKETING_MSG:
|
||||
return BkoResendMarketing( in, out );
|
||||
break;
|
||||
|
||||
case WRENCHBOARD_BKO_SEND_PUSH:
|
||||
return BkoSendPush( in, out);
|
||||
break;
|
||||
@@ -68,6 +73,21 @@ long bko_calls(CVars in, CVars &out)
|
||||
return 0;
|
||||
}
|
||||
|
||||
long BkoResendMarketing(CVars in, CVars &out)
|
||||
{
|
||||
logfmt( logINFO, "BkoResendMarketing()" );
|
||||
REQ_STRING (in, "uid", 5, 149, "(.*)");
|
||||
CVars x;
|
||||
|
||||
if ( load_db_record( x, "SELECT * FROM marketing_list WHERE uid='%s'", in["uid"].c_str() )){
|
||||
market_email(WRENCHBOARD_BKO_MARKETING_MSG, x, out);
|
||||
}
|
||||
|
||||
|
||||
logfmt( logINFO, "/BkoResendMarketing()" );
|
||||
return 0;
|
||||
}
|
||||
|
||||
long BkoResendOffer(CVars in, CVars &out)
|
||||
{
|
||||
logfmt( logINFO, "BkoResendOffer()" );
|
||||
|
||||
Reference in New Issue
Block a user