- 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


git-svn-id: http://piwigo.org/svn/trunk@682 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2005-01-08 23:56:59 +00:00
parent 34354aa6a9
commit d2b451ed59
2 changed files with 14 additions and 0 deletions

View File

@@ -185,6 +185,7 @@ if (@file_exists($config_file))
}
}
$prefixeTable = $table_prefix;
include(PHPWG_ROOT_PATH . 'include/constants.php');
include(PHPWG_ROOT_PATH . 'include/functions.inc.php');
include(PHPWG_ROOT_PATH . 'include/template.php');

View File

@@ -31,7 +31,20 @@ define('PHPWG_ROOT_PATH', './');
include_once(PHPWG_ROOT_PATH.'include/functions.inc.php');
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
include(PHPWG_ROOT_PATH.'include/template.php');
include(PHPWG_ROOT_PATH.'include/mysql.inc.php');
// Is PhpWebGallery already installed ?
if (defined('PHPWG_INSTALLED'))
{
$message = 'PhpWebGallery is already installed. In include/mysql.inc.php,
remove line
<pre style="background-color:lightgray">
define(\'PHPWG_INSTALLED\', true);
</pre>
if you want to upgrade';
die($message);
}
include_once(PHPWG_ROOT_PATH.'include/constants.php');
define('PREFIX_TABLE', $prefixeTable);