mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
worked around stupid php5.2 empty haystack warnings
This commit is contained in:
parent
12f80f139b
commit
0cd6ab53b4
@ -10,7 +10,7 @@
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
if (!strstr($_SERVER['PHP_SELF'],'setup-cli.php'))
|
||||
if (strpos($_SERVER['PHP_SELF'],'setup-cli.php') === false)
|
||||
{
|
||||
$GLOBALS['egw_info'] = array(
|
||||
'flags' => array(
|
||||
@ -114,7 +114,7 @@
|
||||
|
||||
if (!$defaultgroupid || !$admingroupid)
|
||||
{
|
||||
if (strstr($_SERVER['PHP_SELF'],'setup-cli.php'))
|
||||
if (strpos($_SERVER['PHP_SELF'],'setup-cli.php') !== false)
|
||||
{
|
||||
return 42; //lang('Error in group-creation !!!'); // dont exit on setup-cli
|
||||
}
|
||||
@ -201,7 +201,7 @@
|
||||
$accountid = $GLOBALS['egw_setup']->add_account($username,$fname,$lname,$passwd,'Admins',True,$email);
|
||||
if (!$accountid)
|
||||
{
|
||||
if (strstr($_SERVER['PHP_SELF'],'setup-cli.php'))
|
||||
if (strpos($_SERVER['PHP_SELF'],'setup-cli.php') !== false)
|
||||
{
|
||||
return 41; //lang('Error in admin-creation !!!'); // dont exit on setup-cli
|
||||
}
|
||||
@ -214,7 +214,7 @@
|
||||
|
||||
$GLOBALS['egw_setup']->db->transaction_commit();
|
||||
|
||||
if (!strstr($_SERVER['PHP_SELF'],'setup-cli.php'))
|
||||
if (strpos($_SERVER['PHP_SELF'],'setup-cli.php') === false)
|
||||
{
|
||||
Header('Location: index.php');
|
||||
}
|
||||
|
@ -465,7 +465,7 @@
|
||||
|
||||
// add a ../ for non-absolute pathes
|
||||
$rel_name = $name;
|
||||
if (substr($name,0,3) != '../' && $name{0} != '/' && $name{0} != '\\' && strstr($name,':') === false)
|
||||
if (substr($name,0,3) != '../' && $name{0} != '/' && $name{0} != '\\' && strpos($name,':') === false)
|
||||
{
|
||||
$name = '../'.$name;
|
||||
}
|
||||
|
@ -815,7 +815,7 @@ function _set_value(&$arr,$index,$name,$value)
|
||||
{
|
||||
$var =& $var[$name];
|
||||
}
|
||||
$var = strstr($name,'passw') ? md5($value) : $value;
|
||||
$var = strpos($name,'passw') !== false ? md5($value) : $value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user