Difference between revisions of "Editmessages.php"

From mybestdatabase
Jump to: navigation, search
(Created page with "<html> <body> <!-- <form action="/action_page.php"> --> <?php $action=$_REQUEST['action']; $file = 'languages/i18n/en.json'; if ($action=="") { display: echo "<form...")
 
Line 23: Line 23:
 
</body>
 
</body>
 
</html>
 
</html>
 +
 +
you may as well copy includes/exception/MWException.php as then as now

Revision as of 12:05, 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'>";
  1. $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>

you may as well copy includes/exception/MWException.php as then as now