View Single Post
  #4  
Old 24th May 2008, 09:50
seb35 seb35 is offline
Senior Member
 
Join Date: Dec 2007
France
Posts: 32
Default Re: usersearch not valid
[code]<?

function mkdate ($date)
{
if (strpos ($date, '-'))
{
$a = explode ('-', $date);
}
else
{
if (strpos ($date, '/'))
{
$a = explode ('/', $date);
}
else
{
return 0;
}
}

$i = 0;
while ($i < 3)
{
if (!is_numeric ($a[$i]))
{
return 0;
}

++$i;
}

if (checkdate ($a[1], $a[2], $a[0]))
{
return date ('Y-m-d', mktime (0, 0, 0, $a[1], $a[2], $a[0]));
}

return 0;
}

function ratios ($up, $down, $color = True)
{
if (0 < $down)
{
$r = number_format ($up / $down, 2);
if ($color)
{
$r = '<font color=' . get_ratio_color ($r) . ('' . '>' . $r . '</font>');
}
}
else
{
if (0 < $up)
{
$r = 'Inf.';
}
else
{
$r = '---';
}
}

return $r;
}

function haswildcard ($text)
{
if ((((strpos ($text, '*') === False AND strpos ($text, '?') === False) AND strpos ($text, '%') === False) AND strpos ($text, '_') === False))
{
return False;
}

return True;
}

if (!defined ('_IN_TS_SE_ORIGINAL_STAFF_PANEL_4_3_'))
{
exit ('<font face=\'verdana\' size=\'2\' color=\'darkred\'>Error! Direct initialization of this file is not allowed.</font>');
}

define ('US_VERSION', '0.3 by xam');
include_once INC_PATH . '/functions_ratio.php';
$DEBUG_MODE = 0;
stdhead ('Administrative User Search');
_form_header_open_ ('Administrative User Search - (<a href=\'' . $_this_script_ . '&h=1\'>Instructions</a>)
Reply With Quote