Skip to content

Commit

Permalink
WIP: all ok?
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRannou committed Dec 2, 2011
1 parent d3f5f91 commit c263cd0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 15 deletions.
8 changes: 0 additions & 8 deletions ajax.php

This file was deleted.

File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions testcommand.php → ajax/testcommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@
$_SESSION["newimage"] = $newimage;
$_SESSION["command"] = $command;



// In my case $HTTP_ENV_VARS['PATH'] = bin:usr/bin
$env_vars = "/Users/nr52/INSTALL/ImageMagick-6.7.3/bin/";

$fullcommand = $env_vars . $command . " " . $image . " " . $newimage;
$fullcommand = $env_vars . $command . " ../" . $image . " ../" . $newimage;

system($fullcommand);

Expand Down
6 changes: 3 additions & 3 deletions js/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function UpdateCurrentImage(filename)
}


var im = "currentimage.php?var1=";
var im = "ajax/currentimage.php?var1=";
var ag = im.concat(filename);

xmlHttp.open("GET", ag, true);
Expand Down Expand Up @@ -71,7 +71,7 @@ function RequestUpdateImageIfAny()
}
}

xmlHttp.open("GET", "currentimageupdate.php", true);
xmlHttp.open("GET", "ajax/currentimageupdate.php", true);
xmlHttp.send(null);
}

Expand Down Expand Up @@ -105,7 +105,7 @@ function UpdateTestCommand(file)
}
}

var im = "testcommand.php?var1=";
var im = "ajax/testcommand.php?var1=";
var ag = im.concat(file);

xmlHttp.open("GET", ag, true);
Expand Down

0 comments on commit c263cd0

Please sign in to comment.