start formatting for Doxygen
This commit is contained in:
parent
ddc478a331
commit
ea3940c4b0
1
boot.php
1
boot.php
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
/** @file */
|
||||
|
||||
require_once('include/config.php');
|
||||
require_once('include/network.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
if(class_exists('BaseObject'))
|
||||
return;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
function abook_connections($channel_id, $sql_conditions = '') {
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
if(class_exists('Conversation'))
|
||||
return;
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
if(class_exists('Item'))
|
||||
return;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
if(! class_exists("Photo")) {
|
||||
class Photo {
|
||||
|
||||
private $image;
|
||||
@ -605,7 +605,7 @@ class Photo {
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
/*
|
||||
* Abstraction class for dealing with alternate networks (which of course do not exist, hence the abstraction)
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('library/HTML5/Parser.php');
|
||||
require_once('include/crypto.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/config.php');
|
||||
require_once('include/network.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
function profile_activity($changed, $value) {
|
||||
$a = get_app();
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once("bbcode.php");
|
||||
require_once("datetime.php");
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
/*
|
||||
* File/attach API with the potential for revision control.
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
require_once('include/security.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once("include/oembed.php");
|
||||
require_once("include/event.php");
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once("include/oembed.php");
|
||||
require_once('include/event.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
/**
|
||||
* cache api
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('boot.php');
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
function contact_profile_assign($current,$foreign_net) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
function follow_widget() {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/items.php');
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('boot.php');
|
||||
require_once('include/cli_startup.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('library/ASNValue.class.php');
|
||||
require_once('library/asn1.php');
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
// two-level sort for timezones.
|
||||
|
||||
if(! function_exists('timezone_cmp')) {
|
||||
|
||||
function timezone_cmp($a, $b) {
|
||||
if(strstr($a,'/') && strstr($b,'/')) {
|
||||
if ( t($a) == t($b)) return 0;
|
||||
@ -12,10 +12,10 @@ function timezone_cmp($a, $b) {
|
||||
if(strstr($b,'/')) return 1;
|
||||
if ( t($a) == t($b)) return 0;
|
||||
return ( t($a) < t($b)) ? -1 : 1;
|
||||
}}
|
||||
}
|
||||
|
||||
// emit a timezone selector grouped (primarily) by continent
|
||||
if(! function_exists('select_timezone')) {
|
||||
|
||||
function select_timezone($current = 'America/Los_Angeles') {
|
||||
|
||||
$timezone_identifiers = DateTimeZone::listIdentifiers();
|
||||
@ -52,13 +52,13 @@ function select_timezone($current = 'America/Los_Angeles') {
|
||||
}
|
||||
$o .= '</optgroup></select>';
|
||||
return $o;
|
||||
}}
|
||||
}
|
||||
|
||||
// return a select using 'field_select_raw' template, with timezones
|
||||
// groupped (primarily) by continent
|
||||
// arguments follow convetion as other field_* template array:
|
||||
// 'name', 'label', $value, 'help'
|
||||
if (!function_exists('field_timezone')){
|
||||
|
||||
function field_timezone($name='timezone', $label='', $current = 'America/Los_Angeles', $help){
|
||||
$options = select_timezone($current);
|
||||
$options = str_replace('<select id="timezone_select" name="timezone">','', $options);
|
||||
@ -69,7 +69,7 @@ function field_timezone($name='timezone', $label='', $current = 'America/Los_Ang
|
||||
'$field' => array($name, $label, $current, $help, $options),
|
||||
));
|
||||
|
||||
}}
|
||||
}
|
||||
|
||||
// General purpose date parse/convert function.
|
||||
// $from = source timezone
|
||||
@ -77,7 +77,7 @@ function field_timezone($name='timezone', $label='', $current = 'America/Los_Ang
|
||||
// $s = some parseable date/time string
|
||||
// $fmt = output format
|
||||
|
||||
if(! function_exists('datetime_convert')) {
|
||||
|
||||
function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d H:i:s") {
|
||||
|
||||
// Defaults to UTC if nothing is set, but throws an exception if set to empty string.
|
||||
@ -124,7 +124,7 @@ function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d
|
||||
|
||||
$d->setTimeZone($to_obj);
|
||||
return($d->format($fmt));
|
||||
}}
|
||||
}
|
||||
|
||||
// wrapper for date selector, tailored for use in birthday fields
|
||||
|
||||
@ -180,7 +180,7 @@ function datesel_format($f) {
|
||||
// $m = already selected month
|
||||
// $d = already selected day
|
||||
|
||||
if(! function_exists('datesel')) {
|
||||
|
||||
function datesel($f,$pre,$ymin,$ymax,$allow_blank,$y,$m,$d) {
|
||||
|
||||
$o = '';
|
||||
@ -231,9 +231,9 @@ function datesel($f,$pre,$ymin,$ymax,$allow_blank,$y,$m,$d) {
|
||||
|
||||
$o .= "</select>";
|
||||
return $o;
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
if(! function_exists('timesel')) {
|
||||
function timesel($pre,$h,$m) {
|
||||
|
||||
$o = '';
|
||||
@ -250,7 +250,7 @@ function timesel($pre,$h,$m) {
|
||||
|
||||
$o .= "</select>";
|
||||
return $o;
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -264,7 +264,7 @@ function timesel($pre,$h,$m) {
|
||||
// Results relative to current timezone
|
||||
// Limited to range of timestamps
|
||||
|
||||
if(! function_exists('relative_date')) {
|
||||
|
||||
function relative_date($posted_date,$format = null) {
|
||||
|
||||
$localtime = datetime_convert('UTC',date_default_timezone_get(),$posted_date);
|
||||
@ -300,7 +300,7 @@ function relative_date($posted_date,$format = null) {
|
||||
return sprintf( $format,$r, (($r == 1) ? $str[0] : $str[1]));
|
||||
}
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -341,7 +341,7 @@ function age($dob,$owner_tz = '',$viewer_tz = '') {
|
||||
// $month[1] = 'January';
|
||||
// to match human usage.
|
||||
|
||||
if(! function_exists('get_dim')) {
|
||||
|
||||
function get_dim($y,$m) {
|
||||
|
||||
$dim = array( 0,
|
||||
@ -353,7 +353,7 @@ function get_dim($y,$m) {
|
||||
if(((($y % 4) == 0) && (($y % 100) != 0)) || (($y % 400) == 0))
|
||||
return 29;
|
||||
return $dim[2];
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
// Returns the first day in month for a given month, year
|
||||
@ -361,11 +361,11 @@ function get_dim($y,$m) {
|
||||
// returns 0 = Sunday through 6 = Saturday
|
||||
// Months start at 1.
|
||||
|
||||
if(! function_exists('get_first_dim')) {
|
||||
|
||||
function get_first_dim($y,$m) {
|
||||
$d = sprintf('%04d-%02d-01 00:00', intval($y), intval($m));
|
||||
return datetime_convert('UTC','UTC',$d,'w');
|
||||
}}
|
||||
}
|
||||
|
||||
// output a calendar for the given month, year.
|
||||
// if $links are provided (array), e.g. $links[12] => 'http://mylink' ,
|
||||
@ -376,8 +376,6 @@ function get_first_dim($y,$m) {
|
||||
|
||||
// TODO: provide (prev,next) links, define class variations for different size calendars
|
||||
|
||||
|
||||
if(! function_exists('cal')) {
|
||||
function cal($y = 0,$m = 0, $links = false, $class='') {
|
||||
|
||||
|
||||
@ -442,6 +440,6 @@ function cal($y = 0,$m = 0, $links = false, $class='') {
|
||||
$o .= '</tr></table>'."\r\n";
|
||||
|
||||
return $o;
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/datetime.php');
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/cli_startup.php');
|
||||
require_once('include/zot.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/permissions.php');
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
g<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('boot.php');
|
||||
require_once('include/zot.php');
|
||||
require_once('include/cli_startup.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
function notification($params) {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
function format_event_html($ev) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('boot.php');
|
||||
require_once('include/cli_startup.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
/*
|
||||
* Features management
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once("library/Smarty/libs/Smarty.class.php");
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/cli_startup.php');
|
||||
require_once('include/zot.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
function group_add($uid,$name) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
/*
|
||||
html2bbcode.php
|
||||
Converter for HTML to BBCode
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
require_once "html2bbcode.php";
|
||||
|
||||
function breaklines($line, $level, $wraplength = 75)
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/zot.php');
|
||||
require_once('include/crypto.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
function network_query($a,$arr) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/bbcode.php');
|
||||
require_once('include/oembed.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
function js_strings() {
|
||||
return replace_macros(get_markup_template('js_strings.tpl'), array(
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
/* Private Message backend API */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
function nav(&$a) {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once("boot.php");
|
||||
require_once('include/queue_fn.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
function format_notification($item) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
/**
|
||||
* OAuth server
|
||||
* Based on oauth2-php <http://code.google.com/p/oauth2-php/>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
function oembed_replacecb($matches){
|
||||
// logger('oembedcb');
|
||||
$embedurl=$matches[1];
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('boot.php');
|
||||
require_once('include/cli_startup.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
function get_perms() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/permissions.php');
|
||||
require_once('include/items.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once("include/friendica_smarty.php");
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('boot.php');
|
||||
require_once('include/cli_startup.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
function advanced_profile(&$a) {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
function gender_selector($current="",$suffix="") {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
require_once("boot.php");
|
||||
require_once('include/cli_startup.php');
|
||||
require_once('include/queue_fn.php');
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
function update_queue_time($id) {
|
||||
logger('queue: requeue item ' . $id);
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
function authenticate_success($user_record, $login_initial = false, $interactive = false,$return = false,$update_lastlog = false) {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
// Session management functions. These provide database storage of PHP
|
||||
// session info.
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/zot.php');
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
function system_down() {
|
||||
echo <<< EOT
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
define ("KEY_NOT_EXISTS", '^R_key_not_Exists^');
|
||||
|
||||
class Template {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
// This is our template processor.
|
||||
// $s is the string requiring macro substitution.
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php /** @file */
|
||||
|
||||
require_once('include/crypto.php');
|
||||
require_once('include/items.php');
|
||||
|
@ -1 +1 @@
|
||||
2013-02-24.234
|
||||
2013-02-25.235
|
||||
|
Reference in New Issue
Block a user