added Login Screen requiring user/pass that can be added if the end user feels its required.
Literally just done this myself and was about to share haha! Good work buddy!
There are various ways of doing this and although this isn't the most secure its pretty easy as it doesn't involve using additional files etc. It just modifies the original script to have a login screen! You can either copy the whole text and insert your chosen script manager inside where is says copy.
Or just copy the text above that line above your existing script text and everything below it at the end of the file!
COPY ALL THIS TEXT BELOW INTO A PHP FILE, EDIT THE USERNAME AND PASSWORD THEN COPY YOUR SCRIPT INTO THE FILE
<?php
$username = "TYPE_YOUR_USERNAME_HERE";
$password = "TYPE_YOUR_PASSWORD_HERE";
$nonsense = "supercalifragilisticexpialidocious";
if (isset($_COOKIE['PrivatePageLogin'])) {
if ($_COOKIE['PrivatePageLogin'] == md5($password.$nonsense)) {
?>
COPY THE WHOLE TEXT FROM THE PHP FILE HERE!
<?php
exit;
} else {
echo "Bad Cookie. Clear internet cache and try again";
exit;
}
}
if (isset($_GET['p']) && $_GET['p'] == "login") {
if ($_POST['user'] != $username) {
echo "Sorry, that username does not match.";
exit;
} else if ($_POST['keypass'] != $password) {
echo "Sorry, that password does not match.";
exit;
} else if ($_POST['user'] == $username && $_POST['keypass'] == $password) {
setcookie('PrivatePageLogin', md5($_POST['keypass'].$nonsense));
header("Location: $_SERVER[PHP_SELF]");
} else {
echo "Sorry, you could not be logged in at this time.";
}
}
?>
<body bgcolor="#454547">
<div align="center"><form action="<?php echo $_SERVER['PHP_SELF']; ?>?p=login" method="post">
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br><label> Username <input type="text" name="user" id="user" /></label><br />
<br>
<label> Password <input type="password" name="keypass" id="keypass" /></label><br />
<br>
<input type="submit" id="submit" value="Login to app manager" />
</form>