Core.class.php5 703 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. class Core {
  3. public function __construct($p_project=null) {
  4. }
  5. static public function getApp($p_app) {
  6. }
  7. static public function getApps() {
  8. $handle=opendir(Core::getAppsDir());
  9. while ($file = readdir($handle)) {
  10. if ($file != ".." && $file != "." && is_dir(Core::getAppsDir().$file)) {
  11. $ret[] = $file;
  12. }
  13. }
  14. closedir($handle);
  15. return $ret;
  16. }
  17. static public function getAppsDir() {
  18. $Config = INI::getInstance(Filesystem::standardDirFormat(ROOT_DIR,"lib")."Core.ini");
  19. return Filesystem::standardDirFormat(ROOT_DIR,$Config->getValue("Apps","dir"));
  20. }
  21. static public function getUsersDir() {
  22. }
  23. }