mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 01:14:19 +00:00
configDB - added interface to CommandVersion
git-svn-id: https://svn.fhem.de/fhem/trunk@5641 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
eb421cdf8b
commit
a862f1d6e3
@ -65,6 +65,8 @@
|
|||||||
#
|
#
|
||||||
# modified _cfgDB_Info to show number of files in db
|
# 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;
|
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;
|
1;
|
||||||
|
|
||||||
=pod
|
=pod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user