$83 GRAYBYTE WORDPRESS FILE MANAGER $50

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/var/softaculous/userspice/

HOME
Current File : /var/softaculous/userspice//totp_requirements.php
<?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;
    }
}
*/

?>


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
6 Apr 2026 1.55 AM
root / root
0755
images
--
3 Mar 2026 2.55 AM
root / root
0755
php53
--
3 Mar 2026 2.55 AM
root / root
0755
php56
--
3 Mar 2026 2.55 AM
root / root
0755
php71
--
3 Mar 2026 2.55 AM
root / root
0755
php81
--
3 Mar 2026 2.55 AM
root / root
0755
php82
--
3 Mar 2026 2.55 AM
root / root
0755
_clone.php
2.939 KB
30 Jul 2025 9.56 AM
root / root
0644
_edit.php
3.467 KB
14 Apr 2025 12.43 PM
root / root
0644
_edit.xml
0.437 KB
14 Apr 2025 12.43 PM
root / root
0644
extend.php
8.334 KB
2 Mar 2026 12.51 PM
root / root
0644
fileindex.php
0.093 KB
10 Jul 2024 12.02 PM
root / root
0644
gen_totp_key.php
1.206 KB
30 Jul 2025 9.56 AM
root / root
0644
import.php
3.026 KB
2 Mar 2026 12.51 PM
root / root
0644
info.xml
2.396 KB
2 Mar 2026 10.50 AM
root / root
0644
init.php
2.964 KB
2 Mar 2026 10.50 AM
root / root
0644
install.js
0.899 KB
23 Dec 2021 11.54 AM
root / root
0644
install.php
5.832 KB
2 Mar 2026 12.51 PM
root / root
0644
install.xml
2.036 KB
2 Feb 2026 12.20 PM
root / root
0644
md5
2.972 KB
2 Mar 2026 12.51 PM
root / root
0644
notes.txt
1.133 KB
30 Jul 2025 9.56 AM
root / root
0644
totp_key.php
1.473 KB
30 Jul 2025 9.56 AM
root / root
0644
totp_requirements.php
2.33 KB
25 Aug 2025 11.12 AM
root / root
0644
update_pass.php
0.505 KB
14 Apr 2025 12.43 PM
root / root
0644
user_manager_columns.php
5.996 KB
2 Feb 2026 12.20 PM
root / root
0644
userspice.sql
52.006 KB
2 Mar 2026 10.50 AM
root / root
0644
userspice.zip
5.83 MB
2 Mar 2026 10.50 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF