Для пользовательских типов свойств нужно указывать еще и USER_TYPE.
PROPERTY_TYPE => 'E'
USER_TYPE => 'EList'
PROPERTY_TYPE => 'S'
| #!/bin/bash | |
| # | |
| # Based on https://gist.github.com/olivertappin/e5920e131db9a451c91aa6e2bc24dc40 | |
| # | |
| INSTALL_DIR=/opt/phpstorm | |
| if [ "$(whoami)" != "root" ] | |
| then |
| // Run this in the F12 javascript console in chrome | |
| // if a redirect happens, the page will pause | |
| // this helps because chrome's network tab's | |
| // "preserve log" seems to technically preserve the log | |
| // but you can't actually LOOK at it... | |
| // also the "replay xhr" feature does not work after reload | |
| // even if you "preserve log". | |
| window.addEventListener("beforeunload", function() { debugger; }, false) |
| # MOBILE REDIRECT | |
| RewriteCond %{REQUEST_URI} !/mobile.*$ | |
| RewriteCond %{REQUEST_URI} !/hub.*$ | |
| RewriteCond %{HTTP_USER_AGENT} "android|blackberry|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] | |
| RewriteRule ^(.*)$ /mobile [L,R=302] | |
| # if a user is accessing a mobile page from desktop then show desktop version | |
| RewriteCond %{HTTP_USER_AGENT} "!android|!blackberry|!iphone|!ipod|!iemobile|!opera mobile|!palmos|!webos|!googlebot-mobile" [NC] | |
| RewriteRule ^mobile/(.*)$ / [L,R=302] |
| 301 moved permanently (redirect): | |
| <?php | |
| header('HTTP/1.1 301 Moved Permanently'); | |
| header('Location: http://www.example.com'); | |
| die(); | |
| ?> | |
| 302 moved temporarily(redirect): | |
| <?php | |
| header('Location: http://www.example.com'); |