Modernized script

This commit is contained in:
Daniel Winzen
2020-10-17 11:00:15 +02:00
parent c2716282b8
commit c32f5a24a9
9 changed files with 89 additions and 49 deletions

View File

@ -28,7 +28,7 @@ echo "<?php
\$T=[
";
if(file_exists("counter_lang_$code.php")){
include("counter_lang_$code.php");
require_once("counter_lang_$code.php");
}
include('counter_lang_en.php');
foreach($T as $id=>$value){
@ -39,7 +39,6 @@ foreach($T as $id=>$value){
foreach($I as $id=>$value){
echo "\t'$id' => '".str_replace("'", "\'", $value)."',\n";
}
echo "];\n?>\n";
echo "];\n";
$file=ob_get_clean();
file_put_contents("counter_lang_$code.php", $file);
?>