From 02772dc9c13793c292630b84c7a5e4bb465555c6 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 18 Sep 2024 12:48:19 -0400 Subject: [PATCH] promot text --- wrenchboard/src/shared_tool/market.cc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/wrenchboard/src/shared_tool/market.cc b/wrenchboard/src/shared_tool/market.cc index b9a5ed88..6dc5785f 100644 --- a/wrenchboard/src/shared_tool/market.cc +++ b/wrenchboard/src/shared_tool/market.cc @@ -79,6 +79,29 @@ long WrenchPromoLoad(CVars in, CVars &out) { // $in["promo"] = $promo; // $in["promo_owner"] = $promoOwner; + // $in["promo"] = $promo; + // $in["promo_owner"] = $promoOwner; +// +// log_message('critical', "promoStart::promoStart ********* ALL ".serialize($in) ); +// $in["loc"] = $_SERVER["REMOTE_ADDR"]; +// $in['limit'] = 10; +// $out["firstname"] = "Firstname"; +// $out["promo_title"] = "This is the promo title"; +// $out["promo_description"] = "This is the promo description , This is the promo description ,This is the promo description ,This is the promo description ,This is the promo description ,This is the promo description ,This is the promo description ,"; +// $out["site_name"]= "WrenchBoard"; +// $out["server_name"]= "https://www.wrenchboard.com"; +// $out['yyyy'] = '2024'; +// $out['user_server_name'] = 'https://dev-users.wrenchboard.com'; + load_db_record(out, "SELECT to_char(now(), 'yyyy') AS YYYY"); + + if ( load_db_record(out, "SELECT firstname , lastname , middlename , status FROM market_import WHERE uid::text ='%s' ", in["promo_owner"].c_str())> 0){ + + } + + if ( load_db_record(out, "SELECT * FROM market_promo WHERE promo::text ='%s' ", in["promo"].c_str())> 0){ + + } + return 0 ; } /*