profile_pic

This commit is contained in:
CHIEFSOFT\ameye
2023-10-07 18:52:18 -04:00
parent b95bf5360d
commit 10739bab37
3 changed files with 9 additions and 4 deletions
+3
View File
@@ -65,6 +65,9 @@ long WrenchFindStoredMedia(CVars in, CVars &out) {
case WRENCH_FILE_PROFILE:
//file_uid is the UID of the user
REQ_STRING(in, "profile", 5, 40, "(.*)");
pgsql_exec("UPDATE members SET profile_pic='%s' "
" WHERE uid='%s'",in["profile"].c_str(),, in["file_uid"].c_str());
snprintf(vname, sizeof (vname), "SELECT * FROM members WHERE uid ='%s'", in["file_uid"].c_str());
break;