The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Setting a custom global variable
Can anyone tell me if it would be feasible to set a global variable when I cron job is kicked off and have it picked up in a plugin? For example, I'd like to have a plugin be aware that a task was initiated by a cron job such as sending an email out. I was thinking maybe in $globals or $_SESSION.
Please advise. Looks like I figured it out on my own... It was fairly simple actually. Not sure if this is the best way to do it but what I did was something like this at the top of the file that gets executed in my cron job: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|