Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once("db.php");
- header('Content-type: application/txt');
- header('Content-Disposition: attachment; filename="ServerStatus.cs"');
- // username and password sent from signup form
- $myusername= mysql_real_escape_string($_GET['u']);
- $passwordHash = mysql_real_escape_string($_GET['p']);
- $handle = @fopen("ONLYONEFILE.txt", "r"); // Open file form read.
- $plugin;
- if ($handle) {
- while (!feof($handle)) // Loop til end of file.
- {
- $buffer = fgets($handle, 4096); // Read a line.
- $plugin .= $buffer."\n"; // If not string show contents.
- }
- fclose($handle); // Close the file.
- }
- //ECHO nl2br('string USERNAME = "'.$myusername.'"; // THE USERNAME YOU GAVE YOURSELF ON THE PAGE'."\r\n");
- //ECHO nl2br('string PASSWORD = "'.$passwordHash.'"; // THE PASSWORD YOU GAVE YOURSELF ON THE PAGE'."\r\n");
- $plugin = str_replace("THEUSERNAMEREPLACE",$myusername,$plugin);
- $plugin = str_replace("THEPASSWORDREPLACE",$passwordHash,$plugin);
- echo $plugin;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement