(in 0-8-6i)
/include/top_graph_header.php (line 149)
/include/top_header.php (line 72)
Code: Select all
System Time: <strong><?php echo date(DATE_RFC822);?></strong>
Moderators: Developers, Moderators
Code: Select all
System Time: <strong><?php echo date(DATE_RFC822);?></strong>
Code: Select all
System Time: <strong><?php echo date("D, d M Y H:i:s T");?></strong>
Code: Select all
<strong><?php print $config["cacti_server_os"];?></strong>
Cacti Version: <strong><?php print $config["cacti_version"];?></strong>
System Time: <strong><?php echo date(DATE_RFC822);?></strong>
Code: Select all
<?
$query="select end_time from poller_time where id=1";
$result=mysql_query($query);
$num=mysql_num_rows($result);
if($num == 0) {
$pinfo="The poller is running.."; }
else {
$pinfo="Last poller end time: <strong>".mysql_result($result,"end_time")."</strong>"; }
?>
Code: Select all
include('mystuff.php');
Code: Select all
<? echo $pinfo." "; ?>System Time: <strong><?php echo date("D, d M Y H:i:s T");?></strong>
Code: Select all
<span id="clock">
<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
<!-- Begin
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
{
d = new Date();
Time24H = new Date();
Time24H.setTime(d.getTime() + (d.getTimezoneOffset()*60000) + 3600000);
InternetTime = Math.round((Time24H.getHours()*60+Time24H.getMinutes()) / 1.44);
if (InternetTime < 10) InternetTime = '00'+InternetTime;
else if (InternetTime < 100) InternetTime = '0'+InternetTime;
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate=dayarray[day]+" "+montharray[month]+" "+daym+" "+year+" "+hours+":"+minutes+":"+seconds+" "+dn+""
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
window.onload=goforit
// End -->
</script></span>
Code: Select all
<?php
print "<b>OS:</b >" . $config["cacti_server_os"] ." ";
print "<b>Version:</b> " . $config["cacti_version"] ." ";
$query="select end_time from poller_time where id=1";
$result=mysql_query($query);
$num=mysql_num_rows($result);
if($num == 0) {
$pinfo="<font color=red> The poller is running.. </font>";
}else{
$pinfo=" <b>Last poller end time:</b> ".mysql_result($result,"end_time");
}
print "<b>Current Time:</b> ";
include_once("liveclock.js");
print $pinfo;
?>
Code: Select all
<?php include_once("systime.php"); ?>
Code: Select all
<?php include_once("systime.php"); ?>
Code: Select all
<td align="right">
<?php if ((isset($_SESSION["sess_user_id"])) && ($using_guest_account == false)) { ?>
Logged in as <strong><?php print db_fetch_cell("select username from user_auth where id=" . $_SESSION["sess_user_id"]);?></strong> (<a href="<?php echo $config['url_path']; ?>logout.php">Logout</a>)
<?php } ?>
</td>
Code: Select all
<td align="right">
<?php if (read_config_option("auth_method") != 0) { ?>
Logged in as <strong><?php print db_fetch_cell("select username from user_auth where id=" . $_SESSION["sess_user_id"]);?></strong> (<a href="<?php echo $config['url_path']; ?>logout.php">Logout</a>)
<?php } ?>
</td>
Code: Select all
Logged in as ziv (Logout) OS:unix Version: 0.8.7b Current Time: // The poller is running..
Code: Select all
Logged in as ziv (Logout) OS:unix Version: 0.8.7b Current Time: // Last poller end time: 2008-08-06 10:21:03
Code: Select all
Problems with this Web page may prevent it from being displayed, blah blah blah... (And in the "Show details" box)
Line: 94
Char: 3
Error: Expected '}'
Code: 0
URL: http://mycacti.net/cacti/index.php
Users browsing this forum: No registered users and 0 guests