Changeset 3203 for trunk/install.php


Ignore:
Timestamp:
Mar 16, 2009, 5:57:10 PM (15 years ago)
Author:
patdenice
Message:

Move template class inclusion to common.inc.php.
Add forum link in upgrade page.
Install and upgrade try to configure PHP5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install.php

    r3197 r3203  
    2222// +-----------------------------------------------------------------------+
    2323
    24 //------------------------------------------------- check php version
    25 if (version_compare(PHP_VERSION, '5', '<'))
    26 {
    27   die('Piwigo requires PHP 5 or above.');
    28 }
    29 
    3024//----------------------------------------------------------- include
    3125define('PHPWG_ROOT_PATH','./');
     
    224218load_language( 'install.lang', '', array('language'=>$language, 'target_charset'=>'utf-8') );
    225219
     220//------------------------------------------------- check php version
     221if (version_compare(PHP_VERSION, REQUIRED_PHP_VERSION, '<'))
     222{
     223  include(PHPWG_ROOT_PATH.'install/php5_apache_configuration.php');
     224}
     225
    226226//----------------------------------------------------- template initialization
     227include( PHPWG_ROOT_PATH .'include/template.class.php');
    227228$template=new Template(PHPWG_ROOT_PATH.'admin/template/goto', 'roma');
    228229$template->set_filenames( array('install'=>'install.tpl') );
Note: See TracChangeset for help on using the changeset viewer.