You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
anonnews2/public_html/language/genlang.php

20 lines
367 B
PHTML

13 years ago
<?php
if(isset($_POST['submit']))
{
$arr = explode("\n",$_POST['strings']);
for($i=0;$i<43;$i++)
{
echo("\$lang[$i] = \"".str_replace("\"","\\\"",str_replace("\r","",$arr[$i]))."\";<br>");
}
}
else
{
?>
<form method="post" action="genlang.php">
<textarea name="strings"></textarea>
<button type="submit" name="submit">Convert</button>
</form>
<?php
}
?>