Debian Codegraph @

contrib/kannel-monitor/kannel.js

raw
1
2 function admin_url(command, url, passwd) {
3 if (passwd == "") {
4 passwd = prompt("Please enter admin password for this Kannel instance:", "(enter admin password here)");
5 }
6 check = confirm("Are you sure you want to '"+command+"' bearerbox from this Kannel instance?");
7 if (check == true) {
8 admin_window = window.open("","newWin","width=350,height=150,left=0,top=0");
9 admin_window.location.href = url + "?password=" + passwd;
10 }
11 location.reload();
12 self.focus();
13 }
14
15 function admin_smsc_url(command, url, smsc, passwd) {
16 if (passwd == "") {
17 passwd = prompt("Please enter admin password for this Kannel instance:", "(enter admin password here)");
18 }
19 check = confirm("Are you sure you want to '"+command+"' the smsc-id '"+smsc+"' on the Kannel instance?");
20 if (check == true) {
21 admin_window = window.open("","newWin","width=350,height=150,left=0,top=0");
22 admin_window.location.href = url + "&password=" + passwd;
23 }
24 location.reload();
25 self.focus();
26 }
27
28 function do_alert(text) {
29 alert(text);
30 }