friendica_2021-01/mod
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
..
_well_known.php
acctlink.php
acl.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
admin.php Fixed E_NOTICE in listing worker queue and new utilities class added (#5521) 2018-07-30 21:24:26 -04:00
allfriends.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
amcd.php
api.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
apps.php
attach.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
babel.php
bookmarklet.php
cal.php And another notice removed 2018-07-29 06:08:02 +00:00
common.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
community.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
contactgroup.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
contacts.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
credits.php
crepair.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
delegate.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
dfrn_confirm.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
dfrn_notify.php Fixing SQL error when receiving DFRN posts (#5527) 2018-07-30 07:06:32 +02:00
dfrn_poll.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
dfrn_request.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
directory.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
dirfind.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
display.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
editpost.php Fixes for E_NOTICE in editpost.php (#5480) 2018-07-24 07:47:25 -04:00
events.php Fixes: (#5477) 2018-07-23 18:52:48 -04:00
fbrowser.php Ad missing use statements after dbesc conversion 2018-07-23 18:44:05 -04:00
feedtest.php
fetch.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
filer.php
filerm.php
follow.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
friendica.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
fsuggest.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
group.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
hcard.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
help.php
home.php
hostxrd.php
hovercard.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
ignored.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
install.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
invite.php Ad missing use statements after dbesc conversion 2018-07-23 18:44:05 -04:00
item.php Removal of x() and added missing columns of contact (#5479) 2018-07-24 17:48:47 -04:00
like.php
localtime.php fix undeclared variables or wrong variable names (/mod) 2018-02-12 03:25:09 +01:00
lockview.php Item storage: Permissions aren't stored in the items anymore (#5495) 2018-07-25 19:14:55 -04:00
lostpass.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
maintenance.php
manage.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
manifest.php
match.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
message.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
modexp.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
msearch.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
network.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
newmember.php
nodeinfo.php
nogroup.php
noscrape.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
notes.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
notice.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
notifications.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
notify.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
oexchange.php
openid.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
opensearch.php
ostatus_subscribe.php
parse_url.php
photo.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
photos.php Some more notices (#5526) 2018-07-30 06:41:20 +02:00
phpinfo.php
ping.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
poco.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
poke.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
pretheme.php
probe.php
profile.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
profile_photo.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
profiles.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
profperm.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
pubsub.php Moved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespace (#5490) 2018-07-24 22:53:46 -04:00
pubsubhubbub.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
randprof.php
receive.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
redir.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
register.php Ad missing use statements after dbesc conversion 2018-07-23 18:44:05 -04:00
regmod.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
removeme.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
repair_ostatus.php Moved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespace (#5490) 2018-07-24 22:53:46 -04:00
robots_txt.php
rsd_xml.php
salmon.php Moved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespace (#5490) 2018-07-24 22:53:46 -04:00
search.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
settings.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
share.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
smilies.php
starred.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
statistics_json.php
subthread.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
suggest.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
tagger.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
tagrm.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
toggle_mobile.php
uexport.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
uimport.php
unfollow.php Moved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespace (#5490) 2018-07-24 22:53:46 -04:00
update_community.php
update_display.php
update_network.php
update_notes.php
update_profile.php
videos.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
view.php
viewcontacts.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
viewsrc.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
wall_attach.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
wall_upload.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
wallmessage.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
webfinger.php
worker.php
xrd.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00