TYPO3 CMS  TYPO3_7-6
adodb-encrypt-secret.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4 @version v5.20.3 01-Jan-2016
5 @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
6 @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
7  Contributed by Ross Smith (adodb@netebb.com).
8  Released under both BSD license and Lesser GPL library license.
9  Whenever there is any discrepancy between the two licenses,
10  the BSD license will take precedence.
11  Set tabs to 4 for best viewing.
12 
13 */
14 
15 @define('HORDE_BASE', dirname(dirname(dirname(__FILE__))) . '/horde');
16 
17 if (!is_dir(HORDE_BASE)) {
18  trigger_error(sprintf('Directory not found: \'%s\'', HORDE_BASE), E_USER_ERROR);
19  return 0;
20 }
21 
22 include_once HORDE_BASE . '/lib/Horde.php';
23 include_once HORDE_BASE . '/lib/Secret.php';
24 
36  function write($data, $key) {
37  return Secret::write($key, $data);
38  }
39 
42  function read($data, $key) {
43  return Secret::read($key, $data);
44  }
45 
46 }
47 
48 return 1;
if(!defined('ADODB_ERROR_HANDLER_TYPE')) define('ADODB_ERROR_HANDLER_TYPE' E_USER_ERROR
const HORDE_BASE