test.php 408 B

123456789101112131415
  1. <br>
  2. <form method="post">
  3. <textarea size="20" class="add-input" name="v_ssl_cert"><?php if (!empty($v_ssl_cert)) echo $v_ssl_cert; ?></textarea>
  4. <br>
  5. <input type="submit" name="ok" value="OK" class="add-button">
  6. <br>
  7. <?php
  8. if (!empty($_POST['v_ssl_cert'])) {
  9. $fp = fopen("/tmp/test.crt", 'w');
  10. fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_cert']));
  11. fclose($fp);
  12. }
  13. ?>