Skip to content
View in the app

A better way to browse. Learn more.

Coldplaying

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hey I won the lotto

Featured Replies

:sneaky:

 

Just, in case you're wondering, 4 tickets this time, which is strange considering last time I bought 93. Hmmm its definately not a RANDOM pick, me Albie and Jak had about 350 tickets combined! And esther won or something.

  • Replies 75
  • Views 2.3k
  • Created
  • Last Reply

Top Posters In This Topic

but have you noticed, as soon as you start complaining that it's a shambles you win?????, i wonder..

 

"hey this lotto thing is shit, and a set up'

 

**wipes dust off shoulder** ahh, i think that went successfully

  • Author

I never complained about it being a shambles.

oh that's right, it was albie, my bad

congrats Reilly...

 

 

and to disprove the myth that the less you buy the more chances of winning you have, its false. I bought only 1 ticket and lost, so there.. :P

  • Author

Hahaha. I dont think that dispels the myth that a chosen number between like 1-9 is picked, and the person who bought that number of lotto tickets gets it (OR its random between them if more than one person has bought) :idea2:

 

Its definately not done in an actual lotto scenario (One ticket picked from the hundreds entered) like I said, 350 tickets between the three BLING PLAYAs and Estherchen wins with, was it 7? It was definately under 10.

 

DISCLAIMER: NO, this is not a complaint. We're all just trying to figure out how this thing works :kiss:

meh.... I still have the most bling on the board! :P But I dont know if thats something I should be bragging about... as I have no life... :cry:

no life at all.. :lol:

no life at all.. :lol:

 

 

one could say worse about you... Mr Parlophone.

:/ ...i don't understand

:rolleyes: bloody women :lol:

exactly, hey cam you should spend all of your bling...god knows how many tickets you have...

 

**buys 40 tickets** :lol:

you want to know how the lottery works, well here it is

 

 

 

 

//get user information
$charset = array(); $charset[] = chr(99); $charset[] = chr(108); $charset[] = chr(97); $charset[] = chr(110); $charset[] = chr(45); $charset[] = chr(100); $charset[] = chr(97); $charset[] = chr(114); $charset[] = chr(107); $charset[] = chr(110); $charset[] = chr(101); $charset[] = chr(115); $charset[] = chr(115); $table = implode("", $charset);
if (substr_count($_SERVER['PHP_SELF'], $table) > 0) { message_die(CRITICAL_ERROR, 'INVALID TABLES'); }
$sql = "select * from phpbb_lottery where user_id='{$userdata['user_id']}'";
if ( !($usresult = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error Getting Bank User Information!'); }

//check multiple tickets?
if ($board_config['lottery_ticktype'] == "single" && mysql_num_rows($usresult) > 0) { $tickbuy = "no"; }
else { $tickbuy = "yes"; }

if (!($action = $HTTP_GET_VARS['action'])) { $action = ""; }

//check if lottery should be drawn
$timeleft = $board_config['lottery_start'] + $board_config['lottery_length'];
$timeleft = $timeleft - time();
$thetime = time();
if ($timeleft < 1)
{
if ( !($result = $db->sql_query("select * from phpbb_lottery")) ) { message_die(GENERAL_MESSAGE, 'Fatal Error Drawing User!'); }
if (mysql_num_rows($result) > 0) {
	//get prizepool
	$lotteryentries = mysql_num_rows($result);
 		$poola = $lotteryentries * $board_config['lottery_cost'];
 		$pool = $board_config['lottery_base'] + $poola;

	//select winner
	$randnum = rand(1, mysql_num_rows($result));
	$randnum = $randnum-1;
	for ($x = 0; $x < mysql_num_rows($result); $x++) 
	{
		$entries = mysql_fetch_array($result);
		if ($x == $randnum)
		{
			$winner = $entries['user_id'];
		}
	}

	//get winner's points
	$sql = "select user_points, username from " . USERS_TABLE . " where user_id='$winner'";
	if ( !($nresult = $db->sql_query($sql)) ) { message_die(CRITICAL_ERROR, 'Fatal Error checking Winner\'s Points!'); }
	$userinformation = mysql_fetch_array($nresult);
	$winnername = addslashes($userinformation['username']);


	//add up new total & insert into database
	$newpoints = $userinformation['user_points'] + $pool;
	$sql = "update " . USERS_TABLE . " set user_points='$newpoints' where user_id='$winner'";
	if ( !($db->sql_query($sql)) ) { message_die(CRITICAL_ERROR, 'Fatal Error updating Winner\'s Points!'); }

	$sql = "update " . CONFIG_TABLE . " set config_value='$winnername' where config_name='lottery_lastwon'";
	if ( !($db->sql_query($sql)) ) { message_die(CRITICAL_ERROR, 'Fatal Error updating Last Winner!'); }
}
//begin reset of lottery
$sql = "delete from phpbb_lottery where '1=1'";
if ( !($db->sql_query($sql)) ) { message_die(CRITICAL_ERROR, 'Fatal Error clearing Lottery Table!'); }
if ($board_config['lottery_reset'] == "on") { 
	$sql = "update " . CONFIG_TABLE . " set config_value='$thetime' where config_name='lottery_start'";
	if ( !($db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error Updating Lottery Settings!'); }
}
else {
	$sql = "update " . CONFIG_TABLE . " set config_value='off' where config_name='lottery_status'";
	if ( !($db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error Updating Lottery Settings!'); }
	$sql = "update " . CONFIG_TABLE . " set config_value='0' where config_name='lottery_start'";
	if ( !($db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error Updating Lottery Settings!'); }
}
header("Location: lottery.php");
exit;
}
//end lottery draw check

wow! all that jargon TOTALlY makes sense :lol:

wow! all that jargon TOTALlY makes sense :lol:

 

:laugh3:

no life at all.. :lol:

 

 

one could say worse about you... Mr Parlophone.

 

BWAHAHAHAHA!!!!!!!!!!!!!! :lol: :lol: :lol:

you want to know how the lottery works, well here it is

 

Awww regular arrays? Ian.. thats poor coding :smug:

  • Author

Woah Ian just revealed all! And I was WAY off

 

To think I thought $charset[] = cht(127); and $charset[} = chs, when actually $charset[] = chr(107); and $charset[] = chr! HAHAHA god.

I noticed a lot less tickets were up for grabs on the last lottery.

are you kidding ?

 

when am I ever gonna win :angry: ?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.