source: branches/comu-ver2/data/module/adodb/session/adodb-encrypt-secret.php @ 18701

Revision 18701, 1004 bytes checked in by nanasess, 14 years ago (diff)

Copyright の更新(#601)

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id Revision Date
  • Property svn:mime-type set to text/x-httpd-php
Line 
1<?php
2
3/*
4v4.992 10 Nov 2009  (c) 2000-2010 John Lim (jlim#natsoft.com). 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.
10
11*/
12
13@define('HORDE_BASE', dirname(dirname(dirname(__FILE__))) . '/horde');
14
15if (!is_dir(HORDE_BASE)) {
16    trigger_error(sprintf('Directory not found: \'%s\'', HORDE_BASE), E_USER_ERROR);
17    return 0;
18}
19
20include_once HORDE_BASE . '/lib/Horde.php';
21include_once HORDE_BASE . '/lib/Secret.php';
22
23/**
24
25NOTE: On Windows 2000 SP4 with PHP 4.3.1, MCrypt 2.4.x, and Apache 1.3.28,
26the session didn't work properly.
27
28This may be resolved with 4.3.3.
29
30 */
31class ADODB_Encrypt_Secret {
32    /**
33     */
34    function write($data, $key) {
35        return Secret::write($key, $data);
36    }
37
38    /**
39     */
40    function read($data, $key) {
41        return Secret::read($key, $data);
42    }
43
44}
45
46return 1;
47
48?>
Note: See TracBrowser for help on using the repository browser.