ProjectYami Forums  

Go Back   ProjectYami Forums > ProjectYami > Simple Machines Modifications > SMF Lottery Mod

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 04-22-2008, 01:38 PM
YamiKaitou YamiKaitou is offline
Webmaster
 
Join Date: Apr 2008
Posts: 108
Default Faq

FAQ

Q) How do I set up the cron for the drawings?
A) Log into your cPanel and go to the cron page. Here is what you would put for the cron

Code:
Command to run: /usr/bin/php -q /home/user/public_html/forums/Sources/shop/LotteryDraw.php > /dev/null
The time to do the drawing must be 6 days apart from each other unless you have altered the code (another FAQ answers this). Make sure that you change the location of the script to represent where your script is.


Q) How do I raise/lower the number of days in between the drawings?
A) Open the file LotteryDraw.php (location above). Find this block of code (should be near the top)
Code:
// 518400 is the amount of seconds in 6 days. Change this to change the time between the draws.
if ($currentTime- $last_draw < 518400)
    fatal_error("Lottery draws are to close together.",true);
All you have to do is just change the 518400 to a whatever you want. Though, the time MUST be in seconds.
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 01:40 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2008 ProjectYami