Difference between revisions of "Editmessages.php"
(Created page with "<html> <body> <!-- <form action="/action_page.php"> --> <?php $action=$_REQUEST['action']; $file = 'languages/i18n/en.json'; if ($action=="") { →display: echo "<form...") |
(No difference)
|
Revision as of 11:52, 1 August 2017
<html> <body> <?php $action=$_REQUEST['action']; $file = 'languages/i18n/en.json'; if ($action=="") { /* display */
echo "<form action= method='POST' enctype='multipart/form-data'>";
- $file = 'languages/i18n/en.json';
$current = file_get_contents($file); echo "<input type='hidden' name='action' value='huh'>"; echo "<textarea name='message' rows='5000' cols='500' class='textInput'>".$current."</textarea>"; echo "<input type='submit' value='store'>"; echo "</form>";
} else {
$current = $_REQUEST['message']; file_put_contents($file, $current, LOCK_EX); echo "put ".$current." somewhere (".$file.")";
} ?> </body> </html>