Beispiel #1
0
 /**
  * Search and register all non loaded compatible modules
  */
 private function extend_module($plugins = null)
 {
     if (!$plugins) {
         $plugins = $this->get_plugins($this->pRoot);
     }
     foreach ($plugins as $plugin) {
         if (!parent::g_mod($plugin)) {
             if (file_exists($this->pRoot . $plugin . DIRECTORY_SEPARATOR . 'cartpay.php')) {
                 if (class_exists('plugins_' . $plugin . '_cartpay')) {
                     $this->register($plugin);
                 }
             }
         } else {
             if (!file_exists($this->pRoot . $plugin . DIRECTORY_SEPARATOR . 'cartpay.php') || !class_exists('plugins_' . $plugin . '_cartpay')) {
                 $this->unregister($plugin);
             } else {
                 $this->u_register($plugin);
             }
         }
     }
 }