Changeset 2747 for trunk/install.php
- Timestamp:
- Oct 15, 2008, 7:50:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install.php
r2700 r2747 22 22 // +-----------------------------------------------------------------------+ 23 23 24 //------------------------------------------------- check php version 25 if (version_compare(PHP_VERSION, '5', '<')) 26 { 27 die('Piwigo requires PHP 5 or above.'); 28 } 29 24 30 //----------------------------------------------------------- include 25 31 define('PHPWG_ROOT_PATH','./'); … … 211 217 212 218 //----------------------------------------------------- template initialization 213 $template=new Template(PHPWG_ROOT_PATH.' template/yoga', 'clear');219 $template=new Template(PHPWG_ROOT_PATH.'admin/template/goto', 'roma'); 214 220 $template->set_filenames( array('install'=>'install.tpl') ); 215 221 $step = 1; … … 291 297 $html_content = htmlentities( $file_content, ENT_QUOTES ); 292 298 $html_content = nl2br( $html_content ); 293 $template->assign('error_copy', $html_content); 299 $error_copy = l10n('step1_err_copy'); 300 $error_copy .= '<br />--------------------------------------------------------------------<br />'; 301 $error_copy .= '<span class="sql_content">' . $html_content . '</span>'; 302 $error_copy .= '<br />--------------------------------------------------------------------<br />'; 294 303 } 295 304 @fputs($fp, $file_content, strlen($file_content)); … … 389 398 390 399 //------------------------------------------------------ errors & infos display 400 if ($step == 1) 401 { 402 $template->assign('install', true); 403 } 404 else 405 { 406 array_push($infos, l10n('install_end_message')); 407 408 if (isset($error_copy)) 409 { 410 array_push($errors, $error_copy); 411 } 412 } 391 413 if (count($errors) != 0) 392 414 { … … 397 419 { 398 420 $template->assign('infos', $infos); 399 }400 401 if ($step == 1)402 {403 $template->assign('install', true);404 421 } 405 422
Note: See TracChangeset
for help on using the changeset viewer.