/* * Copyright (C) 2012 Bryntum AB */ 0){ //return url of the created file echo '{"success": true, "path": "'.$outputPath.'/'.$out.'", "url": "'.$currentURL.$out.'"}'; $msg = null; } else{ $msg = "There was some problem creating the file"; } } //delete temp png files $m = 0; for ($i=0, $m=sizeof($pages); $i<$m ; $i++) { unlink($pages[$i]); } } //delete temp html files $s = 0; for ($i=0, $s=sizeof($files); $i<$s ; $i++) { unlink($files[$i]); } } if ($msg == null){ return 0; } else { echo '{"success": false, "msg": "'.$msg.'"}'; } ?>