| [ Index ] |
PHP Cross Reference of GlotPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Landing point for GlotPress installation 4 */ 5 6 define('GP_INSTALLING', true); 7 require_once ( 'gp-load.php' ); 8 require_once( BACKPRESS_PATH . 'class.bp-sql-schema-parser.php' ); 9 require_once( GP_PATH . GP_INC . 'install-upgrade.php' ); 10 require_once( GP_PATH . GP_INC . 'schema.php' ); 11 12 $show_htaccess_instructions = true; 13 14 if ( gp_get_option( 'gp_db_version' ) <= gp_get_option_from_db( 'gp_db_version' ) && !isset( $_GET['force'] ) ) { 15 $success_message = __( 'You already have the latest version, no need to upgrade!' ); 16 $errors = array(); 17 $show_htaccess_instructions = false; 18 } else { 19 if ( gp_get( 'action', 'install' ) == 'upgrade' ) { 20 $success_message = __( 'GlotPress was successully upgraded!' ); 21 $errors = gp_upgrade(); 22 } else { 23 $success_message = __( 'GlotPress was successully installed!' ); 24 $errors = gp_install(); 25 if ( !$errors ) { 26 gp_create_initial_contents(); 27 } 28 } 29 } 30 31 // TODO: check if the .htaccess is in place or try to write it 32 $show_htaccess_instructions = $show_htaccess_instructions && empty( $errors ); 33 $path = gp_add_slash( gp_url_path() ); 34 $action = gp_get( 'action', 'install' ); 35 gp_tmpl_load( 'install', get_defined_vars() );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Feb 4 03:58:59 2012 | Hosted by follow the white rabbit. |