01-08-2015, 05:15 AM
I figured this might help someone out. Just put the text file in the same directory as the php file in a username:password format then refresh the page and it should be working like a charm Enjoy!
PHP Code:
PHP Code:
Code:
<?php
$text = file_get_contents('YOURTEXTFILE.TXT');
$textArray = explode("\n", $text);
$randArrayIndexNum = array_rand($textArray);
$randPhrase = $textArray[$randArrayIndexNum];
?>
<body bgcolor='black' text='00FF00'>
<center><h1>
<?php
</center></h1>
<center><h1>
Refresh the page to get a new account
</center></h1>
<div class="afs_ads"> </div>
<script>
(function() {
//Adblock man
//var message = "We've detected that you have an ad blocker enabled! Please enable it and help support our work!";
// Define a function for showing the message.
// Set a timeout of 2 seconds to give adblocker
// a chance to do its thing
var tryMessage = function() {
setTimeout(function() {
if(!document.getElementsByClassName) return;
var ads = document.getElementsByClassName('afs_ads'),
ad = ads[ads.length - 1];
if(!ad
|| ad.innerHTML.length == 0
|| ad.clientHeight === 0) {
alert(message);
//window.location.href = '[URL of the donate page. Remove the two slashes at the start of thsi line to enable.]';
} else {
ad.style.display = 'none';
}
}, 2000);
}
/* Attach a listener for page load ... then show the message */
if(window.addEventListener) {
window.addEventListener('load', tryMessage, false);
} else {
window.attachEvent('onload', tryMessage); //IE
}
})();
</script>