mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-06-16 22:01:00 +00:00
Moved php from cgi-bin to backend
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user