source: Dev/trunk/src/client/util/checkstyle/checkstyle.php.rename.html @ 529

Last change on this file since 529 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

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.