promo status
This commit is contained in:
@@ -2497,6 +2497,7 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){
|
||||
if ( load_db_record(y, "SELECT firstname , lastname , middlename , status,email FROM market_import WHERE uid::text ='%s' AND status = 1", in["promo_owner"].c_str())> 0){
|
||||
if ( load_db_record(out, "SELECT id FROM members WHERE LOWER(username) = LOWER('%s')", y["email"].c_str())> 0){
|
||||
out["status_message"] = "INVALID_LINK";
|
||||
pgsql_query("UPDATE market_import SET status = 4 WHERE uid::text = '%s' AND status = 1 ", in["promo_owner"].c_str());
|
||||
return PHP_API_BAD_PARAM;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -85,7 +85,8 @@ long WrenchPromoLoad(CVars in, CVars &out) {
|
||||
load_db_record(out, "SELECT to_char(now(), 'yyyy') AS YYYY");
|
||||
|
||||
if ( load_db_record(out, "SELECT firstname , lastname , middlename , status,email FROM market_import WHERE uid::text ='%s' AND status = 1", in["promo_owner"].c_str())> 0){
|
||||
if ( load_db_record(out, "SELECT id FROM members WHERE LOWER(username) = LOWER('%s')", out["username"].c_str())> 0){
|
||||
if ( load_db_record(out, "SELECT id FROM members WHERE LOWER(username) = LOWER('%s')", out["email"].c_str())> 0){
|
||||
pgsql_query("UPDATE market_import SET status = 4 WHERE uid::text = '%s' AND status = 1 ", in["promo_owner"].c_str());
|
||||
out["status_message"] = "VALID_LINK_NOT_FOUND";
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user