Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
[control-web] fixed link to enable/disable live plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Jun 10, 2015
1 parent cc5bf94 commit e22df4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions control-web.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def plugin():
p = js[name]
html += "<tr><td>{}</td><td>{}</td><td>{}</td><td>{}</td>".format(p['id'], name, p['priority'], p['state'])
if p['state']=="INACTIVE":
html += """<td><button type="button" class="btn btn-default btn-xs" data-toggle="button" aria-pressed="false" onclick="window.location='/plugin/1/enable'">Enable</button></td>"""
html += """<td><button type="button" class="btn btn-default btn-xs" data-toggle="button" aria-pressed="false" onclick="window.location='/plugin/{}/enable'">Enable</button></td>""".format(p["id"])
else:
html += """<td><button type="button" class="btn btn-default btn-xs" data-toggle="button" aria-pressed="false" onclick="window.location='/plugin/1/disable'">Disable</button></td>"""
html += """<td><button type="button" class="btn btn-default btn-xs" data-toggle="button" aria-pressed="false" onclick="window.location='/plugin/{}/disable'">Disable</button></td>""".format(p["id"])
html += "</tr>"

html += "</div>"""
Expand Down
4 changes: 2 additions & 2 deletions core.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ void proxenet_process_http_request(sock_t server_socket)
/* close client socket */
if (client_socket > 0) {
if (cfg->verbose >= 2)
xlog(LOG_INFO, "Closing %s->server socket #%d\n", PROGNAME, client_socket);
xlog(LOG_INFO, "Closing %s->server (fd=#%d)\n", PROGNAME, client_socket);

proxenet_close_socket(client_socket, &(ssl_context.client));
}
Expand All @@ -806,7 +806,7 @@ void proxenet_process_http_request(sock_t server_socket)
/* close local socket */
if (server_socket > 0) {
if (cfg->verbose >= 2)
xlog(LOG_INFO, "Closing browser->%s socket #%d\n", PROGNAME, server_socket);
xlog(LOG_INFO, "Closing browser->%s (fd=#%d)\n", PROGNAME, server_socket);

proxenet_close_socket(server_socket, &(ssl_context.server));
}
Expand Down
2 changes: 1 addition & 1 deletion proxenet-plugins

0 comments on commit e22df4b

Please sign in to comment.