don't hesitate to contact us but understand that our core business has priority
over this project.
-To contact us send a mail to ldapab@cosmocode.de
+To contact us send a mail to ldapab@cosmocode.de or visit our homepage at
+http://www.cosmocode.de
=== KNOWN BUGS ===
=== LICENSE ===
LDAPab - An LDAP based Company Address Book
-Copyright 2004 - CosmoCode GmbH
+Copyright 2004 - 2006 - CosmoCode GmbH
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
+++ /dev/null
-
-Photoupload
-
-marker
// Should the additional schema ldapab.schema be used? (0|1)
// Note: openxchange and extended are currently exclusive, do not use both at the same time!
- $conf[extended] = 0;
+ $conf[extended] = 1;
// Should we use some parts of the openxchange.schema? (0|1)
// Note: openxchange and extended are currently exclusive, do not use both at the same time!
- $conf[openxchange] = 1;
+ $conf[openxchange] = 0;
// Should we try to login using the username and password provided by httpd? (0|1)
$conf[httpd_auth] = 1;
$entry = $smarty->get_template_vars('entry');
$filename = $entry[givenname].'_'.$entry[name].'.vcf';
header("Content-Disposition: attachment; filename=\"$filename\"");
- header("Content-type: text/x-vcard; name=\"$filename\"");
+ header("Content-type: text/x-vcard; name=\"$filename\"; charset=utf-8");
$smarty->display($template);
}else{
+ header('Content-Type: text/html; charset=utf-8');
$smarty->display('header.tpl');
$smarty->display($template);
$smarty->display('footer.tpl');
$out[objectclass][] = 'OXUserObject';
}
- utf8_encode_array($out);
-
return clear_array($out);
}
* Decodes UTF8 recursivly for the given array
*/
function utf8_decode_array(&$array) {
+ trigger_error('deprecated utf8_decode_array called',E_USER_WARNING);
+
foreach (array_keys($array) as $key) {
if($key === 'dn') continue;
if($key === 'jpegPhoto') continue;
* Encodes the given array to UTF8 recursively
*/
function utf8_encode_array(&$array) {
+ trigger_error('deprecated utf8_encode_array called',E_USER_WARNING);
+
foreach (array_keys($array) as $key) {
if($key === 'dn') continue;
if($key === 'jpegPhoto') continue;
//prepare templates
tpl_std();
//display templates
+ header('Content-Type: text/html; charset=utf-8');
$smarty->display('header.tpl');
$smarty->display('help.tpl');
$smarty->display('footer.tpl');
}else{
//save location in session
$_SESSION[ldapab][lastlocation]=$_SERVER["REQUEST_URI"];
+
+ header('Content-Type: text/html; charset=utf-8');
$smarty->display('header.tpl');
$smarty->display('list_filter.tpl');
$smarty->display('list.tpl');
if(empty($filter)) $filter='a';
if(!empty($marker)){
- $marker = utf8_encode($marker);
$ldapfilter = "(&(objectClass=contactPerson)(marker=$marker))";
}elseif(!empty($categories)){
- $categories = utf8_encode($categories);
$ldapfilter = "(&(objectClass=OXUserObject)(OXUserCategories=$categories))";
}elseif(!empty($search)){
$search = trim($search);
$words=preg_split('/\s+/',$search);
$filter='';
foreach($words as $word){
- $word = utf8_encode($word);
$filter .= "(|(|(sn=*$word*)(givenName=*$word*))(o=*$word*))";
}
$ldapfilter = "(&(objectClass=inetOrgPerson)$filter)";
}elseif(!empty($org)){
- $org = utf8_encode($org);
$ldapfilter = "(&(objectClass=inetOrgPerson)(o=$org))";
}elseif($filter=='other'){
$other='';
}elseif($filter=='*'){
$ldapfilter = "(objectClass=inetOrgPerson)";
}else{
- $filter = utf8_encode($filter);
$ldapfilter = "(&(objectClass=inetOrgPerson)(sn=$filter*))";
}
return $ldapfilter;
$lang[title] = 'Titel';
$lang[organization] = 'Firma';
$lang[office] = 'Abteilung';
-$lang[street] = 'Straße, Nr.';
+$lang[street] = 'Straße, Nr.';
$lang[zip] = 'Postleitzahl';
$lang[location] = 'Ort';
$lang[phone] = 'Telefon';
$lang[anniversary] = 'Geburtstag';
$lang[marker] = 'Kategorie';
-$lang[business] = 'Geschäftlich';
+$lang[business] = 'Geschäftlich';
$lang[private] = 'Privat';
-$lang[extended] = 'Zusätzliche Infos';
+$lang[extended] = 'Zusätzliche Infos';
-$lang[delphoto] = 'Vorhandenes Foto löschen';
+$lang[delphoto] = 'Vorhandenes Foto löschen';
$lang[notloggedin] = 'Nicht angemeldet';
$lang[loggedinas] = 'Angemeldet als';
$lang[edit] = 'Bearbeiten';
$lang[show] = 'Anzeigen';
$lang['new'] = 'Neu';
-$lang['delete'] = 'Löschen';
+$lang['delete'] = 'Löschen';
$lang['copy'] = 'Kopieren';
$lang[csvexport] = 'CSV';
$lang[vcfexport] = 'VCard';
$lang[search] = 'Suchen';
$lang[submit] = 'Absenden';
$lang[help] = 'Hilfe';
-$lang[select] = 'Auswählen';
+$lang[select] = 'Auswählen';
$lang[orgs] = 'Firmen';
$lang[upload] = 'Hochladen';
-$lang[publicbook] = 'Öffentliches Adressbuch';
+$lang[publicbook] = 'Öffentliches Adressbuch';
$lang[privatebook] = 'Privates Adressbuch';
$lang[msg_login] = 'Bitte melden sie sich an!';
$lang[msg_loginfail] = 'Anmeldung fehlgeschlagen!';
-$lang[msg_reallydel] = 'Eintrag wirklich löschen?';
-$lang[msg_addto] = 'Zu welchem Adressbuch soll der Eintrag hinzugefügt werden?';
+$lang[msg_reallydel] = 'Eintrag wirklich löschen?';
+$lang[msg_addto] = 'Zu welchem Adressbuch soll der Eintrag hinzugefügt werden?';
$lang[msg_jpegonly] = 'Nur JPEG';
$lang[msg_dateformat] = 'JJJJ-MM-TT';
$lang[msg_uploadvcf] = 'Upload VCard File';
-$lang[err_noentries] = 'Keine Einträge';
+$lang[err_noentries] = 'Keine Einträge';
$lang[err_ldap] = 'Der LDAP Server lieferte folgende Fehlermeldungen';
?>
tpl_std();
$smarty->assign('msg',$msg);
//display templates
+ header('Content-Type: text/html; charset=utf-8');
$smarty->display('header.tpl');
$smarty->display('login.tpl');
$smarty->display('footer.tpl');
tpl_std();
tpl_orgs();
//display templates
+ header('Content-Type: text/html; charset=utf-8');
$smarty->display('header.tpl');
$smarty->display('orgs.tpl');
$smarty->display('footer.tpl');
$out['categories'] = $in['OXUserCategories'];
}
- //decode array
- utf8_decode_array($out);
-
/*print '<pre>';
print_r($out);
print '</pre>';*/
$markers = array_unique($markers);
sort($markers,SORT_STRING);
- utf8_decode_array($markers);
$smarty->assign('markers',$markers);
}
}
$orgs = array_unique($orgs);
sort($orgs,SORT_STRING);
- utf8_decode_array($orgs);
$smarty->assign('orgs',$orgs);
}
$categories = array_unique($categories);
sort($categories,SORT_STRING);
- utf8_decode_array($categories);
$smarty->assign('categories',$categories);
}
$timezone = array_unique($timezone);
sort($timezone,SORT_STRING);
- utf8_decode_array($timezone);
$smarty->assign('timezone',$timezone);
}
$country = array_unique($country);
sort($country,SORT_STRING);
- utf8_decode_array($country);
$smarty->assign('country',$country);
}
{$entry.givenname} {$entry.name}
</h1>
-<form action="entry.php" method="post" enctype="multipart/form-data">
+<form action="entry.php" method="post" enctype="multipart/form-data" accept-charset="utf-8">
<input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
<input type="hidden" name="dn" value="{$entry.dn|escape}" />
<input type="hidden" name="save" value="1" />
<head>
<title>LDAPab - {$lang.ldapab}</title>
<link rel="stylesheet" type="text/css" href="templates/style.css" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="filterrow">
- <form action="import.php" method="post" enctype="multipart/form-data">
+ <form action="import.php" method="post" enctype="multipart/form-data" accept-charset="utf-8">
{$lang.msg_uploadvcf}: <input name="userfile" type="file" class="upload" />
<input type="submit" value="{$lang.upload}" class="searchbutton"/>
</form>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="filterrow">
- <form action="importVCF.php" method="post" enctype="multipart/form-data">
+ <form action="importVCF.php" method="post" enctype="multipart/form-data" accept-charset="utf-8">
{$lang.msg_uploadvcf}: <input name="userfile" type="file" class="upload" />
<input type="submit" value="{$lang.upload}" class="searchbutton"/>
</form>
<tr>
- <form action="entry.php" method="post" target="_blank">
+ <form action="entry.php" method="post" target="_blank" accept-charset="utf-8">
<td class="result">
<b>{$entry.name}, {$entry.givenname}</b>
</td>
<tr>
- <form action="entry.php" method="post" target="_import_">
+ <form action="entry.php" method="post" target="_import_" accept-charset="utf-8">
<td class="result">
<b>{$entry.name}, {$entry.givenname}</b>
</td>
</td>
{/if}
<td class="filterrow" align="right">
- <form method="get" action="index.php" style="display:inline">
+ <form method="get" action="index.php" style="display:inline" accept-charset="utf-8">
<input type="text" name="search" class="searchfield" value="{$smarty.request.search}">
<input type="submit" value="{$lang.search}" class="searchbutton">
</form>
<br /><br /><br />
- <form action="login.php" method="post">
+ <form action="login.php" method="post" accept-charset="utf-8">
<table class="tableborder" align="center">
<tr>
<td colspan="2" align="center">{$msg}<br /><br /></td>