From b9bfda2fd391275552e1c737662dc0beddfd39cb Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 30 Jun 2009 18:14:18 +1000 Subject: [PATCH] RELEASE 0.9.4b --- VERSION | 2 +- common.php | 9 ++++----- create.php | 10 ++++------ doc/CREDITS | 4 ++-- doc/ChangeLog | 34 ++++++++++++++++++++++++++++++++-- functions.php | 4 +--- index.php | 18 +++++++----------- lang/es.php | 4 ++-- lang/recoded/es.php | 4 ++-- session_functions.php | 9 ++++++++- 10 files changed, 63 insertions(+), 35 deletions(-) diff --git a/VERSION b/VERSION index 7a030aa..2a1ac9b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.9.4a +0.9.4b diff --git a/common.php b/common.php index 2e5829e..5d4f5b9 100644 --- a/common.php +++ b/common.php @@ -1,6 +1,5 @@ $val ) { - $attr = $attrs[$i]; +if( isset( $attrs ) && is_array( $attrs ) ) { + foreach( $attrs as $i => $attr ) { if( is_attr_binary( $server_id, $attr ) ) { if( isset( $_FILES['vals']['name'][$i] ) && $_FILES['vals']['name'][$i] != '' ) { // read in the data from the file @@ -57,6 +56,7 @@ if( isset( $vals ) && is_array( $vals ) ) { $new_entry[ $attr ][] = $val; } } else { + $val = isset( $vals[$i] ) ? $vals[$i] : ''; if( '' !== trim($val) ) $new_entry[ $attr ][] = $val; } @@ -67,8 +67,6 @@ $new_entry['objectClass'] = $object_classes; if( ! in_array( 'top', $new_entry['objectClass'] ) ) $new_entry['objectClass'][] = 'top'; -// UTF-8 magic. Must decode the values that have been passed to us -// REMOVED ALL UTF8 Functions foreach( $new_entry as $attr => $vals ) if( ! is_attr_binary( $server_id, $attr ) ) if( is_array( $vals ) ) diff --git a/doc/CREDITS b/doc/CREDITS index a58a858..eae361f 100644 --- a/doc/CREDITS +++ b/doc/CREDITS @@ -1,4 +1,4 @@ -$Header: /cvsroot/phpldapadmin/phpldapadmin/doc/CREDITS,v 1.13 2004/05/06 20:04:26 i18phpldapadmin Exp $ +$Header: /cvsroot/phpldapadmin/phpldapadmin/doc/CREDITS,v 1.14 2004/05/08 14:11:28 i18phpldapadmin Exp $ * Project Developers: - David Smith Maintainer @@ -36,7 +36,7 @@ $Header: /cvsroot/phpldapadmin/phpldapadmin/doc/CREDITS,v 1.13 2004/05/06 20:04: Aleksey Soldatov - Unknown Italian - Alexandre Maciel Brasilian (Portuguese) - Elton (CLeGi) + Elton Schroeder Fenner (CLeGi) - Piotr Tarnowski (DrFugazi) Polish - Gunnar Nystrom Swedish diff --git a/doc/ChangeLog b/doc/ChangeLog index f5d4d19..aae4b8b 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,6 +1,36 @@ -$Header: /cvsroot/phpldapadmin/phpldapadmin/doc/ChangeLog,v 1.12 2004/04/18 15:54:32 uugdave Exp $ +$Header: /cvsroot/phpldapadmin/phpldapadmin/doc/ChangeLog,v 1.15 2004/05/11 12:25:23 uugdave Exp $ + +* Version 0.9.4b, 2004-05-11 + + * Notes: + + This follow-on release fixes one critical bug contained in 0.9.4 + relating to session.auto_start and schema caching. + + * Changes + + - Fixed bugs (all duplicates of single bug): + 947981 + 951003 + 951140 + - Fixed binary attribute creation (create.php) + +* Version 0.9.4a, 2004-05-08 + + * Notes: + + This follow-on release fixes several critical bugs contained in 0.9.4. + + * Changes: + + - Fixed bugs: + 949500 Error while adding New User Account + 949500 Creating a new uid under ou=People + 948695 is_executable() error using phpldapadmin - windows + 948741 Level: E_WARNING + 948413 Undefined variable: lang (E_NOTICE) after install -* Version 0.9.4, 2004-04-XX +* Version 0.9.4, 2004-05-04 * Notes: diff --git a/functions.php b/functions.php index 0fd1320..913cb1d 100644 --- a/functions.php +++ b/functions.php @@ -1,5 +1,5 @@ $function()' " . - "phpLDAPadmin requires this function to work properly." ); - return false; - } - } - /* Make sure the config file is readable */ //if( ! is_readable( 'config.php' ) ) if( ! is_readable( realpath( 'config.php' ) ) ) { @@ -99,6 +89,12 @@ function check_config() return false; } + if( ! is_writable( realpath( ini_get( 'session.save_path' ) ) ) ) { + pla_error( "Your PHP session configuration is incorrect. Please check the value of session.save_path + in your php.ini to ensure that the directory specified there exists and is writable", false ); + return false; + } + /* check for syntax errors in config.php */ // capture the result of including the file with output buffering ob_start(); diff --git a/lang/es.php b/lang/es.php index 71b7bf6..740106a 100644 --- a/lang/es.php +++ b/lang/es.php @@ -1,5 +1,5 @@ Descripci $lang['ferror_submit_bug'] = 'Es un error del phpLDAPadmin? Si así es, por favor dínoslo.'; $lang['ferror_unrecognized_num'] = 'Número de error desconocido: '; $lang['ferror_nonfatil_bug'] = '
+ Has encontrado un error menor del phpLDAPadmin!
- Has encontrado un error fatal del phpLDAPadmin!
Error:%s (%s)
Archivo:
Error:%s (%s)
Archivo: %s línea %s, caller %s
Versiones:PLA: %s, PHP: %s, SAPI: %s
Servidor Web:%s
Envía este error haciendo click aquí.

'; diff --git a/lang/recoded/es.php b/lang/recoded/es.php index 29384c3..50278ee 100644 --- a/lang/recoded/es.php +++ b/lang/recoded/es.php @@ -1,5 +1,5 @@ Descripción: (no hay descripción)< $lang['ferror_submit_bug'] = 'Es un error del phpLDAPadmin? Si así es, por favor dínoslo.'; $lang['ferror_unrecognized_num'] = 'Número de error desconocido: '; $lang['ferror_nonfatil_bug'] = '
+ Has encontrado un error menor del phpLDAPadmin!
- Has encontrado un error fatal del phpLDAPadmin!
Error:%s (%s)
Archivo:
Error:%s (%s)
Archivo: %s línea %s, caller %s
Versiones:PLA: %s, PHP: %s, SAPI: %s
Servidor Web:%s
Envía este error haciendo click aquí.

'; diff --git a/session_functions.php b/session_functions.php index 2884b08..35d991d 100644 --- a/session_functions.php +++ b/session_functions.php @@ -1,5 +1,5 @@