"TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/adodb/adodb/session/adodb-encrypt-secret.php Source File", "datetime" => "Sat Dec 2 19:22:26 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
00001 <?php 00002 00003 /* 00004 V4.90 8 June 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved. 00005 Contributed by Ross Smith (adodb@netebb.com). 00006 Released under both BSD license and Lesser GPL library license. 00007 Whenever there is any discrepancy between the two licenses, 00008 the BSD license will take precedence. 00009 Set tabs to 4 for best viewing. 00010 00011 */ 00012 00013 @define('HORDE_BASE', dirname(dirname(dirname(__FILE__))) . '/horde'); 00014 00015 if (!is_dir(HORDE_BASE)) { 00016 trigger_error(sprintf('Directory not found: \'%s\'', HORDE_BASE), E_USER_ERROR); 00017 return 0; 00018 } 00019 00020 include_once HORDE_BASE . '/lib/Horde.php'; 00021 include_once HORDE_BASE . '/lib/Secret.php'; 00022 00031 class ADODB_Encrypt_Secret { 00034 function write($data, $key) { 00035 return Secret::write($key, $data); 00036 } 00037 00040 function read($data, $key) { 00041 return Secret::read($key, $data); 00042 } 00043 00044 } 00045 00046 return 1; 00047 00048 ?>