Changeset 682


Ignore:
Timestamp:
Jan 9, 2005, 12:56:59 AM (19 years ago)
Author:
plg
Message:
  • in install.php, use the temporary variable $prefixeTable for inclusion of file include/constants.php
  • security check in upgrade.php : no upgrade possible if constant PHPWG_INSTALLED is defined
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/install.php

    r681 r682  
    186186}
    187187
     188$prefixeTable = $table_prefix;
    188189include(PHPWG_ROOT_PATH . 'include/constants.php');
    189190include(PHPWG_ROOT_PATH . 'include/functions.inc.php');
  • trunk/upgrade.php

    r681 r682  
    3232include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    3333include(PHPWG_ROOT_PATH.'include/template.php');
     34
    3435include(PHPWG_ROOT_PATH.'include/mysql.inc.php');
     36// Is PhpWebGallery already installed ?
     37if (defined('PHPWG_INSTALLED'))
     38{
     39  $message = 'PhpWebGallery is already installed. In include/mysql.inc.php,
     40remove line
     41<pre style="background-color:lightgray">
     42define(\'PHPWG_INSTALLED\', true);
     43</pre>
     44if you want to upgrade';
     45  die($message);
     46}
     47
    3548include_once(PHPWG_ROOT_PATH.'include/constants.php');
    3649define('PREFIX_TABLE', $prefixeTable);
Note: See TracChangeset for help on using the changeset viewer.