ACIL FM
Dark
Refresh
Current DIR:
/usr/share/doc/cpanel-php84-log/examples
/
usr
share
doc
cpanel-php84-log
examples
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
composite.php
302 B
chmod
View
DL
Edit
Rename
Delete
console.php
148 B
chmod
View
DL
Edit
Rename
Delete
display.php
270 B
chmod
View
DL
Edit
Rename
Delete
error_log.php
168 B
chmod
View
DL
Edit
Rename
Delete
file.php
210 B
chmod
View
DL
Edit
Rename
Delete
firebug.php
208 B
chmod
View
DL
Edit
Rename
Delete
mail.php
220 B
chmod
View
DL
Edit
Rename
Delete
null.php
132 B
chmod
View
DL
Edit
Rename
Delete
observer_mail.php
672 B
chmod
View
DL
Edit
Rename
Delete
pear_error_handler.php
619 B
chmod
View
DL
Edit
Rename
Delete
php_error_handler.php
767 B
chmod
View
DL
Edit
Rename
Delete
sql.php
214 B
chmod
View
DL
Edit
Rename
Delete
sqlite.php
482 B
chmod
View
DL
Edit
Rename
Delete
syslog.php
155 B
chmod
View
DL
Edit
Rename
Delete
win.php
202 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/share/doc/cpanel-php84-log/examples/observer_mail.php
<?php require_once 'Log/observer.php'; class Log_observer_mail extends Log_observer { private $to = ''; private $subject = ''; private $pattern = ''; public function __construct($priority, $conf) { /* Call the base class constructor. */ parent::__construct($priority); /* Configure the observer. */ $this->to = $conf['to']; $this->subject = $conf['subject']; $this->pattern = $conf['pattern']; } public function notify($event): void { if (preg_match($this->pattern, $event['message']) != 0) { mail($this->to, $this->subject, $event['message']); } } } ?>
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply