var _l = _o.length
for (var i = 0; i < _l; i++) {
_o[i].style.display = "none";
+ var j = 0;
for (var x in _o[i]) {
+ j++;
if (typeof _o[i][x] == "function") {
_o[i][x] = null;
}
+ if (j > 1000) {
+ // something is wrong, probably infinite loop caused by embedded html file
+ // see MDL-9825
+ break;
+ }
}
}
}
echo '</ul>';
}
- // can not use forms due to object bug in IE :-( see MDL-9799
-/* $options = null;
+ $options = null;
$options['choose'] = $theme;
$options['sesskey'] = $sesskey;
- print_single_('index.php', $options, $strchoose);*/
- echo '<a href="index.php?choose='.$theme.'&sesskey='.sesskey().'">'.$strchoose.'</a>';
+ print_single_button('index.php', $options, $strchoose);
echo '</td>';
echo "</tr>";
}
echo '<a href="'.$CFG->sitepolicy.'" onclick="this.target=\'_blank\'">'.$strpolicyagreementclick.'</a>';
echo '</object></div>';
- // see MDL-9798
-/* $linkyes = 'policy.php';
+ $linkyes = 'policy.php';
$optionsyes = array('agree'=>1, 'sesskey'=>sesskey());
$linkno = $CFG->wwwroot.'/login/logout.php';
$optionsno = array('sesskey'=>sesskey());
- notice_yesno($strpolicyagree, $linkyes, $linkno, $optionsyes, $optionsno);*/
-
- print_box_start('generalbox', 'notice');
- echo '<p>'. $strpolicyagree .'</p>';
- echo '<div class="buttons">';
- echo '<div class="singlebutton"><a href="policy.php?agree=1&sesskey='.sesskey().'">'.get_string('yes').'</a></div>';
- echo '<div class="singlebutton"><a href="../login/logout.php?sesskey='.sesskey().'">'.get_string('no').'</a></div>';
- echo '</div>';
- print_box_end();
+ notice_yesno($strpolicyagree, $linkyes, $linkno, $optionsyes, $optionsno);
print_footer();