file_section
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user