18 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
20 include_once
$GLOBALS['xoops']->path('class/xoopslists.php');
21 include_once
$GLOBALS['xoops']->path('class/xoopsformloader.php');
43 $disc_text =
new XoopsFormTextarea(
'',
'disclaimer',
$xoopsConfigUser[
'reg_disclaimer'], 15, 80);
44 $disc_text->setExtra(
'readonly="readonly"');
45 $disc_tray->addElement($disc_text);
46 $agree_chk =
new XoopsFormCheckBox(
'',
'agree_disc',
$agree_disc);
48 $eltname = $agree_chk->getName();
50 $agree_chk->customValidationCode[] =
"if ( myform.{$eltname}.checked == false ) { window.alert(\"{$eltmsg}\"); myform.{$eltname}.focus(); return false; }";
51 $disc_tray->addElement($agree_chk,
true);