From 6949c6b5aa07915cf453b8eeb531996f6cf3ec06 Mon Sep 17 00:00:00 2001 From: "@jehovahsays" Date: Thu, 20 Jun 2024 04:19:32 -0400 Subject: [PATCH] explain later in readme have to rest --- action.php | 60 +- en/atmosphere.html | 3 + en/audio.html | 3 - en/book.html | 3 - en/compass.html | 3 + en/core.html | 3 + en/delete.html | 3 - en/download.html | 3 - en/food.html | 3 - en/index.html | 3 - en/login.html | 3 - en/logout.html | 3 - en/morgansbyers.html | 3 - en/news.html | 3 - en/picture.html | 3 - en/profile.html | 3 - en/purchase.html | 3 - en/self.html | 3 + en/shop.html | 3 - en/solve.html | 3 + en/{about.html => sphere.html} | 2 +- en/stats.html | 3 - en/upload.html | 3 - en/video.html | 3 - index.html | 59 +- springy.js | 735 ++++++++++++++++++++++++ springyui.js | 394 +++++++++++++ test/channel-messaging-basic/index.html | 43 ++ test/channel-messaging-basic/page2.html | 31 + test/fetch-text/index.html | 53 ++ test/fetch-text/page1.txt | 3 + test/fetch-text/page2.txt | 3 + test/fetch-text/page3.txt | 3 + test/fetch-text/style.css | 51 ++ test/springy/2d.html | 106 ++++ test/springy/jquery-3.7.1.min.js | 2 + test/springy/logger.txt | 30 + test/springy/springy.html | 27 + test/springy/springy.js | 735 ++++++++++++++++++++++++ test/springy/springyui.js | 394 +++++++++++++ test/tail/tail.txt | 287 +++++++++ 41 files changed, 2975 insertions(+), 109 deletions(-) create mode 100644 en/atmosphere.html delete mode 100644 en/audio.html delete mode 100644 en/book.html create mode 100644 en/compass.html create mode 100644 en/core.html delete mode 100644 en/delete.html delete mode 100644 en/download.html delete mode 100644 en/food.html delete mode 100644 en/index.html delete mode 100644 en/login.html delete mode 100644 en/logout.html delete mode 100644 en/morgansbyers.html delete mode 100644 en/news.html delete mode 100644 en/picture.html delete mode 100644 en/profile.html delete mode 100644 en/purchase.html create mode 100644 en/self.html delete mode 100644 en/shop.html create mode 100644 en/solve.html rename en/{about.html => sphere.html} (50%) delete mode 100644 en/stats.html delete mode 100644 en/upload.html delete mode 100644 en/video.html create mode 100644 springy.js create mode 100755 springyui.js create mode 100644 test/channel-messaging-basic/index.html create mode 100644 test/channel-messaging-basic/page2.html create mode 100644 test/fetch-text/index.html create mode 100644 test/fetch-text/page1.txt create mode 100644 test/fetch-text/page2.txt create mode 100644 test/fetch-text/page3.txt create mode 100644 test/fetch-text/style.css create mode 100644 test/springy/2d.html create mode 100644 test/springy/jquery-3.7.1.min.js create mode 100644 test/springy/logger.txt create mode 100644 test/springy/springy.html create mode 100644 test/springy/springy.js create mode 100755 test/springy/springyui.js create mode 100644 test/tail/tail.txt diff --git a/action.php b/action.php index 3c1025f..eff0e72 100644 --- a/action.php +++ b/action.php @@ -18,6 +18,9 @@ header( 'Referrer-Policy: same-origin' ); header( 'Accept-Language: en-US,en;q=0.5' ); header( 'Connection: Keep-alive' ); +gethostname(); +$ip = $localIp = gethostbyname(gethostname()); +$ip = $handle = "handle"; $answer1 = $_POST['secure-form-answer']; $totalCorrect = 1; if ($answer1 == "Human") { $totalCorrect++; } @@ -30,12 +33,12 @@ if (file_exists($file_pointer)) { echo "The file $file_pointer already exists
"; - echo "$value"; + echo "$value"; exit; } - $handle = fopen("./en/" . $value . ".html", "a"); - fwrite($handle, - "\n" + $handle = fopen("./en/" . $value . ".html", "a"); + fwrite($handle, + "\n" . "" . $value @@ -209,9 +212,9 @@ . "\"" . " id=" . "\"" - ."myNavbar" + . "myNavbar" . "\"" - .">" + . ">" . "
" . "" - . "" - . "recent edits " - . "" - . $value - . "
" - . "\r\n"); +$handle = fopen("./index.html", "a"); +// load the data and delete the line from the array +$lines = file('./index.html'); +$last = sizeof($lines) - 1 ; +unset($lines[$last]); +// write the new data to the file +file_put_contents('./index.html', $lines); +foreach($_POST as $variable => $value) { + $value = str_replace(' ', '_', $value); + fwrite($handle, + "\"" + . $value + . "\"" + . "," + . "]};"); echo "successfully created $value"; } +} fclose($handle); ?> \ No newline at end of file diff --git a/en/atmosphere.html b/en/atmosphere.html new file mode 100644 index 0000000..6015af7 --- /dev/null +++ b/en/atmosphere.html @@ -0,0 +1,3 @@ + +atmosphere