2020-01-26 09:54:21 -05:00
|
|
|
<?php
|
2020-02-09 09:45:36 -05:00
|
|
|
/**
|
2021-03-29 02:40:20 -04:00
|
|
|
* @copyright Copyright (C) 2010-2021, the Friendica project
|
2020-02-09 09:45:36 -05:00
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2020-01-26 09:54:21 -05:00
|
|
|
|
|
|
|
namespace Friendica\Module\Profile;
|
|
|
|
|
|
|
|
use Friendica\Content\Feature;
|
|
|
|
use Friendica\Content\ForumManager;
|
|
|
|
use Friendica\Content\Nav;
|
|
|
|
use Friendica\Content\Text\BBCode;
|
|
|
|
use Friendica\Content\Text\HTML;
|
|
|
|
use Friendica\Core\Hook;
|
|
|
|
use Friendica\Core\Protocol;
|
|
|
|
use Friendica\Core\Renderer;
|
|
|
|
use Friendica\Core\Session;
|
|
|
|
use Friendica\Core\System;
|
|
|
|
use Friendica\Database\DBA;
|
|
|
|
use Friendica\DI;
|
|
|
|
use Friendica\Model\Contact;
|
|
|
|
use Friendica\Model\Profile as ProfileModel;
|
2020-04-26 11:24:58 -04:00
|
|
|
use Friendica\Model\Tag;
|
2020-01-26 09:54:21 -05:00
|
|
|
use Friendica\Model\User;
|
|
|
|
use Friendica\Module\BaseProfile;
|
|
|
|
use Friendica\Module\Security\Login;
|
|
|
|
use Friendica\Network\HTTPException;
|
|
|
|
use Friendica\Protocol\ActivityPub;
|
|
|
|
use Friendica\Util\DateTimeFormat;
|
|
|
|
use Friendica\Util\Temporal;
|
|
|
|
|
|
|
|
class Profile extends BaseProfile
|
|
|
|
{
|
2021-11-14 14:46:25 -05:00
|
|
|
public static function rawContent()
|
2020-01-26 09:54:21 -05:00
|
|
|
{
|
|
|
|
if (ActivityPub::isRequest()) {
|
2021-11-14 14:46:25 -05:00
|
|
|
$user = DBA::selectFirst('user', ['uid'], ['nickname' => static::$parameters['nickname']]);
|
2020-01-26 09:54:21 -05:00
|
|
|
if (DBA::isResult($user)) {
|
2021-07-20 13:04:25 -04:00
|
|
|
try {
|
|
|
|
$data = ActivityPub\Transmitter::getProfile($user['uid']);
|
2020-04-05 18:02:38 -04:00
|
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
header('Cache-Control: max-age=23200, stale-while-revalidate=23200');
|
2020-01-26 09:54:21 -05:00
|
|
|
System::jsonExit($data, 'application/activity+json');
|
2021-07-20 13:04:25 -04:00
|
|
|
} catch (HTTPException\NotFoundException $e) {
|
|
|
|
System::jsonError(404, ['error' => 'Record not found']);
|
2020-01-26 09:54:21 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-14 14:46:25 -05:00
|
|
|
if (DBA::exists('userd', ['username' => static::$parameters['nickname']])) {
|
2020-01-26 09:54:21 -05:00
|
|
|
// Known deleted user
|
2021-11-14 14:46:25 -05:00
|
|
|
$data = ActivityPub\Transmitter::getDeletedUser(static::$parameters['nickname']);
|
2020-01-26 09:54:21 -05:00
|
|
|
|
|
|
|
System::jsonError(410, $data);
|
|
|
|
} else {
|
|
|
|
// Any other case (unknown, blocked, nverified, expired, no profile, no self contact)
|
|
|
|
System::jsonError(404, []);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-14 14:46:25 -05:00
|
|
|
public static function content()
|
2020-01-26 09:54:21 -05:00
|
|
|
{
|
|
|
|
$a = DI::app();
|
|
|
|
|
2021-11-14 14:46:25 -05:00
|
|
|
$profile = ProfileModel::load($a, static::$parameters['nickname']);
|
2021-07-24 06:09:39 -04:00
|
|
|
if (!$profile) {
|
2020-01-26 09:54:21 -05:00
|
|
|
throw new HTTPException\NotFoundException(DI::l10n()->t('Profile not found.'));
|
|
|
|
}
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
$remote_contact_id = Session::getRemoteContactID($profile['uid']);
|
2020-01-26 09:54:21 -05:00
|
|
|
|
|
|
|
if (DI::config()->get('system', 'block_public') && !local_user() && !$remote_contact_id) {
|
|
|
|
return Login::form();
|
|
|
|
}
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
$is_owner = local_user() == $profile['uid'];
|
2020-01-26 09:54:21 -05:00
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
if (!empty($profile['hidewall']) && !$is_owner && !$remote_contact_id) {
|
2020-01-26 09:54:21 -05:00
|
|
|
throw new HTTPException\ForbiddenException(DI::l10n()->t('Access to this profile has been restricted.'));
|
|
|
|
}
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
if (!empty($profile['page-flags']) && $profile['page-flags'] == User::PAGE_FLAGS_COMMUNITY) {
|
2020-01-26 09:54:21 -05:00
|
|
|
DI::page()['htmlhead'] .= '<meta name="friendica.community" content="true" />' . "\n";
|
|
|
|
}
|
|
|
|
|
2021-11-14 14:46:25 -05:00
|
|
|
DI::page()['htmlhead'] .= self::buildHtmlHead($profile, static::$parameters['nickname'], $remote_contact_id);
|
2020-01-26 09:54:21 -05:00
|
|
|
|
|
|
|
Nav::setSelected('home');
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
$is_owner = local_user() == $profile['uid'];
|
2021-08-08 06:14:56 -04:00
|
|
|
$o = self::getTabsHTML($a, 'profile', $is_owner, $profile['nickname'], $profile['hide-friends']);
|
2020-01-26 09:54:21 -05:00
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
if (!empty($profile['hidewall']) && !$is_owner && !$remote_contact_id) {
|
2020-01-26 09:54:21 -05:00
|
|
|
notice(DI::l10n()->t('Access to this profile has been restricted.'));
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
|
|
|
|
$view_as_contacts = [];
|
|
|
|
$view_as_contact_id = 0;
|
2020-07-28 11:40:14 -04:00
|
|
|
$view_as_contact_alert = '';
|
2020-01-26 09:54:21 -05:00
|
|
|
if ($is_owner) {
|
|
|
|
$view_as_contact_id = intval($_GET['viewas'] ?? 0);
|
|
|
|
|
|
|
|
$view_as_contacts = Contact::selectToArray(['id', 'name'], [
|
|
|
|
'uid' => local_user(),
|
|
|
|
'rel' => [Contact::FOLLOWER, Contact::SHARING, Contact::FRIEND],
|
|
|
|
'network' => Protocol::DFRN,
|
|
|
|
'blocked' => false,
|
|
|
|
]);
|
|
|
|
|
2020-07-28 11:40:14 -04:00
|
|
|
$view_as_contact_ids = array_column($view_as_contacts, 'id');
|
|
|
|
|
2020-01-26 09:54:21 -05:00
|
|
|
// User manually provided a contact ID they aren't privy to, silently defaulting to their own view
|
2020-07-28 11:40:14 -04:00
|
|
|
if (!in_array($view_as_contact_id, $view_as_contact_ids)) {
|
2020-01-26 09:54:21 -05:00
|
|
|
$view_as_contact_id = 0;
|
|
|
|
}
|
2020-07-28 11:40:14 -04:00
|
|
|
|
|
|
|
if (($key = array_search($view_as_contact_id, $view_as_contact_ids)) !== false) {
|
|
|
|
$view_as_contact_alert = DI::l10n()->t(
|
|
|
|
'You\'re currently viewing your profile as <b>%s</b> <a href="%s" class="btn btn-sm pull-right">Cancel</a>',
|
|
|
|
htmlentities($view_as_contacts[$key]['name'], ENT_COMPAT, 'UTF-8'),
|
2021-11-14 14:46:25 -05:00
|
|
|
'profile/' . static::$parameters['nickname'] . '/profile'
|
2020-07-28 11:40:14 -04:00
|
|
|
);
|
|
|
|
}
|
2020-01-26 09:54:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
$basic_fields = [];
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
$basic_fields += self::buildField('fullname', DI::l10n()->t('Full Name:'), $profile['name']);
|
2020-01-26 09:54:21 -05:00
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
if (Feature::isEnabled($profile['uid'], 'profile_membersince')) {
|
2020-01-26 09:54:21 -05:00
|
|
|
$basic_fields += self::buildField(
|
|
|
|
'membersince',
|
|
|
|
DI::l10n()->t('Member since:'),
|
2021-07-24 06:09:39 -04:00
|
|
|
DateTimeFormat::local($profile['register_date'])
|
2020-01-26 09:54:21 -05:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
if (!empty($profile['dob']) && $profile['dob'] > DBA::NULL_DATE) {
|
2020-01-26 09:54:21 -05:00
|
|
|
$year_bd_format = DI::l10n()->t('j F, Y');
|
|
|
|
$short_bd_format = DI::l10n()->t('j F');
|
|
|
|
|
|
|
|
$dob = DI::l10n()->getDay(
|
2021-07-24 06:09:39 -04:00
|
|
|
intval($profile['dob']) ?
|
|
|
|
DateTimeFormat::utc($profile['dob'] . ' 00:00 +00:00', $year_bd_format)
|
|
|
|
: DateTimeFormat::utc('2001-' . substr($profile['dob'], 5) . ' 00:00 +00:00', $short_bd_format)
|
2020-01-26 09:54:21 -05:00
|
|
|
);
|
|
|
|
|
|
|
|
$basic_fields += self::buildField('dob', DI::l10n()->t('Birthday:'), $dob);
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
if ($age = Temporal::getAgeByTimezone($profile['dob'], $profile['timezone'])) {
|
2020-01-26 09:54:21 -05:00
|
|
|
$basic_fields += self::buildField('age', DI::l10n()->t('Age: '), DI::l10n()->tt('%d year old', '%d years old', $age));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
if ($profile['about']) {
|
|
|
|
$basic_fields += self::buildField('about', DI::l10n()->t('Description:'), BBCode::convertForUriId($profile['uri-id'], $profile['about']));
|
2020-01-26 09:54:21 -05:00
|
|
|
}
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
if ($profile['xmpp']) {
|
|
|
|
$basic_fields += self::buildField('xmpp', DI::l10n()->t('XMPP:'), $profile['xmpp']);
|
2020-01-26 09:54:21 -05:00
|
|
|
}
|
|
|
|
|
2021-08-08 21:39:09 -04:00
|
|
|
if ($profile['matrix']) {
|
|
|
|
$basic_fields += self::buildField('matrix', DI::l10n()->t('Matrix:'), $profile['matrix']);
|
|
|
|
}
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
if ($profile['homepage']) {
|
|
|
|
$basic_fields += self::buildField('homepage', DI::l10n()->t('Homepage:'), HTML::toLink($profile['homepage']));
|
2020-01-26 09:54:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
if (
|
2021-07-24 06:09:39 -04:00
|
|
|
$profile['address']
|
|
|
|
|| $profile['locality']
|
|
|
|
|| $profile['postal-code']
|
|
|
|
|| $profile['region']
|
|
|
|
|| $profile['country-name']
|
2020-01-26 09:54:21 -05:00
|
|
|
) {
|
2021-07-24 06:09:39 -04:00
|
|
|
$basic_fields += self::buildField('location', DI::l10n()->t('Location:'), ProfileModel::formatLocation($profile));
|
2020-01-26 09:54:21 -05:00
|
|
|
}
|
|
|
|
|
2021-07-24 06:09:39 -04:00
|
|
|
if ($profile['pub_keywords']) {
|
2020-01-26 09:54:21 -05:00
|
|
|
$tags = [];
|
2021-01-23 15:55:21 -05:00
|
|
|
// Separator is defined in Module\Settings\Profile\Index::cleanKeywords
|
2021-07-24 06:09:39 -04:00
|
|
|
foreach (explode(', ', $profile['pub_keywords']) as $tag_label) {
|
2020-01-26 09:54:21 -05:00
|
|
|
$tags[] = [
|
|
|
|
'url' => '/search?tag=' . $tag_label,
|
2020-04-26 11:24:58 -04:00
|
|
|
'label' => Tag::TAG_CHARACTER[Tag::HASHTAG] . $tag_label,
|
2020-01-26 09:54:21 -05:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
$basic_fields += self::buildField('pub_keywords', DI::l10n()->t('Tags:'), $tags);
|
|
|
|
}
|
|
|
|
|
|
|
|
$custom_fields = [];
|
|
|
|
|
|
|
|
// Defaults to the current logged in user self contact id to show self-only fields
|
|
|
|
$contact_id = $view_as_contact_id ?: $remote_contact_id ?: 0;
|
|
|
|
|
|
|
|
if ($is_owner && $contact_id === 0) {
|
2021-07-24 06:09:39 -04:00
|
|
|
$profile_fields = DI::profileField()->selectByUserId($profile['uid']);
|
2020-01-26 09:54:21 -05:00
|
|
|
} else {
|
2021-07-24 06:09:39 -04:00
|
|
|
$profile_fields = DI::profileField()->selectByContactId($contact_id, $profile['uid']);
|
2020-01-26 09:54:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
foreach ($profile_fields as $profile_field) {
|
|
|
|
$custom_fields += self::buildField(
|
|
|
|
'custom_' . $profile_field->order,
|
|
|
|
$profile_field->label,
|
2021-07-24 06:09:39 -04:00
|
|
|
BBCode::convertForUriId($profile['uri-id'], $profile_field->value),
|
2020-01-26 09:54:21 -05:00
|
|
|
'aprofile custom'
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
//show subcribed forum if it is enabled in the usersettings
|
2021-07-24 06:09:39 -04:00
|
|
|
if (Feature::isEnabled($profile['uid'], 'forumlist_profile')) {
|
2020-01-26 09:54:21 -05:00
|
|
|
$custom_fields += self::buildField(
|
|
|
|
'forumlist',
|
|
|
|
DI::l10n()->t('Forums:'),
|
2021-07-24 06:09:39 -04:00
|
|
|
ForumManager::profileAdvanced($profile['uid'])
|
2020-01-26 09:54:21 -05:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-12-19 22:52:03 -05:00
|
|
|
$tpl = Renderer::getMarkupTemplate('profile/profile.tpl');
|
2020-01-26 09:54:21 -05:00
|
|
|
$o .= Renderer::replaceMacros($tpl, [
|
|
|
|
'$title' => DI::l10n()->t('Profile'),
|
2020-12-19 22:52:03 -05:00
|
|
|
'$yourself' => DI::l10n()->t('Yourself'),
|
2020-01-26 09:54:21 -05:00
|
|
|
'$view_as_contacts' => $view_as_contacts,
|
|
|
|
'$view_as_contact_id' => $view_as_contact_id,
|
2020-07-28 11:40:14 -04:00
|
|
|
'$view_as_contact_alert' => $view_as_contact_alert,
|
2020-01-26 09:54:21 -05:00
|
|
|
'$view_as' => DI::l10n()->t('View profile as:'),
|
2020-07-28 11:40:14 -04:00
|
|
|
'$submit' => DI::l10n()->t('Submit'),
|
2020-01-26 09:54:21 -05:00
|
|
|
'$basic' => DI::l10n()->t('Basic'),
|
|
|
|
'$advanced' => DI::l10n()->t('Advanced'),
|
2021-07-24 06:09:39 -04:00
|
|
|
'$is_owner' => $profile['uid'] == local_user(),
|
2020-01-26 09:54:21 -05:00
|
|
|
'$query_string' => DI::args()->getQueryString(),
|
|
|
|
'$basic_fields' => $basic_fields,
|
|
|
|
'$custom_fields' => $custom_fields,
|
2021-07-24 06:09:39 -04:00
|
|
|
'$profile' => $profile,
|
2020-01-26 09:54:21 -05:00
|
|
|
'$edit_link' => [
|
|
|
|
'url' => DI::baseUrl() . '/settings/profile', DI::l10n()->t('Edit profile'),
|
|
|
|
'title' => '',
|
|
|
|
'label' => DI::l10n()->t('Edit profile')
|
|
|
|
],
|
2020-07-28 11:40:14 -04:00
|
|
|
'$viewas_link' => [
|
|
|
|
'url' => DI::args()->getQueryString() . '#viewas',
|
|
|
|
'title' => '',
|
|
|
|
'label' => DI::l10n()->t('View as')
|
|
|
|
],
|
2020-01-26 09:54:21 -05:00
|
|
|
]);
|
|
|
|
|
|
|
|
Hook::callAll('profile_advanced', $o);
|
|
|
|
|
|
|
|
return $o;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a profile field structure to be used in the profile template
|
|
|
|
*
|
|
|
|
* @param string $name Arbitrary name of the field
|
|
|
|
* @param string $label Display label of the field
|
|
|
|
* @param mixed $value Display value of the field
|
|
|
|
* @param string $class Optional CSS class to apply to the field
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
private static function buildField(string $name, string $label, $value, string $class = 'aprofile')
|
|
|
|
{
|
|
|
|
return [$name => [
|
|
|
|
'id' => 'aprofile-' . $name,
|
|
|
|
'class' => $class,
|
|
|
|
'label' => $label,
|
|
|
|
'value' => $value,
|
|
|
|
]];
|
|
|
|
}
|
|
|
|
|
|
|
|
private static function buildHtmlHead(array $profile, string $nickname, int $remote_contact_id)
|
|
|
|
{
|
|
|
|
$baseUrl = DI::baseUrl();
|
|
|
|
|
|
|
|
$htmlhead = "\n";
|
|
|
|
|
|
|
|
if (!empty($profile['page-flags']) && $profile['page-flags'] == User::PAGE_FLAGS_COMMUNITY) {
|
|
|
|
$htmlhead .= '<meta name="friendica.community" content="true" />' . "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!empty($profile['openidserver'])) {
|
|
|
|
$htmlhead .= '<link rel="openid.server" href="' . $profile['openidserver'] . '" />' . "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!empty($profile['openid'])) {
|
|
|
|
$delegate = strstr($profile['openid'], '://') ? $profile['openid'] : 'https://' . $profile['openid'];
|
|
|
|
$htmlhead .= '<link rel="openid.delegate" href="' . $delegate . '" />' . "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
// site block
|
|
|
|
$blocked = !local_user() && !$remote_contact_id && DI::config()->get('system', 'block_public');
|
|
|
|
$userblock = !local_user() && !$remote_contact_id && $profile['hidewall'];
|
|
|
|
if (!$blocked && !$userblock) {
|
|
|
|
$keywords = str_replace(['#', ',', ' ', ',,'], ['', ' ', ',', ','], $profile['pub_keywords'] ?? '');
|
|
|
|
if (strlen($keywords)) {
|
|
|
|
$htmlhead .= '<meta name="keywords" content="' . $keywords . '" />' . "\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$htmlhead .= '<meta name="dfrn-global-visibility" content="' . ($profile['net-publish'] ? 'true' : 'false') . '" />' . "\n";
|
|
|
|
|
2020-02-16 10:39:44 -05:00
|
|
|
if (!$profile['net-publish']) {
|
2020-01-26 09:54:21 -05:00
|
|
|
$htmlhead .= '<meta content="noindex, noarchive" name="robots" />' . "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-25 03:29:02 -04:00
|
|
|
$htmlhead .= '<link rel="alternate" type="application/atom+xml" href="' . $baseUrl . '/dfrn_poll/' . $nickname . '" title="DFRN: ' . DI::l10n()->t('%s\'s timeline', $profile['name']) . '"/>' . "\n";
|
|
|
|
$htmlhead .= '<link rel="alternate" type="application/atom+xml" href="' . $baseUrl . '/feed/' . $nickname . '/" title="' . DI::l10n()->t('%s\'s posts', $profile['name']) . '"/>' . "\n";
|
|
|
|
$htmlhead .= '<link rel="alternate" type="application/atom+xml" href="' . $baseUrl . '/feed/' . $nickname . '/comments" title="' . DI::l10n()->t('%s\'s comments', $profile['name']) . '"/>' . "\n";
|
|
|
|
$htmlhead .= '<link rel="alternate" type="application/atom+xml" href="' . $baseUrl . '/feed/' . $nickname . '/activity" title="' . DI::l10n()->t('%s\'s timeline', $profile['name']) . '"/>' . "\n";
|
2020-01-26 09:54:21 -05:00
|
|
|
$uri = urlencode('acct:' . $profile['nickname'] . '@' . $baseUrl->getHostname() . ($baseUrl->getUrlPath() ? '/' . $baseUrl->getUrlPath() : ''));
|
|
|
|
$htmlhead .= '<link rel="lrdd" type="application/xrd+xml" href="' . $baseUrl . '/xrd/?uri=' . $uri . '" />' . "\n";
|
|
|
|
header('Link: <' . $baseUrl . '/xrd/?uri=' . $uri . '>; rel="lrdd"; type="application/xrd+xml"', false);
|
|
|
|
|
|
|
|
$dfrn_pages = ['request', 'confirm', 'notify', 'poll'];
|
|
|
|
foreach ($dfrn_pages as $dfrn) {
|
|
|
|
$htmlhead .= '<link rel="dfrn-' . $dfrn . '" href="' . $baseUrl . '/dfrn_' . $dfrn . '/' . $nickname . '" />' . "\n";
|
|
|
|
}
|
|
|
|
$htmlhead .= '<link rel="dfrn-poco" href="' . $baseUrl . '/poco/' . $nickname . '" />' . "\n";
|
|
|
|
|
|
|
|
return $htmlhead;
|
|
|
|
}
|
|
|
|
}
|