mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 03:46:42 +02:00
61 lines
2.1 KiB
HTML
61 lines
2.1 KiB
HTML
<?PHP // $Id: config.html
|
|
|
|
if ((!include_once('Auth/RADIUS.php')) or (!class_exists(Auth_RADIUS_PAP))) { // Is Auth/RADIUS really there?
|
|
print '<p align="center"><font color="red"><strong>Warning: The Auth_RADIUS module does not seem to be present. Please ensure it is installed and enabled.</strong></font></p>';
|
|
}
|
|
if (!isset($config->auth_radiushost)) {
|
|
$config->auth_radiushost = "127.0.0.1";
|
|
}
|
|
if (!isset($config->auth_radiusnasport)) {
|
|
$config->auth_radiusport = "0";
|
|
}
|
|
if (!isset($config->auth_radiussecret)) {
|
|
$config->auth_radiussecret = "";
|
|
}
|
|
?>
|
|
<tr valign="top" >
|
|
<td align="right"><P>auth_radiushost:</td>
|
|
<td>
|
|
<input name="auth_radiushost" type="text" size="30" value="<?php echo $config->auth_radiushost?>">
|
|
<?php if (isset($err["auth_radiushost"]))
|
|
formerr($err["auth_radiushost"]); ?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("auth_radiushost","auth") ?>
|
|
</td>
|
|
</TR>
|
|
|
|
<TR valign="top" >
|
|
<td align="right"><P>auth_radiusnasport:</td>
|
|
<td>
|
|
<input name="auth_radiusport" type="text" size="6" value="<?php echo $config->auth_radiusport ?>">
|
|
<?php if (isset($err["auth_radiusnasport"])) formerr($err["auth_radiusnasport"]); ?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("auth_radiusnasport","auth") ?>
|
|
</td>
|
|
</TR>
|
|
|
|
<TR valign="top" >
|
|
<td align="right"><P>auth_radiussecret:</td>
|
|
<td>
|
|
<input name="auth_radiussecret" type="text" size="6" value="<?php echo $config->auth_radiussecret ?>">
|
|
<?php if (isset($err["auth_radiussecret"])) formerr($err["auth_radiussecret"]); ?> </td>
|
|
<td>
|
|
<?php print_string("auth_radiussecret","auth") ?>
|
|
</td>
|
|
</TR>
|
|
|
|
<TR valign="top">
|
|
<td align="right"><P><?php print_string("instructions", "auth")
|
|
?>:</td>
|
|
<td>
|
|
<textarea name="auth_instructions" cols="30" rows="10" wrap="virtual"><?php
|
|
p($config->auth_instructions) ?></textarea>
|
|
</td>
|
|
<td>
|
|
<?php print_string("authinstructions","auth") ?>
|
|
<?php helpbutton("text", get_string("helptext")) ?>
|
|
</td>
|
|
</TR>
|
|
|