__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/*
UserSpice 5 - Default TOTP Requirements Configuration
DO NOT EDIT THIS FILE DIRECTLY
To customize TOTP requirements, copy this file to:
usersc/includes/totp_requirements.php
This allows you to maintain your customizations through UserSpice updates.
*/
// Default TOTP Requirements
$totp_requirements = [
'login_methods' => [
'cookie' => false,
'password' => true,
'email' => true,
'passkeys' => false,
'google' => false,
'facebook' => false,
'oauth' => false, // Generic OAuth (for plugins)
'okta' => false,
'saml' => false,
'ldap' => false,
'discord' => false,
'twitch' => false,
],
// Pages that should never trigger TOTP redirects
'safe_pages' => [
'totp_management.php',
'totp_verification.php',
'logout.php',
'maintenance.php',
'banned.php',
'complete.php',
'verify.php',
'verify_thankyou.php',
'verify_resend.php',
'verify_resend_thankyou.php',
'update.php',
'oauth_success.php',
'callback.php',
],
];
/*
CUSTOMIZATION EXAMPLES for usersc/includes/totp_requirements.php:
// Force admins to always use TOTP regardless of login method
if (hasPerm(2, $user_id)) {
foreach ($totp_requirements['login_methods'] as $method => $required) {
$totp_requirements['login_methods'][$method] = true;
}
}
// Remove TOTP for specific accounts
$sample_accounts = [1, 5, 10, 15];
if (in_array($user_id, $sample_accounts)) {
foreach ($totp_requirements['login_methods'] as $method => $required) {
$totp_requirements['login_methods'][$method] = false;
}
}
// Require TOTP based on IP ranges
$client_ip = $_SERVER['REMOTE_ADDR'] ?? '';
if (!in_array($client_ip, ['192.168.1.0/24', '10.0.0.0/8')) {
// External IPs require TOTP for all login methods
foreach ($totp_requirements['login_methods'] as $method => $required) {
$totp_requirements['login_methods'][$method] = true;
}
}
// Prevent TOTP on localhost
if (strpos($client_ip, '127.0.0.') === 0 || strpos($client_ip, '::1') === 0) {
foreach ($totp_requirements['login_methods'] as $method => $required) {
$totp_requirements['login_methods'][$method] = false;
}
}
*/
?>| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| images | Folder | 0755 |
|
|
| php53 | Folder | 0755 |
|
|
| php56 | Folder | 0755 |
|
|
| php71 | Folder | 0755 |
|
|
| php81 | Folder | 0755 |
|
|
| php82 | Folder | 0755 |
|
|
| _clone.php | File | 2.94 KB | 0644 |
|
| _edit.php | File | 3.47 KB | 0644 |
|
| _edit.xml | File | 447 B | 0644 |
|
| extend.php | File | 8.29 KB | 0644 |
|
| fileindex.php | File | 95 B | 0644 |
|
| gen_totp_key.php | File | 1.21 KB | 0644 |
|
| import.php | File | 3.02 KB | 0644 |
|
| info.xml | File | 2.4 KB | 0644 |
|
| init.php | File | 2.93 KB | 0644 |
|
| install.js | File | 921 B | 0644 |
|
| install.php | File | 5.82 KB | 0644 |
|
| install.xml | File | 2.04 KB | 0644 |
|
| md5 | File | 3.58 KB | 0644 |
|
| notes.txt | File | 1.13 KB | 0644 |
|
| totp_key.php | File | 1.47 KB | 0644 |
|
| totp_requirements.php | File | 2.33 KB | 0644 |
|
| update_pass.php | File | 517 B | 0644 |
|
| user_manager_columns.php | File | 6 KB | 0644 |
|