file_section

This commit is contained in:
CHIEFSOFT\ameye
2023-08-10 20:56:41 -04:00
parent 0672415620
commit 0555f12f36
+4 -1
View File
@@ -47,12 +47,15 @@ long WrenchFindStoredMedia(CVars in, CVars &out) {
logfmt(logINFO, "WrenchFindStoredMedia()");
long ret = PHP_API_BAD_PARAM;
char vname[500];
char file_section[50];
try {
REQ_STRING(in, "file_section", 5, 40, "(.*)");
REQ_STRING(in, "sessionid", 3, 150, "(.*)");
REQ_STRING(in, "file_uid", 3, 150, "(.*)");
switch(in["file_section"].c_str()){
snprintf(file_section, sizeof (file_section), "%s", in["file_section"].c_str());
switch(file_section){
case "profile":
snprintf(vname, sizeof (vname), "SELECT * FROM members WHERE id =1", in["file_uid"].c_str());