GraphicWeb Members: 20   LogIn   We have %s guests online   
GraphicWeb Communications
GraphicWeb Communications
 Network & Information Processing Specialists
"We fix things and do stuff!"
Monday, 06 September 2010  
 
Home Page Home

Newsflash
What is Joomla?
Image

Joomla! is a Content Management System (CMS) created by the same award-winning team that brought the Mambo CMS to its current state of stardom.

Read more...
 
Microsoft Data Access Components - Disable ADODB.Stream object from Internet Explorer (KB870669)

Adodb.stream provides a method for reading and writing files on a hard drive. This by-design functionality is sometimes used by web applications. However, when combined with known security vulnerabilities in Microsoft Internet Explorer, it could allow an internet web site to execute script from the Local Machine Zone (LMZ). This occurs because the ADODB.Stream object allows access to the hard drive when hosted within Internet Explorer.

Download the patch.

Read more...
 
Dynamic server time. Print E-mail
Friday, 05 May 2006

Put a dynamicly updated date/time field on a website to show the current server time rather than displaying the local client date and time.

 

Replace the string:

<php echo mosCurrentDate(); ?>

With the following:

 

<script type="text/javascript">

var currenttime = '<? echo mosCurrentdate("%B %d, %Y %H:%M:%S"); ?>'

var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var serverdate=new Date(currenttime)

function padlength(what){
var output=(what.toString().length==1)? "0"+what : what
return output
}

function displaytime(){
serverdate.setSeconds(serverdate.getSeconds()+1)
var datestring=montharray[serverdate.getMonth()]+" "+padlength(serverdate.getDate())+", "+serverdate.getFullYear()
var timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds())
document.getElementById("servertime").innerHTML=datestring+" "+timestring
}

window.onload=function(){
setInterval("displaytime()", 1000)
}

</script>

<b>Current Server Time:</b> <span id="servertime"></span>
 
< Prev   Next >
 

Advertisement

Page generated in 0.16 seconds