This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Monitorr CSS file | |
https://github.com/Monitorr/Monitorr | |
*/ | |
/* @import url(https://fonts.googleapis.com/css?family=Roboto:400); */ | |
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css); | |
body { | |
opacity: 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="../css/main.css"> | |
<style type="text/css"> | |
a { | |
color: black; | |
} | |
#phpinfo { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fso = new COM('Scripting.FileSystemObject'); | |
$D = $fso->Drives; | |
$type = array("Unknown","Removable","Fixed","Network","CD-ROM","RAM Disk"); | |
foreach($D as $d ){ | |
$dO = $fso->GetDrive($d); | |
$s = ""; | |
if($dO->DriveType == 3){ | |
$n = $dO->Sharename; | |
}else if($dO->IsReady){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// $df contains the number of bytes available on "/" | |
$df = disk_free_space("/"); | |
// On Windows: | |
$df_c = disk_free_space("C:"); | |
$df_d = disk_free_space("Z:"); | |
echo "df: " . $df; | |
echo "<br>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open Hardware Monitor Report | |
-------------------------------------------------------------------------------- | |
Version: 0.8.0.3 | |
-------------------------------------------------------------------------------- | |
Common Language Runtime: 4.0.30319.42000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = 'example.txt'; | |
echo "$file\n"; | |
echo "<br>"; | |
$fh = fopen($file, 'a'); | |
fwrite($fh, '<h1>File deleted and backed up</h1>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "<b> //////////////// MONITORR /////////////// </b> <br />\n"; | |
echo "<b> <a href='https://github.com/monitorr/Monitorr' target='_blank'> https://github.com/monitorr/Monitorr </a> </b> <br />\n"; | |
echo "<br>"; | |
echo "Usage: <br />\n"; | |
echo "- This script uses CURL to check if a webpage is accessible at given URL. <br />\n"; | |
echo "- If CURL fails, use a PING (pfsockopen) function to check if the port is OPEN at given URL <br />\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "<b> //////////////// MONITORR /////////////// </b> <br />\n"; | |
echo "<b> <a href='https://github.com/monitorr/Monitorr' target='_blank'> https://github.com/monitorr/Monitorr </a> </b> <br />\n"; | |
echo "<br>"; | |
echo "Usage: <br />\n"; | |
echo "- This script uses CURL to check if a webpage is accessible at given URL. <br />\n"; | |
echo "- If CURL fails, use a PING (pfsockopen) function to check if the port is OPEN at given URL <br />\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PHP/cURL function to check a web site status. If HTTP status is between 200 and 400, | |
* Generally all successes are in this range, the website is reachable. | |
* | |
* | |
* @param string $url URL that must be checked | |
*/ | |
function urlExists($url) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<defaultDocument> | |
<files> | |
<remove value="index.html" /> | |
</files> | |
</defaultDocument> | |
<rewrite> | |
<rules> |