Re: 'Site under maintenance' option

2014-02-21 Thread John Andersen
Please clarify what you mean by maintenance? - updating the site scripts? - updating the database? - other? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakeP

Re: 'Site under maintenance' option

2014-02-20 Thread web developer
You can look into https://github.com/awebdeveloper/cakephp-maintenance-mode On Tuesday, 6 September 2011 01:15:20 UTC+5:30, Xoubaman wrote: > > I'm trying to implement a system to disable the site temporaly for > maintenance purposes or whatever. If the site is disabled, only logged > users can

Re: 'Site under maintenance' option

2011-09-15 Thread Andraž
This solution is simple and works fine for me. http://perishablepress.com/press/2010/05/19/htaccess-redirect-maintenance-page-site-updates/ On Sep 5, 9:45 pm, Xoubaman wrote: > I'm trying to implement a system to disable the site temporaly for > maintenance purposes or whatever. If the site is d

Re: 'Site under maintenance' option

2011-09-13 Thread ecsyle
I like this idea. On Sep 13, 7:25 pm, Juan Basso wrote: > You can use a non-cake solution that is use htaccess (or any rewrite > rule from different http server) that check if file app/webroot/ > maintenance.html is present. If is there, show the file to any > request. So you can delete/create/re

Re: 'Site under maintenance' option

2011-09-13 Thread Juan Basso
You can use a non-cake solution that is use htaccess (or any rewrite rule from different http server) that check if file app/webroot/ maintenance.html is present. If is there, show the file to any request. So you can delete/create/rename the maintenance file to enable/disable. Faster :) Juan Bass

Re: 'Site under maintenance' option

2011-09-13 Thread ecsyle
I have a boolean set in my AppController to enable/disable the site. If the site is disabled, I run $this->cakeError('maintenance') to send the user to a custom error page explaining that the site is down for maintenance. I also use a .lock file in the webroot to automatically disable the site whe

Re: 'Site under maintenance' option

2011-09-13 Thread Xoubaman
I mean is my second option. I'm Spanish and made a literal translation of a Spanish expression, maybe it isn't correct in English. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: 'Site under maintenance' option

2011-09-10 Thread saurabh mishra
can u explain me that what is B plan On Sat, Sep 10, 2011 at 1:51 AM, Xoubaman wrote: > Ip ranges is my B plan, but could be a problem with non-tech skilled admin > users login from dinamic ips. > > I will come to this point later, so thanks for the answers, hope I can find > a good solution. >

Re: 'Site under maintenance' option

2011-09-09 Thread Xoubaman
Ip ranges is my B plan, but could be a problem with non-tech skilled admin users login from dinamic ips. I will come to this point later, so thanks for the answers, hope I can find a good solution. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: 'Site under maintenance' option

2011-09-08 Thread LunarDraco
You could restrict it by client ip so that only the blessed ones can connect from a specific set of ip's to the login page. Then you don't have to worry about a secret url you can do the check on the client ip in App_controller and allow/deny and redirect with normal cake process before they ever s

Re: 'Site under maintenance' option

2011-09-07 Thread Xoubaman
I want that, when site is disabled, nobody will reach the login form whatever they do, unless the blessed ones who know the secret-and-only-path to do so. If everytime an user try to do some action that requires to be logged in, he's redirected to log in screen, the site won't look really disab

Re: 'Site under maintenance' option

2011-09-06 Thread jodator
Why a secret url? It could be just check if it's maintenance and if user is logged in. If not, redirect to login action. If your login action is too secret: You also need an maintenance switch (which should be also in DB, if you're switching to maintenance by editing files then you can edit secret

Re: 'Site under maintenance' option

2011-09-06 Thread WebbedIT
Quickly off the top of my head I would set a boolean variable in my App Controller (which could be served from database via a EAV style settings model) then depending on the value you could override $this- >Auth->allow(); declarations and maybe $this->Auth->loginScope(); if you only wanted particul

'Site under maintenance' option

2011-09-05 Thread Xoubaman
I'm trying to implement a system to disable the site temporaly for maintenance purposes or whatever. If the site is disabled, only logged users can navigate through it, non-logged users are redirected to a "Site under maintenance" layout. Currently (o "As of now"), my approach is to allow a "se