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' )) ) { ?>
\$servers['host'] = \"ldap.example.com\";phpLDAPadmin cannot proceed util you correct this.", false ); return false; } // Check that 'base' is present on all serve entries foreach( $servers as $id => $server ) { if( isset( $server['host'] ) && isset( $server['name'] ) ) isset( $server['base'] ) or pla_error ( "Your configuration has an error. You omitted the 'base' directive on server number $id. Your server entry must have a 'base' directive even if it's empty ('')." ); } // 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 configuration 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( ! in_array( $server['auth_type'], array( 'config', 'cookie', 'session' ) ) ) { global $lang; pla_error( sprintf( $lang['error_auth_type_config'], htmlspecialchars( $server['auth_type'] ) ) ); return false; } } } return true; } ?>