Skip to content

Commit

Permalink
merged the database and optimized the webpages
Browse files Browse the repository at this point in the history
Please remember to get a full experience of this repository website
visit https://morgansbyers.scienceontheweb.net
  • Loading branch information
jehovahsays committed Jun 22, 2024
1 parent e179ab4 commit 7a8802a
Show file tree
Hide file tree
Showing 25 changed files with 368 additions and 10,014 deletions.
298 changes: 83 additions & 215 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,204 +36,82 @@
$handle = fopen("./en/" . $value . ".html", "a");
fwrite($handle,
"\n"
. "<meta name="
. "\""
. "viewport"
. "\""
. "content="
. "\""
. "width=device-width"
. "\""
. ">"
. "<title>"
. $value
. "</title>"
. "<script src="
. "\""
. "../js/jquery-3.7.1.min.js"
. "\""
. "></script>"
. "<script src="
. "\""
. "../js/bootstrap.js"
. "\""
. "></script>"
. "<link href="
. "\""
. "../css/bootstrap.css"
. "\""
. "rel="
. "\""
. "stylesheet"
. "\""
. "></link>"
. "<nav class="
. "\""
. "navbar navbar-inverse"
. "\""
. ">"
. "<div class="
. "\""
. "container-fluid"
. "\""
. ">"
. "<div class="
. "\""
. "navbar-header"
. "\""
. ">"
. "<button type="
. "\""
. "button"
. "\""
. "class="
. "\""
. "navbar-toggle"
. "\""
. " data-toggle="
. "\""
. "collapse"
. "\""
. "data-target="
. "\""
. "#myNavbar"
. "\""
. ">"
. "<span class="
. "\""
. "icon-bar"
. "\""
. "></span>"
. "<span class="
. "\""
. "icon-bar"
. "\""
. "></span>"
. "<span class="
. "\""
. "icon-bar"
. "\""
. "></span>"
. "</button>"
. "<a class="
. "\""
. "navbar-brand"
. "\""
. "href="
. "\""
. "./$value.html"
. "\""
. ">"
. $value
. "</a>"
. "<form "
. "class="
. "\""
. "form-group"
. "\""
. "action="
. "\""
. "../action.php"
. "\""
. "method="
. "\""
. "post"
. "\""
. ">"
. "<input "
. "type="
. "\""
. "text"
. "\""
. "class="
. "\""
. "form-control"
. "\""
. "id="
. "\""
. "secure-form-answer-Human"
. "\""
. "type="
. "\""
. "text"
. "\""
. "name="
. "\""
. "secure-form-answer"
. "\""
. "maxlength="
. "\""
. "40"
. "\""
. "autocomplete="
. "\""
. "true"
. "\""
. "autocorrect="
. "\""
. "off"
. "\""
. "autocapitalize="
. "\""
. "off"
. "\""
. "spellcheck="
. "\""
. "true"
. "\""
. "placeholder="
. "\""
. "what word defines this word"
. "\""
. "required"
. ">"
. "<noscript><label"
. "for="
. "\""
. "secure-form-answer-Human"
. "\""
. ">"
. "Human"
. "</label></noscript></form>"
. "<center><article>Keyword definitions go here</article></center>"
. "</div></ul>"
. "<ul class="
. "\""
. "nav navbar-nav navbar-right"
. "\""
. ">"
. "<div class="
. "\""
. "collapse navbar-collapse"
. "\""
. " id="
. "\""
. "myNavbar"
. "\""
. ">"
. "<center>"
. "<button class="
. "\""
. "form-group"
. "\""
. ">"
. "</form>"
. "<a href="
. "\""
. "../index.html"
. "\""
. ">return to homepage</a>"
. "</button>"
. "<br><br><a href="
. "\""
. "../delete.php?action=delete&filename=./en/"
. $value
. ".html"
. "\""
. ">delete this page</a>"
. "</center>"
. "\n"
. "\r\n");
. "<!DOCTYPE html>"
. "<html lang=\"en\">"
. "<head>"
. "<meta "
. "name=\"viewport\""
. "content=\"width=device-width\">"
. ""
. "<title>"
. $value
. "</title>"
. ""
. "<link "
. "rel=\"stylesheet\" "
. "href=\"./css/merge.css\" />"
. "</link>"
. ""
. "</head>"
. "<body>"
. "<center>"
. "<fieldset>"
. "<legend>"
. "<a"
. "href=\"./$value.html\">"
. $value
. "</a>"
. "</legend>"
. ""
. "<form "
. "class=\"form-group\""
. "action=\"../action.php\""
. "method=\"post\">"
. ""
. "<input "
. "type=\"text\""
. "class=\"form-control\""
. "id=\"secure-form-answer-Human\""
. "type=\"text\""
. "name=\"secure-form-answer\""
. "maxlength=\"40\""
. "autocomplete=\"true\""
. "autocorrect=\"off\""
. "autocapitalize=\"off\""
. "spellcheck=\"true\""
. "placeholder=\"what word defines this word\""
. "required>"
. "<noscript>"
. "<label"
. "for=\"secure-form-answer-Human\">"
. "Human"
. "</label>"
. "</noscript>"
. "</form>"
. "<br>"
. ""
. "<a "
. "href=\"../index.html\">"
. "return to homepage"
. "</a>"
. ""
. "<br><br>"
. "<a href=\"../delete.php?action=delete&filename=./en/$value.html\">"
. "delete this page"
. "</a>"
. ""
. "<br><br>"
. ""
. "<article>"
. "$value definitions go here"
. "</article>"
. ""
. "</fieldset>"
. "</center>"
. "</body>"
. "</html>"
. "\n"
. "\r\n");
$handle = fopen("./index.html", "a");
fwrite($handle,
"<a href="
Expand All @@ -244,30 +122,20 @@
. "\""
. "class="
. "\""
. "edge"
. "edges"
. "\""
. "><button>"
. $value
. "</button>"
. "</a>"
. "recent edits "
. "<a href="
. "\""
. "./en/"
. $value
. ".html"
. "\""
. ">"
. $value
. "</a></br>"
. "\r\n");
$handle = fopen("./orbital.html", "a");
. "</a><br>"
. "\r\n");
$handle = fopen("./js/merge.js", "a");
// load the data and delete the line from the array
$lines = file('./orbital.html');
$lines = file('./js/merge.js');
$last = sizeof($lines) - 1 ;
unset($lines[$last]);
// write the new data to the file
file_put_contents('./orbital.html', $lines);
file_put_contents('./js/merge.js', $lines);
foreach($_POST as $variable => $value) {
$value = str_replace(' ', '_', $value);
fwrite($handle,
Expand All @@ -276,7 +144,7 @@
. "\""
. ","
. "\n"
. "];var tc = TagCloud('.content', texts);console.log(tc);</script>");
. "];var tc = TagCloud('.content', texts);console.log(tc);");
echo "<meta name='viewport' content='width=device-width'>successfully created <a href='./en/$value.html'>$value</a>";
}
}
Expand Down
Loading

0 comments on commit 7a8802a

Please sign in to comment.