<?php
-// $Id: index.php 11949 2009-02-09 17:57:16Z thierry $
+// $Id$
// Require login
require_once 'plc_login.php';
} 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;
}
$tabs=array();
$tabs['Clear events']=l_events();
-plc_tabs($tabs);
+plekit_linetabs($tabs);
list($from_string,$from_time) = parse_date ($from_date,false,$DAY,$EPOCH);
list($until_string,$until_time) = parse_date ($until_date,true,$DAY,$EPOCH);
$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));
"D"=>"none",
);
-$table = new PlcTable ("events",$headers,"0r");
+$table = new PlekitTable ("events",$headers,"0r");
$table->set_options (array ('max_pages'=>20));
$table->start ();
foreach ($events as $event) {
// 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);
"Click the button in the D(etails) column to get more details")));
$table->end();
-//plc_tabs ($tabs,"bottom");
+//plekit_linetabs ($tabs,"bottom");
// Print footer
include 'plc_footer.php';