/usr/share/IlohaMail/include/contacts_commons.inc is in ilohamail 0.8.14-0rc3sid6.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | <?php
/********************************************************
include/contacts_commons.inc
(C)Copyright 2002 Ryo Chijiiwa <Ryo@IlohaMail.org>
This file is part of IlohaMail, and released under GPL.
See COPYING, or http://www.fsf.org/copyleft/gpl.html
PURPOSE:
Common functions used by source/contacts.php
and source/edit_contact.php
********************************************************/
function GetGroups($contacts){
if (!is_array($contacts)) return "";
$grp_ka=array();
$result=array();
$i=0;
while ( list($key, $val) = each($contacts) ){
$group = $contacts[$key]["grp"];
$group = trim(chop($group));
if ((!empty($group))&&($grp_ka[$group]!=1)) $grp_ka[$group]=1;
}
reset($grp_ka);
while ( list($key, $val) = each($grp_ka) ){
$result[$i]=$key;
$i++;
}
return base64_encode(implode(",", $result));
}
?>
|