Changeset 870 for trunk/upgrade.php


Ignore:
Timestamp:
Sep 21, 2005, 12:04:57 AM (19 years ago)
Author:
plg
Message:
  • update: upgrade from 1.4.0 or 1.4.1. Upgrade from 1.3.x is not available anymore.
  • update: README files updated for very near branch 1.5 :-)
  • new: file tools/config_local.inc.php as example for optional include/config_local.inc.php
  • bug fixed: configuration parameter show_picture_name_on_title was useless
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upgrade.php

    r682 r870  
    2626// +-----------------------------------------------------------------------+
    2727
    28 define('IN_UPGRADE', true);
    2928define('PHPWG_ROOT_PATH', './');
    3029
     
    3534include(PHPWG_ROOT_PATH.'include/mysql.inc.php');
    3635// Is PhpWebGallery already installed ?
    37 if (defined('PHPWG_INSTALLED'))
    38 {
    39   $message = 'PhpWebGallery is already installed. In include/mysql.inc.php,
    40 remove line
     36if (!defined('PHPWG_IN_UPGRADE') or !PHPWG_IN_UPGRADE)
     37{
     38  $message = 'PhpWebGallery is not in upgrade mode. In include/mysql.inc.php,
     39insert line
    4140<pre style="background-color:lightgray">
    42 define(\'PHPWG_INSTALLED\', true);
     41define(\'PHPWG_IN_UPGRADE\', true);
    4342</pre>
    4443if you want to upgrade';
    4544  die($message);
    4645}
     46
     47// concerning upgrade, we use the default users table
     48$conf['users_table'] = $prefixeTable.'users';
    4749
    4850include_once(PHPWG_ROOT_PATH.'include/constants.php');
     
    114116// |                        template initialization                        |
    115117// +-----------------------------------------------------------------------+
    116 $template = setup_style('default');
     118
     119$template = new Template(PHPWG_ROOT_PATH.'template/yoga');
    117120$template->set_filenames(array('upgrade'=>'upgrade.tpl'));
    118121$template->assign_vars(array('RELEASE'=>PHPWG_VERSION));
     122
    119123// +-----------------------------------------------------------------------+
    120124// |                          versions upgradable                          |
     
    179183      $infos,
    180184      '[security] delete files "upgrade.php", "install.php" and "install"
    181 directory');
     185directory'
     186      );
     187
     188    array_push(
     189      $infos,
     190      'in include/mysql.inc.php, remove
     191<pre style="background-color:lightgray">
     192define(\'PHPWG_IN_UPGRADE\', true);
     193</pre>'
     194      );
    182195   
    183196    $template->assign_block_vars('upgrade.infos', array());
Note: See TracChangeset for help on using the changeset viewer.