If you are seeing this in your browser, PHP is not installed on your web server!!! *******************************************/ require 'common.php'; if( ! file_exists(realpath( 'config.php' )) ) { ?> phpLDAPadmin - <?php echo pla_version(); ?>

Configure phpLDAPadmin



\n"; ?> phpLDAPadmin - <?php echo pla_version(); ?> $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' ) ) ) { pla_error( "The config file 'config.php' is not readable. Please check its permissions.", false ); return false; } /* check for syntax errors in config.php */ // capture the result of including the file with output buffering ob_start(); include 'config.php'; $str = ob_get_contents(); ob_end_clean(); if( $str && false !== strpos( $str, 'error' ) ) { $str = strip_tags( $str ); $matches = array(); preg_match( "/on line (\d+)/", $str, $matches ); $line_num = $matches[1]; $file = file( 'config.php' ); ?> phpLDAPadmin Config File Error

Config file error

Syntax error on line

Looks like your config file has a syntax error on line . Here is a snippet around that line

"; if( $i < 0 ) continue; echo "" . ($i+1) . ": " . htmlspecialchars($file[ $i ]) . "
"; if( $i+1 == $line_num ) echo "
"; } ?>
Hint: Sometimes these errors are caused by lines preceding the line reported. $server ) if( isset( $server['host'] ) && $server['host'] ) $count++; if( $count == 0 ) { pla_error( "None of the " . count($servers) . " servers in your \$servers configuration is active in config.php. At least one of your servers must set the 'host' directive. Example:
\$servers['host'] = \"ldap.example.com\";
phpLDAPadmin cannot proceed util you correct this.", false ); return false; } // Check each of the servers in the servers array foreach( $servers as $id => $server ) { if( isset( $server['host'] ) ) { // Make sure they specified an auth_type if( ! isset( $server['auth_type'] ) ) { pla_error( "Your configuratoin has an error. You omitted the 'auth_type' directive on server number $id 'auth_type' must be set, and it must be one of 'config', 'cookie', or 'session'.", false ); return false; } // Make sure they specified a correct auth_type if( $server['auth_type'] != 'config' && $server['auth_type'] != 'cookie' && $server['auth_type'] != 'session') { pla_error( sprintf( $lang['error_auth_type_config'], htmlspecialchars( $server['auth_type'] ) ) ); return false; } } } return true; } ?>