Primo commit: trasferimento del progetto PPEasy

This commit is contained in:
2024-09-18 10:30:50 +02:00
commit eb475f257e
4233 changed files with 1043848 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<br>
<a href="editindex.php"> Torna alla pagina di scelta </a>
<br><br>
<?php
// configuration
$url = 'https://www.acscreativesolutions.com/cmctrf/HTML/languages/it/editorfilegeneral.php';
$file = 'general.php';
// check if form has been submitted
if (isset($_POST['text']))
{
// save the text contents
file_put_contents($file, $_POST['text']);
// redirect to form again
header(sprintf('Location: %s', $url));
printf('<a href="%s">Moved</a>.', htmlspecialchars($url));
exit();
}
// read the textfile
$text = file_get_contents($file);
?>
<!-- HTML form -->
<form action="" method="post">
<textarea name="text" rows="50" cols="150"><?php echo htmlspecialchars($text) ?></textarea>
<input type="submit" />
</form>