Refactor Fee Sheet Printing to support an array of patient IDs from the appointment...
[openemr.git] / gacl / adodb / session / adodb-encrypt-secret.php
blobac26dbc8a3a059cf67d0953c6641b548248e5c04
1 <?php
3 /*
4 V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
5 Contributed by Ross Smith (adodb@netebb.com).
6 Released under both BSD license and Lesser GPL library license.
7 Whenever there is any discrepancy between the two licenses,
8 the BSD license will take precedence.
9 Set tabs to 4 for best viewing.
13 @define('HORDE_BASE', dirname(dirname(dirname(__FILE__))) . '/horde');
15 if (!is_dir(HORDE_BASE)) {
16 trigger_error(sprintf('Directory not found: \'%s\'', HORDE_BASE), E_USER_ERROR);
17 return 0;
20 include_once HORDE_BASE . '/lib/Horde.php';
21 include_once HORDE_BASE . '/lib/Secret.php';
23 /**
25 NOTE: On Windows 2000 SP4 with PHP 4.3.1, MCrypt 2.4.x, and Apache 1.3.28,
26 the session didn't work properly.
28 This may be resolved with 4.3.3.
31 class ADODB_Encrypt_Secret {
32 /**
34 function write($data, $key) {
35 return Secret::write($key, $data);
38 /**
40 function read($data, $key) {
41 return Secret::read($key, $data);
46 return 1;