Skip to content

Commit

Permalink
search engine database updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jehovahsays committed Jun 20, 2024
1 parent 6949c6b commit 35bf778
Show file tree
Hide file tree
Showing 34 changed files with 434 additions and 73 deletions.
60 changes: 34 additions & 26 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
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++; }
Expand All @@ -33,12 +30,12 @@
if (file_exists($file_pointer))
{
echo "The file $file_pointer already exists <br>";
echo "<meta name='viewport' content='width=device-width'><a href='./en/$value.html' class='handle'>$value</a>";
echo "<meta name='viewport' content='width=device-width'><a href='./en/$value.html'>$value</a>";
exit;
}
$handle = fopen("./en/" . $value . ".html", "a");
fwrite($handle,
"\n"
$handle = fopen("./en/" . $value . ".html", "a");
fwrite($handle,
"\n"
. "<meta name="
. "\""
. "viewport"
Expand Down Expand Up @@ -124,7 +121,7 @@
. "\""
. "href="
. "\""
. "./$value.html"
. "./solution.html"
. "\""
. ">"
. $value
Expand Down Expand Up @@ -212,9 +209,9 @@
. "\""
. " id="
. "\""
. "myNavbar"
."myNavbar"
. "\""
. ">"
.">"
. "<center>"
. "<button class="
. "\""
Expand All @@ -238,23 +235,34 @@
. "</center>"
. "\n"
. "\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
. "\""
. ","
. "]};</script>");
$handle = fopen("./index.html", "a");
fwrite($handle,
"<a href="
. "\""
. "./en/"
. $value
. ".html"
. "\""
. "class="
. "\""
. "handle"
. "\""
. "><button>"
. $value
. "</button>"
. "</a>"
. "recent edits "
. "<a href="
. "\""
. "./en/"
. $value
. ".html"
. "\""
. ">"
. $value
. "</a></br>"
. "\r\n");
echo "<meta name='viewport' content='width=device-width'>successfully created <a href='./en/$value.html'>$value</a>";
}
}
fclose($handle);
?>
2 changes: 1 addition & 1 deletion en/atmosphere.html → en/calculation.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

<meta name="viewport"content="width=device-width"><title>atmosphere</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="./atmosphere.html">atmosphere</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/atmosphere.html">delete this page</a></center>
<meta name="viewport"content="width=device-width"><title>calculation</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="./solution.html">calculation</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/calculation.html">delete this page</a></center>

3 changes: 3 additions & 0 deletions en/closure.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<meta name="viewport"content="width=device-width"><title>closure</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="./solution.html">closure</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/closure.html">delete this page</a></center>

3 changes: 3 additions & 0 deletions en/cluster.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<meta name="viewport"content="width=device-width"><title>cluster</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="./solution.html">cluster</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/cluster.html">delete this page</a></center>

2 changes: 1 addition & 1 deletion en/compass.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

<meta name="viewport"content="width=device-width"><title>compass</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="./compass.html">compass</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/compass.html">delete this page</a></center>
<meta name="viewport"content="width=device-width"><title>compass</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="./solution.html">compass</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/compass.html">delete this page</a></center>

2 changes: 1 addition & 1 deletion en/core.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

<meta name="viewport"content="width=device-width"><title>core</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="./core.html">core</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/core.html">delete this page</a></center>
<meta name="viewport"content="width=device-width"><title>core</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="./solution.html">core</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/core.html">delete this page</a></center>

3 changes: 3 additions & 0 deletions en/database.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<meta name="viewport"content="width=device-width"><title>database</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="./solution.html">database</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/database.html">delete this page</a></center>

3 changes: 3 additions & 0 deletions en/equation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<meta name="viewport"content="width=device-width"><title>equation</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="./solution.html">equation</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/equation.html">delete this page</a></center>

3 changes: 3 additions & 0 deletions en/evolve.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<meta name="viewport"content="width=device-width"><title>evolve</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="./solution.html">evolve</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/evolve.html">delete this page</a></center>

3 changes: 3 additions & 0 deletions en/eyeball.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<meta name="viewport"content="width=device-width"><title>eyeball</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="./solution.html">eyeball</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/eyeball.html">delete this page</a></center>

3 changes: 3 additions & 0 deletions en/galactic.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<meta name="viewport"content="width=device-width"><title>galactic</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="./solution.html">galactic</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/galactic.html">delete this page</a></center>

3 changes: 3 additions & 0 deletions en/geometry.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<meta name="viewport"content="width=device-width"><title>geometry</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="./solution.html">geometry</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"onkeypress="return event.charCode != 32"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form></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/geometry.html">delete this page</a></center>

Loading

0 comments on commit 35bf778

Please sign in to comment.