diff --git a/plugins/cas_auth_unl/start.php b/plugins/cas_auth_unl/start.php index 332cf548514bb6f794411442333fb1f32f1f3c07..3f66f9c0bd0254b74d99b784045096ce32e8f836 100644 --- a/plugins/cas_auth_unl/start.php +++ b/plugins/cas_auth_unl/start.php @@ -10,10 +10,11 @@ */ global $CONFIG; - require_once 'peoplefinder/include.php'; - // http://code.google.com/p/simplecas/ - require_once 'SimpleCAS/Autoload.php'; - require_once 'HTTP/Request2.php'; + require_once $CONFIG->url.'mod/cas_auth_unl/peoplefinder/include.php'; + // http://code.google.com/p/simplecas/ + require_once $CONFIG->url.'mod/cas_auth_unl/SimpleCAS/Autoload.php'; + require_once $CONFIG->url.'mod/cas_auth_unl/HTTP/Request2.php'; + function cas_auth_unl_init() { @@ -21,9 +22,9 @@ } - register_action("getemail",true,$CONFIG->pluginspath . "cas_auth_unl/views/default/actions/getemail.php"); - register_action("login",false,$CONFIG->pluginspath. "cas_auth_unl/actions/login.php"); - register_action("logout",false,$CONFIG->pluginspath. "cas_auth_unl/actions/logout.php"); + register_action("getemail",true,$CONFIG->pluginspath."cas_auth_unl/views/default/actions/getemail.php"); + register_action("login",false,$CONFIG->pluginspath."cas_auth_unl/actions/login.php"); + register_action("logout",false,$CONFIG->pluginspath."cas_auth_unl/actions/logout.php"); // Fire up the plugin initialization using the elgg handler register_elgg_event_handler('init','system','cas_auth_unl_init');