Files
VestaCP/web/test.php
2012-06-05 14:09:56 +03:00

15 lines
408 B
PHP

<br>
<form method="post">
<textarea size="20" class="add-input" name="v_ssl_cert"><?php if (!empty($v_ssl_cert)) echo $v_ssl_cert; ?></textarea>
<br>
<input type="submit" name="ok" value="OK" class="add-button">
<br>
<?php
if (!empty($_POST['v_ssl_cert'])) {
$fp = fopen("/tmp/test.crt", 'w');
fwrite($fp, str_replace("\r\n", "\n", $_POST['v_ssl_cert']));
fclose($fp);
}
?>