Ejemplo n.º 1
0
            $set_style = "bgcolor='#FFF'";
        } else {
            if ($card['rarity'] == 'Rare') {
                $set_style = "bgcolor='#198EFF'";
            } else {
                if ($card['rarity'] == 'Epic') {
                    $set_style = "bgcolor='#AB48EE'";
                } else {
                    if ($card['rarity'] == 'Legendary') {
                        $set_style = "bgcolor='#ff6b00'";
                    }
                }
            }
        }
    }
    $image_url = 'https://s3-us-west-2.amazonaws.com/hearthstats/cards/' . strtoloweR(str_replace(' ', '-', $card['name'])) . '.png';
    ?>
				<tr <?php 
    echo $set_style;
    ?>
 card_id="<?php 
    echo $card['id'];
    ?>
">
					<td <?php 
    echo $td_style . ">" . $card['mana'];
    ?>
</td>
					<td <?php 
    echo $td_style . "><a class='card_link' href='" . $image_url . "'>" . $card['name'];
    ?>
Ejemplo n.º 2
0
    // special setting to credit unicode SMS the same as normal SMS length
    // for example: 2 unicode SMS (140 chars length) will be deducted as 1 credit just like a normal SMS (160 chars length)
    $result = registry_search($user_config['uid'], 'core', 'user_config', 'enable_credit_unicode');
    $user_config['opt']['enable_credit_unicode'] = (int) $result['core']['user_config']['enable_credit_unicode'];
    if (!$user_config['opt']['enable_credit_unicode']) {
        // global config overriden by user config
        $user_config['opt']['enable_credit_unicode'] = (int) $core_config['main']['enable_credit_unicode'];
    }
}
// override main config with site config for branding purposes distinguished by domain name
$site_config = array();
if (!$core_config['daemon_process'] && $_SERVER['HTTP_HOST']) {
    $s = site_config_getbydomain($_SERVER['HTTP_HOST']);
    if ((int) $s[0]['uid']) {
        $c_site_config = site_config_get((int) $s[0]['uid']);
        if (strtolower($c_site_config['domain']) == strtoloweR($_SERVER['HTTP_HOST'])) {
            $site_config = array_merge($c_site_config, $s[0]);
        }
    }
}
if (!$core_config['daemon_process'] && trim($_SERVER['HTTP_HOST']) && trim($site_config['domain']) && strtolower(trim($_SERVER['HTTP_HOST'])) == strtolower(trim($site_config['domain']))) {
    $core_config['main'] = array_merge($core_config['main'], $site_config);
}
// verify selected themes_module exists
$fn1 = _APPS_PATH_PLUG_ . '/themes/' . core_themes_get() . '/config.php';
$fn2 = _APPS_PATH_PLUG_ . '/themes/' . core_themes_get() . '/fn.php';
if (!(file_exists($fn1) && file_exists($fn2))) {
    logger_print('Fail to load themes ' . core_themes_get(), 1, 'init');
    ob_end_clean();
    die(_('FATAL ERROR') . ' : ' . _('Fail to load themes') . ' ' . core_themes_get());
}