]> git.sur5r.net Git - openldap/blobdiff - contrib/php3-tool/index.php3
Remove DOS comment.
[openldap] / contrib / php3-tool / index.php3
index d74a38af5a3c0243127c536a04aec646c8fe8b4f..c7c89190aee471d5d9e345eef2168311c47cf0e9 100644 (file)
@@ -1,60 +1,33 @@
-<!-- copyright, (C) Predrag Balorda, 1998 -->
+<!DOCTYPE PUBLIC HTML "-//W3C//HTML3.2 Final//En">
 <html>
 <head>
-       <style type="text/css">
-       <!--
-       BODY {
-               font-family: lucida sans unicode;
-       }
-       B {
-               font-weight: bold;
-       }
-       P {
-               font-family: lucida sans unicode,Arial,Helvetica;
-               font-size: 12pt;
-       }
-       .form {
-               font-family: lucinda sans unicode;      
-               font-size: 10pt;
-               color: #003333;
-       }
-       H3 {
-               font-family: Verdana,Arial,Helvetica;
-               font-size: 12pt;
-               font-weight: bold;
-       }
-       .head {
-               font-size: 13pt;
-               color: #003333;
-       }
-       .subsection {
-               font-size: 12pt;
-               color: #003333;
-       }
-       -->
-       </style>
+       <!-- copyright, (C) Predrag Balorda, OpenLDAP Foundation, 1998 -->
+       <title>PHP3 Thingy</title>
+       <link rel="stylesheet" type="text/css" href="style.css">
 </head>
 <body>
 <?
+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 <b>".$lm->host."</b><br>\n";