} else {
// user-provided string
- list ($year,$month,$day) = split ('[/.-]',$user_date);
+ list ($year,$month,$day) = preg_split ('/[\/\.\-]/',$user_date);
$date=sprintf("%s %s %s",$day,$month,$year);
$time=strtotime($date);
//if the flag is set, we add 23h59'59'', so the 'until' date is inclusive
case 'Site': return l_site_t ($id,$mess);
case 'Person': return l_person_t ($id,$mess);
case 'Slice': return l_slice_t ($id,$mess);
- case 'Role': case 'Key': case 'PCU': case 'Interface': case 'NodeGroup': case "Address":
+ case 'Interface': return l_interface_t ($id, $mess);
+ case 'Role': case 'Key': case 'PCU': case 'NodeGroup': case "Address":
return "$mess";
default: return "Unknown $type" . "-" . $id;
}
$title="Events [ $from_string - $until_string]";
$title .= " type=$object_type";
$title .= " id(s)=";
- foreach ( split(",",$user_input) as $user_desc) {
+ foreach ( explode(",",$user_input) as $user_desc) {
# numeric
if (my_is_int($user_desc)) {
$obj_check = call_user_func(array($api,$method),array(intval($user_desc)),array($primary_key));
// the message button
$trunc_mess=htmlentities(truncate($event['message'],40),ENT_QUOTES);
$message="<input type=button name='message' value='" . $trunc_mess ."' onclick='alert(\"" . $text . "\")'";
- $details="<input type=button name='message' value='X' onclick='alert(\"" . $text . "\")'";
+ $details="<input type=button name='message' value='+' onclick='alert(\"" . $text . "\")'";
// $message=sprintf('<span title="%s">%s</span>',$message,$message);
$message=truncate($event['message'],40);