Skip to content

Commit

Permalink
[!!!][TASK] Move deprecated entrypoints to deprecated.php
Browse files Browse the repository at this point in the history
In an effort to clean up the deprecated entrypoints in typo3/
the files are now merged into deprecated.php which still serves
the purpose for calling the proper controller logic.

Resolves: #68812
Releases: master
Change-Id: I85abdbfd188593d50e4aaf362d3a9aa03332f019
Reviewed-on: http://review.typo3.org/42329
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
  • Loading branch information
bmack committed Aug 13, 2015
1 parent 9254698 commit f00efef
Show file tree
Hide file tree
Showing 22 changed files with 301 additions and 571 deletions.
15 changes: 15 additions & 0 deletions typo3/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<IfModule mod_rewrite.c>

RewriteEngine On

# Store the current location in an environment variable CWD to use
# mod_rewrite in .htaccess files without knowing the RewriteBase
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^.*$ - [E=CWD:%2]

# Redirect install tool files
RewriteRule ^install(\/?.*)$ %{ENV:CWD}sysext/install/Start/Install.php [R=307,L]

# Redirect old entry points
RewriteRule ^(ajax|alt_clickmenu|alt_db_navframe|alt_doc|alt_file_navframe|browser|db_new|dummy|init|login_frameset|logout|mod|move_el|show_item|tce_db|tce_file|thumbs)\.php$ %{ENV:CWD}deprecated.php [L]
</IfModule>

This comment has been minimized.

Copy link
@jmverges

jmverges Jun 8, 2016

Contributor

Could you provide also a the nginx translation for this as is happening in LTS? Regards.

This comment has been minimized.

Copy link
@jmverges

jmverges Jun 8, 2016

Contributor

I think this could work:
rewrite ^(.*/)(ajax|alt_clickmenu|alt_db_navframe|alt_doc|alt_file_navframe|browser|db_new|dummy|init|login_frameset|logout|mod|move_el|show_item|tce_db|tce_file|thumbs).php$ $1deprecated.php last;

edit: only do half of the job as arguments are required there

28 changes: 0 additions & 28 deletions typo3/ajax.php

This file was deleted.

34 changes: 0 additions & 34 deletions typo3/alt_clickmenu.php

This file was deleted.

30 changes: 0 additions & 30 deletions typo3/alt_db_navframe.php

This file was deleted.

47 changes: 0 additions & 47 deletions typo3/alt_doc.php

This file was deleted.

32 changes: 0 additions & 32 deletions typo3/alt_file_navframe.php

This file was deleted.

29 changes: 0 additions & 29 deletions typo3/browser.php

This file was deleted.

32 changes: 0 additions & 32 deletions typo3/db_new.php

This file was deleted.

Loading

0 comments on commit f00efef

Please sign in to comment.