Turn board off and on by cron?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • apu_the_dealer
    New Member
    • Apr 2004
    • 13
    • 3.0.1

    Turn board off and on by cron?

    Hi!

    I would like to have my board turned off an on automatically.
    Can someone help me how to do that?
    Thank you folks.

    Stefan
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    I don't know how to implement cron jobs, but these are the queries you need to run (courtesy of John):

    Turn Off:
    UPDATE datastore SET data=REPLACE(data,'"bbactive";s:1:"1"','"bbactive";s:1:"0"') WHERE title='options'

    UPDATE setting SET value=0 WHERE varname='bbactive'



    Turn On:
    UPDATE datastore SET data=REPLACE(data,'"bbactive";s:1:"0"','"bbactive";s:1:"1"') WHERE title='options'

    UPDATE setting SET value=1 WHERE varname='bbactive'


    If you use table prefixes then you need to change datastore and setting to include the prefix.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...