Esempio n. 1
0
 /**
  * 
  */
 public static function loadPlugin()
 {
     // Get name of plugin to use
     $o_config = Configuration::load();
     $vs_plugin_name = $o_config->get('sms_plugin');
     if (!file_exists(__CA_LIB_DIR__ . '/core/Plugins/SMS/' . $vs_plugin_name . '.php')) {
         die("SMS plugin {$vs_plugin_name} does not exist");
     }
     require_once __CA_LIB_DIR__ . '/core/Plugins/SMS/' . $vs_plugin_name . '.php';
     $vs_plugin_classname = 'WLPlugSMS' . $vs_plugin_name;
     SMS::$plugin = new $vs_plugin_classname();
 }