예제 #1
0
 public function my_apps_list()
 {
     $dir = glob(PHPOS_APPS_DIR . '*');
     $apps = array();
     foreach ($dir as $app_id) {
         if (is_dir($app_id)) {
             $app_name = basename($app_id);
             $app = new phpos_app();
             $app->set_app_id($app_name);
             $app->load_config();
             if ($app->user_have_access()) {
                 $apps[] = $app_name;
             }
         }
     }
     return $apps;
 }