mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-30 21:44:06 +02:00
Move template class inclusion to common.inc.php.
Add forum link in upgrade page. Install and upgrade try to configure PHP5. git-svn-id: http://piwigo.org/svn/trunk@3203 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+8
-7
@@ -21,12 +21,6 @@
|
||||
// | USA. |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
//------------------------------------------------- check php version
|
||||
if (version_compare(PHP_VERSION, '5', '<'))
|
||||
{
|
||||
die('Piwigo requires PHP 5 or above.');
|
||||
}
|
||||
|
||||
//----------------------------------------------------------- include
|
||||
define('PHPWG_ROOT_PATH','./');
|
||||
|
||||
@@ -223,7 +217,14 @@ load_language( 'common.lang', '', array('language'=>$language, 'target_charset'=
|
||||
load_language( 'admin.lang', '', array('language'=>$language, 'target_charset'=>'utf-8') );
|
||||
load_language( 'install.lang', '', array('language'=>$language, 'target_charset'=>'utf-8') );
|
||||
|
||||
//------------------------------------------------- check php version
|
||||
if (version_compare(PHP_VERSION, REQUIRED_PHP_VERSION, '<'))
|
||||
{
|
||||
include(PHPWG_ROOT_PATH.'install/php5_apache_configuration.php');
|
||||
}
|
||||
|
||||
//----------------------------------------------------- template initialization
|
||||
include( PHPWG_ROOT_PATH .'include/template.class.php');
|
||||
$template=new Template(PHPWG_ROOT_PATH.'admin/template/goto', 'roma');
|
||||
$template->set_filenames( array('install'=>'install.tpl') );
|
||||
$step = 1;
|
||||
@@ -430,4 +431,4 @@ if (count($infos) != 0 )
|
||||
|
||||
//----------------------------------------------------------- html code display
|
||||
$template->pparse('install');
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user