13 |
// $Id$ |
// $Id$ |
14 |
// ----------------------------------------------------------------------------- |
// ----------------------------------------------------------------------------- |
15 |
// $Log$ |
// $Log$ |
16 |
|
// Revision 1.19 2004/06/22 09:18:47 jonen |
17 |
|
// removed debug dumps |
18 |
|
// |
19 |
// Revision 1.17 2004/06/07 16:54:53 joko |
// Revision 1.17 2004/06/07 16:54:53 joko |
20 |
// modified cache-key |
// modified cache-key |
21 |
// added cache-control |
// added cache-control |
251 |
global $site; |
global $site; |
252 |
//print "saving to backend: " . dumpVar($result) . "<br>"; |
//print "saving to backend: " . dumpVar($result) . "<br>"; |
253 |
if(!$this->pObject) { |
if(!$this->pObject) { |
254 |
|
$cache_key = php::CreateGUID() . "_guest"; |
255 |
$rpcinfo = $this->site->configuration->get("rpcinfo"); |
$rpcinfo = $this->site->configuration->get("rpcinfo"); |
256 |
$pObject = mkObject('DesignPattern::RemoteProxy', 'guest', array( key => 1, command => 'createGuestUser', '', remote => 1, rpcinfo => $rpcinfo, cache => array( db => 1, session => 1 ), connect => 1 ) ); |
$pObject = mkObject('DesignPattern::RemoteProxy', $cache_key, array( key => 1, command => 'createGuestUser', '', remote => 1, rpcinfo => $rpcinfo, cache => array( db => 1, session => 1 ), connect => 1 ) ); |
257 |
$response = $pObject->getResult(); |
$response = $pObject->getResult(); |
258 |
} else { |
} else { |
259 |
$response = $this->pObject->backend->send('createGuestUser'); |
$response = $this->pObject->backend->send('createGuestUser'); |