mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 22:04:00 -07:00
Correct indentation
This commit is contained in:
parent
d1b1f97ff4
commit
c57e10156e
21 changed files with 515 additions and 515 deletions
|
@ -1,21 +1,21 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
function randomString() {
|
function randomString() {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var randomstring = '';
|
var randomstring = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
randomstring += chars.substr(rnum, 1);
|
randomstring += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
document.v_add_db.v_password.value = randomstring;
|
document.v_add_db.v_password.value = randomstring;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLOBAL.DB_USER_PREFIX = <?=json_encode($user.'_')?>;
|
GLOBAL.DB_USER_PREFIX = <?=json_encode($user.'_')?>;
|
||||||
GLOBAL.DB_DBNAME_PREFIX = <?=json_encode($user.'_')?>;
|
GLOBAL.DB_DBNAME_PREFIX = <?=json_encode($user.'_')?>;
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/pages/add.db.js"></script>
|
<script src="/js/pages/add.db.js"></script>
|
||||||
|
|
|
@ -1,35 +1,35 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('.add-ns-button').click(function(){
|
||||||
|
var n = $("input[name^=v_ns]").length;
|
||||||
|
if(n < 8){
|
||||||
|
var t = $($('input[name=v_ns1]').parents('tr')[0]).clone(true, true);
|
||||||
|
t.find('input').attr({value:'', name:'v_ns'+(n+1)});
|
||||||
|
t.find('span').show();
|
||||||
|
$('tr.add-ns').before(t);
|
||||||
}
|
}
|
||||||
|
if( n == 7 ) {
|
||||||
|
$('.add-ns').hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$(document).ready(function(){
|
$('.remove-ns').click(function(){
|
||||||
$('.add-ns-button').click(function(){
|
$(this).parents('tr')[0].remove();
|
||||||
var n = $("input[name^=v_ns]").length;
|
$('input[name^=v_ns]').each(function(i, ns){
|
||||||
if(n < 8){
|
$(ns).attr({name: 'v_ns'+(i+1)});
|
||||||
var t = $($('input[name=v_ns1]').parents('tr')[0]).clone(true, true);
|
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
||||||
t.find('input').attr({value:'', name:'v_ns'+(n+1)});
|
})
|
||||||
t.find('span').show();
|
$('.add-ns').show()
|
||||||
$('tr.add-ns').before(t);
|
})
|
||||||
}
|
|
||||||
if( n == 7 ) {
|
|
||||||
$('.add-ns').hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.remove-ns').click(function(){
|
$('input[name^=v_ns]').each(function(i, ns){
|
||||||
$(this).parents('tr')[0].remove();
|
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
||||||
$('input[name^=v_ns]').each(function(i, ns){
|
})
|
||||||
$(ns).attr({name: 'v_ns'+(i+1)});
|
|
||||||
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
|
||||||
})
|
|
||||||
$('.add-ns').show()
|
|
||||||
})
|
|
||||||
|
|
||||||
$('input[name^=v_ns]').each(function(i, ns){
|
});
|
||||||
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
</script>
|
||||||
})
|
|
||||||
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<script>
|
<script>
|
||||||
GLOBAL.DNS_REC_PREFIX = <?=json_encode($_GET['domain'])?>;
|
GLOBAL.DNS_REC_PREFIX = <?=json_encode($_GET['domain'])?>;
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/pages/add.dns.record.js"></script>
|
<script src="/js/pages/add.dns.record.js"></script>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow) {
|
function elementHideShow(elementToHideOrShow) {
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow) {
|
function elementHideShow(elementToHideOrShow) {
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow) {
|
function elementHideShow(elementToHideOrShow) {
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,46 +1,46 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow) {
|
function elementHideShow(elementToHideOrShow) {
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
function randomString() {
|
function randomString() {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var randomstring = '';
|
var randomstring = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
randomstring += chars.substr(rnum, 1);
|
randomstring += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
document.v_add_mail_acc.v_password.value = randomstring;
|
document.v_add_mail_acc.v_password.value = randomstring;
|
||||||
|
|
||||||
if($('input[name=v_password]').attr('type') == 'text')
|
if($('input[name=v_password]').attr('type') == 'text')
|
||||||
$('#v_password').text(randomstring);
|
$('#v_password').text(randomstring);
|
||||||
else
|
else
|
||||||
$('#v_password').text(Array(randomstring.length+1).join('*'));
|
$('#v_password').text(Array(randomstring.length+1).join('*'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#v_account').text($('input[name=v_account]').val());
|
$('#v_account').text($('input[name=v_account]').val());
|
||||||
$('#v_password').text($('input[name=v_password]').val());
|
$('#v_password').text($('input[name=v_password]').val());
|
||||||
|
|
||||||
$('input[name=v_account]').change(function(){
|
$('input[name=v_account]').change(function(){
|
||||||
$('#v_account').text($(this).val());
|
$('#v_account').text($(this).val());
|
||||||
});
|
});
|
||||||
|
|
||||||
$('input[name=v_password]').change(function(){
|
$('input[name=v_password]').change(function(){
|
||||||
if($('input[name=v_password]').attr('type') == 'text')
|
if($('input[name=v_password]').attr('type') == 'text')
|
||||||
$('#v_password').text($(this).val());
|
$('#v_password').text($(this).val());
|
||||||
else
|
else
|
||||||
$('#v_password').text(Array($(this).val().length+1).join('*'));
|
$('#v_password').text(Array($(this).val().length+1).join('*'));
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.toggle-psw-visibility-icon').click(function(){
|
$('.toggle-psw-visibility-icon').click(function(){
|
||||||
if($('input[name=v_password]').attr('type') == 'text')
|
if($('input[name=v_password]').attr('type') == 'text')
|
||||||
$('#v_password').text($('input[name=v_password]').val());
|
$('#v_password').text($('input[name=v_password]').val());
|
||||||
else
|
else
|
||||||
$('#v_password').text(Array($('input[name=v_password]').val().length+1).join('*'));
|
$('#v_password').text(Array($('input[name=v_password]').val().length+1).join('*'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/pages/edit.package.js"></script>
|
<script src="/js/pages/edit.package.js"></script>
|
||||||
|
|
|
@ -1,30 +1,30 @@
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('.add-ns-button').click(function(){
|
$('.add-ns-button').click(function(){
|
||||||
var n = $("input[name^=v_ns]").length;
|
var n = $("input[name^=v_ns]").length;
|
||||||
if(n < 8){
|
if(n < 8){
|
||||||
var t = $($('input[name=v_ns1]').parents('tr')[0]).clone(true, true);
|
var t = $($('input[name=v_ns1]').parents('tr')[0]).clone(true, true);
|
||||||
t.find('input').attr({value:'', name:'v_ns'+(n+1)});
|
t.find('input').attr({value:'', name:'v_ns'+(n+1)});
|
||||||
t.find('span').show();
|
t.find('span').show();
|
||||||
$('tr.add-ns').before(t);
|
$('tr.add-ns').before(t);
|
||||||
}
|
}
|
||||||
if( n == 7 ) {
|
if( n == 7 ) {
|
||||||
$('.add-ns').hide();
|
$('.add-ns').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.remove-ns').click(function(){
|
$('.remove-ns').click(function(){
|
||||||
$(this).parents('tr')[0].remove();
|
$(this).parents('tr')[0].remove();
|
||||||
$('input[name^=v_ns]').each(function(i, ns){
|
$('input[name^=v_ns]').each(function(i, ns){
|
||||||
$(ns).attr({name: 'v_ns'+(i+1)});
|
$(ns).attr({name: 'v_ns'+(i+1)});
|
||||||
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
||||||
})
|
})
|
||||||
$('.add-ns').show();
|
$('.add-ns').show();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('input[name^=v_ns]').each(function(i, ns){
|
$('input[name^=v_ns]').each(function(i, ns){
|
||||||
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/pages/add.package.js"></script>
|
<script src="/js/pages/add.package.js"></script>
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#v_email').change(function() {
|
$('#v_email').change(function() {
|
||||||
document.getElementById('v_notify').value = document.getElementById('v_email').value;
|
document.getElementById('v_notify').value = document.getElementById('v_email').value;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function randomString() {
|
function randomString() {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var randomstring = '';
|
var randomstring = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
randomstring += chars.substr(rnum, 1);
|
randomstring += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
document.v_add_user.v_password.value = randomstring;
|
document.v_add_user.v_password.value = randomstring;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,45 +1,45 @@
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#v_domain').change(function() {
|
$('#v_domain').change(function() {
|
||||||
var prefix = 'www.';
|
var prefix = 'www.';
|
||||||
document.getElementById('v_aliases').value = prefix + document.getElementById('v_domain').value;
|
document.getElementById('v_aliases').value = prefix + document.getElementById('v_domain').value;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function WEBrandom() {
|
function WEBrandom() {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var webrandom = '';
|
var webrandom = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
webrandom += chars.substr(rnum, 1);
|
webrandom += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
document.v_add_web.v_stats_password.value = webrandom;
|
document.v_add_web.v_stats_password.value = webrandom;
|
||||||
}
|
}
|
||||||
|
|
||||||
function FTPrandom(elm) {
|
function FTPrandom(elm) {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var ftprandomstring = '';
|
var ftprandomstring = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
ftprandomstring += chars.substr(rnum, 1);
|
ftprandomstring += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
$(elm).parents('.ftptable').find('.v-ftp-user-psw').val(ftprandomstring);
|
$(elm).parents('.ftptable').find('.v-ftp-user-psw').val(ftprandomstring);
|
||||||
}
|
}
|
||||||
|
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#vstobjects').bind('submit', function(evt) {
|
$('#vstobjects').bind('submit', function(evt) {
|
||||||
$('input[disabled]').each(function(i, elm) {
|
$('input[disabled]').each(function(i, elm) {
|
||||||
$(elm).removeAttr('disabled');
|
$(elm).removeAttr('disabled');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
GLOBAL.FTP_USER_PREFIX = <?=json_encode($user)?>;
|
GLOBAL.FTP_USER_PREFIX = <?=json_encode($user)?>;
|
||||||
GLOBAL.FTP_USER_PREPATH = <?=json_encode($v_ftp_user_prepath)?>;
|
GLOBAL.FTP_USER_PREPATH = <?=json_encode($v_ftp_user_prepath)?>;
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/pages/add.web.js"></script>
|
<script src="/js/pages/add.web.js"></script>
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
function randomString() {
|
function randomString() {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var randomstring = '';
|
var randomstring = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
randomstring += chars.substr(rnum, 1);
|
randomstring += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
document.v_edit_db.v_password.value = randomstring;
|
document.v_edit_db.v_password.value = randomstring;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLOBAL.DB_USER_PREFIX = <?=json_encode($user.'_')?>;
|
GLOBAL.DB_USER_PREFIX = <?=json_encode($user.'_')?>;
|
||||||
GLOBAL.DB_DBNAME_PREFIX = <?=json_encode($user.'_')?>;
|
GLOBAL.DB_DBNAME_PREFIX = <?=json_encode($user.'_')?>;
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/pages/edit.db.js"></script>
|
<script src="/js/pages/edit.db.js"></script>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
function randomString() {
|
function randomString() {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var randomstring = '';
|
var randomstring = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
randomstring += chars.substr(rnum, 1);
|
randomstring += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
document.v_edit_mail_acc.v_password.value = randomstring;
|
document.v_edit_mail_acc.v_password.value = randomstring;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/pages/edit.mail_acc.js"></script>
|
<script src="/js/pages/edit.mail_acc.js"></script>
|
||||||
|
|
|
@ -1,31 +1,31 @@
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('.add-ns-button').click(function(){
|
$('.add-ns-button').click(function(){
|
||||||
var n = $("input[name^=v_ns]").length;
|
var n = $("input[name^=v_ns]").length;
|
||||||
if(n < 8){
|
if(n < 8){
|
||||||
var t = $($('input[name=v_ns1]').parents('tr')[0]).clone(true, true);
|
var t = $($('input[name=v_ns1]').parents('tr')[0]).clone(true, true);
|
||||||
t.find('input').attr({value:'', name:'v_ns'+(n+1)});
|
t.find('input').attr({value:'', name:'v_ns'+(n+1)});
|
||||||
t.find('span').show();
|
t.find('span').show();
|
||||||
$('tr.add-ns').before(t);
|
$('tr.add-ns').before(t);
|
||||||
}
|
}
|
||||||
if( n == 7 ) {
|
if( n == 7 ) {
|
||||||
$('.add-ns').hide();
|
$('.add-ns').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.remove-ns').click(function(){
|
|
||||||
$(this).parents('tr')[0].remove();
|
|
||||||
$('input[name^=v_ns]').each(function(i, ns){
|
|
||||||
$(ns).attr({name: 'v_ns'+(i+1)});
|
|
||||||
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
|
||||||
});
|
|
||||||
$('.add-ns').show();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('input[name^=v_ns]').each(function(i, ns){
|
|
||||||
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
$('.remove-ns').click(function(){
|
||||||
|
$(this).parents('tr')[0].remove();
|
||||||
|
$('input[name^=v_ns]').each(function(i, ns){
|
||||||
|
$(ns).attr({name: 'v_ns'+(i+1)});
|
||||||
|
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
||||||
});
|
});
|
||||||
</script>
|
$('.add-ns').show();
|
||||||
<script src="/js/pages/edit.package.js"></script>
|
});
|
||||||
|
|
||||||
|
$('input[name^=v_ns]').each(function(i, ns){
|
||||||
|
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script src="/js/pages/edit.package.js"></script>
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
<script>
|
<script>
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('select[name=v_filemanager]').change(function(){
|
||||||
|
if($(this).val() == 'yes'){
|
||||||
|
$('.filemanager.description').show();
|
||||||
|
} else {
|
||||||
|
$('.filemanager.description').hide();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$(document).ready(function(){
|
$('select[name=v_sftp]').change(function(){
|
||||||
$('select[name=v_filemanager]').change(function(){
|
if($(this).val() == 'yes'){
|
||||||
if($(this).val() == 'yes'){
|
$('.sftp.description').show();
|
||||||
$('.filemanager.description').show();
|
} else {
|
||||||
} else {
|
$('.sftp.description').hide();
|
||||||
$('.filemanager.description').hide();
|
}
|
||||||
}
|
});
|
||||||
});
|
});
|
||||||
|
</script>
|
||||||
$('select[name=v_sftp]').change(function(){
|
|
||||||
if($(this).val() == 'yes'){
|
|
||||||
$('.sftp.description').show();
|
|
||||||
} else {
|
|
||||||
$('.sftp.description').hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
|
@ -1,41 +1,41 @@
|
||||||
<script>
|
<script>
|
||||||
function randomString() {
|
function randomString() {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var randomstring = '';
|
var randomstring = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
randomstring += chars.substr(rnum, 1);
|
randomstring += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
document.v_edit_user.v_password.value = randomstring;
|
document.v_edit_user.v_password.value = randomstring;
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('.add-ns-button').click(function(){
|
||||||
|
var n = $("input[name^=v_ns]").length;
|
||||||
|
if(n < 8){
|
||||||
|
var t = $($('input[name=v_ns1]').parents('tr')[0]).clone(true, true);
|
||||||
|
t.find('input').attr({value:'', name:'v_ns'+(n+1)});
|
||||||
|
t.find('span').show();
|
||||||
|
$('tr.add-ns').before(t);
|
||||||
}
|
}
|
||||||
|
if( n == 7 ) {
|
||||||
|
$('.add-ns').hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$(document).ready(function(){
|
$('.remove-ns').click(function(){
|
||||||
$('.add-ns-button').click(function(){
|
$(this).parents('tr')[0].remove();
|
||||||
var n = $("input[name^=v_ns]").length;
|
$('input[name^=v_ns]').each(function(i, ns){
|
||||||
if(n < 8){
|
$(ns).attr({name: 'v_ns'+(i+1)});
|
||||||
var t = $($('input[name=v_ns1]').parents('tr')[0]).clone(true, true);
|
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
||||||
t.find('input').attr({value:'', name:'v_ns'+(n+1)});
|
|
||||||
t.find('span').show();
|
|
||||||
$('tr.add-ns').before(t);
|
|
||||||
}
|
|
||||||
if( n == 7 ) {
|
|
||||||
$('.add-ns').hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.remove-ns').click(function(){
|
|
||||||
$(this).parents('tr')[0].remove();
|
|
||||||
$('input[name^=v_ns]').each(function(i, ns){
|
|
||||||
$(ns).attr({name: 'v_ns'+(i+1)});
|
|
||||||
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
|
||||||
});
|
|
||||||
$('.add-ns').show();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('input[name^=v_ns]').each(function(i, ns){
|
|
||||||
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
$('.add-ns').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('input[name^=v_ns]').each(function(i, ns){
|
||||||
|
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
|
@ -1,42 +1,42 @@
|
||||||
<script>
|
<script>
|
||||||
function WEBrandom() {
|
function WEBrandom() {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var webrandom = '';
|
var webrandom = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
webrandom += chars.substr(rnum, 1);
|
webrandom += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
document.v_edit_web.v_stats_password.value = webrandom;
|
document.v_edit_web.v_stats_password.value = webrandom;
|
||||||
}
|
}
|
||||||
|
|
||||||
function FTPrandom(elm) {
|
function FTPrandom(elm) {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var ftprandomstring = '';
|
var ftprandomstring = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
ftprandomstring += chars.substr(rnum, 1);
|
ftprandomstring += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$(elm).parents('.ftptable').find('.v-ftp-user-psw').val(ftprandomstring);
|
$(elm).parents('.ftptable').find('.v-ftp-user-psw').val(ftprandomstring);
|
||||||
App.Actions.WEB.randomPasswordGenerated && App.Actions.WEB.randomPasswordGenerated(elm);
|
App.Actions.WEB.randomPasswordGenerated && App.Actions.WEB.randomPasswordGenerated(elm);
|
||||||
}
|
}
|
||||||
|
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#vstobjects').bind('submit', function(evt) {
|
$('#vstobjects').bind('submit', function(evt) {
|
||||||
$('input[disabled]').each(function(i, elm) {
|
$('input[disabled]').each(function(i, elm) {
|
||||||
var copy_elm = $(elm).clone(true);
|
var copy_elm = $(elm).clone(true);
|
||||||
$(copy_elm).attr('type', 'hidden');
|
$(copy_elm).attr('type', 'hidden');
|
||||||
$(copy_elm).removeAttr('disabled');
|
$(copy_elm).removeAttr('disabled');
|
||||||
$(elm).after(copy_elm);
|
$(elm).after(copy_elm);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
GLOBAL.FTP_USER_PREFIX = <?=json_encode($user.'_')?>;
|
GLOBAL.FTP_USER_PREFIX = <?=json_encode($user.'_')?>;
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/pages/edit.web.js"></script>
|
<script src="/js/pages/edit.web.js"></script>
|
||||||
|
|
|
@ -1,84 +1,84 @@
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="/js/jquery-1.7.2.min.js?1446554103"></script>
|
<script type="text/javascript" src="/js/jquery-1.7.2.min.js?1446554103"></script>
|
||||||
<script type="text/javascript" src="/js/jquery.cookie.js?1446554103"></script>
|
<script type="text/javascript" src="/js/jquery.cookie.js?1446554103"></script>
|
||||||
<script type="text/javascript" src="/js/jquery-ui-1.8.20.custom.min.js?1467113876"></script>
|
<script type="text/javascript" src="/js/jquery-ui-1.8.20.custom.min.js?1467113876"></script>
|
||||||
<script type="text/javascript" src="/js/hotkeys.js?1446554103"></script>
|
<script type="text/javascript" src="/js/hotkeys.js?1446554103"></script>
|
||||||
<script type="text/javascript" src="/js/events.js?1446554103"></script>
|
<script type="text/javascript" src="/js/events.js?1446554103"></script>
|
||||||
<script type="text/javascript" src="/js/app.js?1446554103"></script>
|
<script type="text/javascript" src="/js/app.js?1446554103"></script>
|
||||||
<script type="text/javascript" src="/js/templates.js?1446554103"></script>
|
<script type="text/javascript" src="/js/templates.js?1446554103"></script>
|
||||||
<script src="/js/jquery.finder.js"></script>
|
<script src="/js/jquery.finder.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
hover_menu();
|
hover_menu();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
@include($JS_FILE);
|
@include($JS_FILE);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (!empty($_SESSION['error_msg'])):
|
if (!empty($_SESSION['error_msg'])):
|
||||||
?>
|
?>
|
||||||
<div>
|
<div>
|
||||||
<div id="dialog-message" title="">
|
<div id="dialog-message" title="">
|
||||||
<p><?=htmlentities($_SESSION['error_msg'])?></p>
|
<p><?=htmlentities($_SESSION['error_msg'])?></p>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$('#dialog:ui-dialog').dialog('destroy');
|
$('#dialog:ui-dialog').dialog('destroy');
|
||||||
$('#dialog-message').dialog({
|
$('#dialog-message').dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
buttons: {
|
buttons: {
|
||||||
Ok: function() {
|
Ok: function() {
|
||||||
$(this).dialog('close');
|
$(this).dialog('close');
|
||||||
}
|
|
||||||
},
|
|
||||||
create: function() {
|
|
||||||
$(this)
|
|
||||||
.closest('.ui-dialog')
|
|
||||||
.find('.ui-button:first')
|
|
||||||
.addClass('submit');
|
|
||||||
}
|
}
|
||||||
});
|
},
|
||||||
</script>
|
create: function() {
|
||||||
</div>
|
$(this)
|
||||||
|
.closest('.ui-dialog')
|
||||||
|
.find('.ui-button:first')
|
||||||
|
.addClass('submit');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
unset($_SESSION['error_msg']);
|
unset($_SESSION['error_msg']);
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div title="Confirmation" class="confirmation-text-redirect hidden">
|
<div title="Confirmation" class="confirmation-text-redirect hidden">
|
||||||
<p class="confirmation"><?=__('LEAVE_PAGE_CONFIRMATION')?></p>
|
<p class="confirmation"><?=__('LEAVE_PAGE_CONFIRMATION')?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="shortcuts" style="display:none">
|
||||||
|
<div class="header">
|
||||||
|
<div class="title">Shortcuts</div>
|
||||||
|
<div class="close"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<ul>
|
||||||
|
<li><span class="key">a</span><?=__('Add New object')?></li>
|
||||||
|
<li><span class="key">Ctrl + Enter</span><?=__('Save Form')?></li>
|
||||||
|
<li><span class="key">Ctrl + Backspace</span><?=__('Cancel saving form')?></li>
|
||||||
|
|
||||||
<div class="shortcuts" style="display:none">
|
<li class="step-top"><span class="key">1</span><?=__('Go to USER list')?></li>
|
||||||
<div class="header">
|
<li><span class="key">2</span><?=__('Go to WEB list')?></li>
|
||||||
<div class="title">Shortcuts</div>
|
<li><span class="key">3</span><?=__('Go to DNS list')?></li>
|
||||||
<div class="close"></div>
|
<li><span class="key">4</span><?=__('Go to MAIL list')?></li>
|
||||||
</div>
|
<li><span class="key">5</span><?=__('Go to DB list')?></li>
|
||||||
<ul>
|
<li><span class="key">6</span><?=__('Go to CRON list')?></li>
|
||||||
<li><span class="key">a</span><?=__('Add New object')?></li>
|
<li><span class="key">7</span><?=__('Go to BACKUP list')?></li>
|
||||||
<li><span class="key">Ctrl + Enter</span><?=__('Save Form')?></li>
|
</ul>
|
||||||
<li><span class="key">Ctrl + Backspace</span><?=__('Cancel saving form')?></li>
|
<ul>
|
||||||
|
<li><span class="key">f</span><?=__('Focus on search')?></li>
|
||||||
|
<li class="step-top"><span class="key">h</span><?=__('Display/Close shortcuts')?></li>
|
||||||
|
|
||||||
<li class="step-top"><span class="key">1</span><?=__('Go to USER list')?></li>
|
<li class="step-top"><span class="key bigger">←</span><?=__('Move backward through top menu')?></li>
|
||||||
<li><span class="key">2</span><?=__('Go to WEB list')?></li>
|
<li><span class="key bigger">→</span><?=__('Move forward through top menu')?></li>
|
||||||
<li><span class="key">3</span><?=__('Go to DNS list')?></li>
|
<li><span class="key">Enter</span><?=__('Enter focused element')?></li>
|
||||||
<li><span class="key">4</span><?=__('Go to MAIL list')?></li>
|
|
||||||
<li><span class="key">5</span><?=__('Go to DB list')?></li>
|
|
||||||
<li><span class="key">6</span><?=__('Go to CRON list')?></li>
|
|
||||||
<li><span class="key">7</span><?=__('Go to BACKUP list')?></li>
|
|
||||||
</ul>
|
|
||||||
<ul>
|
|
||||||
<li><span class="key">f</span><?=__('Focus on search')?></li>
|
|
||||||
<li class="step-top"><span class="key">h</span><?=__('Display/Close shortcuts')?></li>
|
|
||||||
|
|
||||||
<li class="step-top"><span class="key bigger">←</span><?=__('Move backward through top menu')?></li>
|
<li class="step-top"><span class="key bigger">↑</span><?=__('Move up through elements list')?></li>
|
||||||
<li><span class="key bigger">→</span><?=__('Move forward through top menu')?></li>
|
<li><span class="key bigger">↓</span><?=__('Move down through elements list')?></li>
|
||||||
<li><span class="key">Enter</span><?=__('Enter focused element')?></li>
|
</ul>
|
||||||
|
</div>
|
||||||
<li class="step-top"><span class="key bigger">↑</span><?=__('Move up through elements list')?></li>
|
</body>
|
||||||
<li><span class="key bigger">↓</span><?=__('Move down through elements list')?></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,41 +1,41 @@
|
||||||
<script>
|
<script>
|
||||||
function randomString() {
|
function randomString() {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var randomstring = '';
|
var randomstring = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
randomstring += chars.substr(rnum, 1);
|
randomstring += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
document.v_edit_user.v_password.value = randomstring;
|
document.v_edit_user.v_password.value = randomstring;
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('.add-ns-button').click(function(){
|
||||||
|
var n = $("input[name^=v_ns]").length;
|
||||||
|
if(n < 8){
|
||||||
|
var t = $($('input[name=v_ns1]').parents('tr')[0]).clone(true, true);
|
||||||
|
t.find('input').attr({value:'', name:'v_ns'+(n+1)});
|
||||||
|
t.find('span').show();
|
||||||
|
$('tr.add-ns').before(t);
|
||||||
}
|
}
|
||||||
|
if( n == 7 ) {
|
||||||
|
$('.add-ns').hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$(document).ready(function(){
|
$('.remove-ns').click(function(){
|
||||||
$('.add-ns-button').click(function(){
|
$(this).parents('tr')[0].remove();
|
||||||
var n = $("input[name^=v_ns]").length;
|
$('input[name^=v_ns]').each(function(i, ns){
|
||||||
if(n < 8){
|
$(ns).attr({name: 'v_ns'+(i+1)});
|
||||||
var t = $($('input[name=v_ns1]').parents('tr')[0]).clone(true, true);
|
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
||||||
t.find('input').attr({value:'', name:'v_ns'+(n+1)});
|
|
||||||
t.find('span').show();
|
|
||||||
$('tr.add-ns').before(t);
|
|
||||||
}
|
|
||||||
if( n == 7 ) {
|
|
||||||
$('.add-ns').hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.remove-ns').click(function(){
|
|
||||||
$(this).parents('tr')[0].remove();
|
|
||||||
$('input[name^=v_ns]').each(function(i, ns){
|
|
||||||
$(ns).attr({name: 'v_ns'+(i+1)});
|
|
||||||
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
|
||||||
});
|
|
||||||
$('.add-ns').show();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('input[name^=v_ns]').each(function(i, ns){
|
|
||||||
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
$('.add-ns').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('input[name^=v_ns]').each(function(i, ns){
|
||||||
|
i < 2 ? $(ns).parent().find('span').hide() : $(ns).parent().find('span').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
|
@ -1,42 +1,42 @@
|
||||||
<script>
|
<script>
|
||||||
function WEBrandom() {
|
function WEBrandom() {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var webrandom = '';
|
var webrandom = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
webrandom += chars.substr(rnum, 1);
|
webrandom += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
document.v_edit_web.v_stats_password.value = webrandom;
|
document.v_edit_web.v_stats_password.value = webrandom;
|
||||||
}
|
}
|
||||||
|
|
||||||
function FTPrandom(elm) {
|
function FTPrandom(elm) {
|
||||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||||
var string_length = 10;
|
var string_length = 10;
|
||||||
var webrandom = '';
|
var webrandom = '';
|
||||||
for (var i = 0; i < string_length; i++) {
|
for (var i = 0; i < string_length; i++) {
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
webrandom += chars.substr(rnum, 1);
|
webrandom += chars.substr(rnum, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$(elm).parents('.ftptable').find('.v-ftp-user-psw').val(ftprandomstring);
|
$(elm).parents('.ftptable').find('.v-ftp-user-psw').val(ftprandomstring);
|
||||||
App.Actions.WEB.randomPasswordGenerated && App.Actions.WEB.randomPasswordGenerated(elm);
|
App.Actions.WEB.randomPasswordGenerated && App.Actions.WEB.randomPasswordGenerated(elm);
|
||||||
}
|
}
|
||||||
|
|
||||||
function elementHideShow(elementToHideOrShow){
|
function elementHideShow(elementToHideOrShow){
|
||||||
var el = document.getElementById(elementToHideOrShow);
|
var el = document.getElementById(elementToHideOrShow);
|
||||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#vstobjects').bind('submit', function(evt) {
|
$('#vstobjects').bind('submit', function(evt) {
|
||||||
$('input[disabled]').each(function(i, elm) {
|
$('input[disabled]').each(function(i, elm) {
|
||||||
var copy_elm = $(elm).clone(true);
|
var copy_elm = $(elm).clone(true);
|
||||||
$(copy_elm).attr('type', 'hidden');
|
$(copy_elm).attr('type', 'hidden');
|
||||||
$(copy_elm).removeAttr('disabled');
|
$(copy_elm).removeAttr('disabled');
|
||||||
$(elm).after(copy_elm);
|
$(elm).after(copy_elm);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
GLOBAL.FTP_USER_PREFIX = <?=json_encode($user.'_')?>;
|
GLOBAL.FTP_USER_PREFIX = <?=json_encode($user.'_')?>;
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/pages/edit.web.js"></script>
|
<script src="/js/pages/edit.web.js"></script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue