Changeset 3617
- Timestamp:
- 10/18/10 19:38:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-http.c
r3614 r3617 16 16 #include "module-stat.h" 17 17 18 extern void restart_cardreader( int ridx, int restart);18 extern void restart_cardreader(struct s_reader *rdr, int restart); 19 19 static int running = 1; 20 20 … … 1691 1691 kill_thread((struct s_client *)atoi(getParam(params, "csidx"))); //FIXME untested 1692 1692 1693 if (strcmp(getParam(params, "action"), "restart") == 0) 1694 restart_cardreader(atoi(getParam(params, "ridx")), 1); 1693 if (strcmp(getParam(params, "action"), "restart") == 0) { 1694 struct s_reader *rdr; 1695 for (i=0,rdr=first_reader; rdr ; rdr=rdr->next, i++) 1696 if (strcmp(rdr->label, getParam(params, "label")) == 0) 1697 restart_cardreader(rdr, 1); 1698 } 1695 1699 1696 1700 if (strcmp(getParam(params, "action"), "resetstat") == 0) … … 1762 1766 else if((cl->typ == 'r' || cl->typ == 'p') && !cfg->http_readonly) { 1763 1767 //tpl_printf(vars, 0, "CLIENTPID", "%d ", cl->ridx); 1764 tpl_printf(vars, 0, "CSIDX", "<A HREF=\"status.html?action=restart& ridx=%d\" TITLE=\"Restart this reader/ proxy\"><IMG SRC=\"%s\" ALT=\"Restart\"></A>", get_ridx(cl->reader), ICKIL);1768 tpl_printf(vars, 0, "CSIDX", "<A HREF=\"status.html?action=restart&label=%s\" TITLE=\"Restart this reader/ proxy\"><IMG SRC=\"%s\" ALT=\"Restart\"></A>", cl->reader->label, ICKIL); 1765 1769 } 1766 1770 else {
Note:
See TracChangeset
for help on using the changeset viewer.