diff --git a/comments.html b/comments.html new file mode 100644 index 0000000..8c90f3a --- /dev/null +++ b/comments.html @@ -0,0 +1,25 @@ + +
++
Enter Comments:
++
+ ++ link to HOME +
+ + + diff --git a/comments/.gitkeep b/comments/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/commentsProcessor.php b/commentsProcessor.php new file mode 100644 index 0000000..cf3a36c --- /dev/null +++ b/commentsProcessor.php @@ -0,0 +1,30 @@ + true, + 'wroteCount' => $wroteCount + ]); +} catch (Exception $exception) { + $response = json_encode([ + 'success' => false, + 'errorMessage' => $exception->getMessage(), + 'errorCode' => $exception->getCode() + ]); +} + +header('Location: /index.php?response='. $response); + +exit(); diff --git a/index.html b/index.html deleted file mode 100644 index a333041..0000000 --- a/index.html +++ /dev/null @@ -1,29 +0,0 @@ - - -
-
-
-
- Paste your documents in the visual editor on the left or your HTML code in the source editor in the right.
- Edit any of the two areas and see the other changing in real time.
-
Click the Clean button to clean your source code.
-link this to like the comments
- - - diff --git a/index.html b/index.html new file mode 120000 index 0000000..0012f7d --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +index.php \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..00d96fc --- /dev/null +++ b/index.php @@ -0,0 +1,46 @@ + + +";
+ if ($array['success']) {
+ print $array['wroteCount'] . " bytes were stored.";
+ } else {
+ print "There was an error:
"
+ . "errorMessage => " . $array['errorMessage'] . "
"
+ . "errorCode => " . $array['errorCode'] . "
";
+ }
+ print "
+
+
+
+ Paste your documents in the visual editor on the left or your HTML code in the source editor in the right.
+ Edit any of the two areas and see the other changing in real time.
+
Click the Clean button to clean your source code.
+link this to like the comments
+ + +