From d026d15d2aba820c3211a32f5bc51699735381b9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Jan 2003 05:56:47 +0000 Subject: - Fixed links to admin page. Added help text. --- update.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/update.php b/update.php index 43e36f17d..430a33c55 100644 --- a/update.php +++ b/update.php @@ -744,20 +744,22 @@ function update_page() { // make sure we have updates to run. print "

Drupal database update

"; print "» home
\n"; - print "» administer
\n"; + print "» ". l("administer", "admin"). "
\n"; if ($edit["start"] == -1) { print "No updates to perform."; } else { update_data($edit["start"]); } + print "
Updates were attempted. If you see no failures above, you may proceed happily to the ". l("admin pages", "admin"). "."; + print " Otherwise, you may need to update your database manually."; print ""; break; case "upgrade3": // make sure we have updates to run. print "

Drupal upgrade

"; print "» home
\n"; - print "» administer
\n"; + print "» ". l("admin pages", "admin"). "

\n"; if ($edit["start"] == -1) { print "No updates to perform."; } @@ -813,14 +815,14 @@ function update_info() { print "

Drupal database update

"; print "
    \n"; print "
  1. Use this script to upgrade an existing Drupal installation. You don't need this script when installing Drupal from scratch.
  2. "; - print "
  3. Before doing anything backup your database. This process will change your database and its values, and some things might get lost.
  4. \n"; - print "
  5. Don't run this script twice as it will cause problems.

  6. \n"; + print "
  7. Before doing anything, backup your database. This process will change your database and its values, and some things might get lost.
  8. \n"; + print "
  9. Don't run this script twice as it may cause problems.

  10. \n"; print "
  11. "; print "Click the proper link below:
    "; print "

    » Upgrade 4.0.x to 4.1.x

    \n"; print "

    » Upgrade to CVS

    \n"; print "

    » Upgrade 3.0.x to 4.0.0 (Warning: clicking this link will update your database without confirmation.)

    \n"; - print "

    If you are upgrading from Drupal 3.0.x, you'll want to run these queries manually before doing anything else:

    \n"; + print "

    If you are upgrading from Drupal 3.0.x, you'll want to run these queries manually before proceeding to step 5:

    \n"; print "
    \n";
       print "  ALTER TABLE watchdog CHANGE user uid int(10) DEFAULT '0' NOT NULL;\n";
       print "  ALTER TABLE watchdog CHANGE id wid int(5) DEFAULT '0' NOT NULL auto_increment;\n";
    @@ -841,8 +843,10 @@ function update_info() {
     
     if ($op) {
       include_once "includes/common.inc";
    +
       // Access check:
       if ($user->uid == 1) {
    +
         update_page();
       }
       else {
    -- 
    cgit v1.2.3