X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=contrib%2Fphp3-tool%2Findex.php3;h=c7c89190aee471d5d9e345eef2168311c47cf0e9;hb=b219b6aa4863408917e69b0463b1370031480fa3;hp=d74a38af5a3c0243127c536a04aec646c8fe8b4f;hpb=653846f8e90f4fde5d7e5977d33e173d247df10e;p=openldap
diff --git a/contrib/php3-tool/index.php3 b/contrib/php3-tool/index.php3
index d74a38af5a..c7c89190ae 100644
--- a/contrib/php3-tool/index.php3
+++ b/contrib/php3-tool/index.php3
@@ -1,60 +1,33 @@
-
+
-
+
+ PHP3 Thingy
+
+include ('include/preferences.inc');
include ('include/ldap_manager.inc');
include ('include/query_manager.inc');
include ('include/search_form.inc');
$FILE = "http://$HTTP_HOST$SCRIPT_NAME";
-$JPEGFILE = "http://$HTTP_HOST/ldap/ldap-photo.php3";
+$JPEGFILE = "http://$HTTP_HOST/ldap/php3-tool/ldap-photo.php3";
$qm = new query_manager;
$lm = new ldap_manager;
-$attribute_names = array();
+$prefs = new preferences;
function main() {
$main_start_time = microtime();
- global $lm, $qm, $FILE;
+ global $lm, $qm, $prefs, $FILE;
$qm = new query_manager;
$lm = new ldap_manager;
+ $prefs = new preferences;
$lm->ldap_action = $qm->get_action();
$lm->base_dn = $qm->get_base_dn();
$lm->host = $qm->get_host();
$lm->search_filter = $qm->get_search_filter();
- $lm->loadAttributeNames();
+ $prefs->loadPreferences();
display_advanced_form();
if (!$lm->connect($lm->host)) {
echo "Couldn't connect to ".$lm->host."
\n";