forked from extern/egroupware
Add some more debug notes and turn debug off during login/logout/home
This commit is contained in:
parent
bade598435
commit
63819d4dd7
@ -37,6 +37,13 @@
|
|||||||
|
|
||||||
function crypto($vars='')
|
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))
|
if(is_array($vars))
|
||||||
{
|
{
|
||||||
$this->init($vars);
|
$this->init($vars);
|
||||||
@ -106,7 +113,14 @@
|
|||||||
$this->key .= $key[$i % $x];
|
$this->key .= $key[$i % $x];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
/* If mcrypt isn't loaded, key and iv are not needed. */
|
/* If mcrypt isn't loaded, key and iv are not needed. */
|
||||||
|
if($this->debug)
|
||||||
|
{
|
||||||
|
echo '<br>crypto: mycrypt unavailable or disabled';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanup()
|
function cleanup()
|
||||||
|
Loading…
Reference in New Issue
Block a user