Add some more debug notes and turn debug off during login/logout/home

This commit is contained in:
Miles Lott 2004-02-07 03:38:35 +00:00
parent bade598435
commit 63819d4dd7

View File

@ -37,6 +37,13 @@
function crypto($vars='')
{
if($GLOBALS['phpgw_info']['flags']['currentapp'] == 'login' ||
$GLOBALS['phpgw_info']['flags']['currentapp'] == 'logout' ||
$GLOBALS['phpgw_info']['flags']['currentapp'] == 'home'
)
{
$this->debug = False;
}
if(is_array($vars))
{
$this->init($vars);
@ -106,7 +113,14 @@
$this->key .= $key[$i % $x];
}
}
else
{
/* If mcrypt isn't loaded, key and iv are not needed. */
if($this->debug)
{
echo '<br>crypto: mycrypt unavailable or disabled';
}
}
}
function cleanup()