';
return $o;
}
/**
* $timestamp = zeitpunt des ablaufens in unix timestamp
*/
function countdown($timestamp,$prestring="",$id=0,$allownegative=false)
{
$a = new Algorithms();
if(!$id) $id = $a->getRandomHash(8);
$seconds = $timestamp-time();
//return '';
return '';
}
function sanitize($data)
{
return mysql_real_escape_string($data);
}
function specialchars($text,$utf8=0)
{
return htmlspecialchars($text);
}
/*
* @param string $name
* @param string $value
* @param string $type
* @param string $id
* @param string $class
* @param int $size
*/
function input($name, $value = '', $type = 'text', $id = '', $class = '', $size = '20',$onClick='',$extra='')
{
return '';
}
function button($name,$value,$onclick="return true;",$id='',$class="button")
{
return '';
}
function buttonGoTo($value,$link,$id='',$class='')
{
return ''.$value.'';
}
/*
* @param array $data the multidimensional array
* @param bool $header should the first line be a
element instead of
?
* @param string $width
* @param string $id the ID of the table
* @param string $class the class of the table
* @param string $tdclass the class of every td element
*/
function table($data, $header = 1, $width = '100%', $id = '', $class = '', $tdclass = 'text_top', $evenwidth=1,$trclass='')
{
if (!is_array($data))
return false;
$t = '