|
@@ 111-113 (lines=3) @@
|
| 108 |
|
public static function deleteDirectory($src) |
| 109 |
|
{ |
| 110 |
|
// Only continue if user is a 'global' Admin |
| 111 |
|
if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
| 112 |
|
return false; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
$success = true; |
| 116 |
|
// remove old files |
|
@@ 159-161 (lines=3) @@
|
| 156 |
|
public static function rrmdir($src) |
| 157 |
|
{ |
| 158 |
|
// Only continue if user is a 'global' Admin |
| 159 |
|
if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
| 160 |
|
return false; |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
// If source is not a directory stop processing |
| 164 |
|
if (!is_dir($src)) { |
|
@@ 199-201 (lines=3) @@
|
| 196 |
|
public static function rmove($src, $dest) |
| 197 |
|
{ |
| 198 |
|
// Only continue if user is a 'global' Admin |
| 199 |
|
if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
| 200 |
|
return false; |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
// If source is not a directory stop processing |
| 204 |
|
if (!is_dir($src)) { |
|
@@ 242-244 (lines=3) @@
|
| 239 |
|
public static function rcopy($src, $dest) |
| 240 |
|
{ |
| 241 |
|
// Only continue if user is a 'global' Admin |
| 242 |
|
if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
| 243 |
|
return false; |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
// If source is not a directory stop processing |
| 247 |
|
if (!is_dir($src)) { |