⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-roundcube
/
plugins
/
autologout
/
View File Name :
autologout.php
*
*
*
*
* * * This plugin won't work if the POST request is made using CURL or other * methods. It will only work if the POST request is made by submitting a * form similar to the one from above. The form can be hidden and it can * be sent automatically using JavaScript or JQuery (for example by using: * $("#loSubmitButton").click();) */ class autologout extends rcube_plugin { public $task = 'logout'; /** * Plugin initialization */ public function init() { $this->add_hook('startup', [$this, 'startup']); } /** * Request handler */ public function startup($args) { $rcmail = rcmail::get_instance(); // Change task and action to logout if (!empty($_SESSION['user_id']) && !empty($_POST['_autologout']) && $this->known_client()) { $rcmail->logout_actions(); $rcmail->kill_session(); } return $args; } /** * Checks if the request came from an allowed client IP */ private function known_client() { /* * If you want to restrict the use of this plugin to specific * remote clients, you can verify the remote client's IP like this: * * return in_array(rcube_utils::remote_addr(), ['123.123.123.123', '124.124.124.124']); */ return true; } }