Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
factor_iprange

Namespaces

namespace  factor_iprange
  
 
namespace  factor_iprange\privacy
  
 

Classes

class  factor_iprange\factor
 
class  factor_iprange\privacy\provider
 

Variables

 $allowedips = get_config('factor_iprange', 'safeips')
 
 $enabled
 
 $info = $OUTPUT->notification(get_string($message, 'factor_iprange', ['ip' => getremoteaddr()]), $type)
 
global $OUTPUT
 
 $plugin = 2023100400
 
 $type = 'notifyerror'
 
$plugin component = 'factor_iprange'
 
if(trim( $allowedips)=='') else if(remoteip_in_list($allowedips)) else
 
$plugin maturity = MATURITY_STABLE
 
$plugin version = 2023100900
 

Detailed Description

Variable Documentation

◆ $enabled

$enabled
Initial value:
= new admin_setting_configcheckbox('factor_iprange/enabled',
new lang_string('settings:enablefactor', 'tool_mfa'),
new lang_string('settings:enablefactor_help', 'tool_mfa'), 0)
Checkbox.
Definition adminlib.php:3039
The lang_string class.
Definition moodlelib.php:10802

◆ else

if(trim($allowedips)=='') else if (remoteip_in_list( $allowedips)) else
Initial value:
{
$message = 'allowedipshasntmyip'