[pLog-svn] r4563 - in plugins/trunk: . unported

oscar at devel.lifetype.net oscar at devel.lifetype.net
Fri Jan 19 12:59:11 GMT 2007


Author: oscar
Date: 2007-01-19 12:59:11 +0000 (Fri, 19 Jan 2007)
New Revision: 4563

Added:
   plugins/trunk/atom.php
Removed:
   plugins/trunk/unported/atom.php
Log:
I forgot to move this file too    


Copied: plugins/trunk/atom.php (from rev 4539, plugins/trunk/unported/atom.php)

Deleted: plugins/trunk/unported/atom.php
===================================================================
--- plugins/trunk/unported/atom.php	2007-01-19 12:44:52 UTC (rev 4562)
+++ plugins/trunk/unported/atom.php	2007-01-19 12:59:11 UTC (rev 4563)
@@ -1,52 +0,0 @@
-<?php
-
-	/**
-	 * atom entry point for plog
-	 */
-	 
-    if (!defined( "PLOG_CLASS_PATH" )) {
-        define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
-    }
-    	 
-	include_once( PLOG_CLASS_PATH."plugins/atom/class/xml/atom/atomserver.class.php" );
-	include_once( PLOG_CLASS_PATH."plugins/atom/class/logger/atomlogger.class.php" );
-    include_once( PLOG_CLASS_PATH."class/config/config.class.php" );
-
-	
-	// some of our settings are in the configuration
-	$config =& Config::getConfig();	
-	
-	AtomLogger::Log( "** Starting **" );
-	AtomLogger::Log( "   Request URI: ".$_SERVER["REQUEST_URI"] );
-	
-	// process the incoming request
-	$server = new AtomServer();
-	$server->processRequest( new AtomRequest());
-	
-	// get the response and send it back to the client
-	$response = $server->getResponse();
-	
-	// this is not good so let's at least show something
-	if( $response == null ) {
-	   // sent the headers only if we are configured to do so
-	   if( !$config->getValue( "atom_dont_set_headers" ))
-		  header( "HTTP 500 Internal Server Error" );
-		  
-		die("Unexpected Atom exception");
-	}
-	
-    // some servers don't like us messing around with headers so let's make it optional
-	if( !$config->getValue( "atom_dont_set_headers" )) {
-	// first send the headers and then the text of the response	
-	   foreach( $response->getHeaders() as $header )
-	       header( $header );
-	       
-	   // send the content type header
-	   header( "Content-Type: ".$response->getContentType());
-	}
-	
-	print( $response->getOutput());
-
-	AtomLogger::Log( "   Response sent: ".$response->getOutput());
-	AtomLogger::Log( "** End **" );
-?>
\ No newline at end of file



More information about the pLog-svn mailing list