Difference between revisions of "Editmessages.php"

From mybestdatabase
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 24: Line 24:
 
</html>
 
</html>
  
you may as well copy includes/exception/MWException.php as then as now
+
you may as well copy includes/exception/MWException.php as then as now - oh and by the way something about MWExceptionRenderer.php
 +
anyone hear of the egregious occasion someone said "i haven't any change - thanks for asking"

Latest revision as of 21:48, 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 anyone hear of the egregious occasion someone said "i haven't any change - thanks for asking"