git rm -r php, moved to scripts repo

This commit is contained in:
Aminda Suomalainen 2023-01-23 09:26:33 +02:00
parent 7fc96049b4
commit 62f2fab770
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
5 changed files with 0 additions and 138 deletions

View File

@ -1,9 +0,0 @@
<?php
header("Content-Type: text/plain; charset=utf-8");
$IP = $_SERVER['REMOTE_ADDR'];
echo "$IP";
?>

View File

@ -1,13 +0,0 @@
<?php
header("Content-Type: text/html; charset=utf-8");
$IP = $_SERVER['REMOTE_ADDR'];
echo '<!DOCTYPE html>';
echo '<head>';
echo '<meta charset="UTF-8" />';
echo "<title>$IP</title>";
echo '</head>';
echo '</html>';
?>

View File

@ -1,57 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<!-- <meta http-equiv="refresh" content="60" /> -->
<meta name="description" content="This is simple PHP script to convert email address into Gravatar link and show the result. This is inspired by asaph/gravatar/ and the documentation it linked to and I wanted to see could I do this by myself too." />
<title>Email --> Gravatar</title>
</head>
<body>
<p>
<form action="gravatar.php" method="post">
*Email address: <input type="text" name="email"><br>
Size: <input type="text" name="size">
<input type="submit">
</form>
</p>
<p>* marks required field. Only email address is required.</p>
<p>Size can be anything from 1 to 2048. If it's empty, size is
80.</p>
<p>For Steam profile pictures, set size as 184.</p>
</body>
</html>
<?php
$email = trim( $_REQUEST["email"] );
$size = $_REQUEST["size"];
echo "<p>Email<br> $email<br></p>";
$email = strtolower( $email );
$md5email = md5( $email );
// Do nothing if our md5 is an empty string!
if($md5email != "d41d8cd98f00b204e9800998ecf8427e") {
echo "<p>md5<br> $md5email</p>";
echo "<p>Link<br>";
$gravatar = "https://gravatar.com/avatar/$md5email?s=$size";
echo "$gravatar</p>";
echo "<p>";
echo "<img src=$gravatar>";
echo "</p>";
}
echo '<hr/>
<p><a href="https://github.com/Mkaysi/mkaysi.github.io/blob/master/php/gravatar.php">Source: https://github.com/Mkaysi/mkaysi.github.io/blob/master/php/gravatar.php</a></p>
<hr/>';
?>

View File

@ -1,56 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<!-- <meta http-equiv="refresh" content="60" /> -->
<meta name="description" content="This is simple PHP script to convert email address into Libravatar link and show the result. This is inspired by those which inspired gravatar.php and gravatar.php itself." />
<title>Email --> Libravatar</title>
</head>
<body>
<p>
<form action="libravatar.php" method="post">
*Email address: <input type="text" name="email"><br>
Size: <input type="text" name="size">
<input type="submit">
</form>
</p>
<p>* marks required field. Only email address is required.</p>
<p>Size can be anything from 1 to 2048. If it's empty, size is 80.</p>
<p>For Steam profile pictures, set size as 184.</p>
</body>
</html>
<?php
$email = trim( $_REQUEST["email"] );
$size = $_REQUEST["size"];
echo "<p>Email<br> $email<br></p>";
$email = strtolower( $email );
$md5email = md5( $email );
// Do nothing if our md5 is an empty string!
if($md5email != "d41d8cd98f00b204e9800998ecf8427e") {
echo "<p>md5<br> $md5email</p>";
echo "<p>Link<br>";
$libravatar = "https://seccdn.libravatar.org/avatar/$md5email?s=$size.jpeg";
echo "$libravatar</p>";
echo "<p>";
echo "<img src=$libravatar>";
echo "</p>";
}
echo '<hr/>
<p><a href="https://github.com/Mkaysi/mkaysi.github.io/blob/master/php/libravatar.php">Source: https://github.com/Mkaysi/mkaysi.github.io/blob/master/php/libravatar.php</a></p>
<hr/>'
?>

View File

@ -1,3 +0,0 @@
PHP scripts that are here because of legacy reasons even if they don't run
at GitHub pages. If you wish to use them, clone them by yourself or visit
some more or less up-to-date mirror ran by me.