|
@@ 121-123 (lines=3) @@
|
| 118 |
|
public static function deleteDirectory($src) |
| 119 |
|
{ |
| 120 |
|
// Only continue if user is a 'global' Admin |
| 121 |
|
if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
| 122 |
|
return false; |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
$success = true; |
| 126 |
|
// remove old files |
|
@@ 169-171 (lines=3) @@
|
| 166 |
|
public static function rrmdir($src) |
| 167 |
|
{ |
| 168 |
|
// Only continue if user is a 'global' Admin |
| 169 |
|
if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
| 170 |
|
return false; |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
// If source is not a directory stop processing |
| 174 |
|
if (!is_dir($src)) { |
|
@@ 209-211 (lines=3) @@
|
| 206 |
|
public static function rmove($src, $dest) |
| 207 |
|
{ |
| 208 |
|
// Only continue if user is a 'global' Admin |
| 209 |
|
if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
| 210 |
|
return false; |
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
// If source is not a directory stop processing |
| 214 |
|
if (!is_dir($src)) { |
|
@@ 252-254 (lines=3) @@
|
| 249 |
|
public static function rcopy($src, $dest) |
| 250 |
|
{ |
| 251 |
|
// Only continue if user is a 'global' Admin |
| 252 |
|
if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
| 253 |
|
return false; |
| 254 |
|
} |
| 255 |
|
|
| 256 |
|
// If source is not a directory stop processing |
| 257 |
|
if (!is_dir($src)) { |