Moved php from cgi-bin to backend

This commit is contained in:
Oleg Sh
2024-10-10 20:17:45 +02:00
parent aac9da9d45
commit 1576a1c6e4
24 changed files with 100 additions and 100 deletions
+3 -3
View File
@@ -843,7 +843,7 @@ Application.prototype.SetAdjacencyMatrix = function (matrix, separator)
var c = {};
if (!this.TestAdjacencyMatrix(matrix, r, c, separator))
{
$.get( "/" + SiteDir + "cgi-bin/addFailedMatrix.php?text=adjacency&matrix=" + encodeURIComponent(matrix), function( data ) {;});
$.get( "/" + SiteDir + "backend/addFailedMatrix.php?text=adjacency&matrix=" + encodeURIComponent(matrix), function( data ) {;});
res = false;
}
@@ -860,7 +860,7 @@ Application.prototype.SetPair = function (pair)
var c = {};
if (!this.TestPair(pair))
{
$.get( "/" + SiteDir + "cgi-bin/addFailedMatrix.php?text=pair&matrix=" + encodeURIComponent(pair), function( data ) {;});
$.get( "/" + SiteDir + "backend/addFailedMatrix.php?text=pair&matrix=" + encodeURIComponent(pair), function( data ) {;});
res = false;
}
@@ -892,7 +892,7 @@ Application.prototype.SetIncidenceMatrix = function (matrix)
var c = {};
if (!this.TestIncidenceMatrix(matrix, r, c))
{
$.get( "/" + SiteDir + "cgi-bin/addFailedMatrix.php?text=incidence&matrix=" + encodeURIComponent(matrix), function( data ) {;});
$.get( "/" + SiteDir + "backend/addFailedMatrix.php?text=incidence&matrix=" + encodeURIComponent(matrix), function( data ) {;});
res = false;
}
+4 -4
View File
@@ -7,7 +7,7 @@ DiskSaveLoad.LoadGraphFromDisk = function (graphName, callback)
{
$.ajax({
type: "GET",
url: "/" + SiteDir + "cgi-bin/loadGraph.php?name=" + graphName
url: "/" + SiteDir + "backend/loadGraph.php?name=" + graphName
})
.done(callback);
}
@@ -16,7 +16,7 @@ DiskSaveLoad.SaveSVGGraphOnDisk = function (imageName, svgText, callback)
{
$.ajax({
type: "POST",
url: "/" + SiteDir + "cgi-bin/saveSvg.php?name=" + imageName,
url: "/" + SiteDir + "backend/saveSvg.php?name=" + imageName,
data: {
svgdata : svgText
},
@@ -31,7 +31,7 @@ DiskSaveLoad.SaveGraphOnDisk = function (savedGraphName, graphAsString, callback
{
$.ajax({
type: "POST",
url: "/" + SiteDir + "cgi-bin/saveGraph.php?name=" + savedGraphName,
url: "/" + SiteDir + "backend/saveGraph.php?name=" + savedGraphName,
data: graphAsString,
dataType: "text"
})
@@ -42,7 +42,7 @@ DiskSaveLoad.SaveGraphImageOnDisk = function (imageName, rectParams, imageBase64
{
$.ajax({
type: "POST",
url: "/" + SiteDir + "cgi-bin/saveImage.php?name=" + imageName + rectParams,
url: "/" + SiteDir + "backend/saveImage.php?name=" + imageName + rectParams,
data: {
base64data : imageBase64Data
},