streams/Zotlabs/Module
2016-08-30 06:14:22 -04:00
..
Achievements.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Acl.php issue #496 2016-08-21 16:26:30 -07:00
Admin.php supercedes pull request #503 2016-08-28 21:48:17 -07:00
Api.php more cleanup of api 2016-08-11 19:42:44 -07:00
Appman.php move apps to zlib 2016-05-22 19:25:27 -07:00
Apps.php Can't use "use x as y" aliases in callback function declarations 2016-05-22 22:08:01 -07:00
Attach.php the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
Authtest.php module updates 2016-04-18 20:38:38 -07:00
Block.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Blocks.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Bookmarks.php module updates 2016-04-18 20:38:38 -07:00
Branchtopic.php module updates 2016-04-18 20:38:38 -07:00
Cal.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Channel.php move jotnets to jot and some cleanup (mostly whitespace) 2016-08-21 15:43:03 +02:00
Chanview.php renamed include files identity.php (channel.php) and Contact.php (connections.php) 2016-05-22 16:54:30 -07:00
Chat.php multi acl: port /rpost 2016-08-05 13:20:03 +02:00
Chatsvc.php move chatroom stuff to zlib 2016-05-22 20:54:52 -07:00
Cloud.php include attach.php at the module level since 2d4b75428a87038 wasn't backported to dev and we're about to branch an RC 2016-07-17 16:04:00 -07:00
Common.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Connect.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Connections.php renamed include files identity.php (channel.php) and Contact.php (connections.php) 2016-05-22 16:54:30 -07:00
Connedit.php ratings are gone. They can be enabled, but there is no UI for doing so at this time; and will likely only be available in a 'pro' configuration once the new implementation details have been hashed out. This appears to require a mechanism for rebuttal before it can again be opened to the public. There are also some synchronisation issues to contend with; as ratings are currently only distributed to active directory servers. There is no reliable mechanism for a new directory server to fetch existing ratings. 2016-08-25 17:43:07 -07:00
Contactgroup.php more db column renames 2016-05-31 21:45:33 -07:00
Cover_photo.php still working through some issues with curl magic-auth 2016-06-27 22:25:37 -07:00
Dav.php sort out some of the authentication mess - with luck this may fix the DAV auth issue which I simply could not duplicate or find a reason for. 2016-07-20 17:55:40 -07:00
Directory.php ratings are gone. They can be enabled, but there is no UI for doing so at this time; and will likely only be available in a 'pro' configuration once the new implementation details have been hashed out. This appears to require a mechanism for rebuttal before it can again be opened to the public. There are also some synchronisation issues to contend with; as ratings are currently only distributed to active directory servers. There is no reliable mechanism for a new directory server to fetch existing ratings. 2016-08-25 17:43:07 -07:00
Dirsearch.php module updates 2016-04-18 20:38:38 -07:00
Display.php move jotnets to jot and some cleanup (mostly whitespace) 2016-08-21 15:43:03 +02:00
Dreport.php string update 2016-08-12 14:45:16 -07:00
Editblock.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Editlayout.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Editpost.php deprecate/remove json_decode_plus 2016-07-13 22:11:06 -07:00
Editwebpage.php multi acl: port /webpages and /mitem 2016-08-04 11:23:43 +02:00
Embedphotos.php hide fullscreen button in embedphotos modal album view 2016-07-17 12:54:10 +02:00
Events.php multi acl: port events 2016-08-03 23:57:41 +02:00
Fbrowser.php the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
Feed.php turn the oft-repeated block_public ... check into a function observer_prohibited() 2016-05-22 17:52:30 -07:00
Ffsapi.php module updates 2016-04-18 20:38:38 -07:00
Fhublocs.php module updates 2016-04-18 20:38:38 -07:00
File_upload.php implement acl for folder creation 2016-08-10 16:17:09 +02:00
Filer.php more db column renames 2016-05-31 21:45:33 -07:00
Filerm.php more db column renames 2016-05-31 21:45:33 -07:00
Filestorage.php multi acl: port /cloud and /filestorage 2016-08-04 10:36:45 +02:00
Follow.php more perms work 2016-07-13 23:05:19 -07:00
Getfile.php renamed include files identity.php (channel.php) and Contact.php (connections.php) 2016-05-22 16:54:30 -07:00
Group.php issue #473 - unable to delete privacy groups 2016-08-03 16:10:28 -07:00
Hcard.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Help.php Display text around the searched query in documentation search 2016-08-27 21:26:16 -04:00
Home.php mod_home: if using an atoken login on the home page redirect to the channel page of the channel that owns the atoken. 2016-07-15 15:26:36 -07:00
Hostxrd.php convert all the _well_known service controllers which are a bit touchy when it comes to the router 2016-04-18 01:35:09 -07:00
Impel.php /storeurl/cloudurl/ 2016-08-01 17:44:21 -07:00
Import.php more perms work 2016-07-18 16:45:43 -07:00
Import_items.php allow multiple apd's per plugin dir 2016-07-01 02:16:23 -07:00
Invite.php module updates 2016-04-18 20:38:38 -07:00
Item.php fix attached photo/file permissions on clones 2016-08-15 13:18:25 -07:00
Lang.php module updates 2016-04-18 20:38:38 -07:00
Layouts.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Like.php this should sort out likes showing up as wall-to-wall posts on diaspora 2016-08-01 22:12:44 -07:00
Linkinfo.php rework the conversation object stuff at a high level - still needs a bit of refactoring 2016-05-20 22:52:47 -07:00
Lockview.php make lockview work with throwaway identities 2016-07-15 02:07:27 -07:00
Locs.php daemon conversion continued... 2016-05-19 22:26:37 -07:00
Login.php sort out some of the authentication mess - with luck this may fix the DAV auth issue which I simply could not duplicate or find a reason for. 2016-07-20 17:55:40 -07:00
Lostpass.php module updates 2016-04-18 20:38:38 -07:00
Magic.php finish updating zot_finger instances 2016-05-21 18:18:33 -07:00
Mail.php more work on perms 2016-07-12 21:47:24 -07:00
Manage.php more work on perms 2016-07-12 21:47:24 -07:00
Match.php module updates 2016-04-18 20:38:38 -07:00
Menu.php add a few more path macros to portable menu elements (channelurl, pageurl, storeurl and baseurl) 2016-07-31 20:14:25 -07:00
Message.php renamed include files identity.php (channel.php) and Contact.php (connections.php) 2016-05-22 16:54:30 -07:00
Mitem.php multi acl: port /webpages and /mitem 2016-08-04 11:23:43 +02:00
Mood.php daemon conversion continued... 2016-05-19 22:26:37 -07:00
Msearch.php module updates 2016-04-18 20:38:38 -07:00
Network.php move jotnets to jot and some cleanup (mostly whitespace) 2016-08-21 15:43:03 +02:00
New_channel.php Mark nickname as required field, if left empty then channel creation fails silently 2016-07-03 17:59:44 +10:00
Nojs.php revert the reversal of checkjs logic, but still restrict the behaviour scope to just those urls that require it 2016-04-20 22:10:00 -07:00
Notes.php module updates 2016-04-18 20:38:38 -07:00
Notifications.php the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
Notify.php the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
Oembed.php module updates 2016-04-18 20:38:38 -07:00
Oep.php the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
Oexchange.php module updates 2016-04-18 20:38:38 -07:00
Online.php module updates 2016-04-18 20:38:38 -07:00
Opensearch.php module updates 2016-04-18 20:38:38 -07:00
Page.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Pconfig.php missing class instance pointer in Pconfig module upgrade 2016-04-19 19:09:35 -07:00
Pdledit.php fix pdledit "list layouts" 2016-06-24 02:07:12 -07:00
Photo.php stream large photos through buffered I/O if possible 2016-06-29 17:31:48 -07:00
Photos.php multi acl: port photos 2016-08-04 09:10:21 +02:00
Ping.php issue #466, sql typo 2016-07-28 13:10:19 -07:00
Poco.php module updates 2016-04-18 20:38:38 -07:00
Poke.php the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
Post.php module updates 2016-04-18 20:38:38 -07:00
Prate.php daemon conversion continued... 2016-05-19 22:26:37 -07:00
Pretheme.php module updates 2016-04-18 20:38:38 -07:00
Probe.php lots more permission work 2016-07-13 19:53:28 -07:00
Profile.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Profile_photo.php force immediate avatar update 2016-07-03 22:38:05 +10:00
Profiles.php permission fixes 2016-07-19 20:49:54 -07:00
Profperm.php remove the app $a passed to profile_load, also add profile_load to mod_wiki which should fix issue #431 2016-06-26 22:13:59 -07:00
Pubsites.php ratings are gone. They can be enabled, but there is no UI for doing so at this time; and will likely only be available in a 'pro' configuration once the new implementation details have been hashed out. This appears to require a mechanism for rebuttal before it can again be opened to the public. There are also some synchronisation issues to contend with; as ratings are currently only distributed to active directory servers. There is no reliable mechanism for a new directory server to fetch existing ratings. 2016-08-25 17:43:07 -07:00
Pubstream.php turn the oft-repeated block_public ... check into a function observer_prohibited() 2016-05-22 17:52:30 -07:00
Randprof.php renamed include files identity.php (channel.php) and Contact.php (connections.php) 2016-05-22 16:54:30 -07:00
Rate.php ratings are gone. They can be enabled, but there is no UI for doing so at this time; and will likely only be available in a 'pro' configuration once the new implementation details have been hashed out. This appears to require a mechanism for rebuttal before it can again be opened to the public. There are also some synchronisation issues to contend with; as ratings are currently only distributed to active directory servers. There is no reliable mechanism for a new directory server to fetch existing ratings. 2016-08-25 17:43:07 -07:00
Ratings.php ratings are gone. They can be enabled, but there is no UI for doing so at this time; and will likely only be available in a 'pro' configuration once the new implementation details have been hashed out. This appears to require a mechanism for rebuttal before it can again be opened to the public. There are also some synchronisation issues to contend with; as ratings are currently only distributed to active directory servers. There is no reliable mechanism for a new directory server to fetch existing ratings. 2016-08-25 17:43:07 -07:00
Ratingsearch.php add the hidden flag also 2016-07-27 16:14:46 -07:00
Rbmark.php module updates 2016-04-18 20:38:38 -07:00
React.php short-term solution to emoji size issue - make them 32px from the sender 2016-06-04 15:53:30 -07:00
README.md readme for the module directory, also provide an undocumented way to reset the timestamp on connection photos to force a refresh without messing with the database directly. 2016-06-14 17:04:29 -07:00
Regdir.php finish updating zot_finger instances 2016-05-21 18:18:33 -07:00
Register.php fix aconfig 2016-08-28 16:17:58 -07:00
Regmod.php module updates 2016-04-18 20:38:38 -07:00
Regver.php module updates 2016-04-18 20:38:38 -07:00
Removeaccount.php sort out some of the authentication mess - with luck this may fix the DAV auth issue which I simply could not duplicate or find a reason for. 2016-07-20 17:55:40 -07:00
Removeme.php sort out some of the authentication mess - with luck this may fix the DAV auth issue which I simply could not duplicate or find a reason for. 2016-07-20 17:55:40 -07:00
Rmagic.php github didn't accept the last push. Touching the files to force a git revision 2016-07-27 22:40:33 -07:00
Rpost.php Merge branch 'dev' of https://github.com/git-marijus/hubzilla into git-marijus-dev 2016-08-21 16:33:59 -07:00
Rsd_xml.php rework the conversation object stuff at a high level - still needs a bit of refactoring 2016-05-20 22:52:47 -07:00
Search.php more db column renames 2016-05-31 21:45:33 -07:00
Search_ac.php more db column renames 2016-05-31 21:45:33 -07:00
Service_limits.php module updates 2016-04-18 20:38:38 -07:00
Settings.php remove insecure repository warning. 2016-08-18 17:22:54 -07:00
Setup.php Before throwing a 'smarty3 dir does not exist' fatal error, try and create it. We did try and create it during install, but the template processor is initalised long before we get to that code (and throws that ugly error). 2016-08-28 22:24:27 -07:00
Share.php the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
Sharedwithme.php the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
Siteinfo.php code optimisation 2016-06-20 20:34:19 -07:00
Siteinfo_json.php module updates 2016-04-18 20:38:38 -07:00
Sitelist.php module updates 2016-04-18 20:38:38 -07:00
Smilies.php module updates 2016-04-18 20:38:38 -07:00
Sources.php sort out the rest of the source categories 2016-05-02 01:18:18 -07:00
Sslify.php module updates 2016-04-18 20:38:38 -07:00
Starred.php sync flags even if post has not been edited 2016-06-30 21:12:39 -07:00
Subthread.php the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
Suggest.php module updates 2016-04-18 20:38:38 -07:00
Tagger.php delivery invoked twice in mod_tagger, once in post_activity_item() and another at the main module level 2016-07-01 20:46:57 -07:00
Tagrm.php more db column renames 2016-05-31 21:45:33 -07:00
Tasks.php the rest of the schema updates - WARNING: some third party plugins may fail; e.g. embedphotos and chess. $item['object'] is now $item['obj'] and $photo['type'] is $photo['mimetype'], $photo['scale'] is $photo['imgscale'] and $photo['data'] is now $photo['content']. There are a number of other changes, but these are the ones noted to cause issues with third-party plugins. The project plugins have been updated. Please note any new issues as this effort touched a lot of code in a lot of files. 2016-06-01 21:48:54 -07:00
Thing.php multi acl: port /thing 2016-08-05 13:37:47 +02:00
Toggle_mobile.php module updates 2016-04-18 20:38:38 -07:00
Toggle_safesearch.php module updates 2016-04-18 20:38:38 -07:00
Uexport.php 1. provide automatic relocation of important links in items that are imported or synced to clones 2016-06-21 18:24:36 -07:00
Update_channel.php Convert Channel to new module 2016-04-15 22:36:07 -07:00
Update_display.php module updates 2016-04-18 20:38:38 -07:00
Update_home.php module updates 2016-04-18 20:38:38 -07:00
Update_network.php module updates 2016-04-18 20:38:38 -07:00
Update_pubstream.php try again with shutdown handler, fix issue #373 (live-pubstream div wasn't present 2016-05-10 01:30:22 -07:00
Update_search.php module updates 2016-04-18 20:38:38 -07:00
View.php module updates 2016-04-18 20:38:38 -07:00
Viewconnections.php readability 2016-06-28 20:48:43 -07:00
Viewsrc.php update icon names in Zotlabs/ 2016-05-01 04:13:30 +10:00
Wall_attach.php renamed include files identity.php (channel.php) and Contact.php (connections.php) 2016-05-22 16:54:30 -07:00
Wall_upload.php renamed include files identity.php (channel.php) and Contact.php (connections.php) 2016-05-22 16:54:30 -07:00
Webfinger.php module updates 2016-04-18 20:38:38 -07:00
Webpages.php Website export to cloud files works. Created new recursive copy function in attach.php. 2016-08-23 06:55:26 -04:00
Well_known.php convert all the _well_known service controllers which are a bit touchy when it comes to the router 2016-04-18 01:35:09 -07:00
Wfinger.php convert all the _well_known service controllers which are a bit touchy when it comes to the router 2016-04-18 01:35:09 -07:00
Wiki.php Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev 2016-08-05 12:13:50 +02:00
Xchan.php module updates 2016-04-18 20:38:38 -07:00
Xpoco.php module updates 2016-04-18 20:38:38 -07:00
Xrd.php module updates 2016-04-18 20:38:38 -07:00
Xref.php module updates 2016-04-18 20:38:38 -07:00
Zfinger.php convert all the _well_known service controllers which are a bit touchy when it comes to the router 2016-04-18 01:35:09 -07:00
Zotfeed.php turn the oft-repeated block_public ... check into a function observer_prohibited() 2016-05-22 17:52:30 -07:00
Zping.php module updates 2016-04-18 20:38:38 -07:00

Zotlabs/Module

This directory contains controller modules for handling web requests. The lowercase class name indicates the head of the URL path which this module handles. There are other methods of attaching (routing) URL paths to controllers, but this is the primary method used in this project.

Module controllers MUST reside in this directory and namespace to be autoloaded (unless other specific routing methods are employed). They typically use and extend the class definition in Zotlabs/Web/Controller as a template.

Template:

<?php

namespace Zotlabs\Web;


class Controller {

	function init() {}
	function post() {}
	function get() {}

}

Typical Module declaration for the '/foo' URL route:

<?php
namespace Zotlabs\Module;

class Foo extends \Zotlabs\Web\Controller {

	function init() {
		// init() handler goes here
	}

	function post() {
		// post handler goes here
	}

	function get() {
		return 'Hello world.' . EOL;
	}

}

This model provides callbacks for public functions named init(), post(), and get(). init() is always called. post() is called if $_POST variables are present, and get() is called if none of the prior functions terminated the handler. The get() method typically retuns a string which represents the contents of the content region of the resulting page. Modules which emit json, xml or other machine-readable formats typically emit their contents inside the init() function and call 'killme()' to terminate the Module.

Modules are passed the URL path as argc,argv arguments. For a path such as

https://mysite.something/foo/bar/baz

The app will typically invoke the Module class 'Foo' and pass it

$x = argc(); // $x = 3

$x = argv(0); // $x = 'foo'
$x = argv(1); // $x = 'bar'
$x = argv(2); // $x = 'baz'

These are handled in a similar fashion to their counterparts in the Unix shell or C/C++ languages. Do not confuse the argc(),argv() functions with the global variables $argc,$argv which are passed to command line programs. These are handled separately by command line and Zotlabs/Daemon class functions.