# Makefile
# David Rowe 1 Jan 2010
#
-# Makefile for Easy Asterisk GUI
+# Makefile for Mini Asterisk GUI
#
# 1/ Download files to development box for testing:
#
sed -i "s,http://$(HOST)/set_network.sh,network.sh.html," static/$(HOST)/network.sh.html
sed -i "s,http://$(HOST)/set_ring.sh,phones.sh.html," static/$(HOST)/phones.sh.html
sed -i "s,http://$(HOST)/set_voiplines.sh,voiplines.sh.html," static/$(HOST)/voiplines.sh.html
+ sed -i "s,url=login.sh,url=phones.sh.html," static/$(HOST)/logout.sh.html
var ary = obj.value.split(".");
var ip = true;
- for (var i=0; i<4; i++) {
- ip = (!ary[i].match(/^\d{1,3}$/) || (Number(ary[i]) > 255)) ? false : ip;
- }
-
- if (ip)
- ip = (ary.length == 4);
+ ip = (ary.length == 4);
+
+ if (ip) {
+ for (var i=0; i<4; i++) {
+ ip = (!ary[i].match(/^\d{1,3}$/) || (Number(ary[i]) > 255)) ? false : ip;
+ }
+ }
if (!ip) {
// the value is NOT a valid IP address