Пример #1
0
/*
 *  © CryptoBlackJack
 *  
 *  
 *  
*/
header('X-Frame-Options: DENY');
$init = true;
include '../../inc/db-conf.php';
include '../../inc/wallet_driver.php';
include '../../inc/functions.php';
if (empty($_GET['_unique']) || mysql_num_rows(mysql_query("SELECT `id` FROM `players` WHERE `hash`='" . prot($_GET['_unique']) . "' LIMIT 1")) == 0) {
    exit;
}
$player = mysql_fetch_array(mysql_query("SELECT * FROM `players` WHERE `hash`='" . prot($_GET['_unique']) . "' LIMIT 1"));
validateAccess($player['id']);
$settings = mysql_fetch_array(mysql_query("SELECT * FROM `system` WHERE `id`=1 LIMIT 1"));
$gD_q = mysql_query("SELECT * FROM `games` WHERE `ended`=0 AND `player`={$player['id']} LIMIT 1");
if (mysql_num_rows($gD_q) == 0) {
    exit;
}
$gameData = mysql_fetch_array($gD_q);
$dealer['cards'] = array();
foreach (unserialize($gameData['dealer_deck']) as $card) {
    $dealer['cards'][] = explode('_', $card);
}
$dealer['cards'][1][0] = '-';
$dealer['cards'][1][1] = '-';
$player_['cards'] = array();
foreach (unserialize($gameData['player_deck']) as $card) {
    $player_['cards'][] = explode('_', $card);
Пример #2
0
{
    $isOpenAccess = false;
    foreach ($openAccess as $path) {
        if (str_replace(DS, '', strrchr(dirname(__FILE__), DS)) == 'essentials' && stripos($executed, $path) !== false) {
            $isOpenAccess = true;
            break;
        }
    }
    if ($isOpenAccess) {
        #TODO
    } else {
        if (isset($_SESSION['user_id'])) {
            if (isset($_GET['secure_opf_code'])) {
                if (!$ESS_essentials->isOwnerOnMod($ESS_essentials->unCrypNumbers($_GET['secure_opf_code']))) {
                    die(showErrorAccess(OPF_myLang::getPhrase('OPF_ACCESS_NOT_PERMITED_ERROR'), OPF_myLang::getPhrase('OPF_ACCESS_NOT_PERMITED_DETAIL')));
                }
            } else {
                die(showErrorAccess(OPF_myLang::getPhrase('OPF_ACCESS_NOT_VERIFY_ERROR'), OPF_myLang::getPhrase('OPF_ACCESS_NOT_VERIFY_DETAIL')));
            }
        } else {
            header('Location: ' . $urlRedirect);
        }
    }
}
$ESS_essentials = new ESS_essentials();
if (!isset($_SESSION['register_access'])) {
    $_SESSION['register_access'] = false;
}
$ESS_essentials->registerAccess($_SESSION['register_access']);
validateAccess($_SERVER['REQUEST_URI'], $openAccess, $urlRedirect, $ESS_essentials);