mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
- 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:
@@ -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');
|
||||
|
||||
13
upgrade.php
13
upgrade.php
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user