diff --git a/main.c b/main.c index 1daf47b..10d4dd9 100644 --- a/main.c +++ b/main.c @@ -987,8 +987,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data) { H(""); H(""); H(""); - H(""); - H(""); + H(""); H(""); H(""); H("",L(LS_IMG_OVERRIDES)); @@ -1185,8 +1184,27 @@ static void fn(struct mg_connection *c, int ev, void *ev_data) { H("",t,cur==t?" selected":"",t); } H(""); H(""); - - /* Panel: Backup — separate rows per source, no file limit */ + /* API section merged into panel-bkd */ + H("
" + "
API
", + has_api?"1":"0.35",has_api?"auto":"none"); + if(!has_api) + H("

ab 1.7alpha3

"); + else + H(""); + H("
" + "
", + L(LS_BIND_ADDR), + strcmp(cfg.api_bind_address,"127.0.0.1")==0?" selected":"", + L(LS_LOCAL_ONLY), + strcmp(cfg.api_bind_address,"0.0.0.0")==0?" selected":"", + L(LS_ALL_IFACES)); + NF("api_port",L(LS_PORT),"1","65535",cfg.api_port); + H("
"); /* close api-wrap + section + panel-bkd */ + — separate rows per source, no file limit */ { const char *bdir=BAK_DIR; mkdir("/data/SMPlusGui",0755); mkdir(bdir,0755); /* collect and sort local backups */ @@ -1360,25 +1378,8 @@ static void fn(struct mg_connection *c, int ev, void *ev_data) { #undef _BRD H(""); } - /* Panel: API — ab SM v1.7alpha3 */ - H("
", - has_api?"1":"0.35",has_api?"auto":"none"); - if(!has_api) - H("

ab 1.7alpha3

"); - else - H(""); - H("
" - "
", - L(LS_BIND_ADDR), - strcmp(cfg.api_bind_address,"127.0.0.1")==0?" selected":"", - L(LS_LOCAL_ONLY), - strcmp(cfg.api_bind_address,"0.0.0.0")==0?" selected":"", - L(LS_ALL_IFACES)); - NF("api_port",L(LS_PORT),"1","65535",cfg.api_port); - H("
"); /* close api */ + + /* Panel: Image Overrides */ H("
"); H("
image_ro
"); H("

📄 Beispiel:  PPSA12345.exfat  %s  PPSA12345.ffpfs

",L(LS_OR));