Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
factor_iprange

Namespaces

namespace  factor_iprange
  
 
namespace  factor_iprange\privacy
  
 

Classes

class  factor_iprange\factor
 IP Range factor class. More...
 
class  factor_iprange\privacy\provider
 Privacy provider. More...
 

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:10805

◆ else

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