sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
513 B

<?php
$action = $_POST["action"];
$fileName = $_POST["filename"];
$contents = $_POST["contents"];
if ($action == "save") {
save($fileName, $contents);
}
function save($fileName, $contents) {
$fileName = "../../".$fileName.".checkstyle.js";
$fh = fopen($fileName, 'w');
fwrite($fh, stripslashes($contents));
fclose($fh);
print "File saved to $fileName\n";
}
if(false) {
?>
<html>
<body>
Rename this file to checkstyle.php to enable saving fixed files.
</body>
</html>
<?php
}
?>