Admin_LoginController::getLogFile PHP Метод

getLogFile() защищенный Метод

Protection against bruteforce
protected getLogFile ( )
    protected function getLogFile()
    {
        $logfile = PIMCORE_LOG_DIRECTORY . "/loginerror.log";
        if (!is_file($logfile)) {
            File::put($logfile, "");
        }
        if (!is_writable($logfile)) {
            $m = "It seems that " . $logfile . " is not writable.";
            Logger::crit($m);
            die($m);
        }
        return file_get_contents($logfile);
    }