Friday 12 March 2004 12:11:23 pm
incase anybody cares heres how i got it to work
<?php
include_once( "kernel/classes/datatypes/ezuser/ezuser.php" );
include_once( 'lib/ezutils/classes/ezini.php' ); include_once( 'tt2/conn/ttapi.class.php' );
$user =& eZUser::currentUser();
$contentObject =& eZContentObject::fetch( $user->attribute( 'contentobject_id' ) );
$version =& $contentObject->currentVersion();
$datamap =& $version->DataMap(); $tramsID =& $datamap['trams_id']->content(); ob_end_clean();
$cls = new ttapi();
if($tramsID == -1)
$cls->conn_agent( 'admin' );
elseif(($tramsID == -2))
eZExecution::cleanExit();
else $cls->conn_agent( $tramsID, $header );
eZExecution::cleanExit(); ?>
|