2 header(
'Content-type: text/javascript');
10 function fieldInfo(
id){
14 function testftp(form){
16 postDataReturnText(
'installer.php',
'-action=testftp&-ftphost='+escape(form.ftp_host.value)+
'&-ftpuser='+escape(form.ftp_username.value)+
'&-ftppass='+escape(form.ftp_password.value)+
'&-ftppath='+escape(form.ftp_path.value),
function(result){
17 var resultDiv = document.getElementById(
'ftp-test-results');
18 eval(
'var results = '+result+
';');
19 resultDiv.innerHTML = results.message;
25 function testdb(form){
26 postDataReturnText(
'installer.php',
'-action=testdb&-dbname='+escape(form.database_name.options[form.database_name.selectedIndex].value)+
'&-dbuser='+escape(form.mysql_user.value)+
'&-dbpass='+escape(form.mysql_password.value),
function(result){
27 var resultDiv = document.getElementById(
'db-test-results');
28 eval(
'var results = '+result+
';');
29 resultDiv.innerHTML = results.message;
36 'onchange' :
function(fld){
38 var option = fld.options[fld.selectedIndex].value;
40 document.getElementById(
'step2').style.display=
'';
42 document.getElementById(
'step2').style.display=
'none';
48 'onchange':
function(fld){
49 var option = fld.options[fld.selectedIndex].value;
50 if ( option ==
'ftp_install' ){
51 document.getElementById(
'step4').style.display=
'';
53 document.getElementById(
'step4').style.display=
'none';
54 document.getElementById(
'submitstep').style.display=
'';