Skip to content
Permalink
Browse files

Merge pull request #548 from tarasfrompir/patch-2

Update terminals.class.php
  • Loading branch information...
sergejey committed May 10, 2019
2 parents bcc6e51 + 14588c7 commit fd0f34bd564c400073fc5dd376bb74a2bd06b94a
Showing with 10 additions and 2 deletions.
  1. +10 −2 lib/terminals.class.php
@@ -111,7 +111,15 @@ function getMajorDroidTerminals($limit = -1, $order = 'ID', $sort = 'ASC') {
}
return $terminals;
}
// Get terminals by CANTTS
function getTerminalsByCANTTS($order = 'ID', $sort = 'ASC') {
$sqlQuery = "SELECT * FROM `terminals` WHERE `CANTTS` = '".DBSafe('1')."' ORDER BY `".DBSafe($order)."` ".DBSafe($sort);
if(!$terminals = SQLSelect($sqlQuery)) {
$terminals = array(NULL);
}
return $terminals;
}
// Get local ip
function getLocalIp() {
global $local_ip_address_cached;
if (isset($local_ip_address_cached)) {
@@ -133,4 +141,4 @@ function getLocalIp() {
}
}
return $local_ip_address;
}
}

0 comments on commit fd0f34b

Please sign in to comment.
You can’t perform that action at this time.