texxasrulez/watchtower 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

texxasrulez/watchtower

最新稳定版本:1.0.1

Composer 安装命令:

composer require texxasrulez/watchtower

包简介

Watchtower - session and login monitoring plugin for Roundcube

README 文档

README

Downloads Packagist Downloads Packagist Version Github License GitHub Stars GitHub Issues GitHub Contributors GitHub Forks Donate Paypal

Watchtower adds a Settings → Watchtower panel intended for session monitoring and login activity visualization.

This baseline:

  • Wires a new Settings action: Watchtower
  • Reads the Roundcube session table and shows recent sessions (user, IP, host, last activity)
  • Uses two separate images for the Settings icon (normal + active) in Larry
  • Keeps layout simple so it works with Larry variants and Elastic

Installation

  1. Extract the watchtower directory into your Roundcube plugins/ folder:

    plugins/watchtower/
    
  2. Copy the config template and adjust if needed:

    cd plugins/watchtower
    cp config.inc.php.dist config.inc.php
  3. Enable the plugin in your Roundcube config/config.inc.php:

    $config['plugins'][] = 'watchtower';

Skins & Icons

  • Larry (and my 10 Colorized Larry Variants):

    • Two separate images for the Settings icon: normal and active.
    • Icons live in skins/larry/images/ as SVGs you can replace.
  • Elastic:

    • Neutral layout and CSS, no sprite assumptions.
  • Classic (I am nostalgic):

    • Neutral layout and CSS, no sprite assumptions.

Extending Watchtower

Next steps I want to add to this plugin:

  • Define "active" vs "stale" session rules.
  • Create your own watchtower_sessions table and log full login events including user-agent and geoinfo.
  • Add filters and a "suspicious activity" tab.

Enjoy!

💰 Donations 💰

If you use this plugin and would like to show your appreciation by buying me a cup of coffee, I surely would appreciate it. A regular cup of Joe is sufficient, but a Starbucks Coffee would be better ...
Zelle (Zelle is integrated within many major banks Mobile Apps by default) - Just send to texxasrulez at yahoo dot com
No Zelle in your banks mobile app, no problem, just click Paypal and I can make a Starbucks run ...

I appreciate the interest in this plugin and hope all the best ...

Screenshot

Alt text

Versioning

  • watchtower now keeps its canonical version in watchtower::PLUGIN_VERSION inside watchtower.php.
  • watchtower::info() exposes the plugin metadata array used for self-identification.
  • Development builds should use a +dev suffix such as 1.0.0+dev.
  • Release builds should use a clean tagged version such as 1.0.0.

For a release bump:

  1. Update watchtower::PLUGIN_VERSION in watchtower.php or run sh scripts/bump-version.sh 1.0.0.
  2. Update CHANGELOG.md.
  3. Create the matching release tag after verification.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2025-12-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固