PHP Classes
elePHPant
Icontem

File: buttontimer.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mo´se  >  PHP Realtime Clock  >  buttontimer.php  >  Download  
File: buttontimer.php
Role: Auxiliary script
Content type: text/plain
Description: ajax file
Class: PHP Realtime Clock
Display clock or timer updated in real time
Author: By
Last change:
Date: 23 days ago
Size: 454 bytes
 

Contents

Class file image Download
<?php
session_start
();
$duree=$_GET['hour']*3600+$_GET['minute']*60+$_GET['segund'];
$session=intval($_SESSION[$_GET['timer']][0])*3600+intval($_SESSION[$_GET['timer']][1])*60+intval($_SESSION[$_GET['timer']][2]);
if(isset(
$_GET['stop'])){
   
$_SESSION[$_GET['timer']]=array($_GET['hour'],$_GET['minute'],$_GET['segund']);
}else{
    if(
$session<$duree){
       
$_SESSION[$_GET['timer']]=array($_GET['hour'],$_GET['minute'],$_GET['segund']);
    }
}
?>