Subversion Repositories personal-webbase

Rev

Rev 12 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12 Rev 14
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
3
if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
4
 
4
 
5
if ($ib_user_type < 2) die('Keine Zugriffsberechtigung');
5
if ($wb_user_type < 2) die('Keine Zugriffsberechtigung');
6
 
6
 
7
function ftp_rmdir_rec($handle, $path)
7
function ftp_rmdir_rec($handle, $path)
8
{
8
{
9
   if (!@ftp_delete($handle, $path))
9
   if (!@ftp_delete($handle, $path))
10
   {
10
   {
11
       $list = @ftp_nlist($handle, $path);
11
       $list = @ftp_nlist($handle, $path);
12
       if(!empty($list))
12
       if(!empty($list)) {
13
           foreach($list as $value)
13
           foreach($list as $value) {
14
               ftp_rmdir_rec($handle, $value);
14
               ftp_rmdir_rec($handle, $value);
15
   }
15
           }
-
 
16
       }
-
 
17
   }
16
 
18
 
17
   if(@ftp_rmdir($handle, $path))
19
   if(@ftp_rmdir($handle, $path)) {
18
       return true;
20
       return true;
19
   else
21
   } else {
20
       return false;
22
       return false;
21
}
23
   }
-
 
24
}
22
 
25
 
23
  if (($aktion == 'delete') || ($aktion == 'install'))
26
  if (($aktion == 'delete') || ($aktion == 'install'))
24
  {
27
  {
25
    // Funktioniert FTP-Zugang?
28
    // Funktioniert FTP-Zugang?
26
 
29