Revision 2243:86b0bd224843,
937 bytes
checked in by Dsls, 12 years ago
(diff) |
Compatibility for actionspage : handle redir if set, avoid plugins bugs when specifying "%" in URLs by disbling entry selection persistence.
|
Rev | Line | |
---|
[0] | 1 | <?php |
---|
| 2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
| 3 | # |
---|
| 4 | # This file is part of Dotclear 2. |
---|
| 5 | # |
---|
[1179] | 6 | # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear |
---|
[0] | 7 | # Licensed under the GPL version 2.0 license. |
---|
| 8 | # See LICENSE file or |
---|
| 9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
| 10 | # |
---|
| 11 | # -- END LICENSE BLOCK ----------------------------------------- |
---|
| 12 | |
---|
[1796] | 13 | /* ### THIS FILE IS DEPRECATED ### */ |
---|
| 14 | /* ### IT IS ONLY USED FOR PLUGINS COMPATIBILITY ### */ |
---|
| 15 | |
---|
[0] | 16 | require dirname(__FILE__).'/../inc/admin/prepend.php'; |
---|
| 17 | |
---|
| 18 | dcPage::check('usage,contentadmin'); |
---|
| 19 | |
---|
[2243] | 20 | if (isset($_REQUEST['redir'])) { |
---|
| 21 | $u = explode('?',$_REQUEST['redir']); |
---|
| 22 | $uri = $u[0]; |
---|
| 23 | if (isset($u[1])) { |
---|
| 24 | parse_str($u[1],$args); |
---|
| 25 | } |
---|
| 26 | $args['redir'] = $_REQUEST['redir']; |
---|
| 27 | } else { |
---|
| 28 | $uri = 'posts.php'; |
---|
| 29 | $args=array(); |
---|
| 30 | } |
---|
[1399] | 31 | |
---|
[2243] | 32 | $posts_actions_page = new dcPostsActionsPage($core,$uri,$args); |
---|
| 33 | $posts_actions_page->setEnableRedirSelection(false); |
---|
[1806] | 34 | $posts_actions_page->process(); |
---|
[1472] | 35 | |
---|
[0] | 36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.