Changeset 1323
- Timestamp:
- 12/02/07 21:19:42 (1 year ago)
- Files:
-
- devel/mod/invite/lib/bad.png (added)
- devel/mod/invite/lib/check_username.php (added)
- devel/mod/invite/lib/good.png (added)
- devel/mod/invite/lib/invite_join.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/invite/lib/invite_join.php
r1251 r1323 1 1 <?php 2 2 3 global $CFG ;3 global $CFG, $metatags; 4 4 // Join 5 6 $metatags .= <<< END 7 \n<script type="text/javascript"> 8 function keypressed() { 9 var username = document.getElementById("id_join_username").value; 10 document.getElementById("username_ok").src = '{$CFG->wwwroot}mod/invite/lib/check_username.php?username=' + username; 11 } 12 13 function setup() { 14 document.getElementById("id_join_username").onkeyup = keypressed; 15 } 16 17 window.onload = setup; 18 </script> 19 END; 5 20 6 21 $sitename = sitename; … … 47 62 'context' => 'databoxvertical', 48 63 'name' => __gettext("Your username - (Must be letters only)"), 49 'contents' => display_input_field(array("join_username",$username,"text"))64 'contents' => "\n<b>$CFG->wwwroot</b>" . "<input type=\"text\" name=\"join_username\" value=\"".htmlspecialchars(stripslashes($username), ENT_COMPAT, 'utf-8')."\" style=\"width: 60%\" id=\"id_join_username\" /><img src=\"{$CFG->wwwroot}mod/invite/lib/check_username.php?username=$username\" id=\"username_ok\" />", 50 65 ) 51 66 );
