Merge pull request #2204 from rabuzarus/2512_todo_list

reformat todo according to doxygen style
This commit is contained in:
Tobias Diekershoff 2015-12-26 08:50:17 +01:00
commit 1eae40592c
26 changed files with 164 additions and 163 deletions

View file

@ -159,9 +159,10 @@ function mark_for_death($contact) {
} }
else { else {
// TODO: We really should send a notification to the owner after 2-3 weeks /// @todo
// so they won't be surprised when the contact vanishes and can take /// We really should send a notification to the owner after 2-3 weeks
// remedial action if this was a serious mistake or glitch /// so they won't be surprised when the contact vanishes and can take
/// remedial action if this was a serious mistake or glitch
$expiry = $contact['term-date'] . ' + 32 days '; $expiry = $contact['term-date'] . ' + 32 days ';
if(datetime_convert() > datetime_convert('UTC','UTC',$expiry)) { if(datetime_convert() > datetime_convert('UTC','UTC',$expiry)) {

View file

@ -873,9 +873,9 @@ function store_photo($a, $uid, $imagedata = "", $url = "") {
$page_owner_nick = $r[0]['nickname']; $page_owner_nick = $r[0]['nickname'];
// To-Do: /// @TODO
// $default_cid = $r[0]['id']; /// $default_cid = $r[0]['id'];
// $community_page = (($r[0]['page-flags'] == PAGE_COMMUNITY) ? true : false); /// $community_page = (($r[0]['page-flags'] == PAGE_COMMUNITY) ? true : false);
if ((strlen($imagedata) == 0) AND ($url == "")) { if ((strlen($imagedata) == 0) AND ($url == "")) {
logger("No image data and no url provided", LOGGER_DEBUG); logger("No image data and no url provided", LOGGER_DEBUG);

View file

@ -1,6 +1,8 @@
<?php <?php
/* To-Do: /**
- Automatically detect if incoming data is HTML or BBCode * @file include/api.php
*
* @todo Automatically detect if incoming data is HTML or BBCode
*/ */
/* Contact details: /* Contact details:
@ -261,7 +263,7 @@
} }
function api_error(&$a, $type, $error) { function api_error(&$a, $type, $error) {
# TODO: https://dev.twitter.com/overview/api/response-codes /// @TODO https://dev.twitter.com/overview/api/response-codes
$r = "<status><error>".$error."</error><request>".$a->query_string."</request></status>"; $r = "<status><error>".$error."</error><request>".$a->query_string."</request></status>";
switch($type){ switch($type){
case "xml": case "xml":
@ -880,7 +882,7 @@
$_REQUEST['body'] .= "\n\n".$media; $_REQUEST['body'] .= "\n\n".$media;
} }
// To-Do: Multiple IDs /// @TODO Multiple IDs
if (requestdata('media_ids')) { if (requestdata('media_ids')) {
$r = q("SELECT `resource-id`, `scale`, `nickname`, `type` FROM `photo` INNER JOIN `user` ON `user`.`uid` = `photo`.`uid` WHERE `resource-id` IN (SELECT `resource-id` FROM `photo` WHERE `id` = %d) AND `scale` > 0 AND `photo`.`uid` = %d ORDER BY `photo`.`width` DESC LIMIT 1", $r = q("SELECT `resource-id`, `scale`, `nickname`, `type` FROM `photo` INNER JOIN `user` ON `user`.`uid` = `photo`.`uid` WHERE `resource-id` IN (SELECT `resource-id` FROM `photo` WHERE `id` = %d) AND `scale` > 0 AND `photo`.`uid` = %d ORDER BY `photo`.`width` DESC LIMIT 1",
intval(requestdata('media_ids')), api_user()); intval(requestdata('media_ids')), api_user());
@ -1192,8 +1194,8 @@
* *
* http://developer.twitter.com/doc/get/statuses/home_timeline * http://developer.twitter.com/doc/get/statuses/home_timeline
* *
* TODO: Optional parameters * @TODO Optional parameters
* TODO: Add reply info * @TODO Add reply info
*/ */
function api_statuses_home_timeline(&$a, $type){ function api_statuses_home_timeline(&$a, $type){
if (api_user()===false) return false; if (api_user()===false) return false;
@ -1725,8 +1727,8 @@
function api_favorites_create_destroy(&$a, $type){ function api_favorites_create_destroy(&$a, $type){
if (api_user()===false) return false; if (api_user()===false) return false;
# for versioned api. // for versioned api.
# TODO: we need a better global soluton /// @TODO We need a better global soluton
$action_argv_id=2; $action_argv_id=2;
if ($a->argv[1]=="1.1") $action_argv_id=3; if ($a->argv[1]=="1.1") $action_argv_id=3;
@ -2013,10 +2015,8 @@
} }
function api_get_entitities(&$text, $bbcode) { function api_get_entitities(&$text, $bbcode) {
/* /// @todo
To-Do: /// Links at the first character of the post
* Links at the first character of the post
*/
$a = get_app(); $a = get_app();
@ -2871,10 +2871,8 @@ function api_share_as_retweet(&$item) {
} }
function api_get_nick($profile) { function api_get_nick($profile) {
/* To-Do: /// @TODO Remove trailing junk from profile url
- remove trailing junk from profile url /// @TODO pump.io check has to check the website
- pump.io check has to check the website
*/
$nick = ""; $nick = "";
@ -2922,7 +2920,7 @@ function api_get_nick($profile) {
} }
} }
// To-Do: look at the page if its really a pumpio site /// @TODO Look at the page if its really a pumpio site
//if (!$nick == "") { //if (!$nick == "") {
// $pumpio = preg_replace("=https?://(.*)/(.*)/=ism", "$2", $profile."/"); // $pumpio = preg_replace("=https?://(.*)/(.*)/=ism", "$2", $profile."/");
// if ($pumpio != $profile) // if ($pumpio != $profile)

View file

@ -140,7 +140,7 @@ function cron_run(&$argv, &$argc){
// update nodeinfo data // update nodeinfo data
nodeinfo_cron(); nodeinfo_cron();
// To-Do: Regenerate usage statistics /// @TODO Regenerate usage statistics
// q("ANALYZE TABLE `item`"); // q("ANALYZE TABLE `item`");
// once daily run birthday_updates and then expire in background // once daily run birthday_updates and then expire in background

View file

@ -377,7 +377,7 @@ function get_first_dim($y,$m) {
// Months count from 1. // Months count from 1.
// TODO: provide (prev,next) links, define class variations for different size calendars /// @TODO Provide (prev,next) links, define class variations for different size calendars
if(! function_exists('cal')) { if(! function_exists('cal')) {

View file

@ -14,8 +14,7 @@ if(class_exists('\PDO') && in_array('mysql', PDO::getAvailableDrivers())) {
require_once('include/datetime.php'); require_once('include/datetime.php');
/** /**
* * @class MySQL database class
* MySQL database class
* *
* For debugging, insert 'dbg(1);' anywhere in the program flow. * For debugging, insert 'dbg(1);' anywhere in the program flow.
* dbg(0); will turn it off. Logging is performed at LOGGER_DATA level. * dbg(0); will turn it off. Logging is performed at LOGGER_DATA level.

View file

@ -1,8 +1,9 @@
<?php <?php
/* /**
To-Do: * @file include/diaspora.php
- GET /people/9aed8882b9f64896/stream *
* @todo GET /people/9aed8882b9f64896/stream
*/ */
require_once('include/crypto.php'); require_once('include/crypto.php');
@ -1017,8 +1018,8 @@ function diaspora_store_by_guid($guid, $server, $uid = 0) {
DiasporaFetchGuid($datarray); DiasporaFetchGuid($datarray);
$message_id = item_store($datarray); $message_id = item_store($datarray);
// To-Do: /// @TODO
// Looking if there is some subscribe mechanism in Diaspora to get all comments for this post /// Looking if there is some subscribe mechanism in Diaspora to get all comments for this post
return $message_id; return $message_id;
} }
@ -1088,8 +1089,8 @@ function diaspora_fetch_message($guid, $server, $level = 0) {
$body = scale_external_images($body); $body = scale_external_images($body);
// Add OEmbed and other information to the body // Add OEmbed and other information to the body
// To-Do: It could be a repeated redmatrix item /// @TODO It could be a repeated redmatrix item
// Then we shouldn't add further data to it /// Then we shouldn't add further data to it
if ($item["object-type"] == ACTIVITY_OBJ_NOTE) if ($item["object-type"] == ACTIVITY_OBJ_NOTE)
$body = add_page_info_to_body($body, false, true); $body = add_page_info_to_body($body, false, true);
@ -2462,8 +2463,8 @@ function diaspora_profile($importer,$xml,$msg) {
if(substr($birthday,5) === substr($contact['bd'],5)) if(substr($birthday,5) === substr($contact['bd'],5))
$birthday = $contact['bd']; $birthday = $contact['bd'];
// TODO: update name on item['author-name'] if the name changed. See consume_feed() /// @TODO Update name on item['author-name'] if the name changed. See consume_feed()
// Not doing this currently because D* protocol is scheduled for revision soon. /// (Not doing this currently because D* protocol is scheduled for revision soon).
$r = q("UPDATE `contact` SET `name` = '%s', `name-date` = '%s', `photo` = '%s', `thumb` = '%s', `micro` = '%s', `avatar-date` = '%s' , `bd` = '%s', `location` = '%s', `about` = '%s', `keywords` = '%s', `gender` = '%s' WHERE `id` = %d AND `uid` = %d", $r = q("UPDATE `contact` SET `name` = '%s', `name-date` = '%s', `photo` = '%s', `thumb` = '%s', `micro` = '%s', `avatar-date` = '%s' , `bd` = '%s', `location` = '%s', `about` = '%s', `keywords` = '%s', `gender` = '%s' WHERE `id` = %d AND `uid` = %d",
dbesc($name), dbesc($name),

View file

@ -251,9 +251,9 @@ function email_header_encode($in_str, $charset) {
/** /**
* email_send is used by NETWORK_EMAIL and NETWORK_EMAIL2 code * email_send is used by NETWORK_EMAIL and NETWORK_EMAIL2 code
* (not to notify the user, but to send items to email contacts * (not to notify the user, but to send items to email contacts)
* *
* TODO: this could be changed to use the Emailer class * @todo This could be changed to use the Emailer class
*/ */
function email_send($addr, $subject, $headers, $item) { function email_send($addr, $subject, $headers, $item) {
//$headers .= 'MIME-Version: 1.0' . "\n"; //$headers .= 'MIME-Version: 1.0' . "\n";

View file

@ -210,7 +210,7 @@ function feed_import($xml,$importer,&$contact, &$hub) {
continue; continue;
} }
// To-Do? /// @TODO ?
// <category>Ausland</category> // <category>Ausland</category>
// <media:thumbnail width="152" height="76" url="http://www.taz.de/picture/667875/192/14388767.jpg"/> // <media:thumbnail width="152" height="76" url="http://www.taz.de/picture/667875/192/14388767.jpg"/>

View file

@ -1097,10 +1097,13 @@ function add_guid($item) {
dbesc($item["uri"]), dbesc($item["network"])); dbesc($item["uri"]), dbesc($item["network"]));
} }
// Adds a "lang" specification in a "postopts" element of given $arr, /**
// if possible and not already present. * Adds a "lang" specification in a "postopts" element of given $arr,
// Expects "body" element to exist in $arr. * if possible and not already present.
// TODO: add a parameter to request forcing override * Expects "body" element to exist in $arr.
*
* @todo Add a parameter to request forcing override
*/
function item_add_language_opt(&$arr) { function item_add_language_opt(&$arr) {
if (version_compare(PHP_VERSION, '5.3.0', '<')) return; // LanguageDetect.php not available ? if (version_compare(PHP_VERSION, '5.3.0', '<')) return; // LanguageDetect.php not available ?
@ -1110,7 +1113,7 @@ function item_add_language_opt(&$arr) {
if ( strstr($arr['postopts'], 'lang=') ) if ( strstr($arr['postopts'], 'lang=') )
{ {
// do not override // do not override
// TODO: add parameter to request overriding /// @TODO Add parameter to request overriding
return; return;
} }
$postopts = $arr['postopts']; $postopts = $arr['postopts'];
@ -3228,11 +3231,11 @@ function local_delivery($importer,$data) {
return 1; return 1;
} }
// TODO /// @TODO
// merge with current record, current contents have priority /// merge with current record, current contents have priority
// update record, set url-updated /// update record, set url-updated
// update profile photos /// update profile photos
// schedule a scan? /// schedule a scan?
return 0; return 0;
} }
@ -4515,11 +4518,11 @@ function atom_entry($item,$type,$author,$owner,$comment = false,$cid = 0) {
$o .= '<category scheme="X-DFRN:' . xmlify($t[0]) . ':' . xmlify($t[1]) . '" term="' . xmlify($t[2]) . '" />' . "\r\n"; $o .= '<category scheme="X-DFRN:' . xmlify($t[0]) . ':' . xmlify($t[1]) . '" term="' . xmlify($t[2]) . '" />' . "\r\n";
} }
// To-Do: /// @TODO
// To support these elements, the API needs to be enhanced /// To support these elements, the API needs to be enhanced
//$o .= '<link rel="ostatus:conversation" href="'.xmlify($a->get_baseurl().'/display/'.$owner['nickname'].'/'.$item['parent']).'"/>'."\r\n"; /// $o .= '<link rel="ostatus:conversation" href="'.xmlify($a->get_baseurl().'/display/'.$owner['nickname'].'/'.$item['parent']).'"/>'."\r\n";
//$o .= "\t".'<link rel="self" type="application/atom+xml" href="'.xmlify($a->get_baseurl().'/api/statuses/show/'.$item['id'].'.atom').'"/>'."\r\n"; /// $o .= "\t".'<link rel="self" type="application/atom+xml" href="'.xmlify($a->get_baseurl().'/api/statuses/show/'.$item['id'].'.atom').'"/>'."\r\n";
//$o .= "\t".'<link rel="edit" type="application/atom+xml" href="'.xmlify($a->get_baseurl().'/api/statuses/show/'.$item['id'].'.atom').'"/>'."\r\n"; /// $o .= "\t".'<link rel="edit" type="application/atom+xml" href="'.xmlify($a->get_baseurl().'/api/statuses/show/'.$item['id'].'.atom').'"/>'."\r\n";
// Deactivated since it was meant only for OStatus // Deactivated since it was meant only for OStatus
//$o .= item_get_attachment($item); //$o .= item_get_attachment($item);

View file

@ -127,9 +127,9 @@ function removesig($message)
if (($sigpos < $quotepos) and ($sigpos != 0)) if (($sigpos < $quotepos) and ($sigpos != 0))
return(array('body' => $message, 'sig' => '')); return(array('body' => $message, 'sig' => ''));
// To-Do: Regexp umstellen, so dass auf 1 oder kein Leerzeichen /// @TODO Regexp umstellen, so dass auf 1 oder kein Leerzeichen
// geprueft wird /// geprueft wird
//$message = str_replace("\n--\n", "\n-- \n", $message); /// $message = str_replace("\n--\n", "\n-- \n", $message);
$pattern = '/(.*)[\r\n]-- [\r\n](.*)/is'; $pattern = '/(.*)[\r\n]-- [\r\n](.*)/is';

View file

@ -587,7 +587,7 @@ function lrdd($uri, $debug = false) {
$lines = explode("\n",$headers); $lines = explode("\n",$headers);
if(count($lines)) { if(count($lines)) {
foreach($lines as $line) { foreach($lines as $line) {
// TODO alter the following regex to support multiple relations (space separated) /// @TODO Alter the following regex to support multiple relations (space separated)
if((stristr($line,'link:')) && preg_match('/<([^>].*)>.*rel\=[\'\"]lrdd[\'\"]/',$line,$matches)) { if((stristr($line,'link:')) && preg_match('/<([^>].*)>.*rel\=[\'\"]lrdd[\'\"]/',$line,$matches)) {
$pagelink = $matches[1]; $pagelink = $matches[1];
break; break;

View file

@ -966,7 +966,7 @@ function notifier_run(&$argv, &$argc){
if($url) { if($url) {
logger('notifier: urldelivery: ' . $url); logger('notifier: urldelivery: ' . $url);
$deliver_status = slapper($owner,$url,$slap); $deliver_status = slapper($owner,$url,$slap);
// TODO: redeliver/queue these items on failure, though there is no contact record /// @TODO Redeliver/queue these items on failure, though there is no contact record
} }
} }
} }

View file

@ -109,9 +109,8 @@ function onepoll_run(&$argv, &$argc){
poco_load($contact['id'],$importer_uid,0,$contact['poco']); poco_load($contact['id'],$importer_uid,0,$contact['poco']);
} }
// To-Do: /// @TODO Check why we don't poll the Diaspora feed at the moment (some guid problem in the items?)
// - Check why we don't poll the Diaspora feed at the moment (some guid problem in the items?) /// @TODO Check whether this is possible with Redmatrix
// - Check whether this is possible with Redmatrix
if ($contact["network"] == NETWORK_DIASPORA) { if ($contact["network"] == NETWORK_DIASPORA) {
if (poco_do_update($contact["created"], $contact["last-item"], $contact["failure_update"], $contact["success_update"])) { if (poco_do_update($contact["created"], $contact["last-item"], $contact["failure_update"], $contact["success_update"])) {
$last_updated = poco_last_updated($contact["url"]); $last_updated = poco_last_updated($contact["url"]);
@ -507,7 +506,7 @@ function onepoll_run(&$argv, &$argc){
logger("Mail: Importing ".$msg_uid." for ".$mailconf[0]['user']); logger("Mail: Importing ".$msg_uid." for ".$mailconf[0]['user']);
// some mailing lists have the original author as 'from' - add this sender info to msg body. // some mailing lists have the original author as 'from' - add this sender info to msg body.
// todo: adding a gravatar for the original author would be cool /// @TODO Adding a gravatar for the original author would be cool
if(! stristr($meta->from,$contact['addr'])) { if(! stristr($meta->from,$contact['addr'])) {
$from = imap_mime_header_decode($meta->from); $from = imap_mime_header_decode($meta->from);

View file

@ -298,8 +298,8 @@ function ostatus_import($xml,$importer,&$contact, &$hub) {
$item["object"] = $xml; $item["object"] = $xml;
$item["verb"] = $xpath->query('activity:verb/text()', $entry)->item(0)->nodeValue; $item["verb"] = $xpath->query('activity:verb/text()', $entry)->item(0)->nodeValue;
// To-Do: /// @TODO
// Delete a message /// Delete a message
if ($item["verb"] == "qvitter-delete-notice") { if ($item["verb"] == "qvitter-delete-notice") {
// ignore "Delete" messages (by now) // ignore "Delete" messages (by now)
logger("Ignore delete message ".print_r($item, true)); logger("Ignore delete message ".print_r($item, true));
@ -361,8 +361,8 @@ function ostatus_import($xml,$importer,&$contact, &$hub) {
if ($georsspoint) if ($georsspoint)
$item["coord"] = $georsspoint->item(0)->nodeValue; $item["coord"] = $georsspoint->item(0)->nodeValue;
// To-Do /// @TODO
// $item["location"] = /// $item["location"] =
$categories = $xpath->query('atom:category', $entry); $categories = $xpath->query('atom:category', $entry);
if ($categories) { if ($categories) {
@ -833,7 +833,7 @@ function ostatus_completion($conversation_url, $uid, $item = array()) {
$existing_message = $message_exists[0]; $existing_message = $message_exists[0];
// We improved the way we fetch OStatus messages, this shouldn't happen very often now // We improved the way we fetch OStatus messages, this shouldn't happen very often now
// To-Do: we have to change the shadow copies as well. This way here is really ugly. /// @TODO We have to change the shadow copies as well. This way here is really ugly.
if ($existing_message["parent"] != $parent["id"]) { if ($existing_message["parent"] != $parent["id"]) {
logger('updating id '.$existing_message["id"].' with parent '.$existing_message["parent"].' to parent '.$parent["id"].' uri '.$parent["uri"].' thread '.$parent_uri, LOGGER_DEBUG); logger('updating id '.$existing_message["id"].' with parent '.$existing_message["parent"].' to parent '.$parent["id"].' uri '.$parent["uri"].' thread '.$parent_uri, LOGGER_DEBUG);
@ -886,7 +886,7 @@ function ostatus_completion($conversation_url, $uid, $item = array()) {
logger("No contact found for url ".$actor, LOGGER_DEBUG); logger("No contact found for url ".$actor, LOGGER_DEBUG);
// Adding a global contact // Adding a global contact
// To-Do: Use this data for the post /// @TODO Use this data for the post
$global_contact_id = get_contact($actor, 0); $global_contact_id = get_contact($actor, 0);
logger("Global contact ".$global_contact_id." found for url ".$actor, LOGGER_DEBUG); logger("Global contact ".$global_contact_id." found for url ".$actor, LOGGER_DEBUG);
@ -1153,11 +1153,11 @@ function ostatus_add_header($doc, $owner) {
$attributes = array("href" => $owner["url"], "rel" => "alternate", "type" => "text/html"); $attributes = array("href" => $owner["url"], "rel" => "alternate", "type" => "text/html");
xml_add_element($doc, $root, "link", "", $attributes); xml_add_element($doc, $root, "link", "", $attributes);
// To-Do: We have to find out what this is /// @TODO We have to find out what this is
//$attributes = array("href" => $a->get_baseurl()."/sup", /// $attributes = array("href" => $a->get_baseurl()."/sup",
// "rel" => "http://api.friendfeed.com/2008/03#sup", /// "rel" => "http://api.friendfeed.com/2008/03#sup",
// "type" => "application/json"); /// "type" => "application/json");
//xml_add_element($doc, $root, "link", "", $attributes); /// xml_add_element($doc, $root, "link", "", $attributes);
ostatus_hublinks($doc, $root); ostatus_hublinks($doc, $root);
@ -1311,12 +1311,11 @@ function ostatus_add_author($doc, $owner, $profile) {
return $author; return $author;
} }
/* /**
To-Do: Picture attachments should look like this: * @TODO Picture attachments should look like this:
* <a href="https://status.pirati.ca/attachment/572819" title="https://status.pirati.ca/file/heluecht-20151202T222602-rd3u49p.gif"
<a href="https://status.pirati.ca/attachment/572819" title="https://status.pirati.ca/file/heluecht-20151202T222602-rd3u49p.gif" * class="attachment thumbnail" id="attachment-572819" rel="nofollow external">https://status.pirati.ca/attachment/572819</a>
class="attachment thumbnail" id="attachment-572819" rel="nofollow external">https://status.pirati.ca/attachment/572819</a> *
*/ */
function ostatus_entry($doc, $item, $owner, $toplevel = false) { function ostatus_entry($doc, $item, $owner, $toplevel = false) {
@ -1461,8 +1460,8 @@ function ostatus_entry($doc, $item, $owner, $toplevel = false) {
ostatus_get_attachment($doc, $entry, $item); ostatus_get_attachment($doc, $entry, $item);
// To-Do: /// @TODO
// The API call has yet to be implemented /// The API call has yet to be implemented
//$attributes = array("href" => $a->get_baseurl()."/api/statuses/show/".$item["id"].".atom", //$attributes = array("href" => $a->get_baseurl()."/api/statuses/show/".$item["id"].".atom",
// "rel" => "self", "type" => "application/atom+xml"); // "rel" => "self", "type" => "application/atom+xml");
//xml_add_element($doc, $entry, "link", "", $attributes); //xml_add_element($doc, $entry, "link", "", $attributes);

View file

@ -106,8 +106,8 @@ function get_attached_data($body) {
} }
function shortenmsg($msg, $limit, $twitter = false) { function shortenmsg($msg, $limit, $twitter = false) {
// To-Do: /// @TODO
// For Twitter URLs aren't shortened, but they have to be calculated as if. /// For Twitter URLs aren't shortened, but they have to be calculated as if.
$lines = explode("\n", $msg); $lines = explode("\n", $msg);
$msg = ""; $msg = "";

View file

@ -56,8 +56,8 @@ function poller_run(&$argv, &$argc){
q("UPDATE `workerqueue` SET `executed` = '0000-00-00 00:00:00', `pid` = 0 WHERE `pid` = %d", q("UPDATE `workerqueue` SET `executed` = '0000-00-00 00:00:00', `pid` = 0 WHERE `pid` = %d",
intval($pid["pid"])); intval($pid["pid"]));
else { else {
// To-Do: Kill long running processes /// @TODO Kill long running processes
// But: Update processes (like the database update) mustn't be killed /// But: Update processes (like the database update) mustn't be killed
} }
} else } else

View file

@ -1,15 +1,16 @@
<?php <?php
/**
* @file include/socgraph.php
*
* @todo Move GNU Social URL schemata (http://server.tld/user/number) to http://server.tld/username
* @todo Fetch profile data from profile page for Redmatrix users
* @todo Detect if it is a forum
*/
require_once('include/datetime.php'); require_once('include/datetime.php');
require_once("include/Scrape.php"); require_once("include/Scrape.php");
require_once("include/html2bbcode.php"); require_once("include/html2bbcode.php");
/*
To-Do:
- Move GNU Social URL schemata (http://server.tld/user/number) to http://server.tld/username
- Fetch profile data from profile page for Redmatrix users
- Detect if it is a forum
*/
/* /*
* poco_load * poco_load
@ -131,7 +132,7 @@ function poco_load($cid,$uid = 0,$zcid = 0,$url = null) {
$keywords = implode(", ", $tag); $keywords = implode(", ", $tag);
// If you query a Friendica server for its profiles, the network has to be Friendica // If you query a Friendica server for its profiles, the network has to be Friendica
// To-Do: It could also be a Redmatrix server /// TODO It could also be a Redmatrix server
//if ($uid == 0) //if ($uid == 0)
// $network = NETWORK_DFRN; // $network = NETWORK_DFRN;
@ -1244,7 +1245,7 @@ function update_suggestions() {
$done = array(); $done = array();
// To-Do: Check if it is really neccessary to poll the own server /// TODO Check if it is really neccessary to poll the own server
poco_load(0,0,0,$a->get_baseurl() . '/poco'); poco_load(0,0,0,$a->get_baseurl() . '/poco');
$done[] = $a->get_baseurl() . '/poco'; $done[] = $a->get_baseurl() . '/poco';

View file

@ -195,10 +195,10 @@ function import_account(&$a, $file) {
// send relocate message (below) // send relocate message (below)
break; break;
case NETWORK_ZOT: case NETWORK_ZOT:
// TODO handle zot network /// @TODO handle zot network
break; break;
case NETWORK_MAIL2: case NETWORK_MAIL2:
// TODO ? /// @TODO ?
break; break;
case NETWORK_FEED: case NETWORK_FEED:
case NETWORK_MAIL: case NETWORK_MAIL:

View file

@ -85,7 +85,7 @@ function api_content(&$a) {
if(! local_user()) { if(! local_user()) {
//TODO: we need login form to redirect to this page /// @TODO We need login form to redirect to this page
notice( t('Please login to continue.') . EOL ); notice( t('Please login to continue.') . EOL );
return login(false,$request->get_parameters()); return login(false,$request->get_parameters());
} }

View file

@ -130,8 +130,8 @@ function directory_content(&$a) {
// show if account is a community account // show if account is a community account
// ToDo the other should be also respected, but first we need a good translatiion /// @TODO The other page types should be also respected, but first we need a good
// and systemwide consistency for displaying the page type /// translatiion and systemwide consistency for displaying the page type
if((intval($rr['page-flags']) == PAGE_COMMUNITY) OR (intval($rr['page-flags']) == PAGE_PRVGROUP)) if((intval($rr['page-flags']) == PAGE_COMMUNITY) OR (intval($rr['page-flags']) == PAGE_PRVGROUP))
$community = true; $community = true;

View file

@ -176,10 +176,6 @@ function item_post(&$a) {
// have been provided, and run any anti-spam plugins // have been provided, and run any anti-spam plugins
// TODO
if((! can_write_wall($a,$profile_uid)) && (! $allow_moderated)) { if((! can_write_wall($a,$profile_uid)) && (! $allow_moderated)) {
notice( t('Permission denied.') . EOL) ; notice( t('Permission denied.') . EOL) ;

View file

@ -312,7 +312,7 @@ function network_content(&$a, $update = 0) {
return login(false); return login(false);
} }
// TODO:is this really necessary? $a is already available to hooks /// @TODO Is this really necessary? $a is already available to hooks
$arr = array('query' => $a->query_string); $arr = array('query' => $a->query_string);
call_hooks('network_content_init', $arr); call_hooks('network_content_init', $arr);
@ -346,8 +346,8 @@ function network_content(&$a, $update = 0) {
$o = ''; $o = '';
// item filter tabs // item filter tabs
// TODO: fix this logic, reduce duplication /// @TODO fix this logic, reduce duplication
//$a->page['content'] .= '<div class="tabs-wrapper">'; /// $a->page['content'] .= '<div class="tabs-wrapper">';
list($no_active, $all_active, $postord_active, $conv_active, $new_active, $starred_active, $bookmarked_active, $spam_active) = network_query_get_sel_tab($a); list($no_active, $all_active, $postord_active, $conv_active, $new_active, $starred_active, $bookmarked_active, $spam_active) = network_query_get_sel_tab($a);
// if no tabs are selected, defaults to comments // if no tabs are selected, defaults to comments

View file

@ -1,16 +1,20 @@
<?php <?php
/* To-Do /**
https://developers.google.com/+/plugins/snippet/ * @file mod/parse_url.php
*
<meta itemprop="name" content="Toller Titel"> * @todo https://developers.google.com/+/plugins/snippet/
<meta itemprop="description" content="Eine tolle Beschreibung"> *
<meta itemprop="image" content="http://maple.libertreeproject.org/images/tree-icon.png"> * @verbatim
* <meta itemprop="name" content="Toller Titel">
<body itemscope itemtype="http://schema.org/Product"> * <meta itemprop="description" content="Eine tolle Beschreibung">
<h1 itemprop="name">Shiny Trinket</h1> * <meta itemprop="image" content="http://maple.libertreeproject.org/images/tree-icon.png">
<img itemprop="image" src="{image-url}" /> *
<p itemprop="description">Shiny trinkets are shiny.</p> * <body itemscope itemtype="http://schema.org/Product">
</body> * <h1 itemprop="name">Shiny Trinket</h1>
* <img itemprop="image" src="{image-url}" />
* <p itemprop="description">Shiny trinkets are shiny.</p>
* </body>
* @endverbatim
*/ */
if(!function_exists('deletenode')) { if(!function_exists('deletenode')) {

View file

@ -29,7 +29,7 @@ function uimport_post(&$a) {
} }
if (x($_FILES,'accountfile')){ if (x($_FILES,'accountfile')){
// TODO: pass $blocked / $verified, send email to admin on REGISTER_APPROVE /// @TODO Pass $blocked / $verified, send email to admin on REGISTER_APPROVE
import_account($a, $_FILES['accountfile']); import_account($a, $_FILES['accountfile']);
return; return;
} }