Jump to content
MakeWebGames

Lottery Mod


Newbie

Recommended Posts

So i got bored and wanted to have a go at doing a lottery module i think it turned out all right in the end

Lets start with the SQL files

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

open up classes.php and add this to the user class

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You can add this to your style sheet if you have one if not add it into the header.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Ok now time for the files.

lottery.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

lottery_config.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

lot_cron.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

ok some screenshots

[ATTACH=CONFIG]1372[/ATTACH][ATTACH=CONFIG]1373[/ATTACH][ATTACH=CONFIG]1374[/ATTACH]

screenshot1.thumb.png.d1c14b05e0a264b0b611d7935a93e027.png

screenshot2.thumb.png.9236a1c2cf6c3effd051cc121db9eb3b.png

screenshot3.thumb.png.d888c1142a6748e2ae9c6ce5fe42a536.png

Link to comment
Share on other sites

  • 3 months later...

I really like this. It's clean and well-defined as to what code file does what.

The only thing I could see is to initially disable the lottery page (and give admin access) so that any users who would be on the game would not accidentally get on the lottery page somehow and use it before it is ready. Those couple little tweaks would give the admin/owner ability to test without any users going in and messing things up before the admin/owner feels comfortable with it going "live".

Other than that, it looks great.

~G7470

Link to comment
Share on other sites

lottery_config.php

change

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

to

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

open lottery.php

change

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

to

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This will allow admins to view page even if its down in the config file.

the first bit of code is just a fix but i think it works either way

Edited by NonStopCoding
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...