promot text

This commit is contained in:
CHIEFSOFT\ameye
2024-09-18 12:48:19 -04:00
parent 9b8b79668a
commit 02772dc9c1
+23
View File
@@ -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 ;
}
/*