protected function checkAPP($appinfo) { if (!CheckConfig::isChars($appinfo['appname'])) { $this->error[] = "APPNAME不允许特殊字符"; } if (!is_dir($appinfo['apppath'])) { $this->error[] = "项目目录不正确"; } $file = $_POST['apppath'] . "Conf" . DIRECTORY_SEPARATOR . "config.php"; if (is_readable($file)) { $config = (include $file); if (!is_array($config)) { $this->error[] = "在该目录下找不到Conf目录"; } } else { $this->error[] = "没有找到您的应用的配置文件"; } if ($this->error) { return false; } return true; }