From 57e6ea0b8149b1a7d67597ed12ff054e995d7199 Mon Sep 17 00:00:00 2001 From: Eric Rasmussen <erasmussen2@unl.edu> Date: Tue, 26 Jan 2010 23:37:10 +0000 Subject: [PATCH] use local directories rather than PEAR because of lack of access to installing PEAR packages on the live and dev servers --- plugins/cas_auth_unl/start.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/plugins/cas_auth_unl/start.php b/plugins/cas_auth_unl/start.php index 332cf548..3f66f9c0 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'); -- GitLab