rendered paste body--- gmail.php 2006-10-01 21:14:56.000000000 -0400
+++ uncaal.php 2006-11-22 09:34:21.000000000 -0500
@@ -1,6 +1,6 @@
<?php
/**
-* @version $Id: gmail.php 5261 2006-10-02 01:14:56Z eddiea $
+* @version $Id: $
* @package Joomla
* @subpackage JFramework
* @copyright Copyright (C) 2005 - 2006 Open Source Matters. All rights reserved.
@@ -10,19 +10,21 @@
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
+*
+* This plugin is copied largely from the GMail sample plugin.
*/
jimport('joomla.application.plugin.helper');
/**
- * GMail JAuthenticate Plugin
+ * UNC AAL JAuthenticate Plugin
*
- * @author Samuel Moffatt <pasamio@gmail.com>
+ * @author Kevin Otte <kevin_otte@unc.edu>
* @package Joomla
* @subpackage JFramework
* @since 1.5
*/
-class JAuthenticateGMail extends JPlugin {
+class JAuthenticateUNCAAL extends JPlugin {
/**
* Constructor
@@ -34,7 +36,7 @@
* @param object $subject The object to observe
* @since 1.5
*/
- function JAuthenticateGMail(& $subject) {
+ function JAuthenticateUNCAAL(& $subject) {
parent::__construct($subject);
}
@@ -63,11 +65,12 @@
}
// load plugin parameters
- $plugin =& JPluginHelper::getPlugin('authentication', 'gmail');
+ $plugin =& JPluginHelper::getPlugin('authentication', 'uncaal');
$pluginParams = new JParameter( $plugin->params );
- $return = new JAuthenticateResponse('gmail');
+ $return = new JAuthenticateResponse('uncaal');
- $curl = curl_init("https://mail.google.com/gmail/feed/atom");
+ // Change this to a different protected URL later on
+ $curl = curl_init("https://intranet.lib.unc.edu/");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
//curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);