Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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 = 2024041600
 
 $type = 'notifyerror'
 
$plugin component = 'factor_iprange'
 
if(trim( $allowedips)=='') else if(remoteip_in_list($allowedips)) else
 
$plugin maturity = MATURITY_STABLE
 
$plugin version = 2024042200
 

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:3071
The lang_string class.
Definition moodlelib.php:10246

◆ else

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