added a please wait message before recursivly checking all files for word-writable

This commit is contained in:
Ralf Becker 2004-03-21 23:45:28 +00:00
parent de263f5b30
commit 0aca5b696c
3 changed files with 25 additions and 19 deletions

View File

@ -249,21 +249,18 @@
}
$perms = $checks = '';
if ($verbose)
if (file_exists($name))
{
if (file_exists($name))
{
$owner = function_exists('posix_getpwuid') ? posix_getpwuid(@fileowner($name)) : array('name' => 'nn');
$group = function_exists('posix_getgrgid') ? posix_getgrgid(@filegroup($name)) : array('name' => 'nn');
$owner = function_exists('posix_getpwuid') ? posix_getpwuid(@fileowner($name)) : array('name' => 'nn');
$group = function_exists('posix_getgrgid') ? posix_getgrgid(@filegroup($name)) : array('name' => 'nn');
$checks = array();
if (isset($args['is_writable'])) $checks[] = (!$args['is_writable']?'not ':'').lang('writable by webserver');
if (isset($args['is_world_readable'])) $checks[] = (!$args['is_world_readable']?lang('not').' ':'').lang('world readable');
if (isset($args['is_world_writable'])) $checks[] = (!$args['is_world_writable']?lang('not').' ':'').lang('world writable');
$checks = implode(', ',$checks);
$checks = array();
if (isset($args['is_writable'])) $checks[] = (!$args['is_writable']?'not ':'').lang('writable by webserver');
if (isset($args['is_world_readable'])) $checks[] = (!$args['is_world_readable']?lang('not').' ':'').lang('world readable');
if (isset($args['is_world_writable'])) $checks[] = (!$args['is_world_writable']?lang('not').' ':'').lang('world writable');
$checks = implode(', ',$checks);
$perms = "$owner[name]/$group[name] ".verbosePerms(@fileperms($name));
}
$perms = "$owner[name]/$group[name] ".verbosePerms(@fileperms($name));
}
$icon = $passed_icon;
$msg = lang('Checking file-permissions of %1 for %2: %3',$rel_name,$checks,$perms)."\n";
@ -284,30 +281,35 @@
$Ok = True;
if (isset($args['is_writable']) && is_writable($name) != $args['is_writable'])
{
echo "$error_icon $msg\n".lang('%1 is %2%3 !!!',$rel_name,$args['is_writable']?lang('not').' ':'',lang('writeable by the webserver'))."\n";
echo "$error_icon $msg ".lang('%1 is %2%3 !!!',$rel_name,$args['is_writable']?lang('not').' ':'',lang('writeable by the webserver'))."\n";
$Ok = False;
}
if (isset($args['is_readable']) && is_readable($name) != $args['is_readable'])
{
echo "$error_icon $msg\n".lang('%1 is %2%3 !!!',$rel_name,$args['is_readable']?lang('not').' ':'',lang('readable by the webserver'))."\n";
echo "$error_icon $msg ".lang('%1 is %2%3 !!!',$rel_name,$args['is_readable']?lang('not').' ':'',lang('readable by the webserver'))."\n";
$Ok = False;
}
if (!$is_windows && isset($args['is_world_readable']) && !(fileperms($name) & 04) == $args['is_world_readable'])
{
echo "$error_icon $msg\n".lang('%1 is %2%3 !!!',$rel_name,$args['is_world_readable']?lang('not').' ':'','world-readable')."\n";
echo "$error_icon $msg ".lang('%1 is %2%3 !!!',$rel_name,$args['is_world_readable']?lang('not').' ':'',lang('world readable'))."\n";
$Ok = False;
}
if (!$is_windows && isset($args['is_world_writable']) && !(fileperms($name) & 02) == $args['is_world_writable'])
{
echo "$error_icon $msg\n".lang('%1 is %2%3 !!!',$rel_name,$args['is_world_writable']?lang('not').' ':'','world-writable')."\n";
echo "$error_icon $msg ".lang('%1 is %2%3 !!!',$rel_name,$args['is_world_writable']?lang('not').' ':'',lang('world writable'))."\n";
$Ok = False;
}
if ($Ok && !$warning && $verbose)
{
echo "$passed_icon $msg\n";
echo $passed_icon.' '.$msg;
}
if ($Ok && @$args['recursiv'] && is_dir($name))
{
if ($verbose)
{
echo lang('This might take a while, please wait ...')."\n";
flush();
}
@set_time_limit(0);
$handle = @opendir($name);
while($handle && ($file = readdir($handle)))
@ -319,6 +321,8 @@
}
if ($handle) closedir($handle);
}
if ($verbose) echo "\n";
return $Ok;
}

View File

@ -213,7 +213,6 @@ ldap host setup de LDAP Host
ldap import setup de LDAP Import
ldap import users setup de LDAP Benutzer importieren
ldap modify setup de LDAP Ändern
you will need to load the proper schema into your ldap server - see phpgwapi/doc/ldap/README setup de Sie müssen das entsprechende schema bei ihrem LDAP Server laden - siehe <a href="../phpgwapi/doc/ldap/README" target="_blank">phpgwapi/doc/ldap/README</a>
ldap root password setup de LDAP Root Passwort
ldap rootdn setup de LDAP rootdn
limit access to setup to the following addresses or networks (e.g. 10.1.1,127.0.0.1) setup de Zugang zu Setup auf die folgenden IP Adressen oder Netzwerke beschränken (z.B. 127.0.0.1,10.1.1)
@ -365,6 +364,7 @@ there was a problem tring to connect to your ldap server. <br>please check your
there was a problem trying to connect to your ldap server. <br> setup de Es gab ein Problem eine Verbindung zu ihrem LDAP Server herzustellen.<br>
there was a problem trying to connect to your ldap server. <br>please check your ldap server configuration setup de Es gab ein Problem eine Verbindung zu ihrem LDAP Server herzustellen.<br>Bitte überprüfen sie die Konfiguration ihres LDAP servers.
this has to be outside the webservers document-root!!! setup de Muss ausserhalb der document-root des Webservers sein!!!
this might take a while, please wait ... setup de Dieser Test braucht einige Zeit, bitte warten ...
this program will convert your database to a new system-charset. setup de Diese Programm wird ihre Datenbank in einen neuen Systemzeichensatz konvertieren.
this program will help you upgrade or install different languages for egroupware setup de Dieses Programm wird Ihnen bei der Aktualisierung oder Installation verschiedender Sprachen für eGroupWare behilflich sein
this section will help you export users and groups from egroupware's account tables into your ldap tree setup de Dieser Abschnitt wird Ihnen beim exportieren von Benutzern/Gruppen aus eGroupWare's Account Tabellen in Ihren LDAP Baum behilflich sein
@ -434,6 +434,7 @@ you must enter a username for the admin setup de sie m
you need to add some domains to your header.inc.php. setup de Sie müssen mindestens eine Domain zu ihrer header.inc.php zufügen.
you need to select your current charset! setup de Sie müssen ihren aktuellen Zeichensatz auswählen!
you should either uninstall and then reinstall it, or attempt manual repairs setup de Sie sollten entweder de- und neuinstallieren, oder manuelle Reparaturen versuchen
you will need to load the proper schema into your ldap server - see phpgwapi/doc/ldap/readme setup de Sie müssen das entsprechende schema bei ihrem LDAP Server laden - siehe <a href="../phpgwapi/doc/ldap/README" target="_blank">phpgwapi/doc/ldap/README</a>
you're using an old configuration file format... setup de Sie verwenden ein altes Format der Konfigurationdatei ...
you're using an old header.inc.php version... setup de Sie verwenden eine alte header.inc.php Version ...
your applications are current setup de Ihre Anwendungen sind aktuell

View File

@ -211,7 +211,6 @@ ldap host setup en LDAP host
ldap import setup en LDAP Import
ldap import users setup en LDAP import users
ldap modify setup en LDAP Modify
you will need to load the proper schema into your ldap server - see phpgwapi/doc/ldap/README setup en You will need to load the proper schema into your ldap server - see <a href="../phpgwapi/doc/ldap/README" target="_blank">phpgwapi/doc/ldap/README</a>
ldap root password setup en LDAP root password
ldap rootdn setup en LDAP rootdn
limit access to setup to the following addresses or networks (e.g. 10.1.1,127.0.0.1) setup en Limit access to setup to the following addresses or networks (e.g. 10.1.1,127.0.0.1)
@ -362,6 +361,7 @@ the tables setup en the tables
there was a problem trying to connect to your ldap server. <br> setup en There was a problem trying to connect to your LDAP server. <br>
there was a problem trying to connect to your ldap server. <br>please check your ldap server configuration setup en There was a problem trying to connect to your LDAP server. <br>please check your LDAP server configuration
this has to be outside the webservers document-root!!! setup en This has to be outside the webservers document-root!!!
this might take a while, please wait ... setup en This might take a while, please wait ...
this program will convert your database to a new system-charset. setup en This program will convert your database to a new system-charset.
this program will help you upgrade or install different languages for egroupware setup en This program will help you upgrade or install different languages for eGroupWare
this section will help you export users and groups from egroupware's account tables into your ldap tree setup en This section will help you export users and groups from eGroupWare's account tables into your LDAP tree
@ -431,6 +431,7 @@ you must enter a username for the admin setup en You must enter a username for t
you need to add some domains to your header.inc.php. setup en You need to add some domains to your header.inc.php.
you need to select your current charset! setup en You need to select your current charset!
you should either uninstall and then reinstall it, or attempt manual repairs setup en You should either uninstall and then reinstall it, or attempt manual repairs
you will need to load the proper schema into your ldap server - see phpgwapi/doc/ldap/readme setup en You will need to load the proper schema into your ldap server - see <a href="../phpgwapi/doc/ldap/README" target="_blank">phpgwapi/doc/ldap/README</a>
you're using an old configuration file format... setup en You're using an old configuration file format...
you're using an old header.inc.php version... setup en You're using an old header.inc.php version...
your applications are current setup en Your applications are current