Changeset 230 for trunk


Ignore:
Timestamp:
Nov 3, 2003, 11:38:15 PM (21 years ago)
Author:
z0rglub
Message:
  • Modifications linked to the move of install.php to the root directory of PhpWebGallery
  • define( CONSTANT, 'value' ) becomes define( "CONSTANT", 'value')
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install.php

    r218 r230  
    1919
    2020//-------------------------------------------------------------------- includes
    21 define( PREFIX_INCLUDE, '.' );
    22 include( '../include/vtemplate.class.php' );
    23 include( '../include/functions.inc.php' );
     21define( "PREFIX_INCLUDE", '' );
     22include( './include/vtemplate.class.php' );
     23include( './include/functions.inc.php' );
    2424//----------------------------------------------------- template initialization
    2525$vtp = new VTemplate;
    26 $handle = $vtp->Open( '../template/default/admin/install.vtp' );
     26$handle = $vtp->Open( './template/default/install.vtp' );
    2727$vtp->setGlobalVar( $handle, 'release', '1.3' );
    2828//-------------------------------------------------------------------- language
     
    3131  $isadmin = true;
    3232  $lang = array();
    33   include( '../language/'.$_GET['language'].'.php' );
     33  include( './language/'.$_GET['language'].'.php' );
    3434  $tpl = array( 'step1_err_copy', 'step1_err_copy_2', 'step1_err_copy_next',
    3535                'errors_title', 'step1_title','step1_host','step1_host_info',
     
    8585      $file_content.= "\n?>";
    8686      // writting the configuration file
    87       if ( $fp = @fopen( '../include/mysql.inc.php', 'a+' ) )
     87      if ( $fp = @fopen( './include/mysql.inc.php', 'a+' ) )
    8888      {
    8989        fwrite( $fp, $file_content );
     
    9494      $cfgPassword = '';
    9595      $cfgBase     = '';
    96       include( '../include/mysql.inc.php' );
     96      include( './include/mysql.inc.php' );
    9797      $file_OK = false;
    9898      if ( @mysql_connect( $cfgHote, $cfgUser, $cfgPassword ) )
     
    169169  $infos  = array();
    170170
    171   include( '../include/mysql.inc.php' );
     171  include( './include/mysql.inc.php' );
    172172  mysql_connect( $cfgHote, $cfgUser, $cfgPassword )
    173173    or die ( "Can't connect to database host" );
     
    178178  {
    179179    // tables creation, based on phpwebgallery_structure.sql
    180     $sql_lines = file( './phpwebgallery_structure.sql' );
     180    $sql_lines = file( './admin/phpwebgallery_structure.sql' );
    181181    $query = '';
    182182    foreach ( $sql_lines as $sql_line ) {
     
    284284{
    285285  $vtp->addSession( $handle, 'step0' );
    286   $languages = get_languages( '../language/' );
     286  $languages = get_languages( './language/' );
    287287  foreach ( $languages as $language ) {
    288288    $vtp->addSession( $handle, 'language' );
Note: See TracChangeset for help on using the changeset viewer.