Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jehovahsays authored Apr 24, 2024
1 parent 8acfd59 commit 06d2284
Show file tree
Hide file tree
Showing 11 changed files with 340 additions and 53 deletions.
8 changes: 4 additions & 4 deletions about.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-------localhost------<br>
About compression<br>
-------<a href="./index.html">localhost</a>------<br>
About localhost<br>
<br>
Prerequisites:<br>
-----------------<br>
Expand All @@ -24,8 +24,8 @@
http://localhost/<br>
Is always in developer mode.<br>
-----------------<br>
webmaster: root<br>
keywords: root,localhost<br>
webmaster: localhost<br>
keywords: localhost<br>
website: http://localhost/<br>
email: root@localhost<br>
-----------------<br>
Expand Down
40 changes: 22 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,37 @@
<meta http-equiv="Cache-Control" content="no-store, no-cache, private, max-age=0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="author" content="root@localhost"/>
<meta name="description" content="root@localhost"/>
<meta name="keywords" content="root@localhost"/>
<meta itemprop="name" content="root@localhost"/>
<meta name="author" content="localhost"/>
<meta name="description" content="localhost"/>
<meta name="keywords" content="localhost"/>
<meta itemprop="name" content="localhost"/>
<meta itemprop="description" content="root@localhost"/>
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
<link rel="stylesheet" href="./compression.css"></link>
<title>chat</title>
<link rel="stylesheet" href="./localhost.css"></link>
<title>localhost</title>
</head>
<body bgcolor="gray">
<button class="button" type="button" onclick="alert('Connection Established')">
<!<body bgcolor="gray">
<p style="color:green">
<script src="./compression.js" type="text/javascript"></script>
<a href="./about.html">About compression</a>
<script src="./localhost.js" type="text/javascript"></script>

<a href="./index.php">localhost with php server on</a>
<br>
<br>
<a href="./sitemapofcompression.php">Sitemap of compression</a>
<a href="./about.html">About localhost</a>
<br>
<br>
<a href="./compression/compression.html">compression pages created</a>
<a href="./localhost/localhost.html">localhost pages created</a>
<br>
<div class="form">
<iframe frameborder="0" height="175" src="./compression.tail.php" width="300"></br>tail of compression<br></iframe>
<br>
<marquee behavior="scroll" direction="up" scrollamount="3">
<iframe frameborder="0" width="270" height="200" src="./robots.txt">
</marquee>
</br>
<br>
</iframe>
</br>
<form action="./index.php?action=post" method="post">
<input type="text" name="username" class="usernameInput" style="height: 50px;" style="text-align:left;" type="text" maxlength="14" autocomplete="false" placeholder="type in chat" />
<br>form of compression<br>
</form>
</div>
<br>
</button>
</body>
</html>
63 changes: 32 additions & 31 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,22 @@
// open log use "a" to write and grow
// log no deletion or use "r+" writes
// 1 line to the log it also deletes log
$handle = fopen("./compression/compression.html", "a"); //open log use "a" to write and grow log no deletion or use "r+" writes 1 line to the log it also deletes log
$ip = $handle = fopen("./localhost/localhost.html", "a"); //open log use "a" to write and grow log no deletion or use "r+" writes 1 line to the log it also deletes log
// the user post becomes $value
foreach($_POST as $variable => $value) {
fwrite($handle, "root@localhost:~# searched for" . "\n" . "<a href=\"" . $value . ".html" . "\">$value</a></br></br>" . "\r\n");
$handle = fopen("./compression/$value.html", "a");
fwrite($handle, "root@localhost:~# searched for" . "\n" . $value . "\r\n");
fwrite($ip = $handle, "</br><button class='button' type='button' onclick='alert('Connection Established')>" . "\n" . "<a href=\"" . $value . ".html" . "\">$value</a></button></br></br>" . "\r\n");
$handle = fopen("./localhost/$value.html", "a");
fwrite($ip = $handle, "<meta name=" . "\"" . "viewport" . "\"" . "content=" . "\"" . "width=device-width," . "initial-scale=1.0" . "\"" . ">" . "\n" . $value . "\r\n");
}
fclose($handle);
fclose($ip = $handle);
?>
<?php
$ip = $localIp = gethostbyname(gethostname());
$handle = fopen("./compression.log", "a"); //open log file
foreach($_POST as $variable => $value) { //loop through POST vars
fwrite($handle, $variable . "+" . $value . "\r\n");
$ip = $handle = fopen("./localhost/localhost.log", "a"); //open log file
foreach($_POST as $variable => $value) {
fwrite($ip = $handle, "\n" . "\n" . $value . "\r\n" . "IP: 127.0.0.1 PORT:80" . "\n" . "Conection Established \r\n \r\n");
}
fwrite($handle, "IP: $ip \r\n \r\n");
fclose($handle);
fclose($ip = $handle);
?>
<?php
header_remove( 'X-Powered-By' );
Expand All @@ -34,50 +33,52 @@
header( 'viewport: width=device-width, initial-scale=1.0' );
header( 'Accept-Language: en-US,en;q=0.5' );
header( 'Connection: Keep-alive' );
header( 'Host: root@localhost' );
header( 'description: root@localhost description of compression' );
header( 'keywords: root@localhost,compression keywords' );
header( 'Host: localhost' );
header( 'description: localhost' );
header( 'keywords: localhost' );
header( 'Vary: Accept-Encoding' );
header( 'Expires: 0' );
header( 'Referrer-Policy: no-referrer' );
?>
<!DOCTYPE html>
<head>
<html lang="en-US">
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-Control" content="no-store, no-cache, private, max-age=0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="author" content="root@localhost"/>
<meta name="description" content="root@localhost description of compression"/>
<meta name="keywords" content="root@localhost,compression keywords"/>
<meta itemprop="name" content="root@localhost"/>
<meta name="author" content="localhost"/>
<meta name="description" content="localhost"/>
<meta name="keywords" content="localhost"/>
<meta itemprop="name" content="localhost"/>
<meta itemprop="description" content="root@localhost"/>
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
<link rel="stylesheet" href="./compression.css"></link>
<title>chat</title>
<link rel="stylesheet" href="./localhost.css"></link>
<title>localhost</title>
</head>
<body bgcolor="gray">
<button class="button" type="button" onclick="alert('Connection Established')">
<!<body bgcolor="gray">
<p style="color:green">
<script src="./compression.js" type="text/javascript"></script>
<a href="./about.html">About compression</a>
<script src="./localhost.js" type="text/javascript"></script>
<a href="./about.html">About localhost</a>
<br>
<br>
<a href="./sitemap.xml.php">Sitemap of localhost</a>
<br>
<a href="./sitemapofcompression.php">Sitemap of compression</a>
<br>
<a href="./localhost/localhost.html">localhost pages created</a>
<br>
<a href="./compression/compression.html">compression pages created</a>
<br>
<div class="form">
<iframe frameborder="0" height="175" src="./compression.tail.php" width="300"></iframe>
<iframe frameborder="0" width="270" height="200" src="./localhost.tail.php">
</br>
<br>
</iframe>
</br>
<form action="./index.php?action=post" method="post">
<input type="text" name="username" class="usernameInput" style="height: 50px;" style="text-align:left;" type="text" maxlength="14" autocomplete="false" placeholder="type in chat" />
<br>
form of compression
<br>
</form>
</div>
<br>
</button>
</body>
</html>
104 changes: 104 additions & 0 deletions localhost.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
/* Fix user-agent */

iframe {
background-color:white
}

button {
background-color: black
}

body {
background-color: gray;
color: green;
}

h1 {
color: green;
}

/* unvisited link */
a:link {
color: white;
}

/* visited link */
a:visited {
color: green;
}

/* mouse over link */
a:hover {
color: gray;
}

/* selected link */
a:active {
color: green;
}

* {
box-sizing: border-box;
}
html {
font-weight: 300;
-webkit-font-smoothing: antialiased;
width: 100%;
}

.page {
height: 100%;
width: 100%;
position: absolute;
width: 100%;
color: green;

}
/* Login Page */
.login.page {
background-color: black;
width: 100%;
height: 263px;

}
.login.page .form {
height: 200px;
margin-top: -110px;
position: absolute;
text-align: left;
top: 45%;
width: 100%;

}
.login.page .form .usernameInput {
background-color: black;
border: none;
border-bottom: none;
outline: none;
padding-bottom: 0px;
text-align: left;
width: 75%;
}

.login.page .title, .login.page .usernameInput {
color: green;
font-weight: 100;
width: 50%;


}


input,
input::-webkit-input-placeholder {
font-size: 15px;
color: green;
background-color: black;
outline-color: black;
line-height: 3;



}


2 changes: 2 additions & 0 deletions localhost.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions localhost.tail.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

body{
background-color: black;
color: white;
font-family: 'Ubuntu', sans-serif;
font-size: 16px;
line-height: 20px;
}
h4{
font-size: 18px;
line-height: 22px;
color: #353535;
}
#log {
position: relative;
top: -34px;
}
#scrollLock{
width:2px;
height: 2px;
overflow:visible;
}
59 changes: 59 additions & 0 deletions localhost.tail.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?php
$logFile = "./localhost/localhost.log"; // local path to log file
$interval = 1010; //how often it checks the log file for changes, min 100
$textColor = "green"; //use CSS color
// Don't have to change anything bellow
if(!$textColor) $textColor = "green";
if($interval < 100) $interval = 100;
if(isset($_GET['getLog'])){
echo file_get_contents($logFile);
}else{
?>
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="./localhost.tail.css"></link>
<title>log</title>
</head>
<body>
<script src="./localhost.js" type="text/javascript"></script>
<script>
setInterval(readLogFile, <?php echo $interval; ?>);
window.onload = readLogFile;
var pathname = window.location.pathname;
var scrollLock = true;

$(document).ready(function(){
$('.disableScrollLock').click(function(){
$("html,body").clearQueue()
$(".disableScrollLock").hide();
$(".enableScrollLock").show();
scrollLock = false;
});
$('.enableScrollLock').click(function(){
$("html,body").clearQueue()
$(".enableScrollLock").hide();
$(".disableScrollLock").show();
scrollLock = true;
});
});
function readLogFile(){
$.get(pathname, { getLog : "true" }, function(data) {
data = data.replace(new RegExp("\n", "g"), "<br />");
$("#log").html(data);

if(scrollLock == true) { $('html,body').animate({scrollTop: $("#scrollLock").offset().top}, <?php echo $interval; ?>) };
});
}
</script>
</head>
<body>
<a href="./index.html">localhost</a><br>
<h4><?php echo $logFile; ?></h4>
<div id="log">

</div>
</br>
<div id="scrollLock"> <input class="disableScrollLock" type="button" value="Disable Scroll Lock" /> <input class="enableScrollLock" style="display: none;" type="button" value="Enable Scroll Lock" /></div>
</body>
</html>
<?php } ?>
11 changes: 11 additions & 0 deletions localhost.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>localhost</title>
<link rel="stylesheet" type="text/css" href="localhost.css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
</head>
<body>
<h1>Welcome to localhost</h1>
</body>
</html>
3 changes: 3 additions & 0 deletions phpwin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"index": "index.html index.php sitemap.xml.php localhost.html localhost.log localhost.js localhost.css"
}
Loading

0 comments on commit 06d2284

Please sign in to comment.