source: Dev/branches/rest-dojo-ui/client/util/checkstyle/checkstyle.php.rename.html @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 513 bytes
Line 
1<?php
2        $action = $_POST["action"];
3        $fileName = $_POST["filename"];
4        $contents = $_POST["contents"];
5
6        if ($action == "save") {
7                save($fileName, $contents);
8        }
9       
10       
11        function save($fileName, $contents) {
12                $fileName = "../../".$fileName.".checkstyle.js";
13
14                $fh = fopen($fileName, 'w');
15                fwrite($fh, stripslashes($contents));
16                fclose($fh);
17               
18                print "File saved to $fileName\n";
19        }
20       
21        if(false) {
22?>
23<html>
24        <body>
25                Rename this file to checkstyle.php to enable saving fixed files.
26        </body>
27</html>
28
29<?php
30}
31?>
Note: See TracBrowser for help on using the repository browser.