Difference between revisions of "Editmessages.php"

From mybestdatabase
Jump to: navigation, search
Line 24: Line 24:
 
</html>
 
</html>
  
you may as well copy includes/exception/MWException.php as then as now - oh and by the way something about MWExceptionRenderer.php
+
you may as well copy includes/exception/MWException.php as then as now - oh and by the way something about MWExceptionRenderer.php reminds me of that singular occasion someone said "i haven't any change - thanks for asking"
 
 
reminds me of that singular occasion someone said "i haven't any change - thanks for asking"
 

Revision as of 18:11, 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 - oh and by the way something about MWExceptionRenderer.php reminds me of that singular occasion someone said "i haven't any change - thanks for asking"