| @@ -210,23 +210,8 @@ | ||
| 210 | 210 | return false; |
| 211 | 211 | } |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | - | |
| 215 | -function wtsec_getConfigs($host_id) | |
| 216 | -{ | |
| 217 | - $config = WTSEC_LIBRARY_WT::getConfigs($host_id); | |
| 218 | - return wtsec_arrayIndex($config['data']['auth']['viewer']['sites']['one']['configs'], 'service'); | |
| 219 | -} | |
| 220 | - | |
| 221 | -function wtsec_arrayIndex($array, $key){ | |
| 222 | - $newArray = []; | |
| 223 | - foreach ($array as $item){ | |
| 224 | - $newArray[$item[$key]] = $item; | |
| 225 | - } | |
| 226 | - return $newArray; | |
| 227 | -} | |
| 228 | - | |
| 229 | 214 | function wtsec_button($label = '', $class = '') |
| 230 | 215 | { |
| 231 | 216 | return '<button class="ww-button ' . $class . '">' . $label . '</button>'; |
| 232 | 217 | } |