- Timestamp:
- Nov 3, 2003, 11:38:15 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install.php
r218 r230 19 19 20 20 //-------------------------------------------------------------------- includes 21 define( PREFIX_INCLUDE, '.' );22 include( '. ./include/vtemplate.class.php' );23 include( '. ./include/functions.inc.php' );21 define( "PREFIX_INCLUDE", '' ); 22 include( './include/vtemplate.class.php' ); 23 include( './include/functions.inc.php' ); 24 24 //----------------------------------------------------- template initialization 25 25 $vtp = new VTemplate; 26 $handle = $vtp->Open( '. ./template/default/admin/install.vtp' );26 $handle = $vtp->Open( './template/default/install.vtp' ); 27 27 $vtp->setGlobalVar( $handle, 'release', '1.3' ); 28 28 //-------------------------------------------------------------------- language … … 31 31 $isadmin = true; 32 32 $lang = array(); 33 include( '. ./language/'.$_GET['language'].'.php' );33 include( './language/'.$_GET['language'].'.php' ); 34 34 $tpl = array( 'step1_err_copy', 'step1_err_copy_2', 'step1_err_copy_next', 35 35 'errors_title', 'step1_title','step1_host','step1_host_info', … … 85 85 $file_content.= "\n?>"; 86 86 // writting the configuration file 87 if ( $fp = @fopen( '. ./include/mysql.inc.php', 'a+' ) )87 if ( $fp = @fopen( './include/mysql.inc.php', 'a+' ) ) 88 88 { 89 89 fwrite( $fp, $file_content ); … … 94 94 $cfgPassword = ''; 95 95 $cfgBase = ''; 96 include( '. ./include/mysql.inc.php' );96 include( './include/mysql.inc.php' ); 97 97 $file_OK = false; 98 98 if ( @mysql_connect( $cfgHote, $cfgUser, $cfgPassword ) ) … … 169 169 $infos = array(); 170 170 171 include( '. ./include/mysql.inc.php' );171 include( './include/mysql.inc.php' ); 172 172 mysql_connect( $cfgHote, $cfgUser, $cfgPassword ) 173 173 or die ( "Can't connect to database host" ); … … 178 178 { 179 179 // tables creation, based on phpwebgallery_structure.sql 180 $sql_lines = file( './ phpwebgallery_structure.sql' );180 $sql_lines = file( './admin/phpwebgallery_structure.sql' ); 181 181 $query = ''; 182 182 foreach ( $sql_lines as $sql_line ) { … … 284 284 { 285 285 $vtp->addSession( $handle, 'step0' ); 286 $languages = get_languages( '. ./language/' );286 $languages = get_languages( './language/' ); 287 287 foreach ( $languages as $language ) { 288 288 $vtp->addSession( $handle, 'language' );
Note: See TracChangeset
for help on using the changeset viewer.