From: raymond <fo...@sh...> - 2003-04-13 17:21:49
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I already submitted this to the developer (providing his email address is u= p to date.) =20 I figured it would be nice to put it here for any of you who may need it qu= ickly. Just clip it into a text file, change into the chang_ldappass dir and `patch -p0= < patchfile.txt` Note, patch was against change-ldappass v1.4. =2D -ray. diff -ru ./options.php ../change_ldappass/options.php =2D --- ./options.php Wed Jan 8 07:18:18 2003 +++ ../change_ldappass/options.php Sun Apr 13 11:22:42 2003 @@ -34,6 +34,9 @@ chdir (".."); + + define('SM_PATH','../'); + session_start(); if (!isset($config_php)) @@ -47,7 +50,7 @@ if ($_POST['plugin_change_ldappass'] !=3D null) $Messages =3D change_ld= appass_check(); =2D - include_once ("../src/load_prefs.php"); + include_once ("../include/load_prefs.php"); displayPageHeader($color, "None"); ?> @@ -242,7 +245,9 @@ setcookie("key", $key, 0, $base_uri); // Automatically forward back to the option= s screen if correct if ($debug =3D=3D 0) { =2D - header("Location: $base_uri/src= /options.php?plugin_change_ldappass=3Dtrue"); + //header("Location: $base_uri/src/o= ptions.php?plugin_change_ldappass=3Dtrue"); + array_push($Messages,'Your password= has been changed.'); + return $Messages ; exit(0); } return $Messages; =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+mZzMNG5CT3EIc2URAljHAJ0QRAZ1eeLGI9SGyAgniaS9SGF1rwCeL/dt jJkp2m6tu8ZF7IgAqEy93HM=3D =3DEROj =2D----END PGP SIGNATURE----- |