Example #1
0
<?php

@(include_once "set.php");
$game = fetchinfo("value", "info", "name", "current_game");
echo round(fetchinfo("cost", "games", "id", $game), 2);
Example #2
0
<?php

@(include_once "./set.php");
echo fetchinfo("value", "info", "name", "current_game");
Example #3
0
<?php

@(include_once "set.php");
$game = fetchinfo("value", "info", "name", "current_game");
$r = fetchinfo("starttime", "games", "id", $game);
if ($r == 2147483647) {
    die("120");
}
$r += 120 - time();
if ($r < 0) {
    $r = 0;
}
echo $r;
Example #4
0
</p>
									<div class="count" style="margin-top: 2px;">
										<span id="mychance" style="font-size: 25px;  color: #f64141;">0%</span>
									</div>
								</div>
								<span id="mychance">Мин. ставка 3$, максимум предметов 15.</span>
								<br>
								<span id="mychance">Чем выше ставка, тем больше шанс победить.</span>
								<img src="./img/arrow.png" width="18" height="58" style="margin-left: 40px;  margin-top: -30;">
							</div>
						</div>
						<?php 
if (!isset($_SESSION["steamid"])) {
    echo '<div id="add_game"><a class="btwn_game" href="?login">' . $msg[$lang]["ingame"] . '!</a></div>';
} else {
    $token = fetchinfo("tlink", "users", "steamid", $_SESSION["steamid"]);
    if (strlen($token) < 2) {
        echo '<div id="add_game"><a class="btwn_game" href="#" onclick="alert2(\'Укажите ссылку для обмена в настройках!\')">' . $msg[$lang]["ingame"] . '!</a></div>';
    } else {
        echo '<div id="add_game"><a class="btwn_game" href="ССЫЛКА НА ОБМЕН" target=_blank>' . $msg[$lang]["ingame"] . '!</a></div>';
    }
}
?>
						<div class="stuffs promo-cover">
							<ul id="game-sts" style="display: block;">
								<div class="rounditems"></div>
							</ul>
						</div>
						
				
</body>
Example #5
0
File: about.php Project: s-gto/huh
echo $msg[$lang]["fp"];
?>
</p>
						</div>
					</div>

					<h3>Последний победитель</h3>
					<div class="last-winner">

						<?php 
$lastgame = fetchinfo("value", "info", "name", "current_game");
$lastwinner = fetchinfo("userid", "games", "id", $lastgame - 1);
$winnercost = fetchinfo("cost", "games", "id", $lastgame - 1);
$winnerpercent = round(fetchinfo("percent", "games", "id", $lastgame - 1), 1);
$winneravatar = fetchinfo("avatar", "users", "steamid", $lastwinner);
$winnername = fetchinfo("name", "users", "steamid", $lastwinner);
?>
						<div class="visual">
							<img src="<?php 
echo $winneravatar;
?>
" alt="image description" width="109" height="109">
						</div>
						<h3 style="border-radius: 0px 0px 0px 0px;"><?php 
echo $winnername;
?>
</h3>
						<ul>
							<li>
								<span class="val"><?php 
echo $msg[$lang]["win"];
Example #6
0
    $ila++;
}
for ($j = 0; $j < $ila - 1; $j++) {
    for ($i = 0; $i < $ila - $j - 1; $i++) {
        if ($valuear[$i] > $valuear[$i + 1]) {
            $b = $valuear[$i];
            $valuear[$i] = $valuear[$i + 1];
            $valuear[$i + 1] = $b;
            $cc = $itemsar[$i];
            $itemsar[$i] = $itemsar[$i + 1];
            $itemsar[$i + 1] = $cc;
        }
    }
}
mysql_query("UPDATE users SET `won`=`won`+'{$jackpotcost}', `games`=`games`+1 WHERE `steamid`='{$winuser}'");
$rake = fetchinfo("value", "info", "name", "rake");
$rake += $rake * 0.33;
if (stristr($winname, "SITENAME") != NULL) {
    $rake -= 5 / 100;
}
$rake /= 100;
$rake *= $jackpotcost;
for ($i = $ila - 1; $i >= 0; $i--) {
    if ($valuear[$i] < $rake) {
        mysql_query("INSERT INTO `rakeitems` (`item`) VALUES ('" . $itemsar[$i] . "')");
        $itemsar[$i] = "";
        $rake -= $valuear[$i];
    }
}
$boolv = false;
for ($i = 0; $i < $ila; $i++) {
Example #7
0
File: items.php Project: s-gto/huh
$lang = $_COOKIE["lang"];
$gamenum = fetchinfo("value", "info", "name", "current_game");
if (!isset($_SESSION["steamid"])) {
    $admin = 0;
} else {
    $admin = fetchinfo("admin", "users", "steamid", $_SESSION["steamid"]);
}
$ls = 0;
$rs = mysql_query("SELECT * FROM `game" . $gamenum . "` GROUP BY `userid` ORDER BY `id` DESC");
if (mysql_num_rows($rs) == 0) {
} else {
    while ($row = mysql_fetch_array($rs)) {
        $ls++;
        $avatar = $row["avatar"];
        $userid = $row["userid"];
        $username = fetchinfo("name", "users", "steamid", $userid);
        $rs2 = mysql_query("SELECT SUM(value) AS value FROM `game" . $gamenum . "` WHERE `userid`='{$userid}'");
        $row = mysql_fetch_assoc($rs2);
        $sumvalue = $row["value"];
        if ($admin > 0) {
            $admtext = "<a style=\"color: #FF0000\" href=\"setwinner.php?user={$userid}\"> (Победитель)</a>";
        } else {
            $admtext = "";
        }
        echo '<li style="  width: 864px;">
		<div class="head" style="margin-top: 10px; width: 100%; margin-bottom: 10px;">
		<div class="icon">
		<img src="' . $avatar . '" width="50px" height"50px"="">
		</div>
		<div class="title" style="font-size: 18pt;">
		<a href="http://steamcommunity.com/profiles/' . $userid . '" target="_blank" style="font-size: 20px; text-decoration: none; color: #FF3939;">' . $username . '</a> ' . $msg["en"]["deposit"] . ' <span style="color: #FF3939;">' . round($sumvalue, 2) . '$</span>' . $admtext . '
Example #8
0
<?php

@(include_once "./set.php");
$game = fetchinfo("value", "info", "name", "current_game");
$itgave = fetchinfo("itemsnum", "games", "id", $game);
$widme = $itgave * 13;
echo $widme;
Example #9
0
<?php

@(include_once "set.php");
$game = fetchinfo("value", "info", "name", "current_game");
echo fetchinfo("itemsnum", "games", "id", $game);
Example #10
0
<?php

@(include_once 'set.php');
@(include_once 'steamauth/steamauth.php');
if (!isset($_SESSION["steamid"])) {
    die("0%");
}
$lastgame = fetchinfo("value", "info", "name", "current_game");
$steam = $_SESSION["steamid"];
$bank = fetchinfo("cost", "games", "id", $lastgame);
if ($bank == 0) {
    die("0%");
}
$result = mysql_query("SELECT SUM(value) AS value FROM `game{$lastgame}` WHERE `userid`='{$steam}'");
$row = mysql_fetch_assoc($result);
die(round($row["value"] * 100 / $bank, 1) . "%");
Example #11
0
<?php

@(include_once "set.php");
echo fetchinfo("value", "info", "name", "state");