sfOfflineFilterPlugin
1.0.0stable
for sf 1.2sf 1.1 MIT
This plugins is a filter that if you want to set your website offline
Now at github https://github.com/cedriclombardot/sfOfflineFilterPlugin/
Developers
License
Copyright (c) SPYRIT SYSTEME D'INFORMATION -- Cédric Lombardot
See : http://spyrit.net & http://cv.luckylife.fr
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Releases for sf 1.4
| Version |
License |
API |
Released |
|
1.0.3stable
|
MIT |
1.0.3stable
|
29/01/2010 |
Releases for sf 1.3
| Version |
License |
API |
Released |
|
1.0.3stable
|
MIT |
1.0.3stable
|
29/01/2010 |
Releases for sf 1.2
| Version |
License |
API |
Released |
|
1.0.3stable
|
MIT |
1.0.3stable
|
29/01/2010 |
|
1.0.2stable
|
MIT |
1.0.2stable
|
30/03/2009 |
|
1.0.1stable
|
MIT license |
1.0.1stable
|
28/01/2009 |
|
1.0.0stable
|
MIT license |
1.0.0stable
|
19/01/2009 |
|
0.1.0stable
|
MIT license |
0.1.0stable
|
14/01/2009 |
Releases for sf 1.1
| Version |
License |
API |
Released |
|
1.0.3stable
|
MIT |
1.0.3stable
|
29/01/2010 |
|
1.0.2stable
|
MIT |
1.0.2stable
|
30/03/2009 |
|
1.0.1stable
|
MIT license |
1.0.1stable
|
28/01/2009 |
|
1.0.0stable
|
MIT license |
1.0.0stable
|
19/01/2009 |
|
0.1.0stable
|
MIT license |
0.1.0stable
|
14/01/2009 |
Changelog for release 1.0.0 - 19/01/2009
- Replace isSuperAdmin By sfConfig::get('app_is_offline_credential','offline')
- Adding StatusCode 302 before forwarding
Other releases
Release 1.0.3 - 29/01/2010
Now compatible with sf1.3 and 1.4
Release 1.0.2 - 30/03/2009
Release 1.0.1 - 28/01/2009
- Remove StatusCode 302 before forwarding have problem on IE with https
Release 1.0.0 - 19/01/2009
- Replace isSuperAdmin By sfConfig::get('app_is_offline_credential','offline')
- Adding StatusCode 302 before forwarding
Release 0.1.0 - 14/01/2009
sfOfflineFilterPlugin
This plugins is a filter that if you want to set your website offline
How to Install
* If you're using sfGuardUser you've nothing to do else check if in your myUser.class.php
you've have define the public function isSuperAdmin() else do it.
- Now set the credential offline (see changelog)
The super Admins are the only to be allowed to see the website if they arre not connected
Into your filters.yml of you're frontend app
# insert your own filters here
offline:
class: sfOfflineFilter
Set the website offline
Into the frontend/config/app.yml
# default values
all:
is_offline:
module: sfSimplePage #Module to forward
action: index #Action to forward default is index
params: # Array of params to set before forward
alias: site-hors-ligne