public function logg($text, $id_uzivatele = null) { $fp = FOpen($this->soubor, 'a'); if ($id_uzivatele) { $osoba = $id_uzivatele; } else { $osoba = $this->id_uzivatele; } if (!$osoba) { $osoba = '000000'; } FPutS($fp, Date("Y-m-d H:i:s") . " gis: {$osoba} " . NStrings::toAscii($text) . "\n"); FClose($fp); }
function robin_file_write($filename_and_path, $data) { @umask(0131); $file = @FOpen($filename_and_path, 'wb+'); @flock($file, 2); @FPutS($file, $data); @flock($file, 3); @FClose($file); }