Jump to content

form trouble


darkfreaks

Recommended Posts

looking at  what the  file() function is retrieving off vampirefreaks.com

 

it is pulling a javascript code with that function in it. but it didnt before weird

 

  $user = $_POST['user'];
  $submit = isset($_POST['submit']) ? $_POST['submit'] : false;
  if ($submit)
    {
      $url = 'http://vampirefreaks.com/profile.php?user=';
      $user = $_POST['user'];
      $file = file("$url$user");
      foreach ($file as $lines)
        {
          $line = strip_tags($lines);
          $line = trim("$line");
          if ($line != '')
            {
              $line = preg_replace('/\s+/', ' ', $line);
              $line = preg_replace('/\s+$/', ' ', $line);
              $reason = 'THIS USER HAS BEEN DELETED BY VF ADMIN Reason for Deletion:';
              if ($line == 'THIS USER DOES NOT EXIST' || $line == 'Error Retreiving user info')
                {
                  $message = "this user is dead<br />";
                }
              if ($line == $reason)
                {
                  $message = "$line $user";
                }
              if ($line == '' . $reason . ' Picture Theft')
                {
                  $message = "$line $user";
                }
               if ($line == 'This User Has Been Suspended')
            {
              $by = $reason = next($file);
              $reason = next($file);
              $message = "$user Has Been Suspended By VF Admin For:$by$reason$form";
            }
        }
      if ($message)
        {
          echo "<font color=red>$message</font>";
        }
      if (!$message)
        {
          echo $form;
        }
    }

 

Link to comment
https://forums.phpfreaks.com/topic/192525-form-trouble/#findComment-1014373
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.