friendica-github/view
Roland Häder 4d39164c1e [WIP] Rewrite to Proxy class: (#5507)
* Rewrite to Proxy class:
- introduced new Friendica\Network\Proxy class for in exchange of proxy_*()
  functions
- moved also all PROXY_* constants there as Proxy::*
- removed now no longer needed mod/proxy.php loading as composer's auto-load
  will do this for us
- renamed those proxy_*() functions to better names:
  + proxy_init()           -> Proxy::init()         (public)
  + proxy_url()            -> Proxy::proxifyUrl()   (public)
  + proxy_parse_html()     -> Proxy::proxifyHtml()  (public)
  + proxy_is_local_image() -> Proxy::isLocalImage() (private)
  + proxy_parse_query()    -> Proxy::parseQuery()   (private)
  + proxy_img_cb()         -> Proxy::replaceUrl()   (private)

* Ops, need to set $a here ...

* CR request:
- moved Proxy class to Friendica\Module
- extended BaseModule

* Ops, no need for own instance of $a when self::getApp() is around.

* Proxy-rewrite:
- proxy_url() and proxy_parse_html() are both non-module functions (now
  methods)
- so they must be splitted into a seperate class
- also the SIZE_* and DEFAULT_TIME constants are both not relevant to module

* No instances from utility classes

* Fixed error:
- proxify*() is now located in `Friendica\Util\ProxyUtils`

* Moved back to original place, ops? How did they move here? Well, it was not
intended by me.

* Removed duplicate (left-over from split) constants and static array. Thank to
MrPetovan finding it.

* Renamed ProxyUtils -> Proxy and aliased it back to ProxyUtils.
2018-07-30 22:06:22 -04:00
..
fonts ShaShape font updated 2016-06-01 20:03:56 +02:00
install Proper error when rewrite fails during install. 2018-04-27 21:27:55 +02:00
js main.js - move some code of liveUpdate() into updateConvItems() for readability 2018-06-16 13:38:32 +02:00
lang DE translation update THX copis 2018-07-30 10:42:16 +02:00
php App::get_baseurl is now replaced with System::baseUrl 2017-08-26 07:32:10 +00:00
smarty3 another -x 2017-12-05 07:26:02 +01:00
templates Merge pull request #5530 from tobiasd/20180730-adminblocked 2018-07-30 20:03:00 +02:00
theme [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
.htaccess [apache2] Add public asset caching 2018-03-07 08:07:59 -05:00
global.css admins can mark their nodes for explicit content (#5373) 2018-07-14 12:08:06 -04:00