delete
This commit is contained in:
parent
a77f1f5312
commit
6b36a6f3e6
|
@ -1,33 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Is <?php echo $_SERVER['QUERY_STRING'] ?> online?</title>
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<link href="icon.png" rel="icon">
|
||||
</head>
|
||||
<body id="about">
|
||||
<div class="centercubeplease">
|
||||
<h1>Is <?php echo $_SERVER['QUERY_STRING'] ?> online?</h1>
|
||||
<h2><?php function checkOnline($domain) {
|
||||
$curlInit = curl_init($domain);
|
||||
curl_setopt($curlInit,CURLOPT_CONNECTTIMEOUT,10);
|
||||
curl_setopt($curlInit,CURLOPT_HEADER,true);
|
||||
curl_setopt($curlInit,CURLOPT_NOBODY,true);
|
||||
curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true);
|
||||
|
||||
//get answer
|
||||
$response = curl_exec($curlInit);
|
||||
|
||||
curl_close($curlInit);
|
||||
if ($response) return true;
|
||||
return false;
|
||||
}
|
||||
if(checkOnline('http://'.$_SERVER['QUERY_STRING'])) {echo "yes"; }
|
||||
elseif(gethostbyname($_SERVER['QUERY_STRING']) == $_SERVER['QUERY_STRING']) {echo "That does not exist dummy";}
|
||||
else{echo "no";}
|
||||
?></h2>
|
||||
<p>Disclamer, this only checks if an http server is reacheable!</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Content-Type: text/plain"
|
||||
echo
|
||||
echo "This is \"`hostname`\" server running `uname -srm` on `lscpu -J | jq -r '.lscpu[2].data'` * `lscpu -J | jq -r '.lscpu[7].data'` `lscpu -J | jq -r '.lscpu[9].data'` CPU @ `lscpu -J | jq -r '.lscpu[11].data'` MHz."
|
||||
echo
|
||||
uptime
|
||||
echo "System stats"
|
||||
echo "=================================="
|
||||
echo "Processes:\t RUN: `ps -r | wc -l`, TOTAL: `ps -A | wc -l`"
|
||||
head -n 2 /proc/meminfo
|
||||
echo
|
||||
echo "Generated on `date -R`."
|
||||
echo
|
||||
echo "https://yari.fai.st"
|
Loading…
Reference in New Issue