Revision 28
Added by Manuela about 7 years ago
branches/main/admin/interface/version.php | ||
---|---|---|
39 | 39 |
|
40 | 40 |
/* -------------------------------------------------------- */ |
41 | 41 |
// Must include code to stop this file being accessed directly |
42 |
if (!defined('WB_PATH')) { header("HTTP/1.0 404 Not Found"); flush(); }
|
|
42 |
if (!defined('SYSTEM_RUN')) { header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); echo '404 File not found'; flush(); exit;}
|
|
43 | 43 |
/* -------------------------------------------------------- */ |
44 | 44 |
if (!defined('VERSION_LOADED')) { |
45 | 45 |
$sInfo = ' |
46 | 46 |
VERSION = "2.10.1-dev" |
47 |
REVISION = "27"
|
|
47 |
REVISION = "28"
|
|
48 | 48 |
SP = "" |
49 | 49 |
'; |
50 | 50 |
foreach (parse_ini_string($sInfo) as $item=>$value) { |
branches/main/include/phplib/FtanTrait.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
/* |
|
4 |
* Copyright (C) 2017 Manuela v.d.Decken <manuela@isteam.de> |
|
5 |
* |
|
6 |
* DO NOT ALTER OR REMOVE COPYRIGHT OR THIS HEADER |
|
7 |
* |
|
8 |
* This program is free software: you can redistribute it and/or modify |
|
9 |
* it under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation, version 2 of the License. |
|
11 |
* |
|
12 |
* This program is distributed in the hope that it will be useful, |
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
* GNU General Public License 2 for more details. |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License 2 |
|
18 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
19 |
*/ |
|
20 |
/** |
|
21 |
* Description of FtanTrait |
|
22 |
* |
|
23 |
* @package Vendor_Phplib |
|
24 |
* @copyright Manuela v.d.Decken <manuela@isteam.de> |
|
25 |
* @author Manuela v.d.Decken <manuela@isteam.de> |
|
26 |
* @license GNU General Public License 2.0 |
|
27 |
* @version 0.0.1 |
|
28 |
* @revision $Id$ |
|
29 |
* @since File available since 11.11.2017 |
|
30 |
* @deprecated no / since 0000/00/00 |
|
31 |
* @description xxx |
|
32 |
*/ |
|
33 |
//declare(strict_types = 1); |
|
34 |
//declare(encoding = 'UTF-8'); |
|
35 |
|
|
36 |
/** |
|
37 |
* short description of trait |
|
38 |
*/ |
|
39 |
trait FtanTrait |
|
40 |
{ |
|
41 |
public function set_ftan($aFtan) |
|
42 |
{ |
|
43 |
$aResult = [ |
|
44 |
'FTAN_NAME' => $aFtan['name'], |
|
45 |
'FTAN_VALUE' => $aFtan['value'] |
|
46 |
]; |
|
47 |
if (isset($aFtan['remain'])) { $aResult['FTAN_REMAIN'] = $aFtan['remain']; } |
|
48 |
if (isset($aFtan['previous'])) { $aResult['FTAN_PREVIOUS'] = $aFtan['previous']; } |
|
49 |
$this->set_var($aResult); |
|
50 |
} |
|
51 |
} |
|
0 | 52 |
branches/main/include/phplib/template.inc | ||
---|---|---|
67 | 67 |
* Ticket #812 depricated Fix 2009/11/25 |
68 | 68 |
*/ |
69 | 69 |
|
70 |
if (is_readable(__DIR__.'/FtanTrait.php') and !trait_exists('\FtanTrait', false)) { |
|
71 |
include __DIR__.'/FtanTrait.php'; |
|
72 |
} |
|
73 |
|
|
70 | 74 |
class Template |
71 | 75 |
{ |
76 |
use \FtanTrait; |
|
72 | 77 |
/** |
73 | 78 |
* Serialization helper, the name of this class. |
74 | 79 |
* |
Also available in: Unified diff
added trait containing new method set_ftan() for phplib