| 517 | | $thedir= @ opendir("modules"); |
| 518 | | |
| 519 | | while($entry = readdir($thedir)){ |
| 520 | | |
| 521 | | if($entry != "." && $entry != ".." && $entry != "base" && $entry != "sample" && is_dir("modules/".$entry)){ |
| 522 | | |
| 523 | | if(file_exists("modules/".$entry."/install") && is_dir("modules/".$entry."/install")){ |
| 524 | | |
| 525 | | $error = new appError(-354,"You must remove the install directory and all modules' install directories before phpBMS can run.","Module '".$entry."' Install Directory Present",true,true,true,$errorFormat); |
| | 517 | if(file_exists("modules") && is_dir("modules")){ |
| | 518 | |
| | 519 | $thedir = @ opendir("modules"); |
| | 520 | |
| | 521 | while($entry = readdir($thedir)){ |
| | 522 | |
| | 523 | if($entry != "." && $entry != ".." && $entry != "base" && $entry != "sample" && is_dir("modules/".$entry)){ |
| | 524 | |
| | 525 | if(file_exists("modules/".$entry."/install") && is_dir("modules/".$entry."/install")){ |
| | 526 | |
| | 527 | $error = new appError(-354,"You must remove the install directory and all modules' install directories before phpBMS can run.","Module '".$entry."' Install Directory Present",true,true,true,$errorFormat); |
| | 528 | |
| | 529 | }//endif |