Beispiel #1
0
function executeCommand($database, $action, $ArrayValue)
{
    switch ($action) {
        case "insert":
            return insertDataToDb($database, $ArrayValue);
        case "get":
            return getDataFromDb($database, $ArrayValue);
        case "getTotal":
            return getTotalTinnitus($database);
        case "getListOfZips":
            return getListOfZips($database);
    }
}
Beispiel #2
0
function index_license_sc()
{
    $license = getDataFromDb('licenses');
    $parser = new Parser();
    $parser->render(TM_DIR . "/view/indexlicense.php", array('licenses' => $license), true);
}
Beispiel #3
0
function srevicesShortcode()
{
    $box = getDataFromDb('servicesbox');
    $parser = new Parser();
    $parser->render(TM_DIR . "/view/services.php", array('box' => $box[0]), true);
}
Beispiel #4
0
function findTheHit()
{
    $music = getDataFromDb('music');
    $parser = new Parser();
    $parser->render(TM_DIR . '/view/findhits.php', ['music' => $music]);
}
Beispiel #5
0
function partners_sc()
{
    $partners = getDataFromDb('partners');
    $html = "";
    foreach ($partners as $partner) {
        $html .= '<div><a href="' . $partner['link'] . '"><img src="' . $partner['img'] . '" alt="" ></a></div>';
    }
    return $html;
}
Beispiel #6
0
function index_channel_sc()
{
    $channels = getDataFromDb('channels');
    $parser = new Parser();
    $parser->render(ADD_BARON_DIR . "/view/indexchannels.php", array('channels' => $channels), true);
}
Beispiel #7
0
function link_sc()
{
    $links = getDataFromDb('companylinks');
    $html = '';
    foreach ($links as $link) {
        $html .= '<a href="' . $link['link'] . '">' . $link['name'] . '</a> ';
    }
    echo $html;
}