Changeset 8
- Timestamp:
- 07/12/2005 02:37:24 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-inst/wp-newblog.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-inst/wp-newblog.php
r1 r8 35 35 print ' 36 36 <th valign="top">Username:</th> 37 <td><input name="weblog_id" type="text" id="weblog_id" value="'.$weblog_id.'" maxlength="50" /><br />(This will also be your blog address. Letters and numbers only, please. )</td>37 <td><input name="weblog_id" type="text" id="weblog_id" value="'.$weblog_id.'" maxlength="50" /><br />(This will also be your blog address. Letters and numbers only, please. Some names are also not allowed.)</td> 38 38 </tr>'; 39 39 if( $errormsg[ 'weblog_title' ] != '' ) { … … 105 105 { 106 106 case "1": 107 $illegal_names = get_site_settings( "illegal_names" ); 108 if( $illegal_names == false ) { 109 $illegal_names = array( "www", "web", "root", "admin", "main", "invite", "administrator" ); 110 add_site_settings( "illegal_names", $illegal_names ); 111 } 112 107 113 $newBlogID = sanitize_title($_POST['weblog_id']); 114 if( in_array( $newBlogID, $illegal_names ) == true ) { 115 $errormsg[ 'weblog_id' ] = true; 116 } 108 117 $weblog_title = stripslashes( $_POST[ 'weblog_title' ] ); 109 118 $admin_email = $_POST[ 'admin_email' ];
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)