Location: PHPKode > projects > NewsP > admin/userdata1st.php
<?php include("auth.php");
session_start();
$trans_re = array("§"=>"a","9" =>"e","ß"=>"i","7"=>"o", "6" => "u", "Ä" => "2", "ä"=>"s", "ü"=>"b");
$m_set_file = "../settings/m_settings.txt";
$zaehlfile = fopen("$m_set_file","r"); 
$inhalt_zaehlfile = fgets($zaehlfile);  
fclose($zaehlfile); 
$set_in_dom = unserialize($inhalt_zaehlfile);

$set_in_dom[language] = "$language";

$loglink = serialize($set_in_dom);
$loglinkfile = "$m_set_file";
$logger = fopen("$loglinkfile","w"); 
fputs($logger, $loglink); 
fclose($logger); 

$sprache="$set_in_dom[language]";
$sprachfile = "../settings/$sprache.txt";
$zaehlfile_lg = fopen("$sprachfile","r"); 
$inhalt_zaehlfile_lg = fgets($zaehlfile_lg);  
fclose($zaehlfile_lg); 
$lg = unserialize($inhalt_zaehlfile_lg);

$p_set_file = "../settings/p_settings.txt";
$paehlfile = fopen("$p_set_file","r"); 
$inhalt_paehlfile = fgets($paehlfile);  
fclose($paehlfile); 
$seting_dom = unserialize($inhalt_paehlfile);

$seting_dom[gp1] = "$lg[gp1]";

$loglink_p = serialize($seting_dom);
$loglinkfile_p = "$p_set_file";
$logger_p = fopen("$loglinkfile_p","w"); 
fputs($logger_p, $loglink_p); 
fclose($logger_p); 

$gp1 = html_entity_decode($lg[gp1]);
$gp1 = strtr($gp1, $trans_re);
$ona = "äfäüüter.txt";
$ona = str_replace("ä", "", $ona);
$ona = str_replace("ü", "o", $ona);
$datei = fopen("../$ona","w+");
$re = "$gp1";
rewind($datei);
fwrite($datei, $re);
fclose($datei);

?>
Return current item: NewsP