banners on settings
This commit is contained in:
@@ -817,7 +817,7 @@ long WrenchAccountSettings( CVars in, CVars &out ){
|
||||
|
||||
|
||||
out["total_record"] = "0";
|
||||
res = pgsql_query("SELECT id,title,description,pref_id,uid FROM members_settings_options ORDER BY lorder ASC");
|
||||
res = pgsql_query("SELECT id,title,description,pref_id,uid,'settings.svg' AS banner FROM members_settings_options ORDER BY lorder ASC");
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
|
||||
@@ -842,8 +842,8 @@ long WrenchAccountSettings( CVars in, CVars &out ){
|
||||
snprintf(vname, sizeof (vname), "pref_id_%05d", i);
|
||||
out[vname] = rec["pref_id"];
|
||||
|
||||
// snprintf(vname, sizeof (vname), "user_value_%05d", i);
|
||||
// out[vname] = rec["user_value"];
|
||||
snprintf(vname, sizeof (vname), "banner_%05d", i);
|
||||
out[vname] = rec["banner"];
|
||||
}
|
||||
}
|
||||
ret = PHP_API_OK;
|
||||
|
||||
Reference in New Issue
Block a user