aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-20 18:16:15 -0700
committerredmatrix <git@macgirvin.com>2016-04-20 18:16:15 -0700
commit23180ae07895ba9bcdf7d598f3db4f227bd1fb24 (patch)
treeedcc6da51a743e64b98f20701609cf05367be86b /Zotlabs/Module
parent2641980ac2876bfe66bb24795dbea4d25483616d (diff)
parent635580091a227529cb491e6441a5acbfff3177be (diff)
downloadvolse-hubzilla-23180ae07895ba9bcdf7d598f3db4f227bd1fb24.tar.gz
volse-hubzilla-23180ae07895ba9bcdf7d598f3db4f227bd1fb24.tar.bz2
volse-hubzilla-23180ae07895ba9bcdf7d598f3db4f227bd1fb24.zip
Merge branch 'dev' into dmeta
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Pconfig.php2
-rw-r--r--Zotlabs/Module/Pushcall.php19
-rw-r--r--Zotlabs/Module/Test.php38
-rw-r--r--Zotlabs/Module/Zcard.php107
4 files changed, 1 insertions, 165 deletions
diff --git a/Zotlabs/Module/Pconfig.php b/Zotlabs/Module/Pconfig.php
index 01899ffdb..b6264bddc 100644
--- a/Zotlabs/Module/Pconfig.php
+++ b/Zotlabs/Module/Pconfig.php
@@ -55,7 +55,7 @@ class Pconfig extends \Zotlabs\Web\Controller {
$content .= '<a href="pconfig/' . escape_tags(argv(1)) . '">pconfig[' . local_channel() . '][' . escape_tags(argv(1)) . ']</a>' . EOL . EOL;
$content .= '<a href="pconfig/' . escape_tags(argv(1)) . '/' . escape_tags(argv(2)) . '" >pconfig[' . local_channel() . '][' . escape_tags(argv(1)) . '][' . escape_tags(argv(2)) . ']</a> = ' . get_pconfig(local_channel(),escape_tags(argv(1)),escape_tags(argv(2))) . EOL;
- if(in_array(argv(2),disallowed_pconfig())) {
+ if(in_array(argv(2),$this->disallowed_pconfig())) {
notice( t('This setting requires special processing and editing has been blocked.') . EOL);
return $content;
}
diff --git a/Zotlabs/Module/Pushcall.php b/Zotlabs/Module/Pushcall.php
deleted file mode 100644
index c0b95159d..000000000
--- a/Zotlabs/Module/Pushcall.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-namespace Zotlabs\Module;
-
-
-class Pushcall extends \Zotlabs\Web\Controller {
-
- function init() {
- logger('pushcall: received');
-
- $xml = file_get_contents('php://input');
-
- logger('received: ' . $xml);
-
-
-
-
- killme();
- }
-}
diff --git a/Zotlabs/Module/Test.php b/Zotlabs/Module/Test.php
deleted file mode 100644
index ff14e4691..000000000
--- a/Zotlabs/Module/Test.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-namespace Zotlabs\Module;
-
-
-class Test extends \Zotlabs\Web\Controller {
-
- function get() {
-
- $s = '<XML>
- <post><profile>
- <diaspora_handle>macgirvin@diasp.org</diaspora_handle>
- <first_name>Mike</first_name>
- <last_name>Macgirvin</last_name>
- <image_url>https://diasp.org/uploads/images/thumb_large_d5f9b6384c91f532f280.jpg</image_url>
- <image_url_small>https://diasp.org/uploads/images/thumb_small_d5f9b6384c91f532f280.jpg</image_url_small>
- <image_url_medium>https://diasp.org/uploads/images/thumb_medium_d5f9b6384c91f532f280.jpg</image_url_medi\
- um>
- <birthday>1000-05-14</birthday>
- <gender/>
- <bio>Creator of Friendica, Redmatrix, and Hubzilla. </bio>
- <location>Australia</location>
- <searchable>true</searchable>
- <nsfw>false</nsfw>
- <tag_string>#redmatrix #hubzilla </tag_string>
- </profile></post>
- </XML>';
-
- $parsed_xml = xml2array($s,false,0,'tag');
-
- $o = print_r($parsed_xml,true);
- return $o;
-
-
- // fix_system_urls('http://hz.macgirvin.com',z_root());
-
- }
-
-}
diff --git a/Zotlabs/Module/Zcard.php b/Zotlabs/Module/Zcard.php
deleted file mode 100644
index b8967023e..000000000
--- a/Zotlabs/Module/Zcard.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-namespace Zotlabs\Module;
-
-
-
-class Zcard extends \Zotlabs\Web\Controller {
-
- function init() {
-
- /*
- if(argc() > 1)
- $which = argv(1);
- if(! $which)
- return;
-
-
- $arr = array();
- $arr['links'] = array();
-
- $r = q("select * from channel left join xchan on xchan_hash = channel_hash where channel_address = '%s' limit 1",
- dbesc($which)
- );
-
- if(! $which) {
- notice( t('Channel not found.' ) . EOL);
- return;
- }
-
- $channel = $r[0];
- $channel['channel_addr'] = $r[0]['channel_address'] . '@' . \App::get_hostname();
- $arr['chan'] = $channel;
-
- if(perm_is_allowed($channel['channel_id'],get_observer_hash(),'view_profile')) {
- $p = q("select * from profile where is_default = 1 and uid = %d limit 1",
- intval($channel['channel_id'])
- );
- }
- $profile = (($p) ? $p[0] : false);
-
- $r = q("select height, width, resource_id, scale, type from photo where uid = %d and scale >= %d and photo_usage = %d",
- intval($channel['channel_id']),
- intval(PHOTO_RES_COVER_1200),
- intval(PHOTO_COVER)
- );
-
- if($r) {
- foreach($r as $rr) {
- $arr['links'][] = array('rel' => 'cover_photo', 'type' => $rr['type'], 'width' => intval($rr['width']) , 'height' => intval($rr['height']), 'href' => z_root() . '/photo/' . $rr['resource_id'] . '-' . $rr['scale']);
- }
- }
-
- $arr['links'][] = array('rel' => 'profile_photo', 'type' => $channel['xchan_photo_mimetype'], 'width' => 300 , 'height' => 300, 'href' => $channel['xchan_photo_l']);
- $arr['links'][] = array('rel' => 'profile_photo', 'type' => $channel['xchan_photo_mimetype'], 'width' => 80 , 'height' => 80, 'href' => $channel['xchan_photo_m']);
- $arr['links'][] = array('rel' => 'profile_photo', 'type' => $channel['xchan_photo_mimetype'], 'width' => 48 , 'height' => 48, 'href' => $channel['xchan_photo_s']);
-
-
-
- $likers = q("select liker, xchan.* from likes left join xchan on liker = xchan_hash where channel_id = %d and target_type = '%s' and verb = '%s'",
- intval(\App::$profile['profile_uid']),
- dbesc(ACTIVITY_OBJ_PROFILE),
- dbesc(ACTIVITY_LIKE)
- );
- $profile['likers'] = array();
- $profile['like_count'] = count($likers);
- $profile['like_button_label'] = tt('Like','Likes',$profile['like_count'],'noun');
- if($likers) {
- foreach($likers as $l)
- $profile['likers'][] = array('name' => $l['xchan_name'],'url' => $l['xchan_url'], 'photo' => $l['xchan_photo_s']);
- }
-
- $arr['profile'] = $profile;
-
- logger('zcard: ' . print_r($arr,true));
-
- if(argc() > 2)
- \App::$data['zcard'] = $arr;
- else {
- echo json_encode($arr);
- killme();
-
- }
- */
- }
-
-
-
- function get() {
-
- $channel = channelx_by_nick(argv(1));
- if(! $channel)
- return;
-
- $o = get_zcard($channel,get_observer_hash(),array('width' => $_REQUEST['width'], 'height' => $_REQUEST['height']));
-
- // $o .= replace_macros(get_markup_template('zcard.tpl'),array(
- // '$scale' => $scale,
- // '$cover' => $cover,
- // '$pphoto' => $pphoto,
- // '$zcard' => $zcard,
- // '$size' => 'small'
- // ));
-
- return $o;
-
-
- }
-}