Main menu
Waiting (greylist)
E-mail addresses
Domains
Optout domain
Optout e-mail
Optin domain
Optin e-mail
');
} else {
// index and connect (with dummies) and opt_in_out.
echo ('
');
}
}
function is_active1($mode, $get) {
// For awl menubar items - sets item active.
if ($mode == $get) {
return ' id="current" ';
} else {
return ' ';
}
}
function is_active2($direction, $getdir, $what, $getwhat) {
// For index, connect and opt_in_out menubar items - sets item active.
if (($direction == $getdir) && ($what == $getwhat)) {
return ' id="current" ';
} else {
return ' ';
}
}
// Other functions.
function shorten_it($sendername, $nr) {
// For managing the width of the Sender name, Sender domain and Recipient columns.
if (strlen($sendername) > $nr) {
$sendername = substr($sendername, 0, $nr ).'...';
}
return $sendername;
}
function strip_millisecs($ts) {
// Formats timestamp without milliseconds.
global $no_millisecs;
if ($no_millisecs == "yes") {
$ts = date_create($ts);
$ts = date_format($ts, 'Y-m-d H:i:s');
}
return $ts;
}
?>