Index: branches/main/admin/interface/version.php
===================================================================
--- branches/main/admin/interface/version.php	(revision 27)
+++ branches/main/admin/interface/version.php	(revision 28)
@@ -39,12 +39,12 @@
 
 /* -------------------------------------------------------- */
 // Must include code to stop this file being accessed directly
-if (!defined('WB_PATH')) { header("HTTP/1.0 404 Not Found"); flush(); }
+if (!defined('SYSTEM_RUN')) { header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); echo '404 File not found'; flush(); exit;}
 /* -------------------------------------------------------- */
 if (!defined('VERSION_LOADED')) {
     $sInfo = '
         VERSION  = "2.10.1-dev"
-        REVISION = "27"
+        REVISION = "28"
         SP       = ""
     ';
     foreach (parse_ini_string($sInfo) as $item=>$value) {
Index: branches/main/include/phplib/FtanTrait.php
===================================================================
--- branches/main/include/phplib/FtanTrait.php	(nonexistent)
+++ branches/main/include/phplib/FtanTrait.php	(revision 28)
@@ -0,0 +1,51 @@
+<?php
+
+/*
+ * Copyright (C) 2017 Manuela v.d.Decken <manuela@isteam.de>
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT OR THIS HEADER
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License 2 for more details.
+ *
+ * You should have received a copy of the GNU General Public License 2
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+/**
+ * Description of FtanTrait
+ *
+ * @package      Vendor_Phplib
+ * @copyright    Manuela v.d.Decken <manuela@isteam.de>
+ * @author       Manuela v.d.Decken <manuela@isteam.de>
+ * @license      GNU General Public License 2.0
+ * @version      0.0.1
+ * @revision     $Id$
+ * @since        File available since 11.11.2017
+ * @deprecated   no / since 0000/00/00
+ * @description  xxx
+ */
+//declare(strict_types = 1);
+//declare(encoding = 'UTF-8');
+
+/**
+ * short description of trait
+ */
+trait FtanTrait
+{
+    public function set_ftan($aFtan)
+    {
+        $aResult = [
+            'FTAN_NAME'  => $aFtan['name'],
+            'FTAN_VALUE' => $aFtan['value']
+        ];
+        if (isset($aFtan['remain'])) { $aResult['FTAN_REMAIN'] = $aFtan['remain']; }
+        if (isset($aFtan['previous'])) { $aResult['FTAN_PREVIOUS'] = $aFtan['previous']; }
+        $this->set_var($aResult);
+    }
+}

Property changes on: branches/main/include/phplib/FtanTrait.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Index: branches/main/include/phplib/template.inc
===================================================================
--- branches/main/include/phplib/template.inc	(revision 27)
+++ branches/main/include/phplib/template.inc	(revision 28)
@@ -67,8 +67,13 @@
  * Ticket #812 depricated Fix 2009/11/25
  */
 
+if (is_readable(__DIR__.'/FtanTrait.php') and !trait_exists('\FtanTrait', false)) {
+    include __DIR__.'/FtanTrait.php';
+}
+
 class Template
 {
+    use \FtanTrait;
  /**
   * Serialization helper, the name of this class.
   *
