Changeset 3204 for branches/2.0/upgrade.php
- Timestamp:
- Mar 16, 2009, 6:04:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/upgrade.php
r3076 r3204 22 22 // +-----------------------------------------------------------------------+ 23 23 24 //check php version25 if (version_compare(PHP_VERSION, '5', '<'))26 {27 die('Piwigo requires PHP 5 or above.');28 }29 30 24 define('PHPWG_ROOT_PATH', './'); 31 25 … … 168 162 } 169 163 164 if ('fr_FR' == $language) { 165 define('PHPWG_DOMAIN', 'fr.piwigo.org'); 166 } 167 else { 168 define('PHPWG_DOMAIN', 'piwigo.org'); 169 } 170 define('PHPWG_URL', 'http://'.PHPWG_DOMAIN); 171 170 172 load_language( 'common.lang', '', array('language'=>$language, 'target_charset'=>'utf-8', 'no_fallback' => true) ); 171 173 load_language( 'admin.lang', '', array('language'=>$language, 'target_charset'=>'utf-8', 'no_fallback' => true) ); 174 load_language( 'install.lang', '', array('language'=>$language, 'target_charset'=>'utf-8', 'no_fallback' => true) ); 172 175 load_language( 'upgrade.lang', '', array('language'=>$language, 'target_charset'=>'utf-8', 'no_fallback' => true) ); 173 176 177 // check php version 178 if (version_compare(PHP_VERSION, REQUIRED_PHP_VERSION, '<')) 179 { 180 include(PHPWG_ROOT_PATH.'install/php5_apache_configuration.php'); 181 } 182 174 183 // +-----------------------------------------------------------------------+ 175 184 // | template initialization | 176 185 // +-----------------------------------------------------------------------+ 177 186 187 include( PHPWG_ROOT_PATH .'include/template.class.php'); 178 188 $template = new Template(PHPWG_ROOT_PATH.'admin/template/goto', 'roma'); 179 189 $template->set_filenames(array('upgrade'=>'upgrade.tpl')); 180 $template->assign('RELEASE', PHPWG_VERSION); 190 $template->assign(array( 191 'RELEASE' => PHPWG_VERSION, 192 'L_UPGRADE_HELP' => sprintf(l10n('install_help'), PHPWG_URL.'/forum'), 193 ) 194 ); 181 195 182 196 // +-----------------------------------------------------------------------+
Note: See TracChangeset
for help on using the changeset viewer.