📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv11.demodesign.com.tr
/
system
/
library
/
journal3
/
utils
📝
log.php
← Geri Dön
<?php namespace Journal3\Utils; use PhpConsole\Helper; class Log { private static $status = null; private static $sql = array(); private static function canLog() { if (static::$status === null) { static::$status = defined('JOURNAL3_LOG') && JOURNAL3_LOG === true; if (static::$status) { require_once DIR_SYSTEM . 'library/journal3/vendor/PhpConsole/__autoload.php'; Helper::register(); } } return static::$status; } public static function debug($data, $tags = null) { if (!defined('JOURNAL3_ENV') || JOURNAL3_ENV !== 'development') { return; } if (!static::canLog()) { return; } if (class_exists('\PC')) { \PC::debug($data, $tags); } } public static function sql($sql, $time) { static::$sql[] = sprintf("%3.1f - %s", $time, $sql); } public static function sqlLog() { var_dump(static::$sql); } }
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula