Permalink
Browse files

Merge pull request #253 from tarasfrompir/master

Исправлено для изменения типа Поля ЛОГО
  • Loading branch information...
T-REX-XP committed Aug 23, 2018
2 parents 0cf52a3 + 01abfb0 commit f6d4408f8fb21bd6c0c0a45ed816a630fd58a012
@@ -141,6 +141,9 @@
deleteDirectory(DIR_MODULES.'/ssdp_finder/upnp/vendor/jalder/upnp/examples');
deleteDirectory(DIR_MODULES.'/ssdp_finder/upnp/vendor/jalder/upnp/tests');
// исправлено для измениения типа поля Логотипа
SQLExec("ALTER TABLE `ssdp_devices` CHANGE `LOGO` `LOGO` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''");
// function of delete directory
@@ -165,4 +168,4 @@ function deleteDirectory($dir) {
}
return rmdir($dir);
}
}
@@ -174,6 +174,10 @@ function admin(&$out) {
$this->clear_trash($this->id);
$this->redirect("?");
}
if ($this->view_mode=='update_methods') {
$this->update_methods($this->id);
$this->redirect("?");
}
}
}
@@ -188,6 +192,8 @@ function admin(&$out) {
function usual(&$out) {
$this->admin($out);
}
/**
* ssdp_devices search
*
@@ -196,9 +202,28 @@ function usual(&$out) {
function search_ssdp_devices(&$out) {
require(DIR_MODULES.$this->name.'/ssdp_devices_search.inc.php');
}
/**
* ssdp_devices scan
*
* @access public
*/
function scan_ssdp_devices(&$out) {
require(DIR_MODULES.$this->name.'/ssdp_devices_scan.inc.php');
}
/**
* ssdp_devices scan
*
* @access public
*/
function update_methods(&$out) {
require(DIR_MODULES.$this->name.'/update_methods.inc.php');
}
/**
* get local IP
*
@@ -0,0 +1 @@
<?php
@@ -11,10 +11,16 @@
<img src="../templates/ssdp_finder/img/ssdp_finder.png" width="30" height="30">
&nbsp;&nbsp;&nbsp;
<a href="#" class="btn btn-default" onClick="$('#api_settings').toggle();return false;">
<i class="glyphicon glyphicon-cog"></i> <#LANG_SETUP#></a>
<i class="glyphicon glyphicon-cog"></i>
<#LANG_SETUP#>
</a>
<a class="btn btn-default" href="?view_mode=clear_trash" onClick="return confirm('Are you sure? Please confirm.')">
<i class="glyphicon glyphicon-trash"></i>
<#LANG_SSDP_CLEARMODULE#>
</a>
<a class="btn btn-default" href="?view_mode=update_methods" onClick="return confirm('Are you sure? Please confirm.')">
<i class="glyphicon glyphicon-retweet"></i>
Обновить методы
</a>
</div>

0 comments on commit f6d4408

Please sign in to comment.