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 ; } /*