Changeset 1355 for trunk/wp-admin/install.php
- Timestamp:
- 05/24/2004 08:22:18 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/install.php
r1308 r1355 51 51 52 52 $wpdb->hide_errors(); 53 $installed = $wpdb->get_results("SELECT * FROM $ tableusers");53 $installed = $wpdb->get_results("SELECT * FROM $wpdb->users"); 54 54 if ($installed) die(__('<p>You appear to already have WordPress installed. If you would like to reinstall please clear your old database files first.</p></body></html>')); 55 55 $wpdb->show_errors(); … … 89 89 90 90 while ($row = mysql_fetch_row($result)) { 91 if ($row[0] == $ tablelinks)91 if ($row[0] == $wpdb->links) 92 92 $got_links = true; 93 if ($row[0] == $ tablelinkcategories)93 if ($row[0] == $wpdb->linkcategories) 94 94 $got_cats = true; 95 95 //print "Table: $row[0]<br />\n"; 96 96 } 97 97 if (!$got_cats) { 98 echo "<p>Can't find table '$ tablelinkcategories', gonna create it...</p>\n";99 $sql = "CREATE TABLE $ tablelinkcategories ( " .98 echo "<p>Can't find table '$wpdb->linkcategories', gonna create it...</p>\n"; 99 $sql = "CREATE TABLE $wpdb->linkcategories ( " . 100 100 " cat_id int(11) NOT NULL auto_increment, " . 101 101 " cat_name tinytext NOT NULL, ". … … 113 113 " PRIMARY KEY (cat_id) ". 114 114 ") "; 115 $result = mysql_query($sql) or print ("Can't create the table '$ tablelinkcategories' in the database.<br />" . $sql . "<br />" . mysql_error());115 $result = mysql_query($sql) or print ("Can't create the table '$wpdb->linkcategories' in the database.<br />" . $sql . "<br />" . mysql_error()); 116 116 if ($result != false) { 117 echo "<p>Table '$ tablelinkcategories' created OK</p>\n";117 echo "<p>Table '$wpdb->linkcategories' created OK</p>\n"; 118 118 $got_cats = true; 119 119 } 120 120 } else { 121 echo "<p>Found table '$ tablelinkcategories', don't need to create it...</p>\n";121 echo "<p>Found table '$wpdb->linkcategories', don't need to create it...</p>\n"; 122 122 $got_cats = true; 123 123 } 124 124 if (!$got_links) { 125 echo "<p>Can't find '$ tablelinks', gonna create it...</p>\n";126 $sql = "CREATE TABLE $ tablelinks ( " .125 echo "<p>Can't find '$wpdb->links', gonna create it...</p>\n"; 126 $sql = "CREATE TABLE $wpdb->links ( " . 127 127 " link_id int(11) NOT NULL auto_increment, " . 128 128 " link_url varchar(255) NOT NULL default '', " . … … 140 140 " PRIMARY KEY (link_id) " . 141 141 ") "; 142 $result = mysql_query($sql) or print ("Can't create the table '$ tablelinks' in the database.<br />" . $sql . "<br />" . mysql_error());143 $links = mysql_query("INSERT INTO $ tablelinks VALUES ('', 'http://wordpress.org/', 'WordPress', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '', '');");144 $links = mysql_query("INSERT INTO $ tablelinks VALUES ('', 'http://photomatt.net/', 'Matt', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '', '');");145 $links = mysql_query("INSERT INTO $ tablelinks VALUES ('', 'http://zed1.com/journalized/', 'Mike', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '', '');");146 $links = mysql_query("INSERT INTO $ tablelinks VALUES ('', 'http://www.alexking.org/', 'Alex', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '', '');");147 $links = mysql_query("INSERT INTO $ tablelinks VALUES ('', 'http://dougal.gunters.org/', 'Dougal', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '', '');");142 $result = mysql_query($sql) or print ("Can't create the table '$wpdb->links' in the database.<br />" . $sql . "<br />" . mysql_error()); 143 $links = mysql_query("INSERT INTO $wpdb->links VALUES ('', 'http://wordpress.org/', 'WordPress', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '', '');"); 144 $links = mysql_query("INSERT INTO $wpdb->links VALUES ('', 'http://photomatt.net/', 'Matt', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '', '');"); 145 $links = mysql_query("INSERT INTO $wpdb->links VALUES ('', 'http://zed1.com/journalized/', 'Mike', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '', '');"); 146 $links = mysql_query("INSERT INTO $wpdb->links VALUES ('', 'http://www.alexking.org/', 'Alex', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '', '');"); 147 $links = mysql_query("INSERT INTO $wpdb->links VALUES ('', 'http://dougal.gunters.org/', 'Dougal', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '', '');"); 148 148 149 149 150 150 if ($result != false) { 151 echo "<p>Table '$ tablelinks' created OK</p>\n";151 echo "<p>Table '$wpdb->links' created OK</p>\n"; 152 152 $got_links = true; 153 153 } 154 154 } else { 155 echo "<p>Found table '$ tablelinks', don't need to create it...</p>\n";155 echo "<p>Found table '$wpdb->links', don't need to create it...</p>\n"; 156 156 $got_links = true; 157 157 } … … 159 159 if ($got_links && $got_cats) { 160 160 echo "<p>Looking for category 1...</p>\n"; 161 $sql = "SELECT * FROM $ tablelinkcategories WHERE cat_id=1 ";162 $result = mysql_query($sql) or print ("Can't query '$ tablelinkcategories'.<br />" . $sql . "<br />" . mysql_error());161 $sql = "SELECT * FROM $wpdb->linkcategories WHERE cat_id=1 "; 162 $result = mysql_query($sql) or print ("Can't query '$wpdb->linkcategories'.<br />" . $sql . "<br />" . mysql_error()); 163 163 if ($result != false) { 164 164 if ($row = mysql_fetch_object($result)) { … … 167 167 } else { 168 168 echo "<p>Gonna insert category 1...</p>\n"; 169 $sql = "INSERT INTO $ tablelinkcategories (cat_id, cat_name) VALUES (1, 'Links')";169 $sql = "INSERT INTO $wpdb->linkcategories (cat_id, cat_name) VALUES (1, 'Links')"; 170 170 $result = mysql_query($sql) or print ("Can't query insert category.<br />" . $sql . "<br />" . mysql_error()); 171 171 if ($result != false) { … … 194 194 # just remove the // in this file 195 195 196 // $query = "DROP TABLE IF EXISTS $ tableposts";197 // $q = mysql_query($query) or die ("doh, can't drop the table \"$ tableposts\" in the database.");198 199 $query = "CREATE TABLE $ tableposts (196 // $query = "DROP TABLE IF EXISTS $wpdb->posts"; 197 // $q = mysql_query($query) or die ("doh, can't drop the table \"$wpdb->posts\" in the database."); 198 199 $query = "CREATE TABLE $wpdb->posts ( 200 200 ID int(10) unsigned NOT NULL auto_increment, 201 201 post_author int(4) NOT NULL default '0', … … 233 233 $now = date('Y-m-d H:i:s'); 234 234 $now_gmt = gmdate('Y-m-d H:i:s'); 235 $query = "INSERT INTO $ tableposts (post_author, post_date, post_date_gmt, post_content, post_title, post_modified, post_modified_gmt) VALUES ('1', '$now', '$now_gmt', 'Welcome to WordPress. This is the first post. Edit or delete it, then start blogging!', 'Hello world!', '$now', '$now_gmt')";235 $query = "INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_modified, post_modified_gmt) VALUES ('1', '$now', '$now_gmt', 'Welcome to WordPress. This is the first post. Edit or delete it, then start blogging!', 'Hello world!', '$now', '$now_gmt')"; 236 236 237 237 $q = $wpdb->query($query); … … 241 241 242 242 <?php 243 // $query = "DROP TABLE IF EXISTS $ tablecategories";244 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$ tablecategories\" in the database.");245 246 $query = " 247 CREATE TABLE $ tablecategories (243 // $query = "DROP TABLE IF EXISTS $wpdb->categories"; 244 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$wpdb->categories\" in the database."); 245 246 $query = " 247 CREATE TABLE $wpdb->categories ( 248 248 cat_ID int(4) NOT NULL auto_increment, 249 249 cat_name varchar(55) NOT NULL default '', … … 254 254 $q = $wpdb->query($query); 255 255 256 $query = "INSERT INTO $ tablecategories (cat_ID, cat_name) VALUES ('0', 'General')";257 $q = $wpdb->query($query); 258 259 $query = "UPDATE $ tableposts SET post_category = 1";256 $query = "INSERT INTO $wpdb->categories (cat_ID, cat_name) VALUES ('0', 'General')"; 257 $q = $wpdb->query($query); 258 259 $query = "UPDATE $wpdb->posts SET post_category = 1"; 260 260 $result = $wpdb->query($query); 261 261 ?> … … 264 264 265 265 <?php 266 // $query = "DROP TABLE IF EXISTS $ tablecomments";267 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$ tablecomments\" in the database.");268 269 $query = " 270 CREATE TABLE $ tablecomments (266 // $query = "DROP TABLE IF EXISTS $wpdb->comments"; 267 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$wpdb->comments\" in the database."); 268 269 $query = " 270 CREATE TABLE $wpdb->comments ( 271 271 comment_ID int(11) unsigned NOT NULL auto_increment, 272 272 comment_post_ID int(11) NOT NULL default '0', … … 294 294 <?php 295 295 $query = " 296 CREATE TABLE $ tablepostmeta (296 CREATE TABLE $wpdb->postmeta ( 297 297 meta_id int(11) NOT NULL auto_increment, 298 298 post_id int(11) NOT NULL default 0, … … 313 313 314 314 <?php 315 // $query = "DROP TABLE IF EXISTS $ tableoptions";316 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$ tableoptions\" in the database.");317 318 $query = " 319 CREATE TABLE $ tableoptions (315 // $query = "DROP TABLE IF EXISTS $wpdb->options"; 316 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$wpdb->options\" in the database."); 317 318 $query = " 319 CREATE TABLE $wpdb->options ( 320 320 option_id int(11) NOT NULL auto_increment, 321 321 blog_id int(11) NOT NULL default 0, … … 337 337 338 338 $query = " 339 CREATE TABLE $ tableoptiontypes (339 CREATE TABLE $wpdb->optiontypes ( 340 340 optiontype_id int(11) NOT NULL auto_increment, 341 341 optiontype_name varchar(64) NOT NULL, … … 350 350 351 351 $query = " 352 CREATE TABLE $ tableoptiongroups (352 CREATE TABLE $wpdb->optiongroups ( 353 353 group_id int(11) NOT NULL auto_increment, 354 354 group_name varchar(64) not null, … … 361 361 362 362 363 // $query = "DROP TABLE IF EXISTS $ tableoptiongroup_options";364 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$ tableoptiongroup_options\" in the database.");365 366 $query = " 367 CREATE TABLE $ tableoptiongroup_options (363 // $query = "DROP TABLE IF EXISTS $wpdb->optiongroup_options"; 364 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$wpdb->optiongroup_options\" in the database."); 365 366 $query = " 367 CREATE TABLE $wpdb->optiongroup_options ( 368 368 group_id int(11) NOT NULL, 369 369 option_id int(11) NOT NULL, … … 375 375 376 376 377 // $query = "DROP TABLE IF EXISTS $ tableoptionvalues";378 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$ tableoptionvalues\" in the database.");379 380 $query = " 381 CREATE TABLE $ tableoptionvalues (377 // $query = "DROP TABLE IF EXISTS $wpdb->optionvalues"; 378 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$wpdb->optionvalues\" in the database."); 379 380 $query = " 381 CREATE TABLE $wpdb->optionvalues ( 382 382 option_id int(11) NOT NULL, 383 383 optionvalue tinytext, … … 399 399 400 400 $option_data = array( 401 "INSERT INTO $ tableoptiontypes (optiontype_id, optiontype_name) VALUES (1, 'integer')",402 "INSERT INTO $ tableoptiontypes (optiontype_id, optiontype_name) VALUES (2, 'boolean')",403 "INSERT INTO $ tableoptiontypes (optiontype_id, optiontype_name) VALUES (3, 'string')",404 "INSERT INTO $ tableoptiontypes (optiontype_id, optiontype_name) VALUES (4, 'date')",405 "INSERT INTO $ tableoptiontypes (optiontype_id, optiontype_name) VALUES (5, 'select')",406 "INSERT INTO $ tableoptiontypes (optiontype_id, optiontype_name) VALUES (6, 'range')",407 "INSERT INTO $ tableoptiontypes (optiontype_id, optiontype_name) VALUES (7, 'sqlselect')",408 "INSERT INTO $ tableoptiontypes (optiontype_id, optiontype_name) VALUES (8, 'float')",401 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (1, 'integer')", 402 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (2, 'boolean')", 403 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (3, 'string')", 404 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (4, 'date')", 405 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (5, 'select')", 406 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (6, 'range')", 407 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (7, 'sqlselect')", 408 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (8, 'float')", 409 409 410 410 //base options from b2cofig 411 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(1,'siteurl', 3, 'http://example.com', 'siteurl is your blog\'s URL: for example, \'http://example.com/wordpress\' (no trailing slash !)', 8, 30)",412 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(2,'blogfilename', 3, 'index.php', 'blogfilename is the name of the default file for your blog', 8, 20)",413 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(3,'blogname', 3, 'my weblog', 'blogname is the name of your blog', 8, 20)",414 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(4,'blogdescription', 3, 'babblings!', 'blogdescription is the description of your blog', 8, 40)",415 //"INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(6,'search_engine_friendly_urls', 2, '0', 'Querystring Configuration ** (don\'t change if you don\'t know what you\'re doing)', 8, 20)",416 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(7,'new_users_can_blog', 2, '0', 'whether you want new users to be able to post entries once they have registered', 8, 20)",417 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(8,'users_can_register', 2, '1', 'whether you want to allow users to register on your blog', 8, 20)",418 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(54,'admin_email', 3, 'you@example.com', 'Your email (obvious eh?)', 8, 20)",419 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level) VALUES (93, 'blog_charset', 3, 'utf-8', 'Your blog’s charset (here’s a <a href=\'http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html\'>list of possible charsets</a>)', 8)",411 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(1,'siteurl', 3, 'http://example.com', 'siteurl is your blog\'s URL: for example, \'http://example.com/wordpress\' (no trailing slash !)', 8, 30)", 412 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(2,'blogfilename', 3, 'index.php', 'blogfilename is the name of the default file for your blog', 8, 20)", 413 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(3,'blogname', 3, 'my weblog', 'blogname is the name of your blog', 8, 20)", 414 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(4,'blogdescription', 3, 'babblings!', 'blogdescription is the description of your blog', 8, 40)", 415 //"INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(6,'search_engine_friendly_urls', 2, '0', 'Querystring Configuration ** (don\'t change if you don\'t know what you\'re doing)', 8, 20)", 416 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(7,'new_users_can_blog', 2, '0', 'whether you want new users to be able to post entries once they have registered', 8, 20)", 417 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(8,'users_can_register', 2, '1', 'whether you want to allow users to register on your blog', 8, 20)", 418 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(54,'admin_email', 3, 'you@example.com', 'Your email (obvious eh?)', 8, 20)", 419 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level) VALUES (93, 'blog_charset', 3, 'utf-8', 'Your blog’s charset (here’s a <a href=\'http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html\'>list of possible charsets</a>)', 8)", 420 420 // general blog setup 421 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(9 ,'start_of_week', 5, '1', 'day at the start of the week', 8, 20)",422 //"INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(10,'use_preview', 2, '1', 'Do you want to use the \'preview\' function', 8, 20)",423 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(14,'use_htmltrans', 2, '1', 'IMPORTANT! set this to false if you are using Chinese, Japanese, Korean, or other double-bytes languages', 8, 20)",424 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(15,'use_balanceTags', 2, '1', 'this could help balance your HTML code. if it gives bad results, set it to false', 8, 20)",425 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(16,'use_smilies', 2, '1', 'set this to 1 to enable smiley conversion in posts (note: this makes smiley conversion in ALL posts)', 8, 20)",426 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(18,'require_name_email', 2, '0', 'set this to true to require e-mail and name, or false to allow comments without e-mail/name', 8, 20)",427 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(20,'comments_notify', 2, '1', 'set this to true to let every author be notified about comments on their posts', 8, 20)",421 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(9 ,'start_of_week', 5, '1', 'day at the start of the week', 8, 20)", 422 //"INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(10,'use_preview', 2, '1', 'Do you want to use the \'preview\' function', 8, 20)", 423 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(14,'use_htmltrans', 2, '1', 'IMPORTANT! set this to false if you are using Chinese, Japanese, Korean, or other double-bytes languages', 8, 20)", 424 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(15,'use_balanceTags', 2, '1', 'this could help balance your HTML code. if it gives bad results, set it to false', 8, 20)", 425 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(16,'use_smilies', 2, '1', 'set this to 1 to enable smiley conversion in posts (note: this makes smiley conversion in ALL posts)', 8, 20)", 426 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(18,'require_name_email', 2, '0', 'set this to true to require e-mail and name, or false to allow comments without e-mail/name', 8, 20)", 427 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(20,'comments_notify', 2, '1', 'set this to true to let every author be notified about comments on their posts', 8, 20)", 428 428 //rss/rdf feeds 429 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(21,'posts_per_rss', 1, '10', 'number of last posts to syndicate', 8, 20)",430 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(22,'rss_language', 3, 'en', 'the language of your blog ( see this: http://backend.userland.com/stories/storyReader$16 )', 8, 20)",431 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(23,'rss_encoded_html', 2, '0', 'for b2rss.php: allow encoded HTML in <description> tag?', 8, 20)",432 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(24,'rss_excerpt_length', 1, '50', 'length (in words) of excerpts in the RSS feed? 0=unlimited note: in b2rss.php, this will be set to 0 if you use encoded HTML', 8, 20)",433 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(25,'rss_use_excerpt', 2, '1', 'use the excerpt field for rss feed.', 8, 20)",434 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(29,'use_trackback', 2, '1', 'set this to 0 or 1, whether you want to allow your posts to be trackback\'able or not note: setting it to zero would also disable sending trackbacks', 8, 20)",435 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(30,'use_pingback', 2, '1', 'set this to 0 or 1, whether you want to allow your posts to be pingback\'able or not note: setting it to zero would also disable sending pingbacks', 8, 20)",429 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(21,'posts_per_rss', 1, '10', 'number of last posts to syndicate', 8, 20)", 430 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(22,'rss_language', 3, 'en', 'the language of your blog ( see this: http://backend.userland.com/stories/storyReader$16 )', 8, 20)", 431 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(23,'rss_encoded_html', 2, '0', 'for b2rss.php: allow encoded HTML in <description> tag?', 8, 20)", 432 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(24,'rss_excerpt_length', 1, '50', 'length (in words) of excerpts in the RSS feed? 0=unlimited note: in b2rss.php, this will be set to 0 if you use encoded HTML', 8, 20)", 433 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(25,'rss_use_excerpt', 2, '1', 'use the excerpt field for rss feed.', 8, 20)", 434 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(29,'use_trackback', 2, '1', 'set this to 0 or 1, whether you want to allow your posts to be trackback\'able or not note: setting it to zero would also disable sending trackbacks', 8, 20)", 435 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(30,'use_pingback', 2, '1', 'set this to 0 or 1, whether you want to allow your posts to be pingback\'able or not note: setting it to zero would also disable sending pingbacks', 8, 20)", 436 436 //file upload 437 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(31,'use_fileupload', 2, '0', 'set this to false to disable file upload, or true to enable it', 8, 20)",438 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(32,'fileupload_realpath', 3, '/home/your/site/wordpress/images', 'enter the real path of the directory where you\'ll upload the pictures \nif you\'re unsure about what your real path is, please ask your host\'s support staff \nnote that the directory must be writable by the webserver (chmod 766) \nnote for windows-servers users: use forwardslashes instead of backslashes', 8, 40)",439 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(33,'fileupload_url', 3, 'http://example.com/images', 'enter the URL of that directory (it\'s used to generate the links to the uploded files)', 8, 40)",440 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(34,'fileupload_allowedtypes', 3, 'jpg jpeg gif png', 'accepted file types, separated by spaces. example: \'jpg gif png\'', 8, 20)",441 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(35,'fileupload_maxk', 1, '96', 'by default, most servers limit the size of uploads to 2048 KB, if you want to set it to a lower value, here it is (you cannot set a higher value than your server limit)', 8, 20)",442 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(36,'fileupload_minlevel', 1, '4', 'you may not want all users to upload pictures/files, so you can set a minimum level for this', 8, 20)",443 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(37,'fileupload_allowedusers', 3, '', '...or you may authorize only some users. enter their logins here, separated by spaces. if you leave this variable blank, all users who have the minimum level are authorized to upload. example: \'barbara anne george\'', 8, 30)",437 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(31,'use_fileupload', 2, '0', 'set this to false to disable file upload, or true to enable it', 8, 20)", 438 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(32,'fileupload_realpath', 3, '/home/your/site/wordpress/images', 'enter the real path of the directory where you\'ll upload the pictures \nif you\'re unsure about what your real path is, please ask your host\'s support staff \nnote that the directory must be writable by the webserver (chmod 766) \nnote for windows-servers users: use forwardslashes instead of backslashes', 8, 40)", 439 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(33,'fileupload_url', 3, 'http://example.com/images', 'enter the URL of that directory (it\'s used to generate the links to the uploded files)', 8, 40)", 440 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(34,'fileupload_allowedtypes', 3, 'jpg jpeg gif png', 'accepted file types, separated by spaces. example: \'jpg gif png\'', 8, 20)", 441 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(35,'fileupload_maxk', 1, '96', 'by default, most servers limit the size of uploads to 2048 KB, if you want to set it to a lower value, here it is (you cannot set a higher value than your server limit)', 8, 20)", 442 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(36,'fileupload_minlevel', 1, '4', 'you may not want all users to upload pictures/files, so you can set a minimum level for this', 8, 20)", 443 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(37,'fileupload_allowedusers', 3, '', '...or you may authorize only some users. enter their logins here, separated by spaces. if you leave this variable blank, all users who have the minimum level are authorized to upload. example: \'barbara anne george\'', 8, 30)", 444 444 // email settings 445 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(38,'mailserver_url', 3, 'mail.example.com', 'mailserver settings', 8, 20)",446 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(39,'mailserver_login', 3, 'login@example.com', 'mailserver settings', 8, 20)",447 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(40,'mailserver_pass', 3, 'password', 'mailserver settings', 8, 20)",448 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(41,'mailserver_port', 1, '110', 'mailserver settings', 8, 20)",449 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(42,'default_category', 1, '1', 'by default posts will have this category', 8, 20)",450 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(46,'use_phoneemail', 2, '0', 'some mobile phone email services will send identical subject & content on the same line if you use such a service, set use_phoneemail to true, and indicate a separator string', 8, 20)",445 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(38,'mailserver_url', 3, 'mail.example.com', 'mailserver settings', 8, 20)", 446 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(39,'mailserver_login', 3, 'login@example.com', 'mailserver settings', 8, 20)", 447 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(40,'mailserver_pass', 3, 'password', 'mailserver settings', 8, 20)", 448 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(41,'mailserver_port', 1, '110', 'mailserver settings', 8, 20)", 449 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(42,'default_category', 1, '1', 'by default posts will have this category', 8, 20)", 450 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(46,'use_phoneemail', 2, '0', 'some mobile phone email services will send identical subject & content on the same line if you use such a service, set use_phoneemail to true, and indicate a separator string', 8, 20)", 451 451 // original options from options page 452 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(48,'posts_per_page', 1, '20','How many posts/days to show on the index page.', 4, 20)",453 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(49,'what_to_show', 5, 'posts','Posts, days, or posts paged', 4, 20)",454 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(50,'archive_mode', 5, 'monthly','Which \'unit\' to use for archives.', 4, 20)",455 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(51,'time_difference', 6, '0', 'if you\'re not on the timezone of your server', 4, 20)",456 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(52,'date_format', 3, 'n/j/Y', 'see note for format characters', 4, 20)",457 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(53,'time_format', 3, 'g:i a', 'see note for format characters', 4, 20)",452 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(48,'posts_per_page', 1, '20','How many posts/days to show on the index page.', 4, 20)", 453 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(49,'what_to_show', 5, 'posts','Posts, days, or posts paged', 4, 20)", 454 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(50,'archive_mode', 5, 'monthly','Which \'unit\' to use for archives.', 4, 20)", 455 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(51,'time_difference', 6, '0', 'if you\'re not on the timezone of your server', 4, 20)", 456 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(52,'date_format', 3, 'n/j/Y', 'see note for format characters', 4, 20)", 457 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(53,'time_format', 3, 'g:i a', 'see note for format characters', 4, 20)", 458 458 459 459 //'pages' of options 460 "INSERT INTO $ tableoptiongroups (group_id, group_name, group_desc) VALUES(1, 'Other Options', 'Posts per page etc. Original options page')",461 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(1,48,1 )",462 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(1,49,2 )",463 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(1,50,3 )",464 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(1,51,4 )",465 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(1,52,5 )",466 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(1,53,6 )",467 468 "INSERT INTO $ tableoptiongroups (group_id, group_name, group_desc) VALUES(2, 'General blog settings', 'Things you\'ll probably want to tweak')",469 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,9 ,1 )",470 //"INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,10,2 )",471 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,11,3 )",472 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,12,4 )",473 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,13,5 )",474 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,14,6 )",475 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,15,7 )",476 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,16,8 )",477 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,17,9 )",478 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,18,10)",479 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,19,11)",480 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(2,20,12)",481 482 "INSERT INTO $ tableoptiongroups (group_id, group_name, group_desc) VALUES(3, 'RSS/RDF Feeds, Track/Ping-backs', 'Settings for RSS/RDF Feeds, Track/ping-backs')",483 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(3,21,1 )",484 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(3,22,2 )",485 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(3,23,3 )",486 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(3,24,4 )",487 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(3,25,5 )",488 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(3,26,6 )",489 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(3,27,7 )",490 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(3,28,8 )",491 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(3,29,9 )",492 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(3,30,10)",493 494 "INSERT INTO $ tableoptiongroups (group_id, group_name, group_desc) VALUES(4, 'File uploads', 'Settings for file uploads')",495 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(4,31,1 )",496 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(4,32,2 )",497 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(4,33,3 )",498 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(4,34,4 )",499 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(4,35,5 )",500 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(4,36,6 )",501 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(4,37,7 )",502 503 "INSERT INTO $ tableoptiongroups (group_id, group_name, group_desc) VALUES(5, 'Blog-by-Email settings', 'Settings for blogging via email')",504 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(5,38,1 )",505 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(5,39,2 )",506 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(5,40,3 )",507 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(5,41,4 )",508 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(5,42,5 )",509 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(5,43,6 )",510 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(5,44,7 )",511 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(5,45,8 )",512 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(5,46,9 )",513 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(5,47,10)",514 515 "INSERT INTO $ tableoptiongroups (group_id, group_name, group_desc) VALUES(6, 'Base settings', 'Basic settings required to get your blog working')",516 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(6,1,1)",517 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(6,2,2)",518 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(6,3,3)",519 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(6,4,4)",520 //"INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(6,6,5)",521 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(6,7,6)",522 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(6,8,7)",523 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(6,54,8)",460 "INSERT INTO $wpdb->optiongroups (group_id, group_name, group_desc) VALUES(1, 'Other Options', 'Posts per page etc. Original options page')", 461 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(1,48,1 )", 462 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(1,49,2 )", 463 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(1,50,3 )", 464 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(1,51,4 )", 465 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(1,52,5 )", 466 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(1,53,6 )", 467 468 "INSERT INTO $wpdb->optiongroups (group_id, group_name, group_desc) VALUES(2, 'General blog settings', 'Things you\'ll probably want to tweak')", 469 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,9 ,1 )", 470 //"INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,10,2 )", 471 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,11,3 )", 472 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,12,4 )", 473 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,13,5 )", 474 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,14,6 )", 475 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,15,7 )", 476 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,16,8 )", 477 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,17,9 )", 478 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,18,10)", 479 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,19,11)", 480 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(2,20,12)", 481 482 "INSERT INTO $wpdb->optiongroups (group_id, group_name, group_desc) VALUES(3, 'RSS/RDF Feeds, Track/Ping-backs', 'Settings for RSS/RDF Feeds, Track/ping-backs')", 483 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(3,21,1 )", 484 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(3,22,2 )", 485 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(3,23,3 )", 486 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(3,24,4 )", 487 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(3,25,5 )", 488 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(3,26,6 )", 489 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(3,27,7 )", 490 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(3,28,8 )", 491 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(3,29,9 )", 492 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(3,30,10)", 493 494 "INSERT INTO $wpdb->optiongroups (group_id, group_name, group_desc) VALUES(4, 'File uploads', 'Settings for file uploads')", 495 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(4,31,1 )", 496 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(4,32,2 )", 497 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(4,33,3 )", 498 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(4,34,4 )", 499 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(4,35,5 )", 500 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(4,36,6 )", 501 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(4,37,7 )", 502 503 "INSERT INTO $wpdb->optiongroups (group_id, group_name, group_desc) VALUES(5, 'Blog-by-Email settings', 'Settings for blogging via email')", 504 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(5,38,1 )", 505 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(5,39,2 )", 506 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(5,40,3 )", 507 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(5,41,4 )", 508 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(5,42,5 )", 509 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(5,43,6 )", 510 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(5,44,7 )", 511 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(5,45,8 )", 512 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(5,46,9 )", 513 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(5,47,10)", 514 515 "INSERT INTO $wpdb->optiongroups (group_id, group_name, group_desc) VALUES(6, 'Base settings', 'Basic settings required to get your blog working')", 516 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(6,1,1)", 517 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(6,2,2)", 518 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(6,3,3)", 519 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(6,4,4)", 520 //"INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(6,6,5)", 521 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(6,7,6)", 522 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(6,8,7)", 523 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(6,54,8)", 524 524 525 525 // select data for what to show 526 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (49, 'days', 'days', null,null,1)",527 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (49, 'posts', 'posts', null,null,2)",528 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (49, 'paged', 'posts paged', null,null,3)",526 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (49, 'days', 'days', null,null,1)", 527 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (49, 'posts', 'posts', null,null,2)", 528 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (49, 'paged', 'posts paged', null,null,3)", 529 529 // select data for archive mode 530 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (50, 'daily', 'daily', null,null,1)",531 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (50, 'weekly', 'weekly', null,null,2)",532 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (50, 'monthly', 'monthly', null,null,3)",533 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (50, 'postbypost','post by post',null,null,4)",530 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (50, 'daily', 'daily', null,null,1)", 531 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (50, 'weekly', 'weekly', null,null,2)", 532 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (50, 'monthly', 'monthly', null,null,3)", 533 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (50, 'postbypost','post by post',null,null,4)", 534 534 // select data for time diff 535 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (51, 'hours', 'hours', 23, -23, null)",535 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (51, 'hours', 'hours', 23, -23, null)", 536 536 // select data for start of week 537 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (9, '0', 'Sunday', null,null,1)",538 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (9, '1', 'Monday', null,null,2)",539 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (9, '6', 'Saturday', null,null,3)",537 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (9, '0', 'Sunday', null,null,1)", 538 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (9, '1', 'Monday', null,null,2)", 539 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (9, '6', 'Saturday', null,null,3)", 540 540 541 541 … … 546 546 // default_ping_status select one of open closed 547 547 // default_pingback_flag select one of checked unchecked 548 // default_post_category sql_select "SELECT cat_id AS value, cat_name AS label FROM $ tablecategories order by cat_name"549 550 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(55,'default_post_status', 5, 'publish', 'The default state of each new post', 8, 20)",551 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(56,'default_comment_status', 5, 'open', 'The default state of comments for each new post', 8, 20)",552 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(57,'default_ping_status', 5, 'open', 'The default ping state for each new post', 8, 20)",553 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(58,'default_pingback_flag', 5, '1', 'Whether the \'PingBack the URLs in this post\' checkbox should be checked by default', 8, 20)",554 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(59,'default_post_category', 7, '1', 'The default category for each new post', 8, 20)",555 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(83,'default_post_edit_rows', 1, '9', 'The number of rows in the edit post form (min 3, max 100)', 8, 5)",556 557 "INSERT INTO $ tableoptiongroups (group_id, group_name, group_desc) VALUES(7, 'Default post options', 'Default settings for new posts.')",558 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(7,55,1 )",559 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(7,56,2 )",560 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(7,57,3 )",561 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(7,58,4 )",562 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(7,59,5 )",563 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(7,83,5 )",548 // default_post_category sql_select "SELECT cat_id AS value, cat_name AS label FROM $wpdb->categories order by cat_name" 549 550 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(55,'default_post_status', 5, 'publish', 'The default state of each new post', 8, 20)", 551 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(56,'default_comment_status', 5, 'open', 'The default state of comments for each new post', 8, 20)", 552 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(57,'default_ping_status', 5, 'open', 'The default ping state for each new post', 8, 20)", 553 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(58,'default_pingback_flag', 5, '1', 'Whether the \'PingBack the URLs in this post\' checkbox should be checked by default', 8, 20)", 554 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(59,'default_post_category', 7, '1', 'The default category for each new post', 8, 20)", 555 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(83,'default_post_edit_rows', 1, '9', 'The number of rows in the edit post form (min 3, max 100)', 8, 5)", 556 557 "INSERT INTO $wpdb->optiongroups (group_id, group_name, group_desc) VALUES(7, 'Default post options', 'Default settings for new posts.')", 558 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(7,55,1 )", 559 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(7,56,2 )", 560 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(7,57,3 )", 561 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(7,58,4 )", 562 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(7,59,5 )", 563 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(7,83,5 )", 564 564 565 565 // select data for post_status 566 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (55, 'publish', 'Publish', null,null,1)",567 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (55, 'draft', 'Draft', null,null,2)",568 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (55, 'private', 'Private', null,null,3)",566 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (55, 'publish', 'Publish', null,null,1)", 567 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (55, 'draft', 'Draft', null,null,2)", 568 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (55, 'private', 'Private', null,null,3)", 569 569 570 570 // select data for comment_status 571 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (56, 'open', 'Open', null,null,1)",572 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (56, 'closed', 'Closed', null,null,2)",571 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (56, 'open', 'Open', null,null,1)", 572 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (56, 'closed', 'Closed', null,null,2)", 573 573 574 574 // select data for ping_status (aargh duplication!) 575 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (57, 'open', 'Open', null,null,1)",576 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (57, 'closed', 'Closed', null,null,2)",575 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (57, 'open', 'Open', null,null,1)", 576 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (57, 'closed', 'Closed', null,null,2)", 577 577 578 578 // select data for pingback flag 579 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (58, '1', 'Checked', null,null,1)",580 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (58, '0', 'Unchecked', null,null,2)",579 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (58, '1', 'Checked', null,null,1)", 580 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (58, '0', 'Unchecked', null,null,2)", 581 581 582 582 // sql select data for default 583 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (59, 'SELECT cat_id AS value, cat_name AS label FROM $tablecategories order by cat_name', '', null,null,1)",583 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (59, 'SELECT cat_id AS value, cat_name AS label FROM $wpdb->categories order by cat_name', '', null,null,1)", 584 584 ); 585 585 … … 594 594 <?php 595 595 $links_option_data = array( 596 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(60,'links_minadminlevel', 1, '5', 'The minimum admin level to edit links', 8, 10)",597 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(61,'links_use_adminlevels', 2, '1', 'set this to false to have all links visible and editable to everyone in the link manager', 8, 20)",598 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(62,'links_rating_type', 5, 'image', 'Set this to the type of rating indication you wish to use', 8, 10)",599 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(63,'links_rating_char', 3, '*', 'If we are set to \'char\' which char to use.', 8, 5)",600 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(64,'links_rating_ignore_zero', 2, '1', 'What do we do with a value of zero? set this to true to output nothing, 0 to output as normal (number/image)', 8, 20)",601 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(65,'links_rating_single_image', 2, '1', 'Use the same image for each rating point? (Uses links_rating_image[0])', 8, 20)",602 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(66,'links_rating_image0', 3, 'wp-links/links-images/tick.png', 'Image for rating 0 (and for single image)', 8, 40)",603 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(67,'links_rating_image1', 3, 'wp-links/links-images/rating-1.gif', 'Image for rating 1', 8, 40)",604 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(68,'links_rating_image2', 3, 'wp-links/links-images/rating-2.gif', 'Image for rating 2', 8, 40)",605 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(69,'links_rating_image3', 3, 'wp-links/links-images/rating-3.gif', 'Image for rating 3', 8, 40)",606 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(70,'links_rating_image4', 3, 'wp-links/links-images/rating-4.gif', 'Image for rating 4', 8, 40)",607 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(71,'links_rating_image5', 3, 'wp-links/links-images/rating-5.gif', 'Image for rating 5', 8, 40)",608 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(72,'links_rating_image6', 3, 'wp-links/links-images/rating-6.gif', 'Image for rating 6', 8, 40)",609 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(73,'links_rating_image7', 3, 'wp-links/links-images/rating-7.gif', 'Image for rating 7', 8, 40)",610 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(74,'links_rating_image8', 3, 'wp-links/links-images/rating-8.gif', 'Image for rating 8', 8, 40)",611 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(75,'links_rating_image9', 3, 'wp-links/links-images/rating-9.gif', 'Image for rating 9', 8, 40)",612 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(77,'weblogs_xml_url', 3, 'http://www.weblogs.com/changes.xml', 'Which file to grab from weblogs.com', 8, 40)",613 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(78,'weblogs_cacheminutes', 1, '60', 'cache time in minutes (if it is older than this get a new copy)', 8, 10)",614 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(79,'links_updated_date_format', 3, 'd/m/Y h:i', 'The date format for the updated tooltip', 8, 25)",615 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(80,'links_recently_updated_prepend', 3, '>>', 'The text to prepend to a recently updated link', 8, 10)",616 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(81,'links_recently_updated_append', 3, '<<', 'The text to append to a recently updated link', 8, 20)",617 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(82,'links_recently_updated_time', 1, '120', 'The time in minutes to consider a link recently updated', 8, 20)",596 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(60,'links_minadminlevel', 1, '5', 'The minimum admin level to edit links', 8, 10)", 597 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(61,'links_use_adminlevels', 2, '1', 'set this to false to have all links visible and editable to everyone in the link manager', 8, 20)", 598 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(62,'links_rating_type', 5, 'image', 'Set this to the type of rating indication you wish to use', 8, 10)", 599 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(63,'links_rating_char', 3, '*', 'If we are set to \'char\' which char to use.', 8, 5)", 600 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(64,'links_rating_ignore_zero', 2, '1', 'What do we do with a value of zero? set this to true to output nothing, 0 to output as normal (number/image)', 8, 20)", 601 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(65,'links_rating_single_image', 2, '1', 'Use the same image for each rating point? (Uses links_rating_image[0])', 8, 20)", 602 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(66,'links_rating_image0', 3, 'wp-links/links-images/tick.png', 'Image for rating 0 (and for single image)', 8, 40)", 603 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(67,'links_rating_image1', 3, 'wp-links/links-images/rating-1.gif', 'Image for rating 1', 8, 40)", 604 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(68,'links_rating_image2', 3, 'wp-links/links-images/rating-2.gif', 'Image for rating 2', 8, 40)", 605 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(69,'links_rating_image3', 3, 'wp-links/links-images/rating-3.gif', 'Image for rating 3', 8, 40)", 606 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(70,'links_rating_image4', 3, 'wp-links/links-images/rating-4.gif', 'Image for rating 4', 8, 40)", 607 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(71,'links_rating_image5', 3, 'wp-links/links-images/rating-5.gif', 'Image for rating 5', 8, 40)", 608 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(72,'links_rating_image6', 3, 'wp-links/links-images/rating-6.gif', 'Image for rating 6', 8, 40)", 609 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(73,'links_rating_image7', 3, 'wp-links/links-images/rating-7.gif', 'Image for rating 7', 8, 40)", 610 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(74,'links_rating_image8', 3, 'wp-links/links-images/rating-8.gif', 'Image for rating 8', 8, 40)", 611 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(75,'links_rating_image9', 3, 'wp-links/links-images/rating-9.gif', 'Image for rating 9', 8, 40)", 612 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(77,'weblogs_xml_url', 3, 'http://www.weblogs.com/changes.xml', 'Which file to grab from weblogs.com', 8, 40)", 613 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(78,'weblogs_cacheminutes', 1, '60', 'cache time in minutes (if it is older than this get a new copy)', 8, 10)", 614 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(79,'links_updated_date_format', 3, 'd/m/Y h:i', 'The date format for the updated tooltip', 8, 25)", 615 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(80,'links_recently_updated_prepend', 3, '>>', 'The text to prepend to a recently updated link', 8, 10)", 616 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(81,'links_recently_updated_append', 3, '<<', 'The text to append to a recently updated link', 8, 20)", 617 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(82,'links_recently_updated_time', 1, '120', 'The time in minutes to consider a link recently updated', 8, 20)", 618 618 619 619 //group them together 620 "INSERT INTO $ tableoptiongroups (group_id, group_name, group_desc) VALUES(8, 'Link Manager Settings', 'Various settings for the link manager.')",621 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,60,1 )",622 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,61,2 )",623 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,62,3 )",624 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,63,4 )",625 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,64,5 )",626 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,65,6 )",627 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,66,7 )",628 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,67,8 )",629 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,68,9 )",630 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,69,10)",631 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,70,11)",632 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,71,12)",633 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,72,13)",634 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,73,14)",635 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,74,15)",636 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,75,16)",637 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,76,17)",638 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,77,18)",639 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,78,19)",640 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,79,20)",641 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,80,21)",642 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,81,22)",643 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(8,82,23)",620 "INSERT INTO $wpdb->optiongroups (group_id, group_name, group_desc) VALUES(8, 'Link Manager Settings', 'Various settings for the link manager.')", 621 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,60,1 )", 622 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,61,2 )", 623 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,62,3 )", 624 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,63,4 )", 625 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,64,5 )", 626 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,65,6 )", 627 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,66,7 )", 628 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,67,8 )", 629 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,68,9 )", 630 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,69,10)", 631 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,70,11)", 632 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,71,12)", 633 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,72,13)", 634 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,73,14)", 635 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,74,15)", 636 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,75,16)", 637 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,76,17)", 638 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,77,18)", 639 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,78,19)", 640 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,79,20)", 641 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,80,21)", 642 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,81,22)", 643 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(8,82,23)", 644 644 645 645 // select data for rating_type 646 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (62, 'number', 'Number', null,null,1)",647 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (62, 'char', 'Character', null,null,2)",648 "INSERT INTO $ tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (62, 'image', 'Image', null,null,3)",646 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (62, 'number', 'Number', null,null,1)", 647 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (62, 'char', 'Character', null,null,2)", 648 "INSERT INTO $wpdb->optionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (62, 'image', 'Image', null,null,3)", 649 649 ); 650 650 … … 659 659 $geo_option_data = array( 660 660 // data for geo settings 661 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(84,'use_geo_positions', 2, '0', 'Turns on the geo url features of WordPress', 8, 20)",662 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(85,'use_default_geourl', 2, '1','enables placement of default GeoURL ICBM location even when no other specified', 8, 20)",663 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(86,'default_geourl_lat ', 8, 0.0, 'The default Latitude ICBM value - <a href=\"http://www.geourl.org/resources.html\" target=\"_blank\">see here</a>', 8, 20)",664 "INSERT INTO $ tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(87,'default_geourl_lon', 8, 0.0, 'The default Longitude ICBM value', 8, 20)",665 666 "INSERT INTO $ tableoptiongroups (group_id, group_name, group_desc) VALUES(9,'Geo Options', 'Settings which control the posting and display of Geo Options')",667 668 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(9,84,1)",669 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(9,85,1)",670 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(9,86,1)",671 "INSERT INTO $ tableoptiongroup_options (group_id, option_id, seq) VALUES(9,87,1)",661 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(84,'use_geo_positions', 2, '0', 'Turns on the geo url features of WordPress', 8, 20)", 662 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(85,'use_default_geourl', 2, '1','enables placement of default GeoURL ICBM location even when no other specified', 8, 20)", 663 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(86,'default_geourl_lat ', 8, 0.0, 'The default Latitude ICBM value - <a href=\"http://www.geourl.org/resources.html\" target=\"_blank\">see here</a>', 8, 20)", 664 "INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(87,'default_geourl_lon', 8, 0.0, 'The default Longitude ICBM value', 8, 20)", 665 666 "INSERT INTO $wpdb->optiongroups (group_id, group_name, group_desc) VALUES(9,'Geo Options', 'Settings which control the posting and display of Geo Options')", 667 668 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(9,84,1)", 669 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(9,85,1)", 670 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(9,86,1)", 671 "INSERT INTO $wpdb->optiongroup_options (group_id, option_id, seq) VALUES(9,87,1)", 672 672 673 673 ); … … 705 705 $url = $_REQUEST['url']; 706 706 if (isset($url)) { 707 $query= "UPDATE $ tableoptions set option_value='$url' where option_id=1"; //siteurl707 $query= "UPDATE $wpdb->options set option_value='$url' where option_id=1"; //siteurl 708 708 $q = $wpdb->query($query); 709 709 } 710 710 711 // $query = "DROP TABLE IF EXISTS $ tableusers";712 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$ tableusers\" in the database.");713 714 $query = " 715 CREATE TABLE $ tableusers (711 // $query = "DROP TABLE IF EXISTS $wpdb->users"; 712 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$wpdb->users\" in the database."); 713 714 $query = " 715 CREATE TABLE $wpdb->users ( 716 716 ID int(10) unsigned NOT NULL auto_increment, 717 717 user_login varchar(20) NOT NULL default '', … … 740 740 $random_password = substr(md5(uniqid(microtime())),0,6); 741 741 742 $query = "INSERT INTO $ tableusers (ID, user_login, user_pass, user_firstname, user_lastname, user_nickname, user_icq, user_email, user_url, user_ip, user_domain, user_browser, dateYMDhour, user_level, user_aim, user_msn, user_yim, user_idmode) VALUES ( '1', 'admin', MD5('$random_password'), '', '', 'site admin', '0', '$admin_email', '', '127.0.0.1', '127.0.0.1', '', '00-00-0000 00:00:01', '10', '', '', '', 'nickname')";742 $query = "INSERT INTO $wpdb->users (ID, user_login, user_pass, user_firstname, user_lastname, user_nickname, user_icq, user_email, user_url, user_ip, user_domain, user_browser, dateYMDhour, user_level, user_aim, user_msn, user_yim, user_idmode) VALUES ( '1', 'admin', MD5('$random_password'), '', '', 'site admin', '0', '$admin_email', '', '127.0.0.1', '127.0.0.1', '', '00-00-0000 00:00:01', '10', '', '', '', 'nickname')"; 743 743 $q = $wpdb->query($query); 744 744
Note: See TracChangeset
for help on using the changeset viewer.