';
         print_r($date);
         echo '
'; } /********************************************************************************* * Creaza o alerta JAVA **********************************************************************************/ function JavaAlert($mesage,$return=false){ $java=' '; if ($return===true) return $java; else echo $java; } /******************************************************************************** * Scrie in fisier *********************************************************************************/ function SaveToFile($message) { $pre='
---------------------------------------------------
'; $post='
--------------------------------------------------
'; $file = fopen('debug.htm', 'a'); fwrite($file, $pre.$message.$post); fclose($file); //file_put_contents($nume_fis, $pre.$message.$post, $mod); //echo 'salvat in fisier2'; return; } /******************************************************************************** * Scrie in fisier *********************************************************************************/ function SaveToFile2($message) { $pre='
---------------------------------------------------
'; $post='
--------------------------------------------------
'; $file = fopen('../../debug.htm', 'a'); fwrite($file, $pre.$message.$post); fclose($file); //file_put_contents($nume_fis, $pre.$message.$post, $mod); //echo 'salvat in fisier2'; return; } /******************************************************************************** * Transforma Matricea intrun fisier text pentru afisat in html file *********************************************************************************/ function Transf_Array($arr) { $txtt="**"; if (is_array($arr)) {$txtt=" is array()
"; foreach ($arr as $k => $v ) { if (is_array($v)) { $txtt.= 'array['.$k.']==>
'; foreach ($v as $k0 => $v0) {$txtt.="      array[".$k."][".$k0."]=".$v0."
";} } else{$txtt.="     array[".$k."]=".$v."
"; } } //$txtt.='----------------------- end of ARRAY'; } else {$txtt=$arr."
(and is NOT an array())
"; } // from if is_array //SaveToFile2("data-din functie=".$txtt); return($txtt); } ?> Sensor Reading by ROmeo B ----------------final
'; //List_vector($_SESSION); exit(); //List_sesiuni(); //phpinfo(); //if($_SESSION['user']['nivel_acces'] ==1) $rand=90;else $rand=160;//$rand=160; //if($_SESSION['page']=="membrii") $rand=70; ?> =9 ) { ?> 0 ) { ?>