ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
2026-09-12 15:16:21
Editing: AdminLog.php
Cancel
Save Changes
<?php /** * Class represents records from table admin_log * {autogenerated} * @property int $log_id * @property datetime $dattm * @property int $admin_id * @property string $ip * @property string $tablename * @property int $record_id * @property string $message * @property string $admin_login * @see Am_Table */ class AdminLog extends Am_Record { } class AdminLogTable extends Am_Table { protected $_key = 'log_id'; protected $_table = '?_admin_log'; protected $_recordClass = 'AdminLog'; function clearOld($date) { $this->_db->query("DELETE FROM ?_admin_log WHERE dattm < ? ", $date . ' 00:00:00'); } function log($message, $tablename='', $record_id=0, $admin_id=0) { $admin_id = get_first($admin_id, $this->getDi()->authAdmin->getUserId()); $admin_login = $admin_id ? $this->getDi()->adminTable->load($admin_id)->login : $this->getDi()->authAdmin->getUsername(); $this->_db->query("INSERT INTO ?_admin_log SET dattm=?, admin_id=?,admin_login=?,ip=?, tablename=?,record_id=?,message=?", $this->getDi()->sqlDateTime, $admin_id, $admin_login, $_SERVER['REMOTE_ADDR'], $tablename, $record_id, $message); } }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete