function get_icon_for_status($status)
{
    $typyStatusow = get_log_types_from_database();
    foreach ($typyStatusow as $k => $v) {
        if ($v['id'] == $status) {
            return $v['icon_small'];
        }
    }
}
Example #2
0
<?php

use Utils\Database\XDb;
$default_cachestatus_id = 1;
$log_types = array();
$cache_types = array();
$wp_types = array();
$cache_status = array();
$cache_size = array();
// Sachesize-ID selected by default
$default_logtype_id = 1;
// new: get *_types from database
if (!isset($cachetype)) {
    $cachetype = '';
}
$log_types = get_log_types_from_database();
$cache_types = get_cache_types_from_database();
$wp_types = get_wp_types_from_database($cachetype);
$cache_status = get_cache_status_from_database();
$cache_size = get_cache_size_from_database();
function get_log_types_from_database()
{
    $log_types = array();
    $resp = XDb::xSql("SELECT * FROM log_types ORDER BY id ASC");
    while ($row = XDb::xFetchArray($resp)) {
        $log_types[] = $row;
    }
    return $log_types;
}
function get_cache_types_from_database()
{