Пример #1
0
function extras_crime()
{
    //Crime, not finished
    global $HTTP_POST_VARS, $userdata, $locale, $settings, $golddata;
    table_top($locale['URG1554']);
    echo $locale['URG1552'];
    echo $locale['URG1553'];
    closetable();
}
Пример #2
0
function donate_self_donate()
{
    global $userdata, $locale, $golddata;
    table_top($locale['urg_donate_128']);
    echo "<table width='100%' cellpadding='5' cellspacing='0' border='0'>\n<tr valign='top'>\n";
    echo "<td style='width: 100%'>";
    $allgold = $golddata['cash'] + $golddata['bank'];
    if ($allgold <= UGLD_SELFDONATE_ALLOW) {
        $autodonate = rand(UGLD_SELFDONATE_MIN, UGLD_SELFDONATE_MAX);
        payuser($userdata['user_id'], $autodonate, 'cash');
        echo sprintf($locale['urg_donate_129'], formatMoney($autodonate));
        pagerefresh('meta', '2', FUSION_SELF . '?op=start');
    } else {
        echo sprintf($locale['urg_donate_130'], formatMoney(UGLD_SELFDONATE_ALLOW), formatMoney($allgold));
        pagerefresh('meta', '2', FUSION_SELF . '?op=start');
    }
    echo "</td>\n";
    echo "</tr>\n</table>\n";
    closetable();
}
Пример #3
0
function member_steal()
{
    //Steal Money
    global $HTTP_POST_VARS, $userdata, $locale, $settings, $golddata;
    //set an amount in case its missed later
    $success = '20';
    table_top($locale['urg_member_103']);
    /*
    First things first.. Can Only steal from users cash amounts never from bank.
    Lots of things can happen here. If steal is good stuff could happen to stealee
    if steal is bad stuff could happen to stealer.
    Maybe we need a jail now to go with this?
    Fail to steal go to jail and jail means loss of all owned stuff?
    */
    //lets trim the useage of this damn thing
    if ($golddata['steal'] < date('Ymd')) {
        global $stealfrom_id, $stealfrom_name, $steal_amount;
        if (isset($_POST['stealfrom']) != '') {
            //there must be something in the steal from box
            $stealfrom = stripinput($_POST['stealfrom']);
            //its not an numewral so select useing the name
            //sort out the name to id situation
            $id_query = dbquery("SELECT g.*, u.user_name as owner_name\n\t\t\t\tFROM " . DB_UG3 . " g\n\t\t\t\tLEFT JOIN " . DB_USERS . " u ON g.owner_id = u.user_id\n\t\t\t\tWHERE user_name = '" . $stealfrom . "'\n\t\t\t\tLIMIT 1");
            //$id_query = dbquery("SELECT * FROM ".DB_UG3." WHERE owner_name='".$stealfrom."' LIMIT 1");
            //$id_result = dbfetch_array($id_query);
            $id_result = dbarray($id_query);
            $stealfrom_id = $id_result['owner_id'];
            $stealfrom_name = $id_result['owner_name'];
            //timer for daily steal only
            $result = dbquery("UPDATE " . DB_UG3 . " SET steal = '" . date('Ymd') . "' WHERE owner_id = '" . $golddata['owner_id'] . "' LIMIT 1");
            $result = dbquery("SELECT g.*, u.user_name as owner_name\n\t\t\t\tFROM " . DB_UG3 . " g\n\t\t\t\tLEFT JOIN " . DB_USERS . " u ON g.owner_id = u.user_id\n\t\t\t\tWHERE owner_id = '" . $stealfrom_id . "'\n\t\t\t\tLIMIT 1");
            //$result = dbquery("SELECT * FROM ".DB_UG3." WHERE owner_id='".$stealfrom_id."' LIMIT 1");
            //ok its all so unfair aint it?
            //so lets play a little
            //if the theif has more money than the selected target
            $target_query = dbquery("SELECT g.*, u.user_name as owner_name\n\t\t\t\tFROM " . DB_UG3 . " g\n\t\t\t\tLEFT JOIN " . DB_USERS . " u ON g.owner_id = u.user_id\n\t\t\t\tWHERE owner_id = '" . $stealfrom_id . "'\n\t\t\t\tLIMIT 1");
            //$target_query = dbquery("SELECT * FROM ".DB_UG3." WHERE owner_id='".$stealfrom_id."' LIMIT 1");
            //$target_result = dbfetch_array($target_query);
            $target_result = dbarray($target_query);
            $targets_total = $target_result['cash'] + $target_result['bank'];
            if ($targets_total < '100' || $targets_total < '') {
                opentable($locale['urg_member_117']);
                echo $locale['urg_member_118'];
                closetable();
                include "footer.php";
                exit;
            }
            $my_total = $golddata['cash'] + $golddata['bank'];
            if ($targets_total < $my_total) {
                //less than theif
                //set the success percentage low
                $success = '10';
            } elseif ($targets_total > $my_total * 2) {
                //more than double of theif
                //set the success percentage low
                $success = '70';
            } elseif ($targets_total > $my_total / 2) {
                //more than half of theif
                //set the success percentage low
                $success = '45';
            } else {
                $success = '35';
            }
            //get a random number between 0 and 100
            $try = rand(0, 100);
            //percentage probability will work on
            //if successfull
            if ($try < $success) {
                // ??% chance of success
                $stealee = getusergold($stealfrom_id, 'cash');
                $steal_amount = rand(0, $stealee);
                //take this money away from stealee...
                takegold2($stealfrom_id, $steal_amount, 'cash');
                payuser($userdata['user_id'], $steal_amount, 'cash');
                if ($steal_amount < 50) {
                    echo $locale['urg_member_119'] . " " . $steal_amount . "!";
                } else {
                    echo $locale['urg_member_120'] . " " . $steal_amount . " " . $locale['urg_member_121'] . " " . $stealfrom_name . "" . $locale['urg_member_122'] . " " . $stealfrom_name . " " . $locale['urg_member_123'];
                }
            } else {
                if ($golddata['cash'] + $golddata['cash'] <= $steal_amount) {
                    $opt = '2';
                } else {
                    $opt = '4';
                }
                //ok its punishment time..
                $punishment_id = rand(0, $opt);
                //grab a random punishment
                if ($punishment_id == 0) {
                    echo $locale['urg_member_124'];
                } elseif ($punishment_id == 1) {
                    //take karma (must be forced to go negative)
                    takegold2($userdata['user_id'], '10', 'karma', 1);
                    echo $locale['urg_member_125'];
                } elseif ($punishment_id == 2) {
                    //take gold (force it)
                    //$fine = $golddata[cash]/2;
                    $fine_amount = rand(0, $golddata['cash'] + $golddata['bank']);
                    takegold2($userdata['user_id'], $fine_amount, 'cash', 1);
                    echo $locale['urg_member_126'] . formatMoney($fine_amount) . "!<br />";
                } elseif ($punishment_id == 3) {
                    //the stealee robs you
                    //$returnsteal = $golddata['cash']/2;
                    //$returnsteal = $golddata['cash'];
                    $returnsteal = $golddata['cash'] + $golddata['bank'];
                    payuser($stealfrom_id, $returnsteal, 'cash');
                    takegold2($userdata['user_id'], $returnsteal, 'cash', '1');
                    echo $stealfrom_name . $locale['urg_member_128'] . formatMoney($returnsteal) . $locale['urg_member_129'];
                } elseif ($punishment_id == 4) {
                    //the stealee robs you
                    //$returnsteal = $golddata['cash']/2;
                    $returnsteal = $golddata['cash'];
                    payuser($stealfrom_id, $returnsteal, 'cash');
                    takegold2($userdata['user_id'], $returnsteal, 'cash', '1');
                    echo $locale['urg_member_127'] . $stealfrom_name . $locale['urg_member_128'] . formatMoney($returnsteal) . $locale['urg_member_129'];
                } else {
                    echo $locale['urg_member_124'];
                }
            }
        } else {
            echo "<form action='index.php' method='post'>\n";
            echo "<table width='100%' cellpadding='3' cellspacing='3' class='tbl-border'>\n<tr valign='top'>\n";
            echo "<td width='100%' colspan='2'><br />" . $locale['urg_member_130'] . "</td>\n";
            echo "</tr>\n<tr valign='top'>\n";
            echo "<td width='100%' colspan='2'><br />" . $locale['urg_member_131'] . "</td>\n";
            echo "</tr>\n<tr valign='top'>\n";
            echo "<td width='100%' colspan='2'><br />" . $locale['urg_member_132'] . "</td>\n";
            echo "</tr>\n<tr class='tbl2'>\n";
            echo "<td><input type='hidden' name='op' value='member_steal' /></td>\n";
            echo "<td>" . $locale['urg_member_133'] . "<input type='text' class='textbox' name='stealfrom' size='50' />\n";
            echo "<a style='cursor:help;' href='javascript:void(window.open(\"findmember.php?title=findmember\",\"\",\"width=350,height=400\"));'>\n";
            echo "<img src='images/find.png' title='" . $locale['urg_member_107'] . "' alt='" . $locale['urg_member_107'] . "' style='border: 0;' />\n";
            echo "</a></td>\n";
            echo "</tr>\n<tr>\n";
            echo "<td colspan='2' align='center'><input class='button' type='submit' value='" . $locale['urg_member_108'] . "' /></td>\n";
            echo "</tr>\n</table>\n";
            echo "</form>";
        }
    } else {
        echo $locale['urg_member_134'];
    }
    closetable();
}
Пример #4
0
function shop_karma()
{
    //Karma
    global $HTTP_POST_VARS, $userdata, $locale, $settings, $golddata;
    /*
    Ok I have heard of karma and someone said its good thing so i figured i would add it here.
    The trouble is i dont really know what it can be used for.
    So i was thinking this could be a post reward thing as well as something you buy.
    anyways since i am not sure for now i havent done much but setup ready for queries etc.
    */
    table_top($locale['urg_shop_155']);
    //<input type='text' name='karmaup' value='5'>
    //$result = dbquery("UPDATE ".DB_PREFIX."user_gold SET karma = karma + ".$_POST['karmaup']." WHERE owner_id = '".$userdata[user_id]."'");
    echo $locale['urg_shop_155'];
    //echo $locale['URG1508'].$_POST['karmaup']."!";
    closetable();
}
Пример #5
0
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* 		MindMaster By StarglowOne for user gold v3+						*/
/* 		Make a bet to recieve a loss or winnings 						*/
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
//locales
if (file_exists(GOLD_GAMES . "mindmaster/locale/" . $settings['locale'] . ".php")) {
    include_once GOLD_GAMES . "mindmaster/locale/" . $settings['locale'] . ".php";
} else {
    include_once GOLD_GAMES . "mindmaster/locale/English.php";
}
//definitions
//define("" , "");
$index = "";
//Basic Required Globals
global $HTTP_POST_VARS, $userdata, $locale, $settings, $golddata;
table_top($locale['mdmr_100']);
session_start();
if (!isset($_SESSION['gamerand'])) {
    $_SESSION['gamerand'] = array();
}
if (!isset($_SESSION['guesstable'])) {
    $_SESSION['guesstable'] = array();
}
if (!isset($_SESSION['answertable'])) {
    $_SESSION['answertable'] = array();
}
if (!isset($_SESSION['won'])) {
    $_SESSION['won'] = 0;
}
echo "<div>" . $locale['mdmr_201'] . "</div>\n";
$colour_table = array('blue_button.gif', 'red_button.gif', 'green_button.gif', 'yellow_button.gif', 'white_button.gif', 'black_button.gif', 'purple_button.gif', 'orange_button.gif');
Пример #6
0
function trade_stop()
{
    //Remove item from trade list
    global $userdata, $locale, $txt;
    if (isset($_POST['id']) && !isNum($_POST['id'])) {
        redirect("index.php");
    }
    table_top($locale['urg_trade_125']);
    $result = dbquery("SELECT ownerid FROM " . DB_UG3_INVENTORY . " WHERE id = '" . $_POST['id'] . "' LIMIT 1");
    $row = dbarray($result);
    if ($row['ownerid'] !== $userdata['user_id']) {
        //trying to steal other person's item
        echo $locale['urg_trade_123'];
    } else {
        $result = dbquery("UPDATE " . DB_UG3_INVENTORY . " SET trading = '0', tradecost = '0' WHERE id = '" . $_POST['id'] . "' LIMIT 1");
        echo $locale['urg_trade_126'];
    }
    pagerefresh('meta', '2', FUSION_SELF . '?op=user_inventory_start');
    closetable();
}
Пример #7
0
<? include $DOCUMENT_ROOT."/config.php";

$MainFolderMenuX=3; 
$MainFolderMenuY=5;

$title = "Клуб Нумизмат | Портфель пользователя ";
include $in."top.php"; 
table_top ("100%", 0, "Регистрация коллекционера", 1);

include_once "config.php";
include "funct.php";

for ($i=1; $i<=sizeof($interest); $i++)
{
	if (${"interest".$i}=="on")
	{
		$interest[$i][1] = 1;
	}
}

$myclass = new Collectors ($collectors, $user, $fio, $email, $url, $city, $city1, $phone, 
	$text, $adress, $interest);

if ($action=="add" and $submit)
{
	$error_number = $myclass->Collectors_add();
	if ($error_number<0)
	{
		$submit = 0;
	} else {
		echo "<b>Данные успешно добавлены</b>
Пример #8
0
include "header.php";
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* 		Coin Game By StarglowOne for user gold v3+						*/
/* 		Make a bet to recieve a loss or winnings 						*/
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
//locales
if (file_exists(GOLD_GAMES . "coingame/locale/" . $settings['locale'] . ".php")) {
    include_once GOLD_GAMES . "coingame/locale/" . $settings['locale'] . ".php";
} else {
    include_once GOLD_GAMES . "coingame/locale/English.php";
}
//definitions
//define("" , "");
//Basic Required Globals
global $HTTP_POST_VARS, $userdata, $locale, $settings, $golddata;
table_top($locale['cnge_100']);
if (isset($_POST['submit'])) {
    $answer = rand(1, 100);
    if ($_POST['submit']) {
        $bet = stripinput($_POST['bet']);
        if ($bet == "") {
            echo "<div align='center'>" . $locale['cnge_200'] . "</div>\n";
            pagerefresh('meta', '3', 'coingame.php');
            closetable();
            include "footer.php";
            exit;
        }
        if (is_float($bet)) {
            echo "<div align='center'>" . $locale['cnge_201'] . "</div>\n";
            pagerefresh('meta', '3', 'coingame.php');
            closetable();
Пример #9
0
function user_settings_save()
{
    //Save the users settings
    global $userdata, $locale;
    $color_value = stripinput($_POST['color_value']);
    $userlevel = stripinput($_POST['userlevel']);
    $error = "";
    if (!preg_match("/^[a-z0-9]+([\\s]{1}[a-z0-9]|[a-z0-9])+\$/i", $userlevel)) {
        $error = $locale['urg_user_114'];
    } else {
        if (UGLD_USERLEVEL_DISALLOW != "") {
            $disallow_levellist = explode(":", UGLD_USERLEVEL_DISALLOW);
            for ($i = 0; $i < count($disallow_levellist); $i++) {
                if ($disallow_levellist[$i] != "") {
                    if (eregi($disallow_levellist[$i], $userlevel)) {
                        $error = $locale['urg_user_115'];
                    }
                }
            }
        }
    }
    if ($error != "") {
        table_top($locale['urg_user_116']);
        echo $error;
        closetable();
        include "footer.php";
        exit;
    }
    dbquery("UPDATE " . DB_UG3 . " SET username_color = '" . $color_value . "', userlevel = '" . $userlevel . "' WHERE owner_id = '" . $userdata['user_id'] . "' LIMIT 1");
    redirect(FUSION_SELF . "?op=user_settings_start");
}
Пример #10
0
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* 		Russian roulette By StarglowOne for user gold v3+						*/
/* 		Make a bet to recieve a loss or winnings, get killed or not						*/
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
//locales
if (file_exists(GOLD_GAMES . "roulette/locale/" . $settings['locale'] . ".php")) {
    include GOLD_GAMES . "roulette/locale/" . $settings['locale'] . ".php";
} else {
    include GOLD_GAMES . "roulette/locale/English.php";
}
//definitions
//define("" , "");
$roulette_images = GOLD_GAMES . 'roulette/images/';
//Basic Required Globals
global $HTTP_POST_VARS, $userdata, $locale, $settings, $golddata;
table_top($locale['rou_100']);
if (isset($_POST['submit'])) {
    if ($_POST['bet'] > 50 or $_POST['bet'] < 5) {
        echo "<div align='center'>\n";
        echo "<h1>" . $locale['rou_209'] . "</h1><br /><br />\n";
        echo "<form name='goback' method='post' action='roulette.php'>\n";
        echo "<table align='center'>\n<tr>\n";
        echo "<td align='center'><input name='play' class='button' type='submit' value='" . $locale['rou_210'] . "' /></td>\n";
        echo "</tr>\n</table>\n";
        echo "</form>\n";
        echo "</div>\n";
    } else {
        echo "<div align='center'>\n";
        echo "<table width='450'>\n";
        $sleeptime = rand(1, 5);
        sleep($sleeptime);
Пример #11
0
function gamble_games()
{
    global $locale;
    $temp = opendir(GOLD_GAMES);
    table_top($locale['urg_gamble_103']);
    echo $locale['urg_gamble_123'] . "<br />" . sprintf($locale['urg_gamble_124'], strtolower(UGLD_GOLDTEXT)) . "<br />" . $locale['urg_gamble_125'] . "<br /><hr /><br />\n";
    while ($folder = readdir($temp)) {
        if (!in_array($folder, array("..", "."))) {
            if (is_dir(GOLD_GAMES . $folder) && file_exists(GOLD_GAMES . $folder . "/play.php")) {
                include GOLD_GAMES . $folder . "/play.php";
                echo "<hr />\n";
            }
        }
    }
    closedir($temp);
    closetable();
}
Пример #12
0
function index()
{
    global $HTTP_POST_VARS, $userdata, $locale, $settings, $golddata;
    table_top($locale['urg_index_100']);
    $rows = 2;
    if (UGLD_BANK_ENABLED) {
        $rows++;
    }
    if (UGLD_DISPLAY_USAGE_INDEX) {
        $rows++;
    }
    echo "<table width='100%' cellpadding='3' cellspacing='3' class='tbl-border'>\n<tr>\n";
    echo "<td align='left' valign='top'><h3>" . sprintf($locale['urg_index_101'], $userdata['user_name']) . "</h3></td>\n";
    echo "<td rowspan='3' align='right' valign='bottom'><img src='" . GOLD_IMAGE . "logo_home.png' alt='logo_home' /></td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td align='left' valign='top'>" . sprintf($locale['urg_index_102'], "<strong>" . formatMoney($golddata['cash']) . "</strong>") . "</td>\n";
    echo "</tr>\n";
    if (UGLD_BANK_ENABLED) {
        echo "<tr><td align='left' valign='top'>" . sprintf($locale['urg_index_103'], UGLD_BANKLINK, "<strong>" . UGLD_BANK_INTEREST . "</strong>", "<strong>" . formatMoney($golddata['bank']) . "</strong>", UGLD_BANKLINK) . "</td></tr>\n";
    }
    if (UGLD_DISPLAY_USAGE_INDEX) {
        echo "<tr><td align='left' valign='top'>" . panel_itemdisplay() . "</td></tr>\n";
    }
    echo "</table><br />\n";
    //This is a double sided table to contain some panels
    echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>\n<tr>\n";
    echo "<td style='vertical-align: top; width: 48%;'>\n";
    //Top Ten Chash
    openside($locale['urg_index_105']);
    echo "<table width='100%' cellpadding='5' cellspacing='1' border='0'>\n<tr>\n";
    echo "<td valign='top' width='100%'>";
    echo panel_topten_cash();
    echo "<br /></td></tr></table>\n";
    closeside();
    //Top Ten Chips
    openside($locale['urg_index_106']);
    echo "<table width='100%' cellpadding='5' cellspacing='1' border='0'>\n<tr>\n";
    echo "<td valign='top' width='100%'>\n";
    echo panel_topten_chips();
    echo "<br /></td></tr></table>\n";
    closeside();
    echo "</td>\n";
    echo "<td  valign='top' width='1%'></td>\n";
    echo "<td valign='top' width='48%'>\n";
    //Top Ten Bank
    if (UGLD_BANK_ENABLED) {
        openside($locale['urg_index_107']);
        echo "<table width='100%' cellpadding='5' cellspacing='1' border='0'>\n<tr>\n";
        echo "<td valign='top' width='100%'>\n";
        echo panel_topten_bank();
        echo "<br /></td></tr></table>\n";
        closeside();
    }
    //Top Ten Karma
    openside($locale['urg_index_108']);
    echo "<table width='100%' cellpadding='5' cellspacing='1' border='0'>\n<tr>\n";
    echo "<td valign='top' width='100%'>\n";
    echo panel_topten_karma();
    echo "<br /></td></tr></table>\n";
    closeside();
    echo "</td>\n</tr>\n</table>\n";
    closetable();
}
Пример #13
0
function bank_transactions()
{
    //View all the transactions for the user
    global $locale, $golddata, $userdata;
    table_top($locale['urg_bank_124']);
    echo "<table width='100%' cellpadding='3' cellspacing='3' class='tbl-border'>\n<tr>\n";
    echo "<td><strong>" . $locale['urg_bank_129'] . "</strong></td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td>\n";
    include GOLD_CHARTS . "income_chart.php";
    echo "</td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td><strong>" . $locale['urg_bank_130'] . "</strong></td>\n";
    echo "</tr>\n<tr>\n";
    echo "<td>\n";
    include GOLD_CHARTS . "outcome_chart.php";
    echo "</td>\n";
    echo "</tr>\n</table>\n";
    closetable();
}
Пример #14
0
<?php

include "header.php";
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* 		Site Lotto By AusiMods for user gold v3+						*/
/* 		Pick 6 numbers to recieve a loss or winnings						*/
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
//locales
if (file_exists(GOLD_GAMES . "sitelotto/locale/" . $settings['locale'] . ".php")) {
    include GOLD_GAMES . "sitelotto/locale/" . $settings['locale'] . ".php";
} else {
    include GOLD_GAMES . "sitelotto/locale/English.php";
}
//Basic Required Globals
global $HTTP_POST_VARS, $userdata, $locale, $settings, $golddata;
table_top($locale['selo_100']);
$winning_numbers = array("0" => "", "1" => "", "2" => "", "3" => "", "4" => "", "5" => "", "6" => "");
$player_numbers = array("0" => isset($_POST['n1']) ? $_POST['n1'] : "", "1" => isset($_POST['n2']) ? $_POST['n2'] : "", "2" => isset($_POST['n3']) ? $_POST['n3'] : "", "3" => isset($_POST['n4']) ? $_POST['n4'] : "", "4" => isset($_POST['n5']) ? $_POST['n5'] : "", "5" => isset($_POST['n6']) ? $_POST['n6'] : "", "6" => isset($_POST['n1']) ? $_POST['n1'] : "");
if (isset($_REQUEST['action']) == "play") {
    if ($golddata['cash'] >= '20') {
        takegold2($userdata['user_id'], '20', 'cash', '0');
    } else {
        echo $locale['selo_200'];
        closetable();
        include_once GOLD_GAMES . 'sitelotto/footer.php';
        exit;
    }
    $i = 0;
    while ($i < 6) {
        $temp = rand(1, 45);
        if (!in_array($temp, $winning_numbers)) {