Project

General

Profile

« Previous | Next » 

Revision 1896

Added by Dietmar over 11 years ago

  1. solved install exeption
    ! update wrapper module and set version to 2.8.4
    ! update wysiwyg install.php, info.php

View differences:

save.php
39 39
include(dirname(dirname(__FILE__)).'/framework/WbAutoloader.php');
40 40
WbAutoloader::doRegister(array('admin'=>'a', 'modules'=>'m'));
41 41

  
42
/**
43
 * Set constants for system/install values
44
 * @throws RuntimeException
45
 */
42
function errorLogs($error_str)
43
{
44
	$log_error = true;
45
	if ( ! function_exists('error_log') ) { $log_error = false; }
46
	$log_file = @ini_get('error_log');
47
	if ( !empty($log_file) && ('syslog' != $log_file) && !@is_writable($log_file) ) {
48
		$log_error = false;
49
	}
50
	if ( $log_error ) {@error_log($error_str, 0);}
51
}
46 52

  
47 53
/**
48 54
 * Read DB settings from configuration file
......
407 413
	set_error("The configuration file $sConfigName is not writable. Change its permissions so it is, then re-run step 4.");
408 414
}
409 415

  
410
// load db configuration ---
411
$sDbConnectType = 'url'; // depending from class WbDatabase it can be 'url' or 'dsn'
412
$aSqlData = _readConfiguration($sDbConnectType);
413

  
414 416
//_SetInstallPathConstants();
415
//$TABLE_PREFIX = $table_prefix;
416
//$WB_PATH = (dirname(dirname(__FILE__)));
417
//$ADMIN_PATH = $WB_PATH.'/admin';
417
if(!defined('WB_INSTALL_PROCESS')){ define('WB_INSTALL_PROCESS', true ); }
418
if(!defined('WB_URL')){ define('WB_URL', trim( $wb_url,'/' )); }
418 419
if(!defined('WB_PATH')){ define('WB_PATH', dirname(dirname(__FILE__))); }
419 420
if(!defined('ADMIN_URL')){ define('ADMIN_URL', WB_URL.'/admin'); }
420 421
if(!defined('ADMIN_PATH')){ define('ADMIN_PATH', WB_PATH.'/admin'); }
422
// load db configuration ---
423
$sDbConnectType = 'url'; // depending from class WbDatabase it can be 'url' or 'dsn'
424
$aSqlData = _readConfiguration($sDbConnectType);
421 425

  
422 426
if(!file_exists(WB_PATH.'/framework/class.admin.php')) {
423 427
	set_error('It appears the Absolute path that you entered is incorrect');

Also available in: Unified diff