Make WordPress Core


Ignore:
Timestamp:
08/03/2003 11:46:20 PM (23 years ago)
Author:
mikelittle
Message:

Link settings now coming from options data.
config.php file now removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/wp-install.php

    r280 r290  
    4646        case 0:
    4747?>
    48 <p>Welcome to WordPress. We&#8217;re now going to go through a few steps to get 
    49   you up and running with the latest in personal publishing platforms. Before 
    50   we get started, remember that we require a PHP version of at least 4.0.6, you 
    51   have <?php echo phpversion(); ?>. Look good? You also need to set up the database 
    52   connection information in <code>wp-config.php</code>. Have you looked at the 
    53   <a href="../readme.html">readme</a>? If you&#8217;re all ready, <a href="wp-install.php?step=1">let's 
     48<p>Welcome to WordPress. We&#8217;re now going to go through a few steps to get
     49  you up and running with the latest in personal publishing platforms. Before
     50  we get started, remember that we require a PHP version of at least 4.0.6, you
     51  have <?php echo phpversion(); ?>. Look good? You also need to set up the database
     52  connection information in <code>wp-config.php</code>. Have you looked at the
     53  <a href="../readme.html">readme</a>? If you&#8217;re all ready, <a href="wp-install.php?step=1">let's
    5454  go</a>! </p>
    5555<?php
    5656        break;
    57        
     57
    5858        case 1:
    5959?>
     
    6161<p>Okay first we&#8217;re going to set up the links database. This will allow you to host your own blogroll, complete with Weblogs.com updates.</p>
    6262<?php
    63 require_once('../wp-links/links.config.php');
    6463
    6564$got_links = false;
     
    170169}
    171170?>
    172 <p>Did you defeat the boss monster at the end? Great! You&#8217;re ready for <a href="wp-install.php?step=2">Step 
     171<p>Did you defeat the boss monster at the end? Great! You&#8217;re ready for <a href="wp-install.php?step=2">Step
    173172  2</a>.</p>
    174173<?php
     
    516515"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)",
    517516"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)",
     517"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)",
    518518
    519519"INSERT INTO $tableoptiongroups (group_id,  group_name, group_desc) VALUES(7, 'Default post options', 'Default settings for new posts.')",
     
    523523"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(7,58,4 )",
    524524"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(7,59,5 )",
     525"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(7,83,5 )",
    525526
    526527// select data for post_status
     
    551552
    552553<p>Option Data inserted okay.</p>
     554
     555
     556<?php
     557$links_option_data = array(
     558"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)",
     559"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)",
     560"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)",
     561"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)",
     562"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)",
     563"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)",
     564"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)",
     565"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)",
     566"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)",
     567"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)",
     568"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)",
     569"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)",
     570"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)",
     571"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)",
     572"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)",
     573"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)",
     574"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(76,'weblogs_cache_file',   3, 'weblogs.com.changes.cache', 'path/to/cachefile needs to be writable by web server', 8, 40)",
     575"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)",
     576"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)",
     577"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)",
     578"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, '&gt;&gt;', 'The text to prepend to a recently updated link', 8, 10)",
     579"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, '&lt;&lt;', 'The text to append to a recently updated link', 8, 20)",
     580"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)",
     581
     582//group them together
     583"INSERT INTO $tableoptiongroups (group_id,  group_name, group_desc) VALUES(8, 'Link Manager Settings', 'Various settings for the link manager.')",
     584"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,60,1 )",
     585"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,61,2 )",
     586"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,62,3 )",
     587"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,63,4 )",
     588"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,64,5 )",
     589"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,65,6 )",
     590"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,66,7 )",
     591"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,67,8 )",
     592"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,68,9 )",
     593"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,69,10)",
     594"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,70,11)",
     595"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,71,12)",
     596"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,72,13)",
     597"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,73,14)",
     598"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,74,15)",
     599"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,75,16)",
     600"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,76,17)",
     601"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,77,18)",
     602"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,78,19)",
     603"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,79,20)",
     604"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,80,21)",
     605"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,81,22)",
     606"INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(8,82,23)",
     607
     608// select data for rating_type
     609"INSERT INTO $tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (62, 'number', 'Number',    null,null,1)",
     610"INSERT INTO $tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (62, 'char',   'Character', null,null,2)",
     611"INSERT INTO $tableoptionvalues (option_id, optionvalue, optionvalue_desc, optionvalue_max, optionvalue_min, optionvalue_seq) VALUES (62, 'image',  'Image',     null,null,3)",
     612);
     613
     614foreach ($links_option_data as $query) {
     615    $q = $wpdb->query($query);
     616}
     617?>
     618
     619<p>Links option data inserted okay.</p>
    553620
    554621<p>OK. We're nearly done now. We just need to ask you a couple of things:</p>
     
    575642    $q = $wpdb->query($query);
    576643}
    577    
     644
    578645// $query = "DROP TABLE IF EXISTS $tableusers";
    579646// $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$tableusers\" in the database.");
     
    614681<p>User setup successful!</p>
    615682
    616 <p>Now you can <a href="../b2login.php">log in</a> with the <strong>login</strong> 
     683<p>Now you can <a href="../b2login.php">log in</a> with the <strong>login</strong>
    617684  "admin" and <strong>password</strong> "<?php echo $random_password; ?>".</p>
    618 <p><strong><em>Note that password</em></strong> carefully! It is a <em>random</em> 
    619   password that was generated just for you. If you lose it, you 
     685<p><strong><em>Note that password</em></strong> carefully! It is a <em>random</em>
     686  password that was generated just for you. If you lose it, you
    620687  will have to delete the tables from the database yourself, and re-install WordPress.
    621688</p>
Note: See TracChangeset for help on using the changeset viewer.