mirror of https://github.com/Aidaho12/haproxy-wi
v3.2.10
parent
429e306ce0
commit
6951b714c0
|
@ -1072,7 +1072,6 @@ $( function() {
|
|||
$( "#blacklist-hide-input1" ).prop('required',false);
|
||||
}
|
||||
});
|
||||
|
||||
cur_url = cur_url[0].split('#');
|
||||
if (cur_url[0] == "/app/add.py") {
|
||||
$("#cache").checkboxradio( "disable" );
|
||||
|
@ -1093,34 +1092,90 @@ $( function() {
|
|||
$( "#serv3" ).on('selectmenuchange',function() {
|
||||
change_select_acceleration("3");
|
||||
});
|
||||
$( "#add1" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 0 );
|
||||
} );
|
||||
$( "#add2" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 1 );
|
||||
} );
|
||||
$( "#add3" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 2 );
|
||||
} );
|
||||
$( "#add4" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 3 );
|
||||
} );
|
||||
}
|
||||
if (cur_url[0] == "/app/users.py" || cur_url[0] == "/app/servers.py") {
|
||||
$( ".users" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 0 );
|
||||
} );
|
||||
if (cur_url[0] == "/app/users.py") {
|
||||
$( ".group" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 1 );
|
||||
} );
|
||||
} else {
|
||||
$( ".runtime" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 1 );
|
||||
} );
|
||||
}
|
||||
if (cur_url[0] == "/app/servers.py") {
|
||||
$( ".admin" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 2 );
|
||||
} );
|
||||
}
|
||||
if (cur_url[0] == "/app/users.py") {
|
||||
$( ".runtime" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 2 );
|
||||
} );
|
||||
}
|
||||
$( ".role" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 3 );
|
||||
} );
|
||||
$( ".admin" ).on( "click", function() {
|
||||
$('.menu li').each(function () {
|
||||
$(this).removeClass('current');
|
||||
});
|
||||
$(this).parent().addClass('current');
|
||||
$( "#tabs" ).tabs( "option", "active", 4 );
|
||||
} );
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ echo ""
|
|||
echo "################################"
|
||||
|
||||
if hash apt-get 2>/dev/null; then
|
||||
apt-get install git net-tools lshw dos2unix apache2 gcc netcat python35u python3-pip g++ freetype2-demos libatlas-base-dev -y
|
||||
apt-get install git net-tools lshw dos2unix apache2 gcc netcat python3.5 python3-pip g++ freetype2-demos libatlas-base-dev -y
|
||||
HTTPD_CONFIG="/etc/apache2/apache2.conf"
|
||||
HAPROXY_WI_VHOST_CONF="/etc/apache2/sites-enabled/haproxy-wi.conf"
|
||||
HTTPD_NAME="apache2"
|
||||
|
@ -56,7 +56,7 @@ else
|
|||
if [[ $(cat /etc/*-rele* |grep NAME |head -1) == 'NAME="CentOS Linux"' ]];then
|
||||
yum -y install epel-release
|
||||
fi
|
||||
|
||||
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
|
||||
yum -y install git nmap-ncat net-tools python35u dos2unix python35u-pip httpd python35u-devel gcc-c++
|
||||
HTTPD_CONFIG="/etc/httpd/conf/httpd.conf"
|
||||
HAPROXY_WI_VHOST_CONF="/etc/httpd/conf.d/haproxy-wi.conf"
|
||||
|
|
|
@ -13,6 +13,7 @@ chmod +x app/tools/*py
|
|||
if hash apt-get 2>/dev/null; then
|
||||
apt-get install git net-tools lshw dos2unix apache2 gcc netcat python3-pip gcc-c++ -y
|
||||
else
|
||||
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
|
||||
yum -y install git nmap-ncat net-tools python35u dos2unix python35u-pip httpd python35u-devel gcc-c++
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue