List Info

Thread: link.php




link.php
user name
2006-12-05 22:03:05
Update of /var/cvs/Geeklog-2.x/Geeklog-2.x/plugins/link
In directory iowaoutdoors:/tmp/cvs-serv15237/plugins/link

Modified Files:
	link.php LinkSoap.php 
Log Message:


Index: link.php
============================================================
=======
RCS file:
/var/cvs/Geeklog-2.x/Geeklog-2.x/plugins/link/link.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** link.php	7 Jun 2006 04:06:21 -0000	1.11
--- link.php	5 Dec 2006 22:03:03 -0000	1.12
***************
*** 3,18 ****
  /* Reminder: always indent with 4 spaces (no tabs). */
  
! /**
!  * Geeklog 2
!  *
!  * License Details To Be Determined
!  *
!  */
! require_once 'PluginInterface.php';
! 
! /**
!  * Abstract plugin class
!  */
! require_once 'Plugin.php';
  
  /**
--- 3,8 ----
  /* Reminder: always indent with 4 spaces (no tabs). */
  
! // Initialize category log
!
Geeklog_Log::registerLogger(Geeklog_Config::getValue('logFil
e','link'), 'link');
  
  /**
***************
*** 124,131 ****
      {
      	// Initialize logging
! 		$logger = &Geeklog_Log::getLogger('link');
!     	$logger->log("Link plugin processing
request", PEAR_LOG_DEBUG);
      	foreach ($urlArgs as $arg) {
!     		$logger->log("Got argument $arg",
PEAR_LOG_DEBUG);
      	}
      	
--- 114,120 ----
      {
      	// Initialize logging
! 		Geeklog_Log::log('Link plugin processing request',
'link');
      	foreach ($urlArgs as $arg) {
!     		Geeklog_Log::log("Got argument $arg",
'link');
      	}
      	
***************
*** 133,141 ****
          $pluginPath =
Geeklog_Config::getValue('path_plugins') . $urlArgs[0] .
'/';
          $configData = $pluginPath . 'mvcconfig.xml';
!         $controller = new MVCnPHP_Controller($configData,
MVC_XML);
!        
$controller->setBaseURL(Geeklog_Config::getValue('site_ur
l'));
!         $controller->setViewDir($pluginPath .
'views/');
!         $controller->setCommandDir($pluginPath .
'commands/');
!         
          // Process the request
          $controller->processRequest($urlArgs);
--- 122,127 ----
          $pluginPath =
Geeklog_Config::getValue('path_plugins') . $urlArgs[0] .
'/';
          $configData = $pluginPath . 'mvcconfig.xml';
!         $controller = new
Geeklog_MVCnPHP_Controller(Geeklog_Config::getValue('mvc_opt
ions','link'));
!                 
          // Process the request
          $controller->processRequest($urlArgs);

Index: LinkSoap.php
============================================================
=======
RCS file:
/var/cvs/Geeklog-2.x/Geeklog-2.x/plugins/link/LinkSoap.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** LinkSoap.php	13 Aug 2006 04:47:13 -0000	1.3
--- LinkSoap.php	5 Dec 2006 22:03:03 -0000	1.4
***************
*** 73,77 ****
          if (!self::hasPrivilege($user, $privArray)) {
              $msg = 'User is missing a required privilege
for this operation.';
!             self::getLogger()->log($msg, PEAR_LOG_ERR);
              throw new Exception($msg);
          }
--- 73,77 ----
          if (!self::hasPrivilege($user, $privArray)) {
              $msg = 'User is missing a required privilege
for this operation.';
!             Geeklog_Log::log($msg, 'link',
Zend_Log::LEVEL_ERROR);
              throw new Exception($msg);
          }

_______________________________________________
geeklog2-cvs mailing list
geeklog2-cvslists.geeklog.net
http://lists.geeklog.net/mailman/listinfo/geeklog2-cvs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )