head 1.2; access; symbols pkgsrc-2022Q1:1.1.0.10 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.8 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.6 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.4 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.2 pkgsrc-2021Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2022.04.16.03.11.28; author khorben; state dead; branches; next 1.1; commitid YnlKa1hpkiM6anAD; 1.1 date 2021.02.21.22.22.22; author khorben; state Exp; branches; next ; commitid llap5vf1ixRV0DIC; desc @@ 1.2 log @phpldapadmin: package version 1.2.6.3 This changes the upstream to leenooks/phpLDAPadmin on GitHub. This also includes a patch from Debian at https://packages.debian.org/source/sid/phpldapadmin (phpldapadmin_1.2.6.3-0.2.debian.tar.xz) in order to support newer versions of PHP. This package had become unusable with the version of PHP shipped by pkgsrc by default (7.4 as of today). Tested on NetBSD/amd64, Darwin/amd64. @ text @$NetBSD: patch-htdocs_index.php,v 1.1 2021/02/21 22:22:22 khorben Exp $ Bail out if the configuration file is missing --- htdocs/index.php.orig 2012-10-01 06:54:14.000000000 +0000 +++ htdocs/index.php @@@@ -57,6 +57,11 @@@@ if (defined('CONFDIR')) else $app['config_file'] = 'config.php'; +if (! is_readable($app['config_file'])) { + if (ob_get_level()) ob_end_clean(); + die(sprintf("Missing configuration file %s - have you created it?",$app['config_file'])); +} + # Make sure this PHP install has session support if (! extension_loaded('session')) error('
Your install of PHP appears to be missing php-session support.
Please install php-session support before using phpLDAPadmin.
(Dont forget to restart your web server afterwards)