MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
Deletion of directory "results"
Current time: 01-18-2021, 12:15 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deletion of directory "results"
12-30-2014, 02:17 AM
Post: #1
Deletion of directory "results"
When I run a server only as a relay test server and the "results" directory is empty, then the "delete.php" script, not only removes the "relay" subdirectory and its contents but also removes the "results" directory. To prevent this I did the above change in the "delete.php":

Original code:

// delete empty directories above this one
do {
$testPath = rtrim($testPath, "/\\");
$testPath = dirname($testPath);
rmdir($testPath);
} while( strpos($testPath, 'relay') );


changed to:

// delete empty directories above this one
while(strpos($testPath, 'relay')) {
$testPath = rtrim($testPath, "/\\");
$testPath = dirname($testPath);
rmdir($testPath);
}
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Deletion of directory "results" - nikosd66 - 12-30-2014 02:17 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)