diff --git a/README.md b/README.md index 84e60b4..e183c8d 100644 --- a/README.md +++ b/README.md @@ -1,45 +1,25 @@ -# handle +# manual

-yes you can edit all the files
-and folders if you know how
-if you don't know how ask questions
-Recent Updates
-i created a folder named ai.
-in this folder is the simple way
-i build ai not like other developers
-the Search box located on index.html page collects user input data sends
-it to the PHP software
-that outputs the page on
-an HTML page in en folder also writes
-a template for the page create page input box and delete button for page
-and the short url # link is added to pile of links of the homepage
-the pile of short url hashlinks are a list of links with common css classes used by the search box
-javascript located on homepage creates hash url
+ welcome to:

handle

For educational purposes only.
-i created handle on my iphone.
-i downloaded an app called phpwin the free version.
-i used phpwin self host localhost http php server to build this demo slowly.
-to self host developers will need
-http server,
-php server,
-understand how to edit html,js,css, and php.
-website langauges.
-index.html links to all of the webpages created for each search.
-when a page is deleted the link is still located on index.html.
-i will fix that in this repository in future updates.
-the folder named [list] stores all of the webpages created for each search.
-PHP Creates HTML pages with template when user searches keyword.
-for user to create and delete HTML pages
-webmaster: morgan shatee' byers,
+you only need
+http web server with php
+how to write html,js,css,and php.
+no internet connection needed
+my name is morgan shatee' byers,
+my number is 770-687-8847

- + Visit website to see handle demo

handle github repository - +
+
+ +youtube channel diff --git a/ai/README.md b/ai/README.md deleted file mode 100644 index 7cf498f..0000000 --- a/ai/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# ai -This is how I build my ai brain -if you already have an http web server -with php installed drop this folder -in your root folder open your web -browser and visit the index.html -page. this is unfinished so that -you all can make it work the way -you need it to. -you will need to understand html -css js and php computer language -to change configurations. -read all of the files and edit them. - -i was in hurry -none of this is finished. -i have many other fields to help -out so this is for those of you -starting from scratch with this. - - - diff --git a/ai/brain/how_was_you_day.html b/ai/brain/how_was_you_day.html deleted file mode 100644 index 7d058b7..0000000 --- a/ai/brain/how_was_you_day.html +++ /dev/null @@ -1,11 +0,0 @@ - -how_was_you_day

-
- -
diff --git a/ai/brain/intelligence.html b/ai/brain/intelligence.html deleted file mode 100644 index 4a3203f..0000000 --- a/ai/brain/intelligence.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -intelligence

-
- -
-
- diff --git a/ai/index.html b/ai/index.html deleted file mode 100644 index 3c3d1ef..0000000 --- a/ai/index.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - -ai - - -

-
- -
-
-
- -
-
-
-
- -
-
-

developer: morgan shatee byers

-sitemap - - -
-
    -
    intelligence

    diff --git a/ai/index.php b/ai/index.php deleted file mode 100644 index 40e53b5..0000000 --- a/ai/index.php +++ /dev/null @@ -1,27 +0,0 @@ - $value) { - $value = str_replace(' ', '_', $value); - fwrite($ip = $handle, "
    " . $value . "

    " . "\r\n"); - $ip = $handle = fopen("./brain/" . $value . ".html", "a"); - fwrite($ip = $handle, "\n" - . "" - . "" - . "" . $value . "" . "
    " - . "
    \n" - . "
    \n" - . "\n" - . "
    \n"); -} -fclose($ip = $handle); -?> \ No newline at end of file diff --git a/ai/sitemap.php b/ai/sitemap.php deleted file mode 100644 index 8a2c933..0000000 --- a/ai/sitemap.php +++ /dev/null @@ -1,96 +0,0 @@ - - - - -recent ai memory

    "; -echo $line; -?> -\n"; - myScanDir($fileName, $level + 1, strlen($fileName)); - } else { - echo prePad($level) . "" . $displayName . "
    \n"; - } - } - } -} - -?> -ai memories

    "; - - $pathLen = strlen($root); - - myScanDir($root, 0, strlen($root)); - -?> - diff --git a/backup/manual.json b/backup/manual.json deleted file mode 100644 index 39f45e5..0000000 --- a/backup/manual.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "en": - { - "manual": - { - "index":"en/index", - "television":"en/tv", - "playlist":"en/playlist", - "reviews":"en/reviews", - "browser":"en/browser" -}}} \ No newline at end of file diff --git a/backup/playlist.html b/backup/playlist.html deleted file mode 100644 index 2d14d64..0000000 --- a/backup/playlist.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - -playlist - - - - - -playlist - -playlist - -playlist - -playlist - -playlist - -playlist - -playlist - -playlist - -playlist - -playlist

    -
    - -
    - -
    delete this page
    -
      -index
      - -playlist diff --git a/backup/readme.txt b/backup/readme.txt deleted file mode 100644 index f7b180b..0000000 --- a/backup/readme.txt +++ /dev/null @@ -1 +0,0 @@ -if the index.html located in directory "en" gets deleted copy and paste this index.html back into the directory named "en". \ No newline at end of file diff --git a/backup/reviews.html b/backup/reviews.html deleted file mode 100644 index 82f18f1..0000000 --- a/backup/reviews.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Reviews - - -
      -
      -
      -Reviews -
      -
      - -
      -
      - -testing user ui experience
      diff --git a/backup/tv.html b/backup/tv.html deleted file mode 100644 index f97df8e..0000000 --- a/backup/tv.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - -tv - - - - - -tv - -tv - -tv - -tv - -tv - -tv - -tv - -tv - -tv - -tv - -tv

      -
      - -
      - -
      delete this page
      -
        -index
        - -tv diff --git a/en/browser.html b/en/browser.html deleted file mode 100644 index 26f7219..0000000 --- a/en/browser.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - -browser - - - - - \ No newline at end of file diff --git a/en/center.html b/en/center.html deleted file mode 100644 index 60afaeb..0000000 --- a/en/center.html +++ /dev/null @@ -1,17 +0,0 @@ - -center

        -
        - -
        - -
        delete this page
        -
          -index
          - -center diff --git a/en/core.html b/en/core.html deleted file mode 100644 index 8f0a227..0000000 --- a/en/core.html +++ /dev/null @@ -1,17 +0,0 @@ - -core

          -
          - -
          - -
          delete this page
          -
            -index
            - -core diff --git a/en/delete_this_page.html b/en/delete_this_page.html deleted file mode 100644 index 4747e10..0000000 --- a/en/delete_this_page.html +++ /dev/null @@ -1,17 +0,0 @@ - -delete_this_page

            -
            - -
            - -
            delete this page
            -
              -index
              - -delete_this_page diff --git a/en/earth.html b/en/earth.html deleted file mode 100644 index 5b459a2..0000000 --- a/en/earth.html +++ /dev/null @@ -1,17 +0,0 @@ - -earth

              -
              - -
              - -
              delete this page
              -
                -index
                - -earth diff --git a/en/edit.html b/en/edit.html deleted file mode 100644 index bc9387a..0000000 --- a/en/edit.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -edit - - -
                -
                -
                -edit -
                -
                - -
                -
                - -edit

                -
                - -
                - -
                delete this page
                -
                  -index
                  - -edit - -hello
                  - -testing user ui experience
                  diff --git a/en/educated.html b/en/educated.html deleted file mode 100644 index 18a9c65..0000000 --- a/en/educated.html +++ /dev/null @@ -1,17 +0,0 @@ - -educated

                  -
                  - -
                  - -
                  delete this page
                  -
                    -index
                    - -educated diff --git a/en/handle.html b/en/handle.html deleted file mode 100644 index 1a0c438..0000000 --- a/en/handle.html +++ /dev/null @@ -1,17 +0,0 @@ - -handle

                    -
                    - -
                    - -
                    delete this page
                    -
                      -index
                      - -handle diff --git a/en/independent.html b/en/independent.html deleted file mode 100644 index 0fb9c83..0000000 --- a/en/independent.html +++ /dev/null @@ -1,17 +0,0 @@ - -independent

                      -
                      - -
                      - -
                      delete this page
                      -
                        -index
                        - -independent diff --git a/en/index.html b/en/index.html deleted file mode 100644 index 92bd7a5..0000000 --- a/en/index.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - -index - - - - -index

                        -
                        - -
                        - -
                        delete this page
                        -
                          -index
                          - -index diff --git a/en/intelligence.html b/en/intelligence.html deleted file mode 100644 index 71c961a..0000000 --- a/en/intelligence.html +++ /dev/null @@ -1,17 +0,0 @@ - -intelligence

                          -
                          - -
                          - -
                          delete this page
                          -
                            -index
                            - -intelligence diff --git a/en/library.html b/en/library.html deleted file mode 100644 index 378f32c..0000000 --- a/en/library.html +++ /dev/null @@ -1,17 +0,0 @@ - -library

                            -
                            - -
                            - -
                            delete this page
                            -
                              -index
                              - -library diff --git a/en/list.html b/en/list.html deleted file mode 100644 index 6fa736a..0000000 --- a/en/list.html +++ /dev/null @@ -1,34 +0,0 @@ - -list

                              -
                              - -
                              - -
                              delete this page
                              -
                                -index
                                - -list - -list

                                -
                                - -
                                - -
                                delete this page
                                -
                                  -index
                                  - -list diff --git a/en/literacy.html b/en/literacy.html deleted file mode 100644 index 12fa954..0000000 --- a/en/literacy.html +++ /dev/null @@ -1,17 +0,0 @@ - -literacy

                                  -
                                  - -
                                  - -
                                  delete this page
                                  -
                                    -index
                                    - -literacy diff --git a/en/reviews.html b/en/reviews.html deleted file mode 100644 index 82f18f1..0000000 --- a/en/reviews.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Reviews - - -
                                    -
                                    -
                                    -Reviews -
                                    -
                                    - -
                                    -
                                    - -testing user ui experience
                                    diff --git a/en/round1.html b/en/round1.html deleted file mode 100644 index c0d6aed..0000000 --- a/en/round1.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - -round1 - - - - - -round1

                                    -
                                    - -
                                    - -
                                    delete this page
                                    -
                                      -index
                                      - -round1 diff --git a/en/seed.html b/en/seed.html deleted file mode 100644 index ebfe5cd..0000000 --- a/en/seed.html +++ /dev/null @@ -1,17 +0,0 @@ - -seed

                                      -
                                      - -
                                      - -
                                      delete this page
                                      -
                                        -index
                                        - -seed diff --git a/en/self.html b/en/self.html deleted file mode 100644 index f7cfe8b..0000000 --- a/en/self.html +++ /dev/null @@ -1,17 +0,0 @@ - -self

                                        -
                                        - -
                                        - -
                                        delete this page
                                        -
                                          -index
                                          - -self diff --git a/en/source_code.html b/en/source_code.html deleted file mode 100644 index fe5bc6e..0000000 --- a/en/source_code.html +++ /dev/null @@ -1,17 +0,0 @@ - -source_code

                                          -
                                          - -
                                          - -
                                          delete this page
                                          -
                                            -index
                                            - -source_code diff --git a/en/stand_alone.html b/en/stand_alone.html deleted file mode 100644 index 9b75a3b..0000000 --- a/en/stand_alone.html +++ /dev/null @@ -1,17 +0,0 @@ - -stand_alone

                                            -
                                            - -
                                            - -
                                            delete this page
                                            -
                                              -index
                                              - -stand_alone diff --git a/en/superposition.html b/en/superposition.html deleted file mode 100644 index 07ee4d9..0000000 --- a/en/superposition.html +++ /dev/null @@ -1,17 +0,0 @@ - -superposition

                                              -
                                              - -
                                              - -
                                              delete this page
                                              -
                                                -index
                                                - -superposition diff --git a/en/test.html b/en/test.html deleted file mode 100644 index e60e6be..0000000 --- a/en/test.html +++ /dev/null @@ -1,17 +0,0 @@ - -test

                                                -
                                                - -
                                                - -
                                                delete this page
                                                -
                                                  -index
                                                  - -test diff --git a/en/tv.html b/en/tv.html deleted file mode 100644 index f97df8e..0000000 --- a/en/tv.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - -tv - - - - - -tv - -tv - -tv - -tv - -tv - -tv - -tv - -tv - -tv - -tv - -tv

                                                  -
                                                  - -
                                                  - -
                                                  delete this page
                                                  -
                                                    -index
                                                    - -tv diff --git a/en/zero.html b/en/zero.html deleted file mode 100644 index e86a31a..0000000 --- a/en/zero.html +++ /dev/null @@ -1,17 +0,0 @@ - -zero

                                                    -
                                                    - -
                                                    - -
                                                    delete this page
                                                    -
                                                      -index
                                                      - -zero diff --git a/files/favicon.ico b/files/favicon.ico deleted file mode 100644 index 0e9b1c9..0000000 Binary files a/files/favicon.ico and /dev/null differ diff --git a/index.html b/index.html index 225f674..7ccfa2c 100644 --- a/index.html +++ b/index.html @@ -1,205 +1,17 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -handle - - - -
                                                      -
                                                      - -
                                                      -
                                                      - -
                                                      -
                                                      -
                                                      - -
                                                      - -
                                                      -
                                                      -
                                                      - -list of pages -

                                                      - -
                                                      - - -
                                                      - -
                                                      - -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        -
                                                        + + + handle + + + +
                                                        + +
                                                        + + \ No newline at end of file diff --git a/index.php b/index.php deleted file mode 100644 index b9fcd9f..0000000 --- a/index.php +++ /dev/null @@ -1,56 +0,0 @@ - $value) { - $value = str_replace(' ', '_', $value); - fwrite($ip = $handle, "
                                                        " . "\r\n"); - $ip = $handle = fopen("./en/" . $value . ".html", "a"); - fwrite($ip = $handle, "\n" - . "" - . "" - . "" . $value . "" . "
                                                        " - . "
                                                        \n" - . "
                                                        \n" - . "\n" - . "
                                                        \n" - . "\n" - . "
                                                        delete this page" - . "
                                                        \n" - . "
                                                          \n" - . "index
                                                          \n" - . "\n" - . $value . "\r\n"); - $answer1 = $_POST['create-pages']; - $totalCorrect = 0; - if ($answer1 == "create pages") { $totalCorrect++; } - header( 'Location: ./index.html' ); -} -fclose($ip = $handle); -?> \ No newline at end of file diff --git a/input.php b/input.php deleted file mode 100644 index fc95b9d..0000000 --- a/input.php +++ /dev/null @@ -1,27 +0,0 @@ -
                                                          -
                                                          -

                                                          form

                                                          -
                                                          - - -

                                                          - -
                                                          -
                                                          diff --git a/manual.json b/manual.json deleted file mode 100644 index 2840847..0000000 --- a/manual.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "en": - { - "manual": - { - "index":"en/index", - "television":"en/tv", - "playlist":"en/playlist", - "reviews":"en/reviews", - "edit":"en/edit" -}}} \ No newline at end of file diff --git a/output.php b/output.php deleted file mode 100644 index b2e0efa..0000000 --- a/output.php +++ /dev/null @@ -1,10 +0,0 @@ -
                                                          -

                                                          Form Results

                                                          - $totalCorrect / 1 correct
                                                          "; - ?>
                                                          - enter this website - diff --git a/phpwin.json b/phpwin.json index a64ac60..e5d70f7 100644 --- a/phpwin.json +++ b/phpwin.json @@ -1,3 +1,3 @@ { - "index": "index.html index.php" + "index": "index.html" } diff --git a/repair/json-builder.php b/repair/json-builder.php deleted file mode 100644 index 2892b30..0000000 --- a/repair/json-builder.php +++ /dev/null @@ -1,23 +0,0 @@ - - $value) { - $handle = fopen("./output.json", "a"); - fwrite($handle, - "{" - ."\"" - ."en" - ."\"" - ."{" - ."\"" - ."manual" - ."\"" - .":" - ."{" - ."\"". $value."\"".":"."\""."en/".$value."\""."}}}"); - header( 'Location: ./json-builder.html' ); - fclose($handle); - } -?> \ No newline at end of file diff --git a/robots.txt b/robots.txt index 6f27bb6..77470cb 100644 --- a/robots.txt +++ b/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Disallow: \ No newline at end of file +Disallow: / \ No newline at end of file diff --git a/browser.html b/server/browser.html similarity index 95% rename from browser.html rename to server/browser.html index d0c3de4..7a1e7ca 100644 --- a/browser.html +++ b/server/browser.html @@ -2,7 +2,7 @@ - handle + browser @@ -11,30 +11,12 @@ +index + + + +
                                                          +
                                                          +
                                                          +
                                                          + +
                                                          +
                                                          +
                                                          +
                                                          + + +
                                                          +
                                                          + +
                                                          + + + +
                                                          +
                                                            +
                                                            +
                                                            +
                                                            +
                                                            +

                                                            \ No newline at end of file diff --git a/server/index.php b/server/index.php new file mode 100644 index 0000000..50936f3 --- /dev/null +++ b/server/index.php @@ -0,0 +1,83 @@ +$totalCorrect / 1 correct"; +gethostname(); +$localIp = gethostbyname(gethostname()); +$handle = "handle"; +$handle = "filterInput"; +$handle = fopen("./index.html", "a"); +foreach($_POST as $variable => $value) { + $value = str_replace(' ', '_', $value); + fwrite($handle, "" . "
                                                            " . "\r\n"); + $handle = fopen("./en/" . $value . ".html", "a"); + fwrite($handle, "\n" + . "" + . "" + . "" . $value . "" . "
                                                            " + . "
                                                            \n" + . "
                                                            \n" + . "\n" + . "" + . "
                                                            \n" + . "\n" + . "
                                                            delete this page" + . "
                                                            \n" + . "
                                                              \n" + . "index
                                                              \n" + . "\n" + . $value . "\r\n"); +} +$handle = fopen("./manual.json", "a"); +// load the data and delete the line from the array +$lines = file('./manual.json'); +$last = sizeof($lines) - 1 ; +unset($lines[$last]); +// write the new data to the file +file_put_contents('./manual.json', $lines); +foreach($_POST as $variable => $value) { + $value = str_replace(' ', '_', $value); + fwrite($handle, + "," + . "\"" + . $value + . "\"" + . ":" + . "\"" + . "en/" + . $value + . "\"" + . "\n}}}" + . "\r\n"); +} +fclose($handle); +?> \ No newline at end of file diff --git a/server/manual.json b/server/manual.json new file mode 100644 index 0000000..53aa27a --- /dev/null +++ b/server/manual.json @@ -0,0 +1,12 @@ +{ + "en": + { + "manual": + { + "index":"en/index", + "reviews":"en/reviews" + ,"edit":"en/edit" +,"tv":"en/tv" +,"playlist":"en/playlist" +,"play":"en/play" +}}} \ No newline at end of file diff --git a/server/phpwin.json b/server/phpwin.json new file mode 100644 index 0000000..5729fa2 --- /dev/null +++ b/server/phpwin.json @@ -0,0 +1,3 @@ +{ + "index": "index.html browser.html" +} diff --git a/en/js_game_example.html b/server/play.html similarity index 87% rename from en/js_game_example.html rename to server/play.html index a8a3de4..5b3ba2f 100644 --- a/en/js_game_example.html +++ b/server/play.html @@ -23,7 +23,7 @@ var myGameArea = { canvas : document.createElement("canvas"), start : function() { - this.canvas.width = 480; + this.canvas.width = 300; this.canvas.height = 270; this.context = this.canvas.getContext("2d"); document.body.insertBefore(this.canvas, document.body.childNodes[0]); @@ -74,7 +74,7 @@ myGamePiece.speedX += 1; } -
                                                              +




                                                              @@ -82,14 +82,7 @@

                                                              If you click a button the red square will start moving. Click the same button many times, and it will move faster and faster.

                                                              -
                                                              - - -
                                                              delete this page
                                                              -
                                                                -index
                                                                - -js_game_example
                                                              - \ No newline at end of file + + diff --git a/backup/index.html b/server/playlist.html similarity index 71% rename from backup/index.html rename to server/playlist.html index 4598c11..4786fa9 100644 --- a/backup/index.html +++ b/server/playlist.html @@ -1,7 +1,4 @@ - @@ -11,18 +8,19 @@ - -index + +playlist + - - \ No newline at end of file + + \ No newline at end of file diff --git a/repair/json-builder.html b/server/reviews.html similarity index 93% rename from repair/json-builder.html rename to server/reviews.html index 49fb9c6..c11deb7 100644 --- a/repair/json-builder.html +++ b/server/reviews.html @@ -34,7 +34,8 @@ -json-builder +Reviews
                                                              -json-builder +Reviews
                                                              -
                                                              + +placeholder="write a review">

                                                              diff --git a/reviews.php b/server/reviews.php similarity index 65% rename from reviews.php rename to server/reviews.php index 4cb944f..5954d2d 100644 --- a/reviews.php +++ b/server/reviews.php @@ -1,12 +1,11 @@ - $value) { - $handle = fopen("./en/reviews.html", "a"); + $handle = fopen("./reviews.html", "a"); fwrite($handle, "\n" . $value . "
                                                              " . "\r\n"); - header( 'Location: ./en/reviews.html' ); - fclose($handle); + fclose($handle); } +header( 'Location: ./reviews.html' ); ?> \ No newline at end of file diff --git a/backup/browser.html b/server/tv.html similarity index 76% rename from backup/browser.html rename to server/tv.html index a9ab000..a654216 100644 --- a/backup/browser.html +++ b/server/tv.html @@ -1,7 +1,4 @@ - @@ -11,18 +8,19 @@ - -browser + +tv + - \ No newline at end of file + diff --git a/sitemap.php b/sitemap.php deleted file mode 100644 index eedc797..0000000 --- a/sitemap.php +++ /dev/null @@ -1,97 +0,0 @@ - - - - - -The newest synonym is
                                                              -'; -$f = fopen('./index.html', 'r'); -$cursor = -1; -fseek($f, $cursor, SEEK_END); -$char = fgetc($f); -//Trim trailing newline characters in the file -while ($char === " -" || $char === "\r") { - fseek($f, $cursor--, SEEK_END); - $char = fgetc($f); -} -//Read until the next line of the file begins or the first newline char -while ($char !== false && $char !== " -" && $char !== "\r") { - //Prepend the new character - $line = $char . $line; - fseek($f, $cursor--, SEEK_END); - $char = fgetc($f); -} -echo $line; -?> -\n"; - myScanDir($fileName, $level + 1, strlen($fileName)); - } else { - echo prePad($level) . "" . $displayName . "
                                                              \n"; - } - } - } -} - -?> -synonym list

                                                              "; - - $pathLen = strlen($root); - - myScanDir($root, 0, strlen($root)); - -?> -