\n"; $searchTableWidth = "500"; $resultTableWidth = "90%"; $detailTableWidth = "75%"; //////////////////////////////////////////////////////////// //colors $featherRed = "#FFEEEE"; $featherGreen = "#EEFFEE"; $featherBlue = "#EEEEFF"; $featherYellow = "#FFFFEE"; $solidRed = "#663333"; $solidGreen = "#336633"; $solidBlue = "#333366"; $oldPink = "#FF6666"; //colors for page header $topLine = "#000000"; $topFont = "#000000"; //colors for page footer $bottomLine = "#a0a0a0"; $bottomFont = "#a0a0a0"; //colors for menu object $menuLine = "#FFDDDD"; $menuBackground = "#DDDDFF"; $menuBackgroundActual = $featherRed; //colors for search form object $searchFormLine = "#336633"; $searchFormBackground = $featherGreen; //$searchFormBackgroundActual = "#E5E5FF"; //colors for result form table(s) $resultFormLine = "#333366"; $resultFormBackground = $featherBlue; //$resultFormBackgroundActual = "#E5E5FF"; /* //////////////////////////////////////////////////////////// //hierarchy //toto by mal byt mechanizmus na zabezpecenie otvorenosti programu, //ale zda sa ze by to bolo velmi zlozite riesenie s otaznym vyslednym //efektom, preto sa toto zatial nevyuziva. mozno neskor... $i=0; $hierarchy[$i]["level"] = array ("objectclass" => "organization"); $hierarchy[$i]["dn"] = "o"; $i++; $hierarchy[$i]["level"] = array ("objectclass" => "organization"); $hierarchy[$i] = array ("objectclass" => "organization", "Seppo" => "Sepi"); */ //////////////////////////////////////////////////////////// //editovatelne polozky //bitove konstanty 1,2,4,8,... pre flagy atributov vyuzivanych v editore //Nastavenie treba spravit co najjednoduchsie aby sa pripadne riadky dali presuvat //a kopirovat bez potreby prepisovat hodnoty, preto je pouzity trik s bitovym posunom //a inkrementom velkosti posunu $i=0; $SCHEMA_READ_ONLY = 1 << $i++; //read only attribute $SCHEMA_ADMIN_READ_ONLY = 1 << $i++; //read only attribute $SCHEMA_ONE = 1 << $i++; //jedina hodnota $SCHEMA_ZERO_N = 1 << $i++; //nula az n hodnot $SCHEMA_ONE_N = 1 << $i++; //jedna az n hodnot $SCHEMA_BINARY = 1 << $i++; //binarna hodnota $SCHEMA_SECRET = 1 << $i++; //hodnota sa vypisuje ako *** $SCHEMA_MAILTO = 1 << $i++; //hodnota sa vypise ako mailto:hodnota //tu musia byt uvedene vsetky atributy ktore maju byt zobrazene v editore //ostatne nebudu zobrazene a teda ani pridatelne, editovatelne a zmazatelne //pole obsahuje nazov atributu, popis pre editor a flag //pozor na bitovy or "|" nie je to to iste ako logicky or "||" unset($schema); $schema[] = array("cn", "Meno a priezvisko", $SCHEMA_READ_ONLY | $SCHEMA_ONE); $schema[] = array("sn", "Priezvisko", $SCHEMA_ONE); $schema[] = array("givenname", "Krstne meno", $SCHEMA_ONE); $schema[] = array("userpassword", "Heslo", $SCHEMA_ONE | $SCHEMA_SECRET); $schema[] = array("telephonenumber", "Telefonne cislo", $SCHEMA_ZERO_N); $schema[] = array("mail", "eMail", $SCHEMA_ONE | $SCHEMA_READ_ONLY | $SCHEMA_MAILTO); $schema[] = array("ou", "Organizacna jednotka / oddelenie", $SCHEMA_ZERO_N); $schema[] = array("st", "Stat", $SCHEMA_ONE); $schema[] = array("l", "Mesto", $SCHEMA_ONE); $schema[] = array("description", "Popis", $SCHEMA_ZERO_N); $schema[] = array("seealso", "Linka seeAlso", $SCHEMA_READ_ONLY | $SCHEMA_ZERO_N); $schema[] = array("usercertificate", "Certifikat x509", $SCHEMA_BINARY | $SCHEMA_ONE); $schema[] = array("keysize", "???", $SCHEMA_READ_ONLY | $SCHEMA_ONE); $schema[] = array("browsertype", "???", $SCHEMA_READ_ONLY | $SCHEMA_ONE); //////////////////////////////////////////////////////////// //zobrazovanie detailov o zazname //zobraz prazdne atributy (false setri cca 50% prenosoveho pasma...) $detailShowEmptyAttrib = true; //zobrazovat ldap nazov atributu $detailShowAttribName = true; $detailShowAttribNameFormat = array(" (",")"); //prefix a postfix formatovania //zobrazovat textovy popis atributu $detailShowAttribDescription = true; $detailShowAttribDescriptionFormat = array("",""); //prefix a postfix formatovania //////////////////////////////////////////////////////////// //administrator account $adminDN="mail=wpldap@utcpd.sk, o=Zilinska univerzita, c=SK"; //$adminDN="mail=emil@kst.fri.utc.sk, o=Zilinska univerzita, c=SK"; ?>