From a862f1d6e335c5dc17f52d16c2949f048b0fa2bc Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Fri, 25 Apr 2014 14:02:06 +0000 Subject: [PATCH] configDB - added interface to CommandVersion git-svn-id: https://svn.fhem.de/fhem/trunk@5641 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 6cc8af115..e2a4221f8 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -65,6 +65,8 @@ # # modified _cfgDB_Info to show number of files in db # +# 2014-04-23 - added command fileshow, filemove +# ############################################################################## # @@ -773,6 +775,15 @@ sub cfgDB_Read99() { return $ret; } +sub cfgDB_Fileversion($$) { + my ($file,$ret) = @_; + my $fhem_dbh = _cfgDB_Connect; + my $id = $fhem_dbh->selectrow_array("SELECT line from fhemfilesave where filename = '$file' and line like '%$Id:%'"); + $fhem_dbh->disconnect(); + $ret = ($id) ? $id : $ret; + return $ret; +} + 1; =pod