diff --git a/tools/analysis/VisualFAIL/core.php b/tools/analysis/VisualFAIL/core.php index bc240d49..3639d46a 100644 --- a/tools/analysis/VisualFAIL/core.php +++ b/tools/analysis/VisualFAIL/core.php @@ -6,12 +6,12 @@ set_time_limit(60*10); //Datenbankverbindung aufbauen $verbindung = mysql_connect ($host,$username, $password) - or die ("keine Verbindung möglich. Benutzername oder Passwort sind falsch"); + or die ("MySQL connection failed."); -mysql_select_db($database) or die ("Die Datenbank existiert nicht."); +mysql_select_db($database) or die ("Cannot select database '$database'."); -//Kommande lesen -switch ($_GET['kommando']) { +// identify command +switch ($_GET['cmd']) { case "dbTest" : dbTest();break; case "getAsmCode" : getAsmCode();break; case "asmToSourceFile" : asmToSourceFile();break; diff --git a/tools/analysis/VisualFAIL/index.php b/tools/analysis/VisualFAIL/index.php index a0b971cd..9d51675b 100644 --- a/tools/analysis/VisualFAIL/index.php +++ b/tools/analysis/VisualFAIL/index.php @@ -46,7 +46,7 @@
-
Variante
+
Variant
- +
diff --git a/tools/analysis/VisualFAIL/js/myscript.js b/tools/analysis/VisualFAIL/js/myscript.js index 7af33399..1ee73926 100644 --- a/tools/analysis/VisualFAIL/js/myscript.js +++ b/tools/analysis/VisualFAIL/js/myscript.js @@ -52,7 +52,7 @@ $('body').popover({ var ausgabe = ''; var caller = $(this); - $.getJSON("core.php", {kommando: 'getResultTypes'}, function(data) { + $.getJSON("core.php", {cmd: 'getResultTypes'}, function(data) { $.each(data, function(key, val) { ausgabe = ausgabe + val +': ' + caller.attr(val) + '
'; }); @@ -74,7 +74,7 @@ $('body').popover({ $(document).ready(function() { //DB check - $.getJSON("core.php", {kommando: 'dbTest'}, function(data) { + $.getJSON("core.php", {cmd: 'dbTest'}, function(data) { if(data != "ok") { $('html').html(data); @@ -82,7 +82,7 @@ $(document).ready(function() { }); //Holen der Binarys, die in der DB in der Tabelle Variant vorkommen - $.getJSON("core.php", {kommando: 'getBinarys'}, function(data) { + $.getJSON("core.php", {cmd: 'getBinarys'}, function(data) { $.each(data, function(key, val) { $('#binary').append(''); }); @@ -91,7 +91,7 @@ $(document).ready(function() { //Auswahl eines Eintrages aus den Source-Files für die Darstellung des Hochsprachencode $('#sourceFiles').change(function() { if($(this).val() != 'none') { - $.getJSON("core.php", {kommando: 'getHighlevelCode', variant_id: $('#variant').val(), file_id: $(this).val(), version: $('#faerbung').val()}, function(data) { + $.getJSON("core.php", {cmd: 'getHighlevelCode', variant_id: $('#variant').val(), file_id: $(this).val(), version: $('#faerbung').val()}, function(data) { $('#hcode').html(data); @@ -148,7 +148,7 @@ $(document).ready(function() { $('#binary').change(function() { if($(this).val() != 'none') { $('#variant').html(''); - $.getJSON("core.php", {kommando: 'getVariants', datei: $(this).val()}, function(data) { + $.getJSON("core.php", {cmd: 'getVariants', datei: $(this).val()}, function(data) { $.each(data, function(key, val) { $('#variant').append(''); }); @@ -159,17 +159,17 @@ $(document).ready(function() { //Analyse Button wird gedrueckt $('#analyse').button().click( function () { - $.getJSON("core.php", {kommando: 'getAsmCode', variant_id: $('#variant').val(), version: $('#faerbung').val()}, function(data) { + $.getJSON("core.php", {cmd: 'getAsmCode', variant_id: $('#variant').val(), version: $('#faerbung').val()}, function(data) { $('#asm').html(data); }); - $.getJSON("core.php", {kommando: 'getSourceFiles', variant: $('#variant').val()}, function(data) { + $.getJSON("core.php", {cmd: 'getSourceFiles', variant: $('#variant').val()}, function(data) { $.each(data, function(key, val) { $('#sourceFiles').append(''); }); }); - $.getJSON("core.php", {kommando: 'getResultTypes'}, function(data) { + $.getJSON("core.php", {cmd: 'getResultTypes'}, function(data) { $('#fehlertypenset').html(''); $.each(data, function(key, val) {