Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!isset($_POST['submit'])) {
- echo '<html>';
- echo '<head>';
- echo '<title> LogViewer PS24.tk </title>';
- echo'</head>';
- echo'<body>';
- echo '<h2> LogViewer PS24.tk </h2>';
- echo '<form action="" method="post">';
- echo '<b>Data:</b> <input type="text" name="data" class="data" /> <strong>Data w formacie DD.MM.RRRR';
- echo '<b>Typ logów</b>' ;
- echo '<select name="typ">';
- echo '<option name="all">Wszystkie</option>';
- echo '<option name="command">Komendy</option>';
- echo '<option name="disconnect">Wyjścia</option>';
- echo '<option name="death">Zabicia</option>';
- echo '<option name="text">Czat</option>';
- echo '</select>';
- echo '<input type="submit" />';
- echo '</form>';
- } else {
- $ftp_host = "s1.netshoot.pl";
- $ftp_user = "i514x";
- $ftp_pass = "89fe1495";
- $conn_id = ftp_connect($ftp_host) or die("Nie mozna bylo polaczyc sie do serwera gry. Sprobuj pozniej.");
- if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) {
- echo "Połączony z serwerem gry\n";
- } else {
- echo "Nie mozna bylo polaczyc sie do serwera gry. Sprobuj pozniej.\n";
- }
- $hash = 'log_' . rand(100, 999) . '.log';
- while(file_exists($hash)) {
- $hash = 'log_' . rand(100, 999) . '.log';
- }
- @ftp_get($conn_id, $hash, '/91.204.163.130-7778/scriptfiles/logs/'.$_POST['data'].'_'.$_POST['typ'].'log', FTP_BINARY) or die('Nie mozna bylo polaczyc sie do serwera gry. Sprobuj pozniej.');
- $logs = file($hash);
- foreach($logs as $log) {
- echo $log;
- }
- unlink($hash);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement