From de74adb19c74fbeb954d70bb9791dc58f987c068 Mon Sep 17 00:00:00 2001 From: "@jehovahsays" Date: Sat, 15 Jun 2024 17:02:48 -0400 Subject: [PATCH] optimized data structure --- README.md | 10 +- browser.html | 659 ----------------------------------------------- delete.php | 8 - en/about.html | 11 + en/index.html | 11 + favicon.ico | Bin 1150 -> 0 bytes index.html | 660 +++++++++++++++++++++++++++++++++++++++++------- index.php | 2 +- manual.json | 4 +- manual.json.txt | 8 + server.php | 36 ++- 11 files changed, 617 insertions(+), 792 deletions(-) delete mode 100644 browser.html delete mode 100644 delete.php create mode 100644 en/about.html create mode 100644 en/index.html delete mode 100644 favicon.ico create mode 100644 manual.json.txt diff --git a/README.md b/README.md index f11a1a3..c2116a1 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# manual +# handle

welcome to:
-

manual


+

handle


For educational purposes only.
hardware: iphone
software: phpwin iphone app
@@ -20,11 +20,11 @@ my name is morgan shatee' byers,
my number is 770-687-8847

-Visit website to see manual demo +Visit website to see handle demo

- -manual github repository + +handle github repository

diff --git a/browser.html b/browser.html deleted file mode 100644 index 48caa30..0000000 --- a/browser.html +++ /dev/null @@ -1,659 +0,0 @@ - - - - - browser - - - - - - - - -
- - - -
- -
-
- -
- -
-
-
- -
- -
- -
- - - - - - - diff --git a/delete.php b/delete.php deleted file mode 100644 index 328e282..0000000 --- a/delete.php +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/en/about.html b/en/about.html new file mode 100644 index 0000000..896e681 --- /dev/null +++ b/en/about.html @@ -0,0 +1,11 @@ + +about
about

+
+ +
+ + diff --git a/en/index.html b/en/index.html new file mode 100644 index 0000000..738f2d3 --- /dev/null +++ b/en/index.html @@ -0,0 +1,11 @@ + +index
index

+
+ +
+ + diff --git a/favicon.ico b/favicon.ico deleted file mode 100644 index beb87c8700c8b014d13402e4fe937fbc4befa8be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1150 zcmaiz%TE(g6vn4T9zj9SU^Ld$SV`RYh#C{4K^L;spoxM1KwN6V*2E2(U^EiL&R7(K zC_z9Fns(ZmPCK1GpoNx}w$qlrz#TC$YDoHdZfP5Ah@Q!B?wvFDJNKM(XE;tnS4#_5 zw0nCv?hwsR5zKX*&=l`9p?B2=pxU+bxse_Y6DLb!4UHP2VoYB~k|gFoKpZ35v|8;6 z8oQ<^$D=f!CoT|rLQ52_tS#kHPtHq34{<9NS;p9h_mN~g42pGgWW?wte<#sE6s<~s zM3zN3oFWVcLvKEl!0gNMCp2UE&7ON@&Xa)4X1#@TW3`;QeW&Z8Ao8$?0xphv(EKKj#uo~jAIu<=&mu&5c{~mb4nCit^{mge zOdnba-e-G@q8T4Qjlv>W(K#%m)~KRkD1fHkDWtOL?HZ`3r5a9?zEc0(+|-8IJd3Y$ zUtkpkSR@$-hhu1Z7Q!pujTrTQH4;Qhjll0ywn%$)r{2n&lBW5YA;}>WoU)zzAVHEH zh)@rsRDU{?L~wZ#0lya(-mH*zFHt!^R)^ay{gh<^E|&;)mLA0cRSm=Kc4GM5YlOoA zI!_7x{r#8O-qm`i%onDoKO0ydC>9nLTnL30;q$ssS66pMl6ds>_322r>-WoYm^aPZ zx3+#ad3{cF_jI?i7zHD!1O!F^fm$bRt`)&3A^}A{R_E8Kg#}&?U h-1q$)mtxRgXrnJ`lVD>R=HH-oKdzDH5!;*N{s3&PPH+GK diff --git a/index.html b/index.html index 81e1b15..ff44154 100644 --- a/index.html +++ b/index.html @@ -7,107 +7,571 @@ - - - + + + - -search - - - -
+ + +
+
-
-
    -
    + + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    + + + + + diff --git a/index.php b/index.php index a9285fe..66c784b 100644 --- a/index.php +++ b/index.php @@ -18,5 +18,5 @@ header( 'Referrer-Policy: same-origin' ); header( 'Accept-Language: en-US,en;q=0.5' ); header( 'Connection: Keep-alive' ); -header( 'Location: ./browser.html' ); +header( 'Location: ./index.html#en/index' ); ?> \ No newline at end of file diff --git a/manual.json b/manual.json index 4e378ff..83a9f89 100644 --- a/manual.json +++ b/manual.json @@ -3,6 +3,6 @@ { "manual": { - "connect":"en/connect", - "connected":"en/connected" + "index":"en/index", + "about":"en/about" }}} \ No newline at end of file diff --git a/manual.json.txt b/manual.json.txt new file mode 100644 index 0000000..83a9f89 --- /dev/null +++ b/manual.json.txt @@ -0,0 +1,8 @@ +{ + "en": + { + "manual": + { + "index":"en/index", + "about":"en/about" +}}} \ No newline at end of file diff --git a/server.php b/server.php index 25352c6..4e3c190 100644 --- a/server.php +++ b/server.php @@ -19,17 +19,24 @@ header( 'Referrer-Policy: same-origin' ); header( 'Accept-Language: en-US,en;q=0.5' ); header( 'Connection: Keep-alive' ); -header( 'Location: ./browser.html' ); - $answer1 = $_POST['secure-form-answer']; - $totalCorrect = 0; - if ($answer1 == "Human") { $totalCorrect++; } - echo "
    $totalCorrect / 1 correct
    "; +header( 'Location: ./index.html#en/index' ); +foreach($_POST as $variable => $value) { + $value = str_replace(' ', '_', $value); + $answer1 = $_POST['secure-form-answer']; + $totalCorrect = 0; + if ($answer1 == "Human") { $totalCorrect++; } + echo "
    $totalCorrect / 1 correct
    "; $handle = fopen("./en/" . $value . ".html", "a"); fwrite($handle, "\n" . "" - . "" - . "" . $value . "" . "
    " - . "
    \n" + . "" + . "" + . $value + . "" + . "
    " + . $value + . "

    \n" . "
    \n" . "Human" . "
    \n" - . "\n" - . "
    delete this page" - . "
    \n" - . "
      \n" - . "index
      \n" . "\n" - . $value . "\r\n"); + . "\r\n"); +} $handle = fopen("./manual.json", "a"); // load the data and delete the line from the array $lines = file('./manual.json'); @@ -71,10 +74,5 @@ . "\n}}}" . "\r\n"); } -$handle = fopen("./index.html", "a"); -foreach($_POST as $variable => $value) { - $value = str_replace(' ', '_', $value); - fwrite($handle, "" . "
      " . "\r\n"); -} fclose($handle); ?> \ No newline at end of file