Jump to content

Multi-Company Maintenance Mode.


Michael

Recommended Posts

Interesting idea. We assumed the primary reason someone would want to put the system in maintenance mode is to perform an upgrade -- in which case, it's best if all companies are in maintenance mode. I suppose there are reasons one company would need to be in maintenance mode and not others.

Link to comment
Share on other sites

Interesting idea. We assumed the primary reason someone would want to put the system in maintenance mode is to perform an upgrade -- in which case, it's best if all companies are in maintenance mode. I suppose there are reasons one company would need to be in maintenance mode and not others.

 

Yeah I was just wondering if there was a way to do this manually as I want to take the cubicwebs one offline for a day however keep licensecart up, as we need to do the billing data / etc on a day in December so I can have a fresh clean start to the year, since bills are all over the place since whmcs and paypal lol.

Link to comment
Share on other sites

Settings are inherited, though I don't think this would work here, but you can give it a try.

 

You could try adding 2 rows to the company_settings table.

 

1.

key: maintenance_mode

value: true (or false)

 

2.

key: maintenance_reason

value: We are currently undergoing maintenance (or whatever you want it to say)

 

Make sure the company_id is correct, and encrypted is 0.

 

Try this at your own risk, I'm doubtful it will work.

Link to comment
Share on other sites

Settings are inherited, though I don't think this would work here, but you can give it a try.

 

You could try adding 2 rows to the company_settings table.

 

1.

key: maintenance_mode

value: true (or false)

 

2.

key: maintenance_reason

value: We are currently undergoing maintenance (or whatever you want it to say)

 

Make sure the company_id is correct, and encrypted is 0.

 

Try this at your own risk, I'm doubtful it will work.

 

I will test that in a bit thanks mate, I was wondering is there a PHP if statement we could use if $company_id = 1 show error else show the structure.pdt code?

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.

Loading...
×
×
  • Create New...