@@ 91-93 (lines=3) @@ | ||
88 | public static function deleteDirectory($src) |
|
89 | { |
|
90 | // Only continue if user is a 'global' Admin |
|
91 | if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
|
92 | return false; |
|
93 | } |
|
94 | ||
95 | $success = true; |
|
96 | // remove old files |
|
@@ 139-141 (lines=3) @@ | ||
136 | public static function rrmdir($src) |
|
137 | { |
|
138 | // Only continue if user is a 'global' Admin |
|
139 | if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
|
140 | return false; |
|
141 | } |
|
142 | ||
143 | // If source is not a directory stop processing |
|
144 | if (!is_dir($src)) { |
|
@@ 177-179 (lines=3) @@ | ||
174 | public static function rmove($src, $dest) |
|
175 | { |
|
176 | // Only continue if user is a 'global' Admin |
|
177 | if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
|
178 | return false; |
|
179 | } |
|
180 | ||
181 | // If source is not a directory stop processing |
|
182 | if (!is_dir($src)) { |
|
@@ 219-221 (lines=3) @@ | ||
216 | public static function rcopy($src, $dest) |
|
217 | { |
|
218 | // Only continue if user is a 'global' Admin |
|
219 | if (!($GLOBALS['xoopsUser'] instanceof XoopsUser) || !$GLOBALS['xoopsUser']->isAdmin()) { |
|
220 | return false; |
|
221 | } |
|
222 | ||
223 | // If source is not a directory stop processing |
|
224 | if (!is_dir($src)) { |