mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-03-21 03:11:54 +01:00
15 lines
408 B
PHP
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);
|
|
}
|
|
|
|
?>
|