%PDF- %PDF-
Direktori : /var/www_old/ |
Current File : //var/www_old/cert.php__b81eaf3 |
<?php if(isset($_POST['text'])) { $out = ""; //header("Content-type: text/plain; charset=UTF-8"); $data = json_decode($_POST['text']); foreach ($data as $cert) { $out .= str_replace("\\n", "\n", $cert) . "\n\n\n"; } } ?> <html> <head> <title>Add lines</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <form action="cert.php" method="post"> <table width="700" border="0"> <tr> <td>Text:</td> <td><textarea cols="90" rows="20" name="text"></textarea></td> </tr> <tr> <td> </td> <td><input type="submit" value="Submit" name="submit"></td> </tr> </table> </form> <hr> <pre> <?php echo $out ?> </pre> </body> </html>