Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.26
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
webuzo-data /
roundcube /
plugins /
autologon /
Delete
Unzip
Name
Size
Permission
Date
Action
autologon.php
1.53
KB
-rw-r--r--
2026-02-08 09:33
composer.json
570
B
-rw-r--r--
2026-02-08 09:33
Save
Rename
<?php /** * Sample plugin to try out some hooks. * This performs an automatic login if accessed from localhost * * @license GNU GPLv3+ * @author Thomas Bruederli */ class autologon extends rcube_plugin { public $task = 'login'; /** * Plugin initialization */ public function init() { $this->add_hook('startup', [$this, 'startup']); $this->add_hook('authenticate', [$this, 'authenticate']); } /** * 'startup' hook handler * * @param array $args Hook arguments * * @return array Hook arguments */ function startup($args) { // change action to login if (empty($_SESSION['user_id']) && !empty($_GET['_autologin']) && $this->is_localhost()) { $args['action'] = 'login'; } return $args; } /** * 'authenticate' hook handler * * @param array $args Hook arguments * * @return array Hook arguments */ function authenticate($args) { if (!empty($_GET['_autologin']) && $this->is_localhost()) { $args['user'] = 'me'; $args['pass'] = '******'; $args['host'] = 'localhost'; $args['cookiecheck'] = false; $args['valid'] = true; } return $args; } /** * Checks if the request comes from localhost * * @return bool */ private function is_localhost() { return $_SERVER['REMOTE_ADDR'] == '::1' || $_SERVER['REMOTE_ADDR'] == '127.0.0.1'; } }