Changeset 1052
- Timestamp:
- 08/11/07 20:27:16 (1 year ago)
- Files:
-
- trunk/src/lib/lyceum-registration-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/lib/lyceum-registration-functions.php
r1033 r1052 60 60 $now_gmt = gmdate('Y-m-d H:i:s'); 61 61 62 $wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_name, post_modified, post_modified_gmt, comment_count) VALUES ($userid, '$now', '$now_gmt', '".$wpdb->escape(__('Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!'))."', '".$wpdb->escape(__('Hello world!'))."', '".$wpdb->escape(__('hello-world'))."', '$now', '$now_gmt', '1')");62 $wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_name, post_modified, post_modified_gmt, comment_count) VALUES ($userid, '$now', '$now_gmt', '".$wpdb->escape(__('Welcome to '.get_settings('site_title').'. This is your first post. Edit or delete it, then start blogging!'))."', '".$wpdb->escape(__('Hello world!'))."', '".$wpdb->escape(__('hello-world'))."', '$now', '$now_gmt', '1')"); 63 63 $postid=$wpdb->insert_id; 64 64 $wpdb->query( "INSERT INTO $wpdb->post2cat (`post_id`, `category_id`) VALUES ($postid, $catid)" ); … … 68 68 69 69 // First Page 70 $wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_name, post_modified, post_modified_gmt, post_status, page_blog) VALUES ($userid, '$now', '$now_gmt', '".$wpdb->escape(__('This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.'))."', '".$wpdb->escape(__('About'))."', '".$wpdb->escape(__('about'))."', '$now', '$now_gmt', 'static', '$blog')");70 $wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_name, post_modified, post_modified_gmt, post_status, page_blog) VALUES ($userid, '$now', '$now_gmt', '".$wpdb->escape(__('This is an example of a page. You could edit this to put information about yourself or your site. You can create as many pages or sub-pages as you like, and manage all of your content inside of the '.get_settings('site_title').' web interface.'))."', '".$wpdb->escape(__('About'))."', '".$wpdb->escape(__('about'))."', '$now', '$now_gmt', 'static', '$blog')"); 71 71 $pageid=$wpdb->insert_id; 72 72
