No input file specified. Please go back and submit some PHP code you want to have beautified.

"); } elseif (!strstr($HTTP_POST_FILES['filename']['type'], "text/plain") && !strstr($HTTP_POST_FILES['filename']['type'], "text/html") && !stristr($HTTP_POST_FILES['filename']['type'], "application/octet-stream")) { die("

Please submit the file formatted as plain text.

"); } elseif ($HTTP_POST_FILES['filename']['size'] >= 30000) { die("

Sorry, file size currently is limited to 30 kb to minimize server load.

"); } else { $strarray=file($HTTP_POST_FILES['filename']['tmp_name']); } } elseif ($_POST['submit']=='Submit') { if (!$_POST['code']) { die("

No input received. Please go back and submit some PHP code you want to have beautified.

"); } else { if (get_magic_quotes_gpc()) { $_POST['code']=stripslashes($_POST['code']); } $strarray=explode("\n", $_POST['code']); } } else { die ("

Please go to the submission form and submit some PHP code you want to have beautified.

"); } // trim each line and concatenate to one string for($i=0;$i\n"; echo "\n"; echo "
\n";
echo htmlentities(($str));
echo "\n
"; echo "\n"; echo "\n"; ?>